How can i remove all record from a Ldap db? thanks for the help in advance
Use the ldapdelete command:
ldapdelete -D"cn=superuser,dc=example,dc=com" -W myPassword <<EOF uid=foo,ou=humanresources,dc=example,dc=com uid=bar,ou=... EOF