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

Re: DB Cleaning! Please help!

Your rootdn is in your slapd.conf. You will still need to add your base DN
and root DN to the new ldif.

Also, FYI, you can use slapadd to build a new database from an ldif. Might
be faster than ldapadd.

> From: "Rick Kukiela" <ldap@urbancom.net>
> Date: Wed, 11 Apr 2001 12:58:39 -0500
> To: <openldap-software@OpenLDAP.org>
> Subject: Re: DB Cleaning! Please help!
> Thanks, but will this delete my root CN record or will that still be ok?
> Thanks
> Rick Kukiela
> ----- Original Message -----
> From: Daniell Freed
> To: Rick Kukiela
> Cc: openldap-software@OpenLDAP.org
> Sent: Wednesday, April 11, 2001 12:53 PM
> Subject: Re: DB Cleaning! Please help!
> You can kill all slapd services running.  Then just delete the database, the
> location of the db is indicated in the slapd.conf file by the directory
> line.  In my case it is /var/lib/ldap/.  Just remove the files from there,
> not the directory itself.
> Start slapd up again and you should be able to import your ldif.
> Dan
> Rick Kukiela wrote:
> Hi,
> I want to clean out my entire LDAP db because I have a new LDIF will all
> updated information I would like to import using the ldapadd command.
> Unfortunatly, I cannot do that until the db is empty because I get entry
> already exists errors. Is there a simply way to start the DB from scratch so
> that I can re-import everything?
> Please help! I have been searching the web and list archives for about 3
> days now and can't seem to find anything!!
> Thanks,
> Rick Kukiela
> --
> Daniell Freed
> Computer Services
> Dewitt, Ross, & Stevens S.C.
> He who fights with monsters might take care
> lest he thereby become a monster.
> And if you gaze for long into an abyss,
> the abyss gazes also into you.
> Beyond Good and Evil
> Friedrich Wilhelm Nietzche