From owner-freebsd-questions@FreeBSD.ORG Wed Aug 6 15:43:14 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 5A55537B401 for ; Wed, 6 Aug 2003 15:43:14 -0700 (PDT) Received: from elessar.nousoft.org (nousoft.org [213.41.136.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAAB443FB1 for ; Wed, 6 Aug 2003 15:43:13 -0700 (PDT) (envelope-from thomas@deniau.org) Received: from [192.168.1.1] (localhost [127.0.0.1]) by elessar.nousoft.org (Postfix) with SMTP id 6EE144AF590 for ; Thu, 7 Aug 2003 00:43:12 +0200 (CEST) To: freebsd-questions@freebsd.org From: thomas@deniau.org (Thomas Deniau) Date: Thu, 7 Aug 2003 00:43:12 +0200 Message-ID: <1fzapny.w7e9z61mx003gM%thomas@deniau.org> Organization: Nousoft User-Agent: MacSOUP/2.5b2 (Mac OS X version 10.2.5) Subject: 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:43:14 -0000 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, -- Thomas Deniau