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

Re: removing records from ldap database



[MICROREDE] Helder Rogerio wrote:
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