This change will be backed out of devel once imported into release engineering
branchs.
#include "portable.h"
+#ifndef SLAPD_ALIAS_DEREF
+
#include <stdio.h>
#include <string.h>
#include <ac/socket.h> /* Get struct sockaddr for slap.h */
return newDN;
}
+
+#endif SLAPD_ALIAS_DEREF
/*
* alias.c
*/
+#ifdef SLAPD_ALIAS_DEREF
Entry *derefAlias_r LDAP_P((
Backend *be,
Connection *conn,
Connection *conn,
Operation *op,
char *dn ));
+#endif
/*
* attr.c
* the subordinates of the base
*/
+#ifdef SLAPD_DEREF
switch ( deref ) {
case LDAP_DEREF_FINDING:
case LDAP_DEREF_ALWAYS:
default:
realBase = ch_strdup(base);
}
+#else
+ realBase = ch_strdup(base);
+#endif
(void) dn_normalize (realBase);
return( 0 );
}
+#ifdef SLAPD_DEREF
/*
* check and apply aliasing where the dereferencing applies to
* the subordinates of the base
}
break;
}
+#endif
switch ( send_search_entry( be, conn, op, e,
attrs, attrsonly ) ) {