From: Howard Chu Date: Mon, 13 Oct 2003 19:30:28 +0000 (+0000) Subject: Fix use of ProxyAuthz control X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~576 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db24b006607ab42da94608980e0f0f7ef067ed56;p=openldap Fix use of ProxyAuthz control --- diff --git a/contrib/ldapsasl/ldapdb.c b/contrib/ldapsasl/ldapdb.c index 1ce3db8977..0f89121b95 100644 --- a/contrib/ldapsasl/ldapdb.c +++ b/contrib/ldapsasl/ldapdb.c @@ -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;