From 773faa50632b8cee0008fe5d2c277c924b121756 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 21 Mar 2010 22:57:31 +0100 Subject: s4:registry - "LDB backend" - "ldb_get_default_value" There exist also key objects (the hives) which don't contain a "key" entry at all. This prevented to display their default value (my fault). --- source4/lib/registry/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index c2acfda16a2..f3c66133833 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -497,7 +497,7 @@ 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, "(key=*)"); + ret = ldb_search(c, mem_ctx, &res, kd->dn, LDB_SCOPE_BASE, attrs, "(dn=*)"); if (ret != LDB_SUCCESS) { DEBUG(0, ("Error getting default value for '%s': %s\n", -- cgit