[CentOS] nss_ldap loop sleeping after ...

Thu Nov 28 13:01:23 UTC 2013
Scott Robbins <scottro at nyc.rr.com>

On Thu, Nov 28, 2013 at 09:43:10AM +0100, Alexander Dalloz wrote:
> Am 28.11.2013 04:38, schrieb aurfalien:
> > Hi,
> > 


> > I rebooted a old Centos 5 box and now its stuck in an ever increasing timeout loop;
> > 
> > nss_ldap: reconnecting tl LDAP server (sleeping # seconds)....
> > 
> > This happens before network services starts.
> > 
> > Any one know how I can break out of this?

It sounds like an old bug where, if there wasn't an LDAP server available,
it would still keep looking for one.  Amusingly, it didn't even have to be
the LDAP server used for authentication, it just wanted to know that there
was an LDAP server around.  I don't know if RH ever fixed it. 

If the system has an /etc/ldap.conf see if there's a line, probably
commented, bind_policy.  If it's set to hard, uncomment it and set it to
soft.   If I remember correctly, it would eventually give up and boot--if
not, you can try accessing it and editing the file (assuming that is the
problem) with some sort of live or rescue CD.

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6