From nobody@FreeBSD.org  Tue Jan  3 19:01:47 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 93E27106567B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Jan 2012 19:01:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 833298FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Jan 2012 19:01:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q03J1kaF089262
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 3 Jan 2012 19:01:46 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q03J1k2H089261;
	Tue, 3 Jan 2012 19:01:46 GMT
	(envelope-from nobody)
Message-Id: <201201031901.q03J1k2H089261@red.freebsd.org>
Date: Tue, 3 Jan 2012 19:01:46 GMT
From: Stephane DAlu <stephane.dalu@insa-lyon.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nsswitch.conf with nss_ldap ignore [success=return]
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163798
>Category:       conf
>Synopsis:       [nsswitch.conf] nsswitch.conf with nss_ldap ignore [success=return]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 03 19:10:09 UTC 2012
>Closed-Date:    
>Last-Modified:  Tue Mar  6 04:50:09 UTC 2012
>Originator:     Stephane DAlu
>Release:        9.0
>Organization:
>Environment:
FreeBSD incal.sdalu.com 9.0-RELEASE FreeBSD 9.0-RELEASE #9: Tue Jan  3 16:40:22 CET 2012     root@incal.sdalu.com:/usr/obj/usr/src/sys/INCAL  amd64
>Description:
when using nss_ldap with nsswitch.conf boot process get stuck when starting named. The name service trying to resolve "bind" user through "ldap" database despite a success in the "files" database

configuration used for nsswitch.conf is 
group: files [success=return] ldap
passwd: files [success=return] ldap

Was working fine in 9.0-RC3
>How-To-Repeat:
install nss_ldap and configure nsswitch.conf to
group: files [success=return] ldap
passwd: files [success=return] ldap

try to start named
>Fix:
in nss_ldap.conf:
nss_initgroups_ignoreusers root,ldap,bind

>Release-Note:
>Audit-Trail:

From: "Eugene M. Zheganin" <emz@norma.perm.ru>
To: bug-followup@FreeBSD.org, stephane.dalu@insa-lyon.fr
Cc:  
Subject: Re: conf/163798: [nsswitch.conf] nsswitch.conf with nss_ldap ignore
 [success=return]
Date: Tue, 06 Mar 2012 10:40:18 +0600

 This isuue is like thousand years old. And it concerns every available 
 backend, not just ldap. The same thing is with nss_winbind, for example. 
 Furthermore, [success=return] is the default status/action pair. Plus, 
 first I saw this issue on like 7.x. So I can say - 7.x and 8.x are 
 affected too.
 
 And I can say, this leads up to even more weird situation. Imagine 
 OpenLDAP server running on a FreeBSD. After successful test we configure 
 the same FreeBSD as LDAP client - from now on slapd will stuck on start, 
 as it waits for itself.
>Unformatted:
