An LDAP server like the 389 Directory Server and OpenLDAP can be used to centralize the users and authentication information. This articles describes how to use LDAP based authentication in Red Hat Enterprise Linux 5 or CentOS 5.
The attributes below are required to be filled up to be able to use LDAP authentication.
- uid – User name
- userPassword – User password
- uidNumber – UID
- gidNumber – GID
- homeDirectory – Home directory
- loginShell – Login shell

If you are using Fedora Directory Server, it has a great GUI tool for managing the required Posix attributes.Setup Authentication

1. Click System, select Administration and click Authentication. This will launch the Authentication Configuration window.
5. Click the Options tab and check Local authorization is sufficient for local users and Create home directories on the first login. Click Ok when you are done.Finally, reboot your computer. You should now be able to login using LDAP user accounts.
If your LDAP server requires authentication or its attributes does not conform to the RFC 2307 specification, you need to edit the file /etc/ldap.conf to make this work. See Active Directory Authentication for an example.
The version of sudo that comes with RHEL/CentOS 5 does not work with non local user accounts. While this is not yet fixed, use the sudo rpm package for Fedora 8.Visit the forum to ask for help or to give a comment.
***
Posted on 3/8/2009 and last updated on 11/24/2009
Filed under CentOS 5 , LDAP , Red Hat Enterprise Linux 5




March 11th, 2009 at 12:53 am
Hi Clinton,
Sorry, that is not doable. What is doable is to automate the assignment of UID in FDS after enabling the Posix attributes.
March 10th, 2009 at 11:02 pm
How do you configure FDS to automatically generate the POSIX attributes?