Commit 8490231b authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

import fix to way long standing bug in args parsing

parent 34f4c2cb
......@@ -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)
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment