How to add local accounts to a server when same user exist in ldap?

Solution Unverified - Updated -

Issue

I have a number of servers which are using LDAP for user authentication, We have a requirement to add a limited number of local accounts to a system.

However when executing the useradd account it errors as there is already an LDAP entry

[fx18:root]:/root > adduser -u 1445 -g 2936 -c"Test User" -d /home/foo -s /bin/sh -m foo
adduser: user foo exists

Environment

Red Hat Enterprise Linux 4/5/6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.