Update ldappasswd binddn bug, man page and error reporting

This commit is contained in:
Kurt Zeilenga 2000-10-11 04:56:08 +00:00
parent 8e6062eb82
commit e6dc9d1889
3 changed files with 5 additions and 5 deletions

View file

@ -533,7 +533,9 @@ main( int argc, char *argv[] )
if (want_bindpw && passwd.bv_val == NULL ) {
/* handle bind password */
fprintf( stderr, "Bind DN: %s\n", binddn );
if( binddn != NULL ) {
fprintf( stderr, "Bind DN: %s\n", binddn );
}
passwd.bv_val = strdup( getpassphrase("Enter bind password: "));
passwd.bv_len = passwd.bv_val ? strlen( passwd.bv_val ) : 0;
}

View file

@ -13,7 +13,7 @@ ldappasswd \- change the password of an LDAP entry
[\c
.BR \-C ]
[\c
.BI \-D \ binddn\fR
.BI \-D \ binddn\fR]
[\c
.BI \-d \ debuglevel\fR]
[\c
@ -86,8 +86,6 @@ Use simple authentication instead of SASL.
.TP
.BI \-D \ binddn
Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
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.

View file

@ -88,7 +88,7 @@ ldbm_back_exop_passwd(
if( e == NULL ) {
*text = "could not locate authorization entry";
rc = LDAP_OPERATIONS_ERROR;
rc = LDAP_NO_SUCH_OBJECT;
goto done;
}