Ok, I have found a work-arround to transfer slapd into a working state.
This is not solution of this problem, but it helps to bring slapd back
into a running state and so you can continue with openLDAP on your
machine.

At first you need an additional cleen machine, I name it MC (for machine
clean). You can install this machine for example in a virtualbox.

MC ... clean machine
ME ... machine with the slapd install error 

1) on ME: execute "apt-get remove slapd"
2) on ME: remove manually the directories "/var/lib/ldap" and "/etc/ldap"
3) on MC: execute "apt-get install slapd ldap-utils"
4) on MC: stop the slapd process with "service slapd stop"
5) on MC: transfer with rsync the directories "/var/lib/ldap" and "/etc/ldap" 
to the maschine ME
(make sure, that owner/group and access flags are not modified)
6) on ME: execute "apt-get install slapd ldap-utils"

Now the installation sricpt of package slapd runs to end without any
problems. Removement and reinstallatione of package slapd works without
problems, but there is no dialog for configuration (as it is in the very
first install).

To change configuration:
1) stop the slapd process with "service slapd stop"
2) remove actual slapd.d with "rm -r /etc/ldap/slapd.d"
3) execute "dpkg-reconfigure slapd"

Afterwards you will find a new /etc/ldap/slapd.d

So far as good, installation script for package slapd isn't bug-free
otherwise I would not have these problems.

For me it's interesting to know:
1) where is the configuration info stored (because the dialog starts up only 
one time in the very beginning)
2) why does the dpkg-ceconfiguration fail if /etc/lapd/slapd.d is existing

My recommendation to package authors. Don't do any ldap configuration in the 
installing phase.
Only check while package removement or package installation if there is a ldap 
configuratin/database available, and in this case offer the option to 
use/remove or mover the old configuration/database.
If user selects a complete removement everything after reinstallation should be 
like after a very first install.

Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/810977

Title:
  slapd remove/reinstall fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/810977/+subscriptions

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

Reply via email to