From owner-freebsd-questions@FreeBSD.ORG Wed Aug 6 15:57:50 2003 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 4286737B401 for ; Wed, 6 Aug 2003 15:57:50 -0700 (PDT) Received: from cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CDD343FAF for ; Wed, 6 Aug 2003 15:57:48 -0700 (PDT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 83282 invoked from network); 6 Aug 2003 22:57:46 -0000 Received: from unknown (HELO chuck.cultdeadsheep.org) (192.168.0.12) by goofy.cultdeadsheep.org with SMTP; 6 Aug 2003 22:57:46 -0000 Date: Thu, 7 Aug 2003 00:57:49 +0200 From: Clement Laforet To: thomas@deniau.org (Thomas Deniau) Message-Id: <20030807005749.4c4ded81.sheepkiller@cultdeadsheep.org> In-Reply-To: <1fzapny.w7e9z61mx003gM%thomas@deniau.org> References: <1fzapny.w7e9z61mx003gM%thomas@deniau.org> Organization: tH3 cUlt 0f tH3 d3@d sH33p X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i386-portbld-freebsd5.1) X-Face: ._cVVRDn#-2((lnfi^P7CoD4htI$4+#G/G)!w|,}H5yK~%(3-C.JlEYbOjJGFwJkt*7N^%z jYeu[;}]}F"3}l5R'l"X0HbvT^D\Q&%deCo)MayY`);TO Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: nss_ldap in -CURRENT 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: Wed, 06 Aug 2003 22:57:50 -0000 On Thu, 7 Aug 2003 00:43:12 +0200 thomas@deniau.org (Thomas Deniau) wrote: > Hi ! Hi, > I'm trying to use nss_ldap, to implement ldap authentication, in > 5.1-current. > The LDAP server works perfectly. I've installed the nss_ldap and > pam_ldap ports, edited /usr/local/etc/ldap.conf. put "passwd: files > ldap" and "group:files ldap" in /etc/nsswitch.conf. > > pam_ldap works perfectly : the auth stage succeeds, but then the login > fails : I guess that nss_ldap doesn't find my UID. > > In fact, when I use getpwent() I don't get LDAP users.... So it seems > that something in nsswitch is not working, but there is no error > logged... > When I try to use id, for example, I get "no such user" for LDAP users. > > So, how can I know if nss_ldap is loaded and what is causing the error ? > Has anyone succeeded in using nss_ldap ? > > Thank you in advance, It works perfectly here :) un simple truss shows you that you need to copy /usr/local/etc/ldap.conf to /etc/ldap.conf. After that it should work. (that works for me) regards, clem