[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Referral Problem with SQL Backend
I suggest you file an ITS <http://www.openldap.org/its/>, and try the
attached patch.
p.
diff --git a/servers/slapd/back-sql/search.c b/servers/slapd/back-sql/search.c
index cadd036..92d3f82 100644
--- a/servers/slapd/back-sql/search.c
+++ b/servers/slapd/back-sql/search.c
@@ -325,7 +325,7 @@ backsql_init_search(
rc = rs->sr_err = LDAP_REFERRAL;
rs->sr_ref = referral_rewrite( erefs,
&bsi->bsi_e->e_nname,
- &op->o_req_dn,
+ NULL /* &op->o_req_dn */ ,
scope );
ber_bvarray_free( erefs );
@@ -2336,7 +2336,7 @@ backsql_search( Operation *op, SlapReply *rs )
if ( refs ) {
rs->sr_ref = referral_rewrite( refs,
&e->e_name,
- &op->o_req_dn,
+ NULL /* &op->o_req_dn */ ,
op->ors_scope );
ber_bvarray_free( refs );
}