Setting up LDAP client on Centos 6.2

  1. Install the following with yum:

 

yum install openldap-clients pam_ldap nss-pam-ldapd pam_krb5 sssd

 

  1. Run the following command

 

authconfig-tui

 

  1. Make sue the following are set:

 

Use LDAP

Use Shadow

Use LDAP Auth

Local Auth Sufficient

 

Use TLS

ldaps://ldap.yourdomain.com

dc=yourdomain,dc=com

 

  1. Edit /etc/pam.d/system-auth file and add/change the following line to make a new dir at first logon:

 

session required pam_mkhomedir.so skel=/etc/skel umask=0077

 

  1. Reboot PC