How to enable LDAP authentication in Ubuntu server

Medical Technology, Healthcare & Government IT

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 “” line.
session required 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] use_authtok try_first_pass change to
password [success=1 user_unknown=ignore default=die] try_first_pass


Original Link