summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-22 08:59:40 +0100
committerMichael Adam <obnox@samba.org>2012-11-30 17:17:19 +0100
commit8563348a01206874ff215a55d0c542912740e84b (patch)
treeff021530b8f9c48c49148272dc124e181562b6e8
parent6991fb385e3956892d904f871052aaede1137a29 (diff)
downloadsamba-8563348a01206874ff215a55d0c542912740e84b.tar.gz
samba-8563348a01206874ff215a55d0c542912740e84b.tar.bz2
samba-8563348a01206874ff215a55d0c542912740e84b.zip
s4:dsdb/dirsync: explicitly ask for sdctr->secinfo_flags = 0xF
A value of 0 is mapped to 0xF. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/dirsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dirsync.c b/source4/dsdb/samdb/ldb_modules/dirsync.c
index 5b00566261..662d0c38b7 100644
--- a/source4/dsdb/samdb/ldb_modules/dirsync.c
+++ b/source4/dsdb/samdb/ldb_modules/dirsync.c
@@ -1121,7 +1121,7 @@ static int dirsync_ldb_search(struct ldb_module *module, struct ldb_request *req
*/
if (ldb_attr_in_list(attrs, "*")) {
struct ldb_sd_flags_control *sdctr = talloc_zero(dsc, struct ldb_sd_flags_control);
- sdctr->secinfo_flags = 0;
+ sdctr->secinfo_flags = 0xF;
ret = ldb_request_add_control(req, LDB_CONTROL_SD_FLAGS_OID, false, sdctr);
if (ret != LDB_SUCCESS) {
return ret;
@@ -1186,7 +1186,7 @@ static int dirsync_ldb_search(struct ldb_module *module, struct ldb_request *req
}
} else {
struct ldb_sd_flags_control *sdctr = talloc_zero(dsc, struct ldb_sd_flags_control);
- sdctr->secinfo_flags = 0;
+ sdctr->secinfo_flags = 0xF;
ret = ldb_request_add_control(req, LDB_CONTROL_SD_FLAGS_OID, false, sdctr);
attrs = talloc_array(dsc, const char*, 4);
if (attrs == NULL) {