Re: nsswitch.conf and openldap-server
Frederic Bongat <[email protected]> Wed, 08 Feb 2006 14:25:30 +0100
| Newsgroups | gmane.linux.mandrake.server |
|---|---|
| Organization | LMD - IPSL |
| Message-ID | <[email protected]> |
>>I created a script which copies a file (nsswitch.conf) with ldap words >>which starts at the time when scripts rc3 starts and there that >>functions well, then when I stop the machine, it recopies the version >>without ldap words (passwd ldap etc.) > > > > This is a hack, I haven't needed this on my 2006.0 laptop or desktop (but, > they haven't had any updates as I have almost no bandwidth at home), and it > would be useful to find the real problem (rather than workaround it). > yes, I know ! > BTW, you should see some messages from nss_ldap in either case. If you boot > into runlevel 1, you could test this quite easily just by starting syslog, > and then running 'getent passwd'. It should "hang", use CTRL-C, and see what > you get in /var/log/syslog or similar. > > Also, if you have any name resolution problems, they could come into play as > well (I ignored this in the first reply). > I have just reinstalled the same configuration on a third machine (mandriva 2006, openldap-servers, openldap-customer, pam_ldap, nss_ldap), by not configuring only the file nsswitch.conf (by adding ldap only on passord, shadow, group), I start again and the problem appears also it is thus perfectly reproducible some is the PC too When I boot in single user I have the same problem : very long to boot (stop on "mount sysfs in /sys"). After, I launch syslog, do getent passwd and then no messages in the files in /var/log I don't think to have any name resolution problems. -- Frederic Bongat