import fix to way long standing bug in args parsing

This commit is contained in:
Pierangelo Masarati 2006-09-23 12:33:42 +00:00
parent 34f4c2cb97
commit 8490231bb2
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@ OpenLDAP 2.3 Change Log
OpenLDAP 2.3.28 Engineering
Fixed libldap ldap.conf max line length (ITS#4669)
Fixed librewrite LDAP map parsing bug
Added ldapsearch bad filter pattern check (ITS#4647)
Fixed slapd-monitor locking with scope "subordinate" (ITS#4668)
Fixed slapd global access controls initialization (ITS#4654)

View file

@ -155,7 +155,7 @@ map_ldap_parse(
data->lm_binddn[ l ] = '\0';
}
} else if ( strncasecmp( argv[ 0 ], "bindpw=", 7 ) == 0 ) {
data->lm_bindpw = strdup( argv[ 2 ] + 7 );
data->lm_bindpw = strdup( argv[ 0 ] + 7 );
if ( data->lm_bindpw == NULL ) {
map_ldap_free( data );
return NULL;