Skip to content
Snippets Groups Projects
Commit 0187ec69 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#1497 slap/ldappasswd strncmp bug fix

parent 2ae1bdd4
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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;
......
......@@ -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 )
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment