Import -USLAPD_ALIAS_DEREF removal of alias deref'ing codes

This commit is contained in:
Kurt Zeilenga 1999-01-20 02:17:22 +00:00
parent 365327cd95
commit 252bc06705
3 changed files with 12 additions and 0 deletions

View file

@ -12,6 +12,8 @@
#include "portable.h"
#ifndef SLAPD_ALIAS_DEREF
#include <stdio.h>
#include <string.h>
#include <ac/socket.h> /* Get struct sockaddr for slap.h */
@ -243,3 +245,5 @@ char *derefDN ( Backend *be,
return newDN;
}
#endif SLAPD_ALIAS_DEREF

View file

@ -8,6 +8,7 @@ LDAP_BEGIN_DECL
/*
* alias.c
*/
#ifdef SLAPD_ALIAS_DEREF
Entry *derefAlias_r LDAP_P((
Backend *be,
Connection *conn,
@ -18,6 +19,7 @@ char *derefDN LDAP_P((
Connection *conn,
Operation *op,
char *dn ));
#endif
/*
* attr.c

View file

@ -76,6 +76,7 @@ ldbm_back_search(
* the subordinates of the base
*/
#ifdef SLAPD_DEREF
switch ( deref ) {
case LDAP_DEREF_FINDING:
case LDAP_DEREF_ALWAYS:
@ -84,6 +85,9 @@ ldbm_back_search(
default:
realBase = ch_strdup(base);
}
#else
realBase = ch_strdup(base);
#endif
(void) dn_normalize (realBase);
@ -244,6 +248,7 @@ ldbm_back_search(
return( 0 );
}
#ifdef SLAPD_DEREF
/*
* check and apply aliasing where the dereferencing applies to
* the subordinates of the base
@ -258,6 +263,7 @@ ldbm_back_search(
}
break;
}
#endif
switch ( send_search_entry( be, conn, op, e,
attrs, attrsonly ) ) {