From 0f86bbde87bca5ee3c7c83ca061e9604c2b08837 Mon Sep 17 00:00:00 2001 From: Stig Venaas Date: Thu, 31 Oct 2002 16:48:04 +0000 Subject: [PATCH] Fix referrals and alias. For ldbm and I think for bdb, this is necessary now that we normalize to lower case. Should be merged into 2.1. --- servers/slapd/back-bdb/search.c | 4 ++-- servers/slapd/back-ldbm/search.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 5d2bdcec14..3ecc66bb92 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -941,7 +941,7 @@ static int search_candidates( */ if (!oc_filter(filter, 1, &depth) && !get_subentries_visibility(op) ) { if( !get_manageDSAit(op) ) { /* match referrals */ - struct berval bv_ref = { sizeof("REFERRAL")-1, "REFERRAL" }; + struct berval bv_ref = { sizeof("referral")-1, "referral" }; rf.f_choice = LDAP_FILTER_EQUALITY; rf.f_ava = &aa_ref; rf.f_av_desc = slap_schema.si_ad_objectClass; @@ -952,7 +952,7 @@ static int search_candidates( #ifdef BDB_ALIASES if( deref & LDAP_DEREF_SEARCHING ) { /* match aliases */ - struct berval bv_alias = { sizeof("ALIAS")-1, "ALIAS" }; + struct berval bv_alias = { sizeof("alias")-1, "alias" }; af.f_choice = LDAP_FILTER_EQUALITY; af.f_ava = &aa_alias; af.f_av_desc = slap_schema.si_ad_objectClass; diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index 1d41140078..875b6e99f6 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -554,8 +554,8 @@ search_candidates( ID_BLOCK *candidates; Filter f, fand, rf, af, xf; AttributeAssertion aa_ref, aa_alias; - struct berval bv_ref = { sizeof("REFERRAL")-1, "REFERRAL" }; - struct berval bv_alias = { sizeof("ALIAS")-1, "ALIAS" }; + struct berval bv_ref = { sizeof("referral")-1, "referral" }; + struct berval bv_alias = { sizeof("alias")-1, "alias" }; #ifdef NEW_LOGGING LDAP_LOG( BACK_LDBM, DETAIL1, -- 2.39.5