Comment 88 for bug 155947

Revision history for this message
Jamie Strandboge (jdstrand) wrote : Re: ldap config causes Ubuntu to hang at login

STATUS UPDATE:
The ubuntu package does include 00boot_delays_h.patch which is the Debian patch for this issue. This seems to work for udev, but not for functions that call libc's initgroups(), which by definition will try to get all the groups a member belongs to, and if /etc/nsswitch.conf contains 'ldap' for the groups database, libc checks ldap. start-stop-daemon is one such application.

libnss-ldap does provide for 'nss_initgroups_ignoreusers', which allows for nss to skip ldap in intigroups() for the specified groups. So, to confirm that this was the problem, I added to /etc/ldap.conf:
nss_initgroups_ignoreusers klog

I then rebooted and the boot proceeded past klogd, and then hung at crond. Currently thinking about a solution.