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

Re: How can I delete a LDAP databse to start fresh?



> Thanks for the many posts on getting rid of the old database, I was able to delete is sucessfully, but now am unable to add the initial entries to the database.
> 
> The directory /var/lib/ldap exists, but obviously there is no file there.
> 
> My error message is:
> 
> [root@Webby openldap]# ldapadd -x -h localhost -D "cn=root,dc=FAMILY,dc=com" -f base.ldif -w secret

You should use slapadd (make sure slapd isn't running!!!)

> adding new entry "dc=FAMILY,dc=org"
> ldap_add: No such object

You need the 'dc=org' object, see above