X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fsearch.c;h=013075fdb183462f87e04d2e54ac2e7ed9179343;hb=3cbad7b4f10a28840b2209e6d11a93fc09b49cc4;hp=fc96d2fd021727bd9f14c04445f3ace096defa32;hpb=42e0d83cb3a1a1c5b25183f1ab74ce7edbe25de7;p=openldap diff --git a/servers/slapd/search.c b/servers/slapd/search.c index fc96d2fd02..013075fdb1 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -10,22 +10,22 @@ * is provided ``as is'' without express or implied warranty. */ +#include "portable.h" + #include -#include -#include -#include -#include "slap.h" -#include "ldapconfig.h" -extern int get_filter(); -extern Backend *select_backend(); +#include +#include + +#include "ldapconfig.h" +#include "slap.h" -extern char *default_referral; void -do_search( conn, op ) - Connection *conn; /* where to send results */ - Operation *op; /* info about the op to which we're responding */ +do_search( + Connection *conn, /* where to send results */ + Operation *op /* info about the op to which we're responding */ +) { int i, err; int scope, deref, attrsonly; @@ -161,6 +161,9 @@ do_search( conn, op ) return; } + /* translate the base if it matches an aliased base part */ + base = suffixAlias ( base, op, be ); + /* actually do the search and send the result(s) */ if ( be->be_search != NULL ) { (*be->be_search)( be, conn, op, base, scope, deref, sizelimit,