From owner-freebsd-questions@FreeBSD.ORG Tue Jan 25 23:12:23 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85E0F16A4CE for ; Tue, 25 Jan 2005 23:12:23 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AB1543D2F for ; Tue, 25 Jan 2005 23:12:23 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j0PNCDP6011195; Tue, 25 Jan 2005 17:12:13 -0600 (CST) (envelope-from dan) Date: Tue, 25 Jan 2005 17:12:13 -0600 From: Dan Nelson To: Serge Kestens Message-ID: <20050125231213.GA58140@dan.emsphone.com> References: <3654.62.166.141.107.1106693001.squirrel@62.166.141.107> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3654.62.166.141.107.1106693001.squirrel@62.166.141.107> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: nss_ldap errors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 23:12:23 -0000 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