From nobody@FreeBSD.org  Tue Feb 15 21:08:46 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B79F916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Feb 2005 21:08:46 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9785043D5E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Feb 2005 21:08:46 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1FL8ke6088259
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Feb 2005 21:08:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j1FL8kYN088258;
	Tue, 15 Feb 2005 21:08:46 GMT
	(envelope-from nobody)
Message-Id: <200502152108.j1FL8kYN088258@www.freebsd.org>
Date: Tue, 15 Feb 2005 21:08:46 GMT
From: Nathan Vidican <nvidican@wmptl.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nss_ldap locks out when cd'ing to seemingly random user homedirs
X-Send-Pr-Version: www-2.3

>Number:         77574
>Category:       ports
>Synopsis:       net/nss_ldap locks out when cd'ing to seemingly random user homedirs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 15 21:10:07 GMT 2005
>Closed-Date:    Mon May 29 06:25:40 GMT 2006
>Last-Modified:  Mon May 29 06:25:40 GMT 2006
>Originator:     Nathan Vidican
>Release:        5.3-RELEASE / AMD64 / AMD Opteron
>Organization:
Windsor Match Plate & Tool Ltd.
>Environment:
FreeBSD wmptl.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 03:50:01 UTC 2004     root@fanboy.samsco.home:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Running pam_ldap & nss_ldap, with all users, groups, samba/posix account information stored in ldap db. Using OpenLDAP from ports tree, as well as nss_ldap and pam_ldap too.

Execute: cd ~someusername, regardless of uid (have changed uids, re-created ldap entries, etc), some (seemingly random) uids hang and lock out the system console. 

Output is as follows:

wmptl# cd ~kmcneil/
0cdc=wmptl,dc=net

-
   objectclass
              posixAccountuidkmcneil0iuid
homeDirectory                             userPassword  uidNumber       gidNumbercn
loginShellgecos
               description
                          objectClass
(END OF SNIPPET)
At this point, only a [CRTL] + D command will release the user back to thier shell. This causes lockups and problems running samba, qpopper, and sendmail while they attempt to open/find files within a homedir.
>How-To-Repeat:
Install base 5.3-RELEASE/amd64, install nss_ldap, pam_ldap, openLDAP server/client from ports tree.

Configure database of several users (currently ours has about 200), attempt as root (or priveledged user to cd into other user's homedirs) using 'cd ~username'.
>Fix:
Unknown, googl'ing reveals many other people with similar problem, but no solution I've been able to find as of yet. FreeBSD problem report search reveals nothing of relevance yet either.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->nectar 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 15 23:45:42 GMT 2005 
Responsible-Changed-Why:  
Recategorize and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77574 

From: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>
To: bug-followup@FreeBSD.org
Cc: nvidican@wmptl.com
Subject: Re: ports/77574: net/nss_ldap locks out when cd'ing to seemingly random user homedirs
Date: Sun, 11 Dec 2005 01:59:09 +0100

 Hi,
 
 on FreeBSD 5.4, i386 and amd64 i cannot confirm this error. Maybe it was the
 result of an old nss_ldap version.
 Considering this i propose a close of this pr if no further messages
 or complains arrive.
 --=20
 
 Best regards,
 
 Konstantin Saurbier
 
 ------------------------------------------------------
 Konstantin Saurbier                Tel.: 0521 106 3861
 Computerlabor Mathematik                        U5-138
 Universitaet Bielefeld             Universitaetsstr.25
 33501 Bielefeld
 email:                  saurbier@math.uni-bielefeld.de
 ------------------------------------------------------
 

From: Nathan Vidican <nvidican@wmptl.com>
To: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>
Cc: bug-followup@freebsd.org
Subject: Re: ports/77574: net/nss_ldap locks out when cd'ing to seemingly
 random user homedirs
Date: Mon, 12 Dec 2005 08:48:08 -0500

 Konstantin Saurbier wrote:
 > Hi,
 > 
 > on FreeBSD 5.4, i386 and amd64 i cannot confirm this error. Maybe it was the
 > result of an old nss_ldap version.
 > Considering this i propose a close of this pr if no further messages
 > or complains arrive.
 
 Error only ever existed with amd64 platform afaik. Still encountering on some 
 boxes I have yet to upgrade to 6.0-RELEASE branch, but the issue was with 
 OpenLDAP libraries in FreeBSD; problem solved in 6.0-RELEASE/amd64 by 
 upgrading/utilizing OpenLDAP 2.3.x libraries instead of 2.2.x-branch. Issue had 
 to do with threading calls in openldap - caused serious lockup issues with samba 
 too, but like I said - resolved if one utilizes new(est) openldap libraries.
 
 5.4-RELEASE will not compile latest version(s) of nss_ldap - even if compiling 
 openldap 2.3.x libraries. Issues while compiling openldap, and non-standard or 
 'expected' locations to find the openldap libraries and dependants causes 
 failure of nss_ldap to compile. Not so much an issue with RELENG_6 branch.
 
 -- 
 Nathan Vidican
 nvidican@wmptl.com
 Windsor Match Plate & Tool Ltd.
 http://www.wmptl.com/

From: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>
To: Nathan Vidican <nvidican@wmptl.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/77574: net/nss_ldap locks out when cd'ing to seemingly random user homedirs
Date: Fri, 16 Dec 2005 06:56:06 +0100

 --EeQfGwPcQSOJBaQU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Nathan Vidican wrote on Mon Dec 12, 2005 um 08:48:08AM:
 > Konstantin Saurbier wrote:
 > >Hi,
 > >on FreeBSD 5.4, i386 and amd64 i cannot confirm this error. Maybe it was=
  the
 > >result of an old nss_ldap version.
 > >Considering this i propose a close of this pr if no further messages
 > >or complains arrive.
 >=20
 > Error only ever existed with amd64 platform afaik. Still encountering on =
 some=20
 > boxes I have yet to upgrade to 6.0-RELEASE branch, but the issue was with=
 =20
 > OpenLDAP libraries in FreeBSD; problem solved in 6.0-RELEASE/amd64 by=20
 > upgrading/utilizing OpenLDAP 2.3.x libraries instead of 2.2.x-branch. Iss=
 ue had=20
 > to do with threading calls in openldap - caused serious lockup issues wit=
 h=20
 > samba too, but like I said - resolved if one utilizes new(est) openldap=
 =20
 > libraries.
 
 Just for the logs, on i386 i cannot reproduce this error for nss_ldap-1.239
 and openldap22. Neither on 5.4 nor on 6.0.
 
 On AMD64 i've tried to reproduce your error in the following software
 combinations:
 
 FreeBSD 6.0, openldap-client-2.2.29, nss_ldap-1.239
 FreeBSD 6.0, openldap-client-2.2.29, nss_ldap-1.244
 FreeBSD 6.0, openldap-client-2.2.30, nss_ldap-1.239
 FreeBSD 6.0, openldap-client-2.2.30, nss_ldap-1.244
 
 Please refer to PR ports/90151 [1] for nss_ldap-1.244 and to PR ports/90221=
 =20
 [2] for openldap-client-2.2.30.
 
 On none of these the error showed up. I really don't know how to reproduce
 your errors. Maybe some compiler-flags in your make.conf or some other
 settings are the reasons for your problems.
 
 
 > 5.4-RELEASE will not compile latest version(s) of nss_ldap - even if comp=
 iling=20
 > openldap 2.3.x libraries. Issues while compiling openldap, and non-standa=
 rd or=20
 > 'expected' locations to find the openldap libraries and dependants causes=
 =20
 > failure of nss_ldap to compile. Not so much an issue with RELENG_6 branch.
 
 I apologize but again I cannot confirm your errors. nss_ldap-1.239 and 1.244
 are building just fine on 5,4/AMD64 with openldap22-client (2.2.29 and 2.2.=
 30)
 installed. I have not tried openldap-client-2.3.x because our network is st=
 ill
 on 2.2.x. Are you using non-standard options in your make.conf your=20
 environment or some other files and locations?
 
 
 [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/90151
 [2] http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/90221
 --=20
 
 Best regards,
 
 Konstantin Saurbier
 
 ------------------------------------------------------
 Konstantin Saurbier                Tel.: 0521 106 3861
 Computerlabor Mathematik                        U5-138
 Universitaet Bielefeld             Universitaetsstr.25
 33501 Bielefeld
 email:                  saurbier@math.uni-bielefeld.de
 ------------------------------------------------------
 
 
 --EeQfGwPcQSOJBaQU
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (FreeBSD)
 
 iD8DBQFDolb2WkvQTx5k+y4RAmbyAJ4xgr3RTB+LARdxiHNut9y0+7ZxvwCdHBY3
 ukg+deTIEcURxI7nbbmCL+U=
 =6JoH
 -----END PGP SIGNATURE-----
 
 --EeQfGwPcQSOJBaQU--
Responsible-Changed-From-To: nectar->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 24 05:47:24 UTC 2006 
Responsible-Changed-Why:  
Reset assignee; nectar is away from FreeBSD work at the moment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77574 

From: Sergey Matveychuk <sem@FreeBSD.org>
To: bug-followup@FreeBSD.org,  nvidican@wmptl.com
Cc:  
Subject: Re: ports/77574: net/nss_ldap locks out when cd'ing to seemingly
 random user homedirs
Date: Sun, 16 Apr 2006 22:56:39 +0400

 Please, confirm if the problem exists with FreeBSD 6.x.
 
 -- 
 Dixi.
 Sem.

From: Artem Kazakov <kazakov@gmail.com>
To: bug-followup@FreeBSD.org, nvidican@wmptl.com
Cc:  
Subject: Re: ports/77574: net/nss_ldap locks out when cd'ing to seemingly
	random user homedirs
Date: Tue, 23 May 2006 17:09:26 +0900

 I confirm that problem persist in FreeBSD 6.x, i386 & amd64 and Linux
 i386 also :) So it is not FreeBSD or port problem. 
 
 It seems that some-thing is definitely wrong, when nss_ldap.so uses
 persistent connections. 
 Currently I'm digging this out. 
 
 Current workaround: 
 
 in nss_ldap.conf uncomment this: 
 
 nss_connect_policy oneshot
 
 
 Cheers, 
 Artem Kazakov. 
 
 

From: Artem Kazakov <kazakov@gmail.com>
To: bug-followup@FreeBSD.org, nvidican@wmptl.com
Cc:  
Subject: Re: ports/77574: net/nss_ldap locks out when cd'ing to seemingly
	random user homedirs
Date: Thu, 25 May 2006 09:44:10 +0900

 It turned out that the problem is with tcsh  + nss_ldap only. 
 The problem is with open/close/dup of descriptors, which is done by
 tcsh.
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: anray 
State-Changed-When: Mon May 29 06:25:39 UTC 2006 
State-Changed-Why:  
This bug is fixed in version 1.250. Please, update the ports tree. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77574 
>Unformatted:
