From 2d94c4bd525bc870581c2e81921a17a34e66161e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 21 Apr 2005 21:19:35 +0000 Subject: [PATCH] set alias dereferencing (please check) --- servers/slapd/saslauthz.c | 1 + servers/slapd/syncrepl.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index a69961b89e..001c0ecdb0 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -1060,6 +1060,7 @@ exact_match: BER_BVZERO( &base ); } ber_dupbv_x( &op.o_req_dn, &op.o_req_ndn, op.o_tmpmemctx ); + op.ors_deref = LDAP_DEREF_NEVER; op.ors_slimit = 1; op.ors_tlimit = SLAP_NO_LIMIT; op.ors_attrs = slap_anlist_no_attrs; diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 48d9faf53c..e41329f1f0 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1231,6 +1231,7 @@ syncrepl_entry( op->o_tag = LDAP_REQ_SEARCH; op->ors_scope = LDAP_SCOPE_SUBTREE; + op->ors_deref = LDAP_DEREF_NEVER; /* get the entry for this UUID */ op->o_req_dn = si->si_base; @@ -1338,6 +1339,7 @@ retry_add:; op2.o_req_dn = entry->e_name; op2.o_req_ndn = entry->e_nname; op2.ors_scope = LDAP_SCOPE_BASE; + op2.ors_deref = LDAP_DEREF_NEVER; op2.ors_attrs = slap_anlist_all_attributes; op2.ors_attrsonly = 0; op2.ors_limit = NULL; -- 2.39.5