2011-2012ForgeRock AS ldapdelete1 OpenDJ ldapdelete perform LDAP delete operations ldapdelete options DN Description This utility can be used to perform LDAP delete operations in the directory. Options The following options are supported. Use the LDAP assertion control with the provided filter Continue processing even if there are errors LDIF file containing the changes to apply Use a request control with the provided information Show what would be done but do not perform any operation Delete the specified entry and all entries below it Use the proxied authorization control with the given authorization ID LDAP Connection Options DN to use to bind to the server Default value: cn=Directory Manager Use the authorization identity control Directory server hostname or IP address Default value: localhost.localdomain Bind password file Certificate key store path Nickname of certificate for SSL client authentication SASL bind options Directory server port number Default value: 389 Certificate trust store path Use StartTLS to secure communication with the server Certificate trust store PIN Certificate key store PIN file Certificate trust store PIN file Use the password policy request control LDAP protocol version number Default value: 3 Password to use to bind to the server Certificate key store PIN Trust all server SSL certificates Use SSL for secure communication with the server Utility Input/Output Options Use the specified character set for command-line input No properties file will be used to get default command line argument values Path to the file containing default property values used for command line arguments Use verbose mode General Options Display version information Display usage information Exit Codes 0 The command completed successfully. ldap-error An LDAP error occurred while processing the operation. LDAP result codes are described in RFC 4511. Also see the additional information for details. 89 An error occurred while parsing the command-line arguments. Files You can use ~/.opendj/tools.properties to set the defaults for bind DN, host name, and port number as in the following example. hostname=directory.example.com port=1389 bindDN=uid=kvaughan,ou=People,dc=example,dc=com ldapcompare.port=1389 ldapdelete.port=1389 ldapmodify.port=1389 ldappasswordmodify.port=1389 ldapsearch.port=1389 Examples The following command deletes a user entry from the directory. $ ldapdelete -p 1389 -D "cn=Directory Manager" -w password uid=bjensen,ou=people,dc=example,dc=com Processing DELETE request for uid=bjensen,ou=people,dc=example,dc=com DELETE operation successful for DN uid=bjensen,ou=people,dc=example,dc=com The following command deletes the ou=Groups entry and all entries underneath ou=Groups. $ ldapdelete -p 1389 -D "cn=Directory Manager" -w password -x ou=groups,dc=example,dc=com Processing DELETE request for ou=groups,dc=example,dc=com DELETE operation successful for DN ou=groups,dc=example,dc=com