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

How can I delete a LDAP databse to start fresh?

I cannot use the normal ldap tools because I must have an invalid entry for my rootdn or my password:

I would like to delete the database so ldap thinks this is the very first entries again.

these are in my slapd.conf

database        ldbm
suffix         "dc=family, dc=com"
rootdn         "cn=root,dc=WEBBY,dc=com"
rootpw         "secret"
directory      /var/lib/ldap

so I try this line:

[root@Webby openldap]# ldapadd -x -h localhost -D "cn=root,dc=WEBBY,dc=com" -f base.ldif -w secret
ldap_bind: Invalid credentials

now, if I get it, that _should_ work because I have the -D correct.

So that leaves:

  I have encrypted passwords turned on so ldap doesn't see secret as secret because it's plaintext in slapd.conf

  I have entries in my existing ldap that are preventing me from being "authenticated".

I cannot ldapdelete either for the same error message:

Epson Inkjet Printer FAQ: http://welcome.to/epson-inkjet