LDAP Setup and Configuration Guide

How to Delete an entry From the Directory

Use ldapdelete(1) to delete an entry from the directory. ldapdelete opens a connection to the LDAP directory server, binds to the directory server, and performs one or more LDAP delete entry operations on the directory.

  1. Bind as the directory manager (password “enigma”) and delete the entry for Penny Gold.


    % ldapdelete -D "cn=Manager, o=Ultra Keyboards Inc., \
    c=US" -w enigma "cn=Penny Gold, o=Ultra Keyboards Inc., c=US"

ldapdelete returns nothing if the operation is successful; otherwise, an error message is displayed.