1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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).
This commit is contained in:
Matthias Dieter Wallnöfer 2010-03-21 22:57:31 +01:00
parent b7f129f5c4
commit 773faa5063

View File

@ -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",