]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix -c vs -H typo (ITS#154)
authorKurt Zeilenga <kurt@openldap.org>
Sat, 25 Sep 1999 16:16:05 +0000 (16:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 25 Sep 1999 16:16:05 +0000 (16:16 +0000)
CHANGES
doc/man/man1/ldappasswd.1
servers/slapd/value.c

diff --git a/CHANGES b/CHANGES
index d7fe6ae829848565cdf2b521d4d984c22261ce73..cb98f1ff24b6fb326f8242b8ebf603d6c67e4efe 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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
index b56399fa1e6fe33d3e6fd48b6b9de515073553f1..3a79ec50c137b5abe279eb851afc7a7e8b514951 100644 (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
index d8f72c4cd85a660e9644634d2d013630ed259c6c..daf307d36093a3df89d152d4187dfc1d3084fcaa 100644 (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;