Author: mkhl
Date: 2006-07-15 18:32:37 +0000 (Sat, 15 Jul 2006)
New Revision: 17070

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17070

Log:
Skip mapped search if search base *exists* and is outside the local partition.

Martin

Modified:
   branches/SOC/mkhl/ldb-map/modules/ldb_map.c


Changeset:
Modified: branches/SOC/mkhl/ldb-map/modules/ldb_map.c
===================================================================
--- branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 18:31:51 UTC (rev 
17069)
+++ branches/SOC/mkhl/ldb-map/modules/ldb_map.c 2006-07-15 18:32:37 UTC (rev 
17070)
@@ -2019,7 +2019,8 @@
                return ldb_next_request(module, req);
 
        /* no mapping requested, skip to next module */
-       if (!check_dn_local(module, req->op.search.base))
+       if (req->op.search.base &&
+           !check_dn_local(module, req->op.search.base))
                return ldb_next_request(module, req);
 
        /* no mapping needed, skip to next module */

Reply via email to