Revert "s4/dsdb: Fixed partition_search() not to pass special DN's to LDAP backend."
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 29 Jun 2010 12:48:25 +0000 (14:48 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 29 Jun 2010 13:14:32 +0000 (15:14 +0200)
This reverts commit ed4c107bc1eac8531fdd8d09f7698efcbc7ecb14.

See post "Endi's Bug 7530 patches (LDAP backend)" on samba-technical.

source4/dsdb/samdb/ldb_modules/partition.c

index d022d128e9bce4fce1dab5ac373d0b0ea64150fa..ba695d2221895ccf2a0b08f28f855f26e78e7fde 100644 (file)
@@ -470,14 +470,12 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req)
                return ret;
        }
 
-       if (!ldb_dn_is_special(req->op.search.base)) {
-               p = find_partition(data, NULL, req);
-               if (p != NULL) {
-                       /* the caller specified what partition they want the
-                       * search - just pass it on
-                       */
-                       return ldb_next_request(p->module, req);
-               }
+       p = find_partition(data, NULL, req);
+       if (p != NULL) {
+               /* the caller specified what partition they want the
+                * search - just pass it on
+                */
+               return ldb_next_request(p->module, req);
        }
 
        /* Get back the search options from the search control, and mark it as