Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273699 - net-nds/openldap: slapd needs to be loaded before dbus, hald and avahi
Summary: net-nds/openldap: slapd needs to be loaded before dbus, hald and avahi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-11 09:52 UTC by Alessandro Calorì
Modified: 2009-07-28 21:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Calorì 2009-06-11 09:52:20 UTC
On my system I enabled OpenLDAP authentication with nss_ldap and pam_ldap. The database works correctly and also the authentication but the boot procedure is very slow hanging during dbus, hal and avahi-daemon startup.


Reproducible: Always

Steps to Reproduce:
1. Install and configure net-nds/openldap
2. Install and configure sys-auth/pam_ldap and sys-auth/nss_ldap
3. Reboot the system

Actual Results:  
The boot procedure hangs on dbus, hal and avahi-daemon startup. In /var/log/messages I found many errors about nss_ldap being unable to bind to the LDAP server ("nss_ldap: failed to bind to LDAP server ..."). This is quite obvious since the OpenLDAP daemon (slapd) hasn't been started yet.


Expected Results:  
The boot procedure should be faster and there should not be any error in /var/log/messages.

The OpenLDAP daemon (slapd) should be loaded *before* dbus, hald and avahi-daemon.

There are two workarounds:

1) start slapd in "boot" run-level;
2) add "before dbus hald avahi-daemon" in depend() section in /etc/init.d/slapd.
Comment 1 Alessandro Calorì 2009-06-19 12:22:13 UTC
Is anyone working on this issue? I can provide more information if needed...
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-28 21:29:31 UTC
Fixed in 2.4.17-r1.