mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s4:dsdb/descriptor: make it clear that the SD Flags are ignored on add
See [MS-ADTS] 6.1.3.2 SD Flags Control: ... When performing an LDAP add operation, the client can supply an SD flags control with the operation; however, it will be ignored by the server. ... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
f018772e0c
commit
42898590bb
@ -535,9 +535,15 @@ static int descriptor_add(struct ldb_module *module, struct ldb_request *req)
|
||||
return ldb_operr(ldb);
|
||||
}
|
||||
|
||||
/*
|
||||
* The SD_FLAG control is ignored on add
|
||||
* and we default to all bits set.
|
||||
*/
|
||||
sd_flags = 0xF;
|
||||
|
||||
sd = get_new_descriptor(module, dn, req,
|
||||
objectclass, parent_sd,
|
||||
user_sd, NULL, 0);
|
||||
user_sd, NULL, sd_flags);
|
||||
msg = ldb_msg_copy_shallow(req, req->op.add.message);
|
||||
if (sd != NULL) {
|
||||
if (sd_element != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user