From owner-freebsd-questions@FreeBSD.ORG Sun May 7 22:41:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5DAD516A49A for ; Sun, 7 May 2006 22:41:58 +0000 (UTC) (envelope-from vvelox@vvelox.net) Received: from mail07.powweb.com (mail07.powweb.com [66.152.97.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1224143D4C for ; Sun, 7 May 2006 22:41:57 +0000 (GMT) (envelope-from vvelox@vvelox.net) Received: from vixen42.vulpes (24-119-225-24.cpe.cableone.net [24.119.225.24]) by mail07.powweb.com (Postfix) with ESMTP id 72A8714E0B2; Sun, 7 May 2006 15:41:57 -0700 (PDT) Date: Sun, 7 May 2006 17:42:56 -0500 From: "Z.C.B." To: Dominique Goncalves Message-ID: <20060507174256.09c33510@vixen42.vulpes> In-Reply-To: <7daacbbe0601181356q131bc2d7kd044d924e13079f2@mail.gmail.com> References: <7daacbbe0601181356q131bc2d7kd044d924e13079f2@mail.gmail.com> X-Mailer: Sylpheed-Claws 2.1.1 (GTK+ 2.8.17; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: nsswitch.conf with ldap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2006 22:41:58 -0000 On Wed, 18 Jan 2006 22:56:09 +0100 Dominique Goncalves wrote: > Hi, > > I'm trying to use ldap database in /etc/nsswitch.conf but FreeBSD > hangs on boot if it needs to bind a system user present in files, my > nsswitch.conf: > group: files ldap > group_compat: nis > hosts: files dns > networks: files > passwd: files ldap > passwd_compat: nis > shells: files > > Adding ldap after FreeBSD has started, everything works ok. > > I've done some test with truss on single user mode with and without > ldap in nsswitch.conf and binding a system user present in files and > it only works if there is no ldap in nsswitch.conf > > truss with ldap in nsswitch.conf: > http://djdomics.free.fr/FreeBSD/nss-w-ldap.txt truss without ldap > in nsswitch.conf: http://djdomics.free.fr/FreeBSD/nss-wo-ldap.txt > > I use: > FreeBSD djdomics.sceen.net 6.0-STABLE FreeBSD 6.0-STABLE #5: Thu Jan > 12 00:18:18 CET 2006 > root@djdomics.sceen.net:/usr/obj/usr/src/sys/DJDOMICS i386 > > According to nsswitch.conf(5) > The default criteria is to return on ``success'', and continue on > any- thing else (i.e, [success=return notfound=continue > unavail=continue tryagain=continue]). > > Why FreeBSD tries to use ldap database if my user system is on > files ? Thanks for the help. Did you ever find a fix for this? I am running into the same thing myself.