Fix -c vs -H typo (ITS#154)

This commit is contained in:
Kurt Zeilenga 1999-09-25 16:16:05 +00:00
parent d8114c59ce
commit 964886ee5c
3 changed files with 8 additions and 6 deletions

View file

@ -6,6 +6,8 @@ Changes included in OpenLDAP 1.2 Release Engineering
Fixed slapd li_nextid_file uninitialized bug
Fixed -lldap templates y2k bug (ITS#294)
Fixed ldbm db_appinit to use u_int32_t instead of int (ITS#295)
Documentation
ldappasswd fix -c vs -H typo (ITS#154)
Changes included in OpenLDAP 1.2.7
CVS Tag: OPENLDAP_REL_ENG_1_2_7

View file

@ -76,10 +76,6 @@ Specify the LDAP attribute to change. The default is "userPassword".
Use \fIsearchbase\fP as the starting point for the search instead of
the default.
.TP
.B \-c \fInone\fR\||\|\fIcrypt\fR\||\|\fImd5\fR\||\|\fIsmd5\fR\||\|\fIsha\fR\||\|\fIssha
Specify the hashing algorithm used to store the password. The default is
.IR crypt .
.TP
.BI \-D \ binddn
Use \fIbinddn\fP to bind to the X.500 directory. \fIbinddn\fP should be
a string-represented DN as defined in RFC 1779.
@ -94,6 +90,10 @@ Auto-generate passwords of length \fIpwlen\fR.
Passwords will be displayed when using verbose,
.BR -vvv .
.TP
.B \-H \fInone\fR\||\|\fIcrypt\fR\||\|\fImd5\fR\||\|\fIsmd5\fR\||\|\fIsha\fR\||\|\fIssha
Specify the hashing algorithm used to store the password. The default is
.IR crypt .
.TP
.BI \-h \ ldaphost
Specify an alternate host on which the ldap server is running.
.TP

View file

@ -34,9 +34,9 @@ value_add_fast(
*maxvals * sizeof(struct berval *) );
}
for ( i = 0, j = 0; i < naddvals; i++, j++ ) {
for ( i = 0, j = 0; i < naddvals; i++ ) {
if ( addvals[i]->bv_len > 0 ) {
(*vals)[nvals + j] = ber_bvdup( addvals[i] );
(*vals)[nvals + j++] = ber_bvdup( addvals[i] );
}
}
(*vals)[nvals + j] = NULL;