From cf4a3081cbba88b00a3e224ce0ba61eb3d067985 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Thu, 14 Apr 2011 22:02:48 +0400 Subject: s4-dsdb: If current attribute list is empty use the one from the request This will avoid overwritting attribute list made by upper modules. Signed-off-by: Nadezhda Ivanova --- source4/dsdb/samdb/ldb_modules/acl_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/acl_read.c b/source4/dsdb/samdb/ldb_modules/acl_read.c index cde6d11c75..359b39f09b 100644 --- a/source4/dsdb/samdb/ldb_modules/acl_read.c +++ b/source4/dsdb/samdb/ldb_modules/acl_read.c @@ -305,7 +305,7 @@ static int aclread_search(struct ldb_module *module, struct ldb_request *req) /* avoid replacing all attributes with nTSecurityDescriptor * if attribute list is empty */ if (!attrs) { - attrs = ldb_attr_list_copy_add(ac, attrs, "*"); + attrs = ldb_attr_list_copy_add(ac, req->op.search.attrs, "*"); } attrs = ldb_attr_list_copy_add(ac, attrs, "nTSecurityDescriptor"); } -- cgit