Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2005 17:12:13 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Serge Kestens <serge.kestens@ecx.be>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: nss_ldap errors
Message-ID:  <20050125231213.GA58140@dan.emsphone.com>
In-Reply-To: <3654.62.166.141.107.1106693001.squirrel@62.166.141.107>
References:  <3654.62.166.141.107.1106693001.squirrel@62.166.141.107>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 25), Serge Kestens said:
> i'm trying to use pam_ldap and nss_ldap on a freebsd 5.3 box. This is
> my first try to use ldap for sshd logins. When the user exists in the
> files i can connect without problem. I created the same user in ldap
> with a different password and i can login with both passwords (files
> and ldap). If the user exists only in ldap, it doesn't work I receive
> the following error in debug.log
>
> Jan 25 22:19:30 vmldap sshd[608]: NSSWITCH(nss_method_lookup): ldap, group, setgrent, not found
> Jan 25 22:19:30 vmldap sshd[608]: NSSWITCH(nss_method_lookup): ldap, group, getgrent_r, not found
> Jan 25 22:19:30 vmldap sshd[608]: NSSWITCH(nss_method_lookup): ldap, group, endgrent, not found
> Jan 25 22:19:30 vmldap sshd[609]: NSSWITCH(nss_method_lookup): ldap, passwd, endpwent, not found

Try rebooting your system or bouncing sshd.   I remember seeing that on
my systems, but can't quite remember what caused it.  Either the
ldconfig path wasn't set up right and ssh couldn't find nss_ldap.so at
all, or I had just upgraded openldap and something was still looking
for old ldap libraries.  If a reboot doesn't work, try rebuilding
openldap and nss_ldap.

Running ktrace/truss on sshd might help you determing what's failling.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050125231213.GA58140>