diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-11-15 11:05:22 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:45:21 +0100 |
commit | fab68fd4d954f97cf6b4eae4c5e975e1660b6a28 (patch) | |
tree | 38aae574d53a135ff64d24444aa178de099c4726 | |
parent | fe61b63393e1deaf98982841ce3693ee63af52f0 (diff) | |
download | samba-fab68fd4d954f97cf6b4eae4c5e975e1660b6a28.tar.gz samba-fab68fd4d954f97cf6b4eae4c5e975e1660b6a28.tar.bz2 samba-fab68fd4d954f97cf6b4eae4c5e975e1660b6a28.zip |
r25965: Remove duplicate block - thanks metze!
Andrew Bartlett
(This used to be commit d7e65da56454bc7721083e0aa7fa2e9c47f2b79d)
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_search.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c index 1fa20740a5..bf6bd91fc2 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_search.c +++ b/source4/lib/ldb/ldb_tdb/ldb_search.c @@ -547,24 +547,6 @@ int ltdb_search(struct ldb_module *module, struct ldb_request *req) ldb_dn_get_linearized(req->op.search.base)); ret = LDB_ERR_INVALID_DN_SYNTAX; - } else if (ldb_dn_is_null(req->op.search.base) == true) { - - /* Check what we should do with a NULL dn */ - switch (req->op.search.scope) { - case LDB_SCOPE_BASE: - ldb_asprintf_errstring(module->ldb, - "NULL Base DN invalid for a base search"); - ret = LDB_ERR_INVALID_DN_SYNTAX; - case LDB_SCOPE_ONELEVEL: - ldb_asprintf_errstring(module->ldb, - "NULL Base DN invalid for a one-level search"); - ret = LDB_ERR_INVALID_DN_SYNTAX; - case LDB_SCOPE_SUBTREE: - default: - /* We accept subtree searches from a NULL base DN, ie over the whole DB */ - ret = LDB_SUCCESS; - } - } else if (ltdb->check_base) { /* This database has been marked as 'checkBaseOnSearch', so do a spot check of the base dn */ ret = ltdb_search_base(module, req->op.search.base); |