Tuesday, October 6, 2009

Setting Up LDAP Client for CentOS 5

LDAP Client Installation (Centos 5)

1-Run from command line


Select Authentication configuration

2- On User Information, Select Use LDAP

3- On Authetication, Select Use MD5, Use Shadow, Use LDAP, and Local Authetication

4- Go Next, put the server ldap://ldapserver/ and Base DN:dc=subdomain,dc=domain,dc=com . Finally hit OK

5- Quit the SetUP

6- Make sure that server is talking with LDAP. Run

#id anyuser ( anyuser that is on LDAP)

7- Then Edit /etc/nsswitch.conf

Make sure the only ldap entries are on
passwd: files ldap
shadow: files ldap
group: files ldap

Then modify them to

passwd: files [SUCCESS=return] ldap
shadow: files [SUCCESS=return] ldap
group: files [SUCCESS=return] ldap

Save and all is done.


  1. Hi, thanks for the sharing. What kind of encryption are you using at the LDAP server-side?

    Regs, Algey

  2. Hi, Carlos Gomez
    I Want to set up the LDAP server on Centos and the clients are in ubuntu , How to configure this.., please help me., pls give me the configuration also.

    regs Gary

  3. Great thanks. It just made my life easier.