{
fprintf(stderr,
"Usage: %s [options] dn\n"
+ " -A\t\tprompt for old password\n"
+ " -a secret\told password\n"
" -D binddn\tbind dn\n"
" -d level\tdebugging level\n"
" -h host\tldap server (default: localhost)\n"
" -n\t\tmake no modifications\n"
" -p port\tldap port\n"
- " -s secret\tnew password\n"
" -S\t\tprompt for new password\n"
+ " -s secret\tnew password\n"
" -v\t\tincrease verbosity\n"
" -W\t\tprompt for bind password\n"
" -w passwd\tbind password (for simple authentication)\n"
ldapdelete D K M P W cd f h k np vw
ldapmodify D F K M P W abcd f h k np r t vw
ldapmodrdn D K M P W cd f h k np rs vw
-ldappasswd A D KL P S a cd h k stuvw
+ldappasswd A D S W a d h s vw
ldapsearch AB D F KLM P RST VW ab d f h kl np stuvw z
mail500 C d f h lm v
rcpt500 U abc f h l p st z
ldappasswd \- change the password of an LDAP entry
.SH SYNOPSIS
.B ldappasswd
+[\c
+.BR \-A ]
+[\c
+.BI \-a \ oldPasswd\fR]
.BI \-D \ binddn\fR
[\c
.BI \-d \ debuglevel\fR]
[\c
.BI \-p \ ldapport\fR]
[\c
+.BR \-S ]
+[\c
.BI \-s \ newPasswd\fR]
[\c
.BR \-v ]
and should not be installed as such.
.LP
.B ldappasswd
-sets the password of associated with the user associated with the
-bind DN.
-If the new password is not specified on the command line, the user
-will be prompted to enter it.
+sets the password of associated with the user. If the new
+password is not specified on the command line or the user
+doesn't enable prompting, the server will be asked to generate
+a password for the user.
.SH OPTIONS
.TP
+.BI \-A
+Prompt for old password.
+This is used instead of specifying the password on the command line.
+.TP
+.BI \-a \ oldPasswd
+Set the old password to \fIoldPasswd\fP.
+.TP
.BI \-D \ binddn
Use \fIbinddn\fP to bind to the LDAP directory. \fIbinddn\fP should
be a string-represented DN as defined in RFC 2253.
-This flag is not optional.
+This flag is not optional. The user DN will be used if the
+bind DN is not provided.
.TP
.BI \-d \ debuglevel
Set the LDAP debugging level to \fIdebuglevel\fP.
.BR \-v \ or
.BR \-d )
.TP
+.BI \-S
+Prompt for new password.
+This is used instead of specifying the password on the command line.
+.TP
.BI \-s \ newPasswd
-Set the user password to \fInewPasswd\fP.
+Set the new password to \fInewPasswd\fP.
.TP
.BI \-p \ ldapport
Specify an alternate port on which the ldap server is running.