Hi Quanah,
thank you many times for your help and your time.
It is working now.
Am 02.12.2011 13:50, schrieb Quanah Gibson-Mount:
--On Friday, December 02, 2011 8:59 AM +0100 Axel Birndt towerlexa@gmx.de wrote:
sudo slapadd -F /etc/ldap/slapd.d -n 0 -l cn_config_export.ldif [sudo] password for abirndt: slapadd: could not add entry dn="cn=config" (line=1):
But how could i add the initial import from the cn=config informations? Yesterday i spend some hours in googling for that, but don't find the correct solution...
For all others here is a link which describe it like your way:
http://www.linid.org/projects/linid-om/wiki#OpenLDAP-Manager
Did you remove the old config database from /etc/ldap/slapd.d? If there is already a config database existing, it will fail to overwrite it. The fact that the second slapadd succeeds strongly indicates you did not get rid of the old cn=config db.
Great, thank you. I forgot to remove the content from /etc/ldap/slapd.d!
now my steps which are working:
1. stop slapd 2. remove content from /etc/ldap/slapd.d 3. sudo slapadd -F /etc/ldap/slapd.d -n 0 -l cn_Config_export.ldif 4. start ldapserver
I'am happy, while all my acl's are still in the ldapserver, and all is working.
The best knowledge is, that i'am now be able to restore my ldap server from a backup.
I wish you a nice weekend!