]> git.sur5r.net Git - openldap/blobdiff - libraries/librewrite/ldapmap.c
import fix to way long standing bug in args parsing
[openldap] / libraries / librewrite / ldapmap.c
index ab566306e6e3f65451f92b47ee40b90d0f2707dc..134d1ab1360ae417012d5289c044f2eac4120183 100644 (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;