<?xml version="1.0" encoding="UTF-8"?>
<!--
! CCPL HEADER START
!
! This work is licensed under the Creative Commons
! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
! To view a copy of this license, visit
! http://creativecommons.org/licenses/by-nc-nd/3.0/
! or send a letter to Creative Commons, 444 Castro Street,
! Suite 900, Mountain View, California, 94041, USA.
!
! You can also obtain a copy of the license at
! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
! See the License for the specific language governing permissions
! and limitations under the License.
!
! If applicable, add the following below this CCPL HEADER, with the fields
! enclosed by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CCPL HEADER END
!
! Copyright 2011-2012 ForgeRock AS
! Portions Copyright 2013 Jens Elkner
!
-->
<refentry xml:id="ldappasswordmodify-1" xmlns="http://docbook.org/ns/docbook"
version="5.0" xml:lang="en"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="common.xml" xpointer='xpointer(//info[@name="info"])'/>
<refmeta>
<refentrytitle><application>ldappasswordmodify</application></refentrytitle>
<xi:include href="common.xml" xpointer='xpointer(//manvolnum[@name="v1m"])'/>
</refmeta>
<refnamediv>
<refname><application>ldappasswordmodify</application></refname>
<refpurpose>perform LDAP password modifications</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>ldappasswordmodify</command>
<arg>-a <replaceable class="parameter">authzID</replaceable></arg>
<arg>-A</arg>
<arg>-c <replaceable class="parameter">curPassWord</replaceable></arg>
<arg>-C <replaceable class="parameter">curPassFile</replaceable></arg>
<arg>-n <replaceable class="parameter">newPassWord</replaceable></arg>
<arg>-N <replaceable class="parameter">newPassFile</replaceable></arg>
<arg>-J <replaceable class="parameter">ctrlOIDstr</replaceable></arg>
<sbr/><sbr/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="s-proto"]/*[@name="sc-ssl-tls"])'/>
<sbr/><sbr/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="s-remote"]/*)'/>
<sbr/><sbr/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="s-auth"]/*[not(@name="sc-alias"
or @name="sc-sasl")])'/>
<arg name="sc-alias">--certNickname <replaceable class="parameter">alias</replaceable></arg>
<sbr/><sbr/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="s-props"]/*)'/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="s-general"]/*)'/>
</cmdsynopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>
This utility can be used to perform LDAP password modify operations in the
directory.
</para>
</refsection>
<refsection>
<title>Options</title>
<para>The following options are supported.</para>
<variablelist>
<varlistentry>
<term><option>-a, --authzID</option> <replaceable
class="parameter">authzID</replaceable></term>
<listitem>
<para>
Authorization ID for the user entry whose password should be changed. The
authorization ID is a string having either the prefix <literal>dn:</literal>
followed by the user's distinguished name, or the prefix <literal>u:</literal>
followed by a user identifier that depends on the identity mapping used to match
the user identifier to an entry in the directory. Examples include
<literal>dn:uid=bjensen,ou=People,dc=example,dc=com</literal>, and, if we assume
that <literal>bjensen</literal> is mapped to Barbara Jensen's entry,
<literal>u:bjensen</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-A, --provideDNForAuthzID</option></term>
<listitem>
<para>
Use the bind DN as the authorization ID for the password modify operation.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-n, --newPassword</option> <replaceable
class="parameter">password</replaceable></term>
<listitem>
<para>
New password to provide for the target user.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-N, --newPasswordFile</option> <replaceable
class="parameter">file</replaceable></term>
<listitem>
<para>
Path to a file containing the new password to provide for the target user.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-c, --currentPassword</option> <replaceable
class="parameter">password</replaceable></term>
<listitem>
<para>
Current password for the target user.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-C, --currentPasswordFile</option> <replaceable
class="parameter">file</replaceable></term>
<listitem>
<para>
Path to a file containing the current password for the target user.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-J, --control</option> <replaceable
class="parameter">controloid[:criticality[:value|::b64value|:&lt;filePath]]}</replaceable></term>
<listitem>
<para>
Use a request control with the provided information.
</para>
</listitem>
</varlistentry>
</variablelist>
<refsection>
<title>LDAP Connection Options</title>
<variablelist>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="l-proto"]/*[@name="lc-ssl"
or @name="lc-tls"])'/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="l-remote"]/*)'/>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="l-auth"]/*[not(@name="lc-alias"
or @name="lc-sasl")])'/>
<varlistentry>
<term><option>--certNickname</option> <replaceable
class="parameter">alias</replaceable></term>
<listitem>
<para>
Alias of the certificate to use for client authentication via SSL/TLS.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Utility Input/Output Options</title>
<variablelist>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="l-props"]/*)'/>
</variablelist>
</refsection>
<refsection>
<title>General Options</title>
<variablelist>
<xi:include href="common.xml"
xpointer='xpointer(//para[@name="l-general"]/*)'/>
</variablelist>
</refsection>
</refsection>
<refsection>
<title>Examples</title>
<informalexample>
<para>
The following example demonstrates a user changing the password for her entry.
</para>
<literallayout><prompt
>$ </prompt><command>cat /tmp/currpwd.txt /tmp/newpwd.txt</command></literallayout>
<screen>
bribery
secret12
</screen>
<literallayout><prompt
>$ </prompt><command>ldappasswordmodify -p 1389 -C /tmp/currpwd.txt \
-N /tmp/newpwd.txt -A -w bribery \
-D uid=kvaughan,ou=people,dc=example,dc=com</command></literallayout>
<screen>
The LDAP password modify operation was successful
</screen>
</informalexample>
</refsection>
<xi:include href="common.xml" xpointer='xpointer(//refsection[@name="env"])'/>
<xi:include href="common.xml" xpointer='xpointer(//refsection[@name="exit-ops"])'/>
<xi:include href="common.xml" xpointer='xpointer(//refsection[@name="seeAlso"])'/>
</refentry>