[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Failure while importing an exported ldif file



--On Friday, December 02, 2011 8:59 AM +0100 Axel Birndt <towerlexa@gmx.de> wrote:

Good Morning Quanah,

thanks for your fast answer. I tried it yesterday, but not with this
exact command from you.... but unfortunately it doesn't 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...

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.

--Quanah


--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration