diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-23 10:58:49 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-30 17:17:20 +0100 |
commit | f67f469ce101e48301de790b5c31f8d4e712e0ea (patch) | |
tree | 8cfe7d1dc22ae43bcf5c3f264707b5213095b1d7 | |
parent | 5aa7dbe546ff18e521e72c0af713a2509201e00d (diff) | |
download | samba-f67f469ce101e48301de790b5c31f8d4e712e0ea.tar.gz samba-f67f469ce101e48301de790b5c31f8d4e712e0ea.tar.xz samba-f67f469ce101e48301de790b5c31f8d4e712e0ea.zip |
s4:dsdb/descriptor: the old nTSecurityDescriptor is always expected there on modify
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/descriptor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/descriptor.c b/source4/dsdb/samdb/ldb_modules/descriptor.c index 4b4704b6641..96bc3564854 100644 --- a/source4/dsdb/samdb/ldb_modules/descriptor.c +++ b/source4/dsdb/samdb/ldb_modules/descriptor.c @@ -714,6 +714,9 @@ static int descriptor_modify(struct ldb_module *module, struct ldb_request *req) } old_sd = ldb_msg_find_ldb_val(current_res->msgs[0], "nTSecurityDescriptor"); + if (old_sd == NULL) { + return ldb_operr(ldb); + } sd = get_new_descriptor(module, dn, req, objectclass, parent_sd, |