]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#1497 slap/ldappasswd strncmp bug fix
authorKurt Zeilenga <kurt@openldap.org>
Thu, 20 Dec 2001 02:54:48 +0000 (02:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 20 Dec 2001 02:54:48 +0000 (02:54 +0000)
CHANGES
clients/tools/ldappasswd.c
servers/slapd/schema/core.schema
servers/slapd/tools/slappasswd.c

diff --git a/CHANGES b/CHANGES
index 310c9fe9e4929e8bb9eac8846e72b27b80e5b5d5..0bc5319406d5b4126678423c6f63e04de2602bfc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,15 +1,19 @@
 OpenLDAP 2.0 Change Log
 
 OpenLDAP 2.0.19 Engineering
-       Fixed -lldap cacertfile bug (ITS#1406)
        Fixed back-ldbm not filter indexing (ITS#1405)
        Fixed back-passwd e_ndn bug (ITS#1467)
        Fixed back-ldap undef ad bug (ITS#1367)
        Fixed slapd suffix "" bugs (ITS#1430)
        Fixed slapd zero length replace bug (ITS#1364)
        Fixed slapd teletex string printables bug (ITS#1419)
+       Fixed slapd unallocated sockets bug (ITS#1415)
        Fixed slapd undefined present filter bug (ITS#1439)
-       Fixed lber realloc bug (ITS#1410)
+       Fixed -lldap cacertfile bug (ITS#1406)
+       Fixed -lldap ldap_url_seach_s bug (ITS#1429)
+       Fixed -lldap unbind free bug (ITS#1442)
+       Fixed -llber realloc bug (ITS#1410)
+       Fixed ldappasswd/slappasswd strncmp bug (ITS#1497)
        Fixed various memory leaks
        Updated slapd emfile/enfile handling
        Build environment
index 8d254aabed18d96d9bbf80d7419de19d1a0a7464..b60b9d9cfdbaa951f08dd514a57025fdbb565c0d 100644 (file)
@@ -510,7 +510,7 @@ main( int argc, char *argv[] )
                ckoldpw = getpassphrase("Re-enter old password: ");
 
                if( oldpw== NULL || ckoldpw == NULL ||
-                       strncmp( oldpw, ckoldpw, strlen(oldpw) ))
+                       strcmp( oldpw, ckoldpw ))
                {
                        fprintf( stderr, "passwords do not match\n" );
                        return EXIT_FAILURE;
@@ -524,7 +524,7 @@ main( int argc, char *argv[] )
                cknewpw = getpassphrase("Re-enter new password: ");
 
                if( newpw== NULL || cknewpw == NULL ||
-                       strncmp( newpw, cknewpw, strlen(newpw) ))
+                       strcmp( newpw, cknewpw ))
                {
                        fprintf( stderr, "passwords do not match\n" );
                        return EXIT_FAILURE;
index 64b43c1683cf97e4edaa82cb4167e4bc1df31a3c..908aec2b094f1c217abf8701901e8c06143bf961 100644 (file)
@@ -597,9 +597,9 @@ attributetype ( 1.3.6.1.4.1.4203.1.3.2
 
 # Experimental ( subject to change )
 #      this really shouldn't be published!
-#attributetype ( 1.3.6.1.4.1.4203.666.1.5
-#      NAME 'OpenLDAPaci'
-#      DESC 'OpenLDAP access control information'
-#      EQUALITY OpenLDAPaciMatch
-#      SYNTAX 1.3.6.1.4.1.4203.666.2.1
-#      USAGE directoryOperation )
+attributetype ( 1.3.6.1.4.1.4203.666.1.5
+       NAME 'OpenLDAPaci'
+       DESC 'OpenLDAP access control information'
+       EQUALITY OpenLDAPaciMatch
+       SYNTAX 1.3.6.1.4.1.4203.666.2.1
+       USAGE directoryOperation )
index 98d859a32eb4b41d0c0c5281bfef5dbd39415f26..0e16351908550abe1f876b1ba029fe3fbc38a55a 100644 (file)
@@ -42,12 +42,10 @@ usage(const char *s)
 int
 main( int argc, char *argv[] )
 {
-       int rc;
        char    *scheme = "{SSHA}";
        char    *newpw = NULL;
 
        int             i;
-       int             version = -1;
        struct berval passwd;
        struct berval *hash = NULL;
 
@@ -97,7 +95,7 @@ main( int argc, char *argv[] )
                newpw = strdup(getpassphrase("New password: "));
                cknewpw = getpassphrase("Re-enter new password: ");
 
-               if( strncmp( newpw, cknewpw, strlen(newpw) )) {
+               if( strcmp( newpw, cknewpw )) {
                        fprintf( stderr, "Password values do not match\n" );
                        return EXIT_FAILURE;
                }