Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
apt-get install libpam-ldap libnss-ldap nss-updatedb libnss-db nfscommon nscd ldap-utils

You will again be asked a bunch of questions
LDAP server Uniform Resource Identifier: ldap://ldap.example.com
Distinguished name of the search base: dc=example,dc=com
ldap://ldap.example.com 3
Make local root Database admin: Yes
Does the LDAP database require login? No
LDAP account for root: cn=admin,dc=example,dc=com
LDAP root password: 

I went to know which password to assign here i means new password are ldap server password

Now we need to edit the following files vi /etc/ldap.conf and add this line;

 bind_policy soft

were to add the above line

In the next step ..

vi /etc/ldap/ldap.conf
BASE dc=example,dc=com
URI ldap://ldap.example.com
SIZELIMIT 0
TIMELIMIT 0
DEREF never

In the next step ..

vi /etc/nsswitch.conf
passwd: files ldap
group: files ldap
shadow: files ldap
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files

Now update nss to use ldap.

nss_updatedb ldap

I getting an error;

Failed to enumerate nameservice: No such file or directory

and after this what to do?

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.