summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-25 20:08:31 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-11-03 20:10:06 +0100
commit6b5a296b4a5ec55b57d72e07ee1b5b6c0e20f282 (patch)
treebcfafc57deb248d3905138f30a01943cfa8438bf /source4
parent042372bc20375f30a292b57bebe1c4d7608339ca (diff)
downloadsamba-6b5a296b4a5ec55b57d72e07ee1b5b6c0e20f282.tar.gz
samba-6b5a296b4a5ec55b57d72e07ee1b5b6c0e20f282.tar.bz2
samba-6b5a296b4a5ec55b57d72e07ee1b5b6c0e20f282.zip
s4:lib/registry/ldb.c - don't use search filters for base searches
They are not necessary in this case. Reviewed-by: Jelmer
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/ldb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index 5244a2061b..0aa476f799 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -408,7 +408,8 @@ static WERROR ldb_get_default_value(TALLOC_CTX *mem_ctx,
struct ldb_result *res;
int ret;
- ret = ldb_search(c, mem_ctx, &res, kd->dn, LDB_SCOPE_BASE, attrs, "(dn=*)");
+ ret = ldb_search(c, mem_ctx, &res, kd->dn, LDB_SCOPE_BASE, attrs,
+ NULL);
if (ret != LDB_SUCCESS) {
DEBUG(0, ("Error getting default value for '%s': %s\n",
@@ -503,7 +504,8 @@ static WERROR ldb_open_key(TALLOC_CTX *mem_ctx, const struct hive_key *h,
ldb_path = reg_path_to_ldb(mem_ctx, h, name, NULL);
W_ERROR_HAVE_NO_MEMORY(ldb_path);
- ret = ldb_search(c, mem_ctx, &res, ldb_path, LDB_SCOPE_BASE, NULL, "(key=*)");
+ ret = ldb_search(c, mem_ctx, &res, ldb_path, LDB_SCOPE_BASE, NULL,
+ NULL);
if (ret != LDB_SUCCESS) {
DEBUG(3, ("Error opening key '%s': %s\n",