Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having a bit of an issue with system authentication against LDAP in Ubuntu. The LDAP server is OpenLDAP on Ubuntu 10.10, and the client is Ubuntu 10.10 also. I've set up the client by following the "LDAP Authentication" steps at https://help.ubuntu.com/10.10/serverguide/C/openldap-server.html

apt-get install libnss-ldap; auth-client-config -t nss -p lac_ldap; pam-auth-update

I've done these steps on the server and been able to see LDAP users when running getent passwd. Doing the same steps on the client, getent passwd does not return any LDAP users.

Any ideas?

share|improve this question
    
Make sure /etc/libnss-ldap.conf is configured to use your server and /etc/nsswitch.conf is configured to use ldap for lookups. –  Tim Bielawa Feb 9 '11 at 7:31
add comment

1 Answer

Can you ping/access the ldap server from the client ? What about the other way around ?

You'll also want to make sure that ports 389 (ldap) or 636 (ldapSSL) are opened. A tool like nmap (apt-get install nmap):

nmap <IP address> -p389 or
nmap <IP address> -p636

Will usually let you know if your ports are closed, filtered or opened.

share|improve this answer
    
I don't think it's a port problem. Using ldapsearch I can query the LDAP server and get a reply. –  andrew Dec 30 '10 at 14:52
add comment

Your Answer

 
discard

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.