Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2006 21:03:09 -0500
From:      "Marcus I. Ryan" <marcus@riboflavin.net>
To:        freebsd-questions@freebsd.org
Subject:   slapd hangs in nss configuration
Message-ID:  <20060625210309.q92nzbr5wkcso0kg@www.riboflavin.net>

next in thread | raw e-mail | index | archive | help
I'm trying to set up NSS with an OpenLDAP backend on one server.  When =20
I try to start slapd after I've enabled nss, slapd hangs and won't =20
start.  It seems to relate directly to group nss because if I simply =20
change the nsswitch.conf to be:

passwd: files ldap
groups: files

slapd starts fine.  As soon as I add ldap to the groups line, slapd =20
won't start.  All involved groups I can think of (wheel, ldap, etc.) =20
are in the local groups file.  I tried "groups: files [success=3Dreturn] =20
ldap" as well, but either way it still tries to go to ldap.

Truss shows it's not exactly hanging, but it's stuck in a loop -- the =20
same truss output keeps repeating:

83287: poll({11 0x0|IN|PRI|NVAL|RDNORM|RDBAND|WRBAND },1,30000) =3D 0 (0x0)
83287: shutdown(0xb,0x2)                         =3D 0 (0x0)
83287: close(11)                                 =3D 0 (0x0)
83287: gettimeofday({1151263559 839848},0x0)     =3D 0 (0x0)
83287: getpid()                                  =3D 83287 (0x14557)
83287: sendto(0x3,0x7fffffffca50,0,0x0,NULL,0x0) =3D 118 (0x76)
83287: stat("/usr/local/etc/nss_ldap.conf",0x7fffffffce90) =3D 0 (0x0)
83287: getpid()                                  =3D 83287 (0x14557)
83287: geteuid()                                 =3D 0 (0x0)
83287: socket(0x1,0x1,0x0)                       =3D 11 (0xb)
83287: fcntl(11,F_GETFL,0x80122ebe4)             =3D 2 (0x2)
83287: fcntl(11,F_SETFL,0x6)                     =3D 0 (0x0)
83287: connect(0xb,{ AF_UNIX "/var/run/openldap/ldapi" },106) ERR#61 =20
'Connection refused'
83287: shutdown(0xb,0x2)                         =3D 0 (0x0)
83287: close(11)                                 =3D 0 (0x0)
83287: gettimeofday({1151263559 840968},0x0)     =3D 0 (0x0)
83287: getpid()                                  =3D 83287 (0x14557)
83287: sendto(0x3,0x7fffffffca50,0,0x0,NULL,0x0) =3D 142 (0x8e)
83287: gettimeofday({1151263559 841282},0x0)     =3D 0 (0x0)
83287: getpid()                                  =3D 83287 (0x14557)
83287: sendto(0x3,0x7fffffffca50,0,0x0,NULL,0x0) =3D 97 (0x61)
83287: nanosleep({16 0})                         =3D 0 (0x0)
83287: stat("/usr/local/etc/nss_ldap.conf",0x7fffffffce90) =3D 0 (0x0)
83287: getpid()                                  =3D 83287 (0x14557)
83287: geteuid()                                 =3D 0 (0x0)
83287: socket(0x2,0x1,0x0)                       =3D 11 (0xb)
83287: setsockopt(0xb,0x6,0x1,0x7fffffffd014,0x4) =3D 0 (0x0)
83287: fcntl(11,F_GETFL,0x80122ebe4)             =3D 2 (0x2)
83287: fcntl(11,F_SETFL,0x6)                     =3D 0 (0x0)
83287: connect(0xb,{ AF_INET 127.0.0.1:389 },16) ERR#36 'Operation now =20
in progress'

I'm pretty well stumped at this point, except to update the slapd =20
startup script to update nsswitch.conf...

--=20
Marcus I. Ryan, marcus@riboflavin.net
--------------------------------------------------------------------
Hanlon's Razor:  Never attribute to malice that which is adequately
explained by stupidity.
--------------------------------------------------------------------








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060625210309.q92nzbr5wkcso0kg>