ldapdelete-examples.xml revision 73adb2e3dbaa8a9f6448cefccb7933f68c3c7348
2N/A<?xml version="1.0" encoding="UTF-8"?>
2N/A<!--
2N/A ! CDDL HEADER START
2N/A !
2N/A ! The contents of this file are subject to the terms of the
2N/A ! Common Development and Distribution License, Version 1.0 only
2N/A ! (the "License"). You may not use this file except in compliance
2N/A ! with the License.
2N/A !
2N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
2N/A ! or http://forgerock.org/license/CDDLv1.0.html.
2N/A ! See the License for the specific language governing permissions
2N/A ! and limitations under the License.
2N/A !
2N/A ! When distributing Covered Code, include this CDDL HEADER in each
2N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
2N/A ! If applicable, add the following below this CDDL HEADER, with the
2N/A ! fields enclosed by brackets "[]" replaced with your own identifying
2N/A ! information:
2N/A ! Portions Copyright [yyyy] [name of copyright owner]
2N/A !
2N/A ! CDDL HEADER END
2N/A !
2N/A ! Copyright 2015 ForgeRock AS.
2N/A !
2N/A-->
2N/A<refsect1 xmlns="http://docbook.org/ns/docbook"
2N/A version="5.0" xml:lang="en"
2N/A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2N/A xsi:schemaLocation="http://docbook.org/ns/docbook
2N/A http://docbook.org/xml/5.0/xsd/docbook.xsd">
2N/A <title>Examples</title>
2N/A
2N/A <para>
2N/A The following command deletes a user entry from the directory.
2N/A </para>
2N/A
2N/A <screen>
2N/A$ <userinput>ldapdelete -p 1389 -D "cn=Directory Manager" -w password \
2N/A uid=bjensen,ou=people,dc=example,dc=com</userinput>
2N/A<computeroutput>Processing DELETE request for uid=bjensen,ou=people,dc=example,dc=com
2N/ADELETE operation successful for DN uid=bjensen,ou=people,dc=example,dc=com</computeroutput>
2N/A </screen>
2N/A
2N/A <para>
2N/A The following command deletes the <literal>ou=Groups</literal> entry
2N/A and all entries underneath <literal>ou=Groups</literal>.
2N/A </para>
2N/A
2N/A <screen>
2N/A$ <userinput>ldapdelete -p 1389 -D "cn=Directory Manager" -w password -x \
2N/A ou=groups,dc=example,dc=com</userinput>
<computeroutput>Processing DELETE request for ou=groups,dc=example,dc=com
DELETE operation successful for DN ou=groups,dc=example,dc=com</computeroutput>
</screen>
</refsect1>