From: Pierangelo Masarati Date: Sat, 23 Sep 2006 12:33:42 +0000 (+0000) Subject: import fix to way long standing bug in args parsing X-Git-Tag: OPENLDAP_REL_ENG_2_3_28~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8490231bb25c792c611bf4cf3476c31fb275b097;p=openldap import fix to way long standing bug in args parsing --- diff --git a/CHANGES b/CHANGES index d29493ab97..dd448def69 100644 --- a/CHANGES +++ b/CHANGES @@ -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) diff --git a/libraries/librewrite/ldapmap.c b/libraries/librewrite/ldapmap.c index ab566306e6..134d1ab136 100644 --- a/libraries/librewrite/ldapmap.c +++ b/libraries/librewrite/ldapmap.c @@ -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;