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

Re: problem importing cn=config

Greg Martin wrote:
I loaded up 2.4.6 for my small home network use.  It and the apps
(phpldapadmin, tikiwiki, Webcalendar) that use it are running fine.  Sweet!

Now I want to convert to cn=config.  I ran:

    slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
to build the config, then ran:

    slapadd -d -1 -F /etc/openldap/slapd.d -n 0 -l cn=config.ldif
to import it

I get this error:
: config_add_internal: DN="cn=config" already exists
slapadd: could not add entry dn="cn=config" (line=1):
slapadd shutdown: initiated

I tried -c to ignore errors, but this must be serious.

Not much when I ask Google, but I saw a post from Howard months back
that suggested there was a bug surrounding this process and that it was
fixed in the 2.3.x HEAD.

Seems to me that anything you found is completely unrelated to this.

Other than that - no other help.

Is there a way to force overwrite?

Overwrite? Why would you want to overwrite what you just created?
Once you've converted the config it's ready to run, you don't slapadd it again. You're trying to slapadd the database onto itself, which obviously makes it complain... There's no import needed.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/