Public bug reported:

eBox restarts slapd when new schemas or ACLs are added to
/etc/ldap/slapd.conf by running:

invoke-rc.d slapd restart

Right after, it tries to populate the LDAP directory with some entries.
The problem is  that slapd is not ready to accept connections after
invoke-rc.d slapd restart has returned, and eBox throws an exception
complaining  it couldn't connect to LDAP.  It seems that slapd  needs
some time to get ready to accept connections.

This issue didn't happen neither in last Hardy Beta nor Debian Sarge and
it's a showstopper for eBox packages as  ebox-samba and ebox-printers
modules won't work whatsoever.

To workaround the issue upstream has patched the connection to LDAP
within eBox by doing the following:

eBox  doesn't give up right away if it can't connect to slapd, and gives
some time to slapd to get ready to accept connections. If after a few
seconds it can't connect, it finally gives up and throws an exception.

I guess that ideally, slapd should be ready after restarting by not
forking  until it's ready to accept connections.

** Affects: ebox-usersandgroups (Ubuntu)
     Importance: Undecided
         Status: New

-- 
ebox-usersandgroups fails to intialise slapd directory
https://bugs.launchpad.net/bugs/220262
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to