]> git.sur5r.net Git - openldap/commitdiff
Didn't mean to include alias codes in last commit nor
authorKurt Zeilenga <kurt@openldap.org>
Wed, 14 Jul 1999 07:01:11 +0000 (07:01 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 14 Jul 1999 07:01:11 +0000 (07:01 +0000)
send_search_reference changes.

servers/slapd/back-ldbm/search.c
servers/slapd/tools/mimic.c

index c6e818908fe8de2b3ff0180808b5640f6ad2d33a..5ca3f1de3eedc1d6bbab38dbc29f43fa8c160803 100644 (file)
@@ -49,6 +49,7 @@ ldbm_back_search(
 
        Debug(LDAP_DEBUG_TRACE, "=> ldbm_back_search\n", 0, 0, 0);
 
+#ifdef SLAPD_ALIASES
        /* get entry with reader lock */
        if ( deref & LDAP_DEREF_FINDING ) {
                e = alias_dn2entry_r( be, base, &matched, &err );
@@ -57,6 +58,10 @@ ldbm_back_search(
                e = dn2entry_r( be, base, &matched );
                err = e != NULL ? LDAP_SUCCESS : LDAP_REFERRAL;
        }
+#else
+       e = dn2entry_r( be, base, &matched );
+       err = e != NULL ? LDAP_SUCCESS : LDAP_REFERRAL;
+#endif
 
        if ( e == NULL ) {
                char *matched_dn = NULL;
@@ -176,6 +181,7 @@ ldbm_back_search(
                        goto loop_continue;
                }
 
+#ifdef SLAPD_ALIASES
                if ( deref & LDAP_DEREF_SEARCHING && is_entry_alias( e ) ) {
                        Entry *newe;
                        
@@ -208,6 +214,7 @@ ldbm_back_search(
 
                        scopeok = 1;
                }
+#endif
 
                /*
                 * if it's a referral, add it to the list of referrals. only do
index 251f0dcb5441d72256b2f54b87ad534a18da9f52..ea598b18c6392b6cb39f819fb326814a760f8175 100644 (file)
@@ -85,6 +85,7 @@ int send_search_reference(
        Operation   *op,
        Entry   *e,
        struct berval **refs,
+       int scope,
        LDAPControl **ctrls,
        struct berval ***v2refs
 )