From owner-freebsd-questions@FreeBSD.ORG Thu Jan 19 00:45:33 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 7AF6A16A41F for ; Thu, 19 Jan 2006 00:45:33 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2523443D45 for ; Thu, 19 Jan 2006 00:45:30 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: by uproxy.gmail.com with SMTP id o2so68479uge for ; Wed, 18 Jan 2006 16:45:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AYD8onzEBlyBPIRg71s2D1LAa42EY++x5r7HQ8Km1oXuOWaE79OvOfwvaa0uPB+GIuuySLsAXgER5Ja7+b5RMFg2rCoGpPzv2CPt+xauQgAxcmUf0lyGOEOA6ddAGd1e0VmufooPOeu2wFHXgWCLsI1FMB3PjsmgRzk59DnT0rY= Received: by 10.49.91.4 with SMTP id t4mr480516nfl; Wed, 18 Jan 2006 13:56:09 -0800 (PST) Received: by 10.48.157.16 with HTTP; Wed, 18 Jan 2006 13:56:09 -0800 (PST) Message-ID: <7daacbbe0601181356q131bc2d7kd044d924e13079f2@mail.gmail.com> Date: Wed, 18 Jan 2006 22:56:09 +0100 From: Dominique Goncalves To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: 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: Thu, 19 Jan 2006 00:45:33 -0000 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-lda= p.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 =20 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=3Dreturn notfound=3Dcontinue unavail=3Dcontinue tryagain=3Dcontinue]). Why FreeBSD tries to use ldap database if my user system is on files ? Thanks for the help. Regards. -- There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life."