Hi everyone, I'm trying to setup ldap authentication on a new FreeBSD 8 installation. This it for local and or lan authentication only, so I don't need nor want SSL/TLS.
I have a working ldap server (slapd) already. I can connect to it using the rootdn or a user in the database (ldapvi, ldapsearch and ldapadmin work). I can't, however, get pam_ldap working.
It doesn't seem to find the users. What might cause this? How do I debug the issue? Here's what I did and what I know:
I'm trying to login using SSH. I've changed /etc/ssh/sshd_config to use PAM, and pam.d/sshd to use pam_ldap.so as well.
When starting slapd, I get an error from nss_ldap saying the server is unavailable.
When I try to login, sshd says "authentication failed for invalid user .." which in my understanding means it's unable to find the user..?
Any ideas?
I have a working ldap server (slapd) already. I can connect to it using the rootdn or a user in the database (ldapvi, ldapsearch and ldapadmin work). I can't, however, get pam_ldap working.
It doesn't seem to find the users. What might cause this? How do I debug the issue? Here's what I did and what I know:
I'm trying to login using SSH. I've changed /etc/ssh/sshd_config to use PAM, and pam.d/sshd to use pam_ldap.so as well.
When starting slapd, I get an error from nss_ldap saying the server is unavailable.
When I try to login, sshd says "authentication failed for invalid user .." which in my understanding means it's unable to find the user..?
Any ideas?