]> git.sur5r.net Git - openldap/commitdiff
Fix use of ProxyAuthz control
authorHoward Chu <hyc@openldap.org>
Mon, 13 Oct 2003 19:30:28 +0000 (19:30 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 13 Oct 2003 19:30:28 +0000 (19:30 +0000)
contrib/ldapsasl/ldapdb.c

index 1ce3db89772df1db6ec5356712ca45e5b1b9408d..0f89121b95a5d3a52cdebb19ba75631089436917 100644 (file)
@@ -166,8 +166,9 @@ static void ldapdb_auxprop_lookup(void *glob_context,
        ber_bvfree(dn);
        goto done;
     }
-    ret = ldap_search_s(ld, dn->bv_val+3, LDAP_SCOPE_BASE, "(objectclass=*)",
-       attrs, 0, &res);
+    c.ldctl_value = *dn;
+    ret = ldap_search_ext_s(ld, dn->bv_val+3, LDAP_SCOPE_BASE,
+       "(objectclass=*)", attrs, 0, ctrl, NULL, NULL, 1, &res);
     ber_bvfree(dn);
 
     if (ret != LDAP_SUCCESS) goto done;