]> git.sur5r.net Git - openldap/commitdiff
more fixes to parsing of (deprecated) config directives (ITS#3915)
authorPierangelo Masarati <ando@openldap.org>
Tue, 2 Aug 2005 22:21:44 +0000 (22:21 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 2 Aug 2005 22:21:44 +0000 (22:21 +0000)
servers/slapd/back-ldap/config.c

index 0145e1a12e26fa864d0f84eb8a229323a1637012..c80845c75e504dda06a5403c2aa371662a0ca765 100644 (file)
@@ -779,7 +779,7 @@ ldap_back_cf_gen( ConfigArgs *c )
                if ( !BER_BVISNULL( &li->acl_passwd ) ) {
                        free( li->acl_passwd.bv_val );
                }
-               li->acl_passwd = c->value_bv;
+               ber_str2bv( c->argv[ 1 ], 0, 1, &li->acl_passwd );
                break;
 
        case LDAP_BACK_CFG_ACL_METHOD:
@@ -896,13 +896,13 @@ ldap_back_cf_gen( ConfigArgs *c )
                if ( !BER_BVISNULL( &li->idassert_passwd ) ) {
                        free( li->idassert_passwd.bv_val );
                }
-               li->idassert_passwd = c->value_bv;
+               ber_str2bv( c->argv[ 1 ], 0, 1, &li->idassert_passwd );
                break;
 
        case LDAP_BACK_CFG_IDASSERT_AUTHZFROM: {
                struct berval   bv;
 
-               ber_str2bv( c->argv[1], 0, 1, &bv );
+               ber_str2bv( c->argv[ 1 ], 0, 1, &bv );
                ber_bvarray_add( &li->idassert_authz, &bv );
                } break;