Steve Langasek wrote:
> On Fri, Mar 23, 2007 at 01:29:17AM +0100, Michael Biebl wrote:
>>> No, no changes were ever made that would eliminate the udev error messages.
>>> The change that was made was to prevent the system from *hanging* at boot.
> 
>> Hm, ok. But it's still not rather comforting to see this huge amount of
>> error messages during startup.
>> I'd consider this bug only half-fixed.
> 
> Well, sorry, but I don't see how any other fix is possible for libnss-ldap.
> It's a fact that udev does lookups for users/groups that are not guaranteed
> to exist on the local system, and I don't think libnss-ldap should be
> responsible for trying to munge the user's /etc/nsswitch.conf on boot to
> avoid all LDAP lookups.
> 

Imo there is a solution:
The problem is, that libnss-ldap retries several times before it gives
up (because there is no network connection yet). While this makes sense
during normal operation, it doesn't make sense during bootup.
So my suggestion would be:
The first time, libnss-ldap can successfully query the (remote) ldap
server, it creates a file, lets call it /var/run/nss-ldap-connected.
Only if this file exists, libnss-ldap retries multiple times on network
outages.
This file is deleted on shutdown.
On startup, if the file does not exist yet, nss-ldap does not retry to
connect several times but immediately returns nothing if it cant connect
to the server.

Does that sound reasonable?

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to