Open LDAP client side configuration and integration to server

#yum install -y openldap-client nss-pam-ldapd

//text user interface tool

#authconfig-tui

there you have to select LDAP and ldap authentication - next

specify the ldap server IP for example "ldap://10.10.10.10 and domain name

for example "dc=doamin,dc=com"  - ok


#getent passwd username(ldap user)
//here you will get the server user information

or

#id username

#su - username
//here if you get any warning like "cannot change directory to /home/username"
then we need to export openldap server to here

you have to export the configuration from server side

and client side you need to mount nfs directory from fstab


make sure port 389 is open on both machines

port 389 for LDAP and 636 for LDAPS

because ldap using 389 port
#netstat -nvr


troubleshooting
Error authentication failure
//check the dns and ports



Post a Comment

0 Comments