How to enable LDAP authentication in Ubuntu server

Medical Technology, Healthcare & Government IT

.
Categories
Category Groups
How to configure Ubuntu server as LDAP client
  • apt-get install libnss-ldap ##Install LDAP NSS module first. It’ll ask you for few configuration settings, answer all questions with our LDAP server settings (Give below is the netspective ldap server settings)
  • dpkg-reconfigure ldap-auth-config ##If you need to reconfigure ldap settings again run the following command
  • periactin weight gain before and after, dapoxetine without prescription

  • auth-client-config -t nss -p lac_ldap ##To configure LDAP profile for NSS
  • pam-auth-update ##Reconfigure Ubuntu servers to use LDAP authentication as well as local authentication
For LDAP user to have home directory created automatically upon first time logged in, edit /etc/pam.d/common-session file and insert following above “pam_ldap.so” line.
session required pam_mkhomedir.so umask=0022 skel=/etc/skel

For allowing user to change their LDAP password. Edit /etc/pam.d/common-password file and locate..
password [success=1 user_unknown=ignore default=die] pam_ldap.so use_authtok try_first_pass change to
password [success=1 user_unknown=ignore default=die] pam_ldap.so try_first_pass



 

Original Link