1 .TH LDAPPASSWD 1 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2012 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldappasswd \- change the password of an LDAP entry
12 .BI \-a \ oldPasswd\fR]
14 .BI \-t \ oldpasswdfile\fR]
18 .BI \-d \ debuglevel\fR]
22 .BI \-h \ ldaphost\fR]
26 .BI \-p \ ldapport\fR]
28 .BR \-o \ \fIopt\fP [ =\fIoptparam\fP ]]
32 .BI \-s \ newPasswd\fR]
34 .BI \-T \ newpasswdfile\fR]
42 .BI \-y \ passwdfile\fR]
44 .BI \-O \ security-properties\fR]
65 is a tool to set the password of an LDAP user.
67 uses the LDAPv3 Password Modify (RFC 3062) extended operation.
70 sets the password of associated with the user [or an optionally
74 password is not specified on the command line and the user
75 doesn't enable prompting, the server will be asked to generate
76 a password for the user.
79 is neither designed nor intended to be a replacement for
81 and should not be installed as such.
85 Prompt for old password.
86 This is used instead of specifying the password on the command line.
89 Set the old password to \fIoldPasswd\fP.
91 .BI \-t \ oldPasswdFile
92 Set the old password to the contents of \fIoldPasswdFile\fP.
95 Use simple authentication instead of SASL.
98 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
99 For SASL binds, the server is expected to ignore this value.
102 Set the LDAP debugging level to \fIdebuglevel\fP.
104 must be compiled with LDAP_DEBUG defined for this option to have any effect.
107 Specify URI(s) referring to the ldap server(s); only the protocol/host/port
108 fields are allowed; a list of URI, separated by whitespace or commas
112 Specify an alternate host on which the ldap server is running.
113 Deprecated in favor of \fB\-H\fP.
116 Specify an alternate TCP port where the ldap server is listening.
117 Deprecated in favor of \fB\-H\fP.
119 .BR \-o \ \fIopt\fP [ =\fIoptparam\fP ]
121 Specify general options.
125 nettimeout=<timeout> (in seconds, or "none" or "max")
126 ldif-wrap=<width> (in columns, or "no" for no wrapping)
130 Do not set password. (Can be useful when used in conjunction with
131 \fB\-v\fP or \fB\-d\fP)
134 Prompt for new password.
135 This is used instead of specifying the password on the command line.
138 Set the new password to \fInewPasswd\fP.
140 .BI \-T \ newPasswdFile
141 Set the new password to the contents of \fInewPasswdFile\fP.
144 Increase the verbosity of output. Can be specified multiple times.
147 Prompt for bind password.
148 This is used instead of specifying the password on the command line.
151 Use \fIpasswd\fP as the password to bind with.
154 Use complete contents of \fIpasswdfile\fP as the password for
155 simple authentication.
157 .BI \-O \ security-properties
158 Specify SASL security properties.
160 .BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
162 .BR \-E \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
164 Specify general extensions with \fB\-e\fP and passwd modify extensions with \fB\-E\fP.
165 \'\fB!\fP\' indicates criticality.
169 [!]assert=<filter> (an RFC 4515 Filter)
170 !authzid=<authzid> ("dn:<dn>" or "u:<user>")
171 [!]bauthzid (RFC 3829 authzid control)
172 [!]chaining[=<resolve>[/<cont>]]
176 [!]postread[=<attrs>] (a comma-separated attribute list)
177 [!]preread[=<attrs>] (a comma-separated attribute list)
179 sessiontracking[=<username>]
180 abandon,cancel,ignore (SIGINT sends abandon/cancel,
181 or ignores response; if critical, doesn't wait for SIGINT.
185 Passwd Modify extensions:
191 Enable SASL Interactive mode. Always prompt. Default is to prompt
195 Enable SASL Quiet mode. Never prompt.
198 Specify the authentication ID for SASL bind. The form of the ID
199 depends on the actual SASL mechanism used.
202 Specify the realm of authentication ID for SASL bind. The form of the realm
203 depends on the actual SASL mechanism used.
206 Specify the requested authorization ID for SASL bind.
208 must be one of the following formats:
209 .BI dn: "<distinguished name>"
211 .BI u: <username>\fP.
214 Specify the SASL mechanism to be used for authentication. If it's not
215 specified, the program will choose the best mechanism the server knows.
218 Issue StartTLS (Transport Layer Security) extended operation. If you use
219 \fB\-ZZ\fP, the command will require the operation to be successful
221 .BR ldap_sasl_bind (3),
222 .BR ldap_extended_operation (3),
223 .BR ldap_start_tls_s (3)
225 The OpenLDAP Project <http://www.openldap.org/>