Deleting entries using ldapmodify
About this task
You can use the LDIF changetype directive to delete an entry from the PingDirectory server using the ldapmodify tool.
|
You can only delete leaf entries. |
Steps
-
Delete an entry using the
ldapmodifytool.-
From the command line run the
ldapmodifytool with thechangetype:deleteoption. -
Enter the distinguished name (DN) and press
Enterto go to the next line. -
Enter the
changetypedirective. -
Press
Ctrl+Dtwice to enter the end-of-file (EOF) sequence (UNIX) orCtrl+Z(Windows).Example:
$ bin/ldapmodify --hostname server1.example.com -port 389 --bindDN "uid=admin,dc=example,dc=com" --bindPassword password dn:uid=user.14,ou=People,dc=example,dc=com changetype: delete
-