Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Ubuntu Server 11.10. I have setup LDAP with some users added.

Now i want to configure openssh to use this LDAP details to login to server. and once a user logs in each user should have their respective home directory.

share|improve this question
Are you doing anything special with SSH, or do you just need LDAP to (further) manage your user's home directories, permissions, etc. ? – david6 Dec 28 '11 at 21:36

Install the libpam-ldap and libnss-ldap packages.

While the packages are being installed, the setup process will ask you for the URI to your LDAP server, the DN of your LDAP search base, the LDAP version, etc, and then stores them in /etc/ldap.conf (or /etc/pam-ldap.conf and /etc/libnss-ldap.conf on older versions of Ubuntu).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.