Good Morning Quanah,
thanks for your fast answer. I tried it yesterday, but not with this exact command from you.... but unfortunately it doesnt work.
Am 01.12.2011 22:58, schrieb Quanah Gibson-Mount:
--On Thursday, December 01, 2011 10:38 PM +0100 Axel Birndt towerlexa@gmx.de wrote:
Yet you are trying to *slapadd* your primary database into the cn=config database. Why are you surprised this doesn't work?
Also, you need to import the config first. So your first slapadd command should be:
sudo slapadd -F /etc/ldap/slapd.d -n 0 -l cn_config_export.ldif
This fails with the following error:
abirndt@lvps83-169-33-218:~/openldap_2axels-company$ 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...
to import the config database.
Then you need to import your primary db:
sudo slapadd -F /etc/ldap/slapd.d -b "dc=2axels-company,dc=de" -l dc_2axels-company_dc_de_export.ldif
But this second command seems to be working. I will check it soon.
For slapadd, -n 0 has very specific meaning -- It is for the cn=config db only.
Ok thanks for this hint. While you read in my other mails, you know, that i'am currently a beginner in openldap, and i don't read in the man-Page (-> sorry ;-) )