mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 03:44:58 -05:00
Update ldappasswd binddn bug, man page and error reporting
This commit is contained in:
parent
8e6062eb82
commit
e6dc9d1889
3 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue