diff options
author | Günther Deschner <gd@samba.org> | 2007-10-10 13:12:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:42:51 +0100 |
commit | a6c4b9d1793c7ea1965a23e1d23b73012acd151b (patch) | |
tree | 6cad5d745f37a8e37673fde74f1dc822dbe61061 /source4/torture/rpc | |
parent | 50bf95197705a3e3ca6b69fc9584ed0564c305d1 (diff) | |
download | samba-a6c4b9d1793c7ea1965a23e1d23b73012acd151b.tar.gz samba-a6c4b9d1793c7ea1965a23e1d23b73012acd151b.tar.bz2 samba-a6c4b9d1793c7ea1965a23e1d23b73012acd151b.zip |
r25607: Allow to set security descriptor type flags at creation time with
security_descriptor_create().
Guenther
(This used to be commit 7dd0d28d254f78891b0807492baafa188b42df16)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/samba3rpc.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/winreg.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c index 8c52199e66..fe75fabad6 100644 --- a/source4/torture/rpc/samba3rpc.c +++ b/source4/torture/rpc/samba3rpc.c @@ -2004,7 +2004,7 @@ bool try_tcon(TALLOC_CTX *mem_ctx, } sd = security_descriptor_create( - tmp_ctx, "S-1-5-32-544", + tmp_ctx, 0, "S-1-5-32-544", dom_sid_string(mem_ctx, dom_sid_add_rid(mem_ctx, domain_sid, DOMAIN_RID_USERS)), dom_sid_string(mem_ctx, user_sid), diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index 44df6dab74..8086986917 100644 --- a/source4/torture/rpc/winreg.c +++ b/source4/torture/rpc/winreg.c @@ -138,6 +138,7 @@ static bool test_CreateKey_sd(struct dcerpc_pipe *p, struct winreg_SecBuf secbuf; sd = security_descriptor_create(tctx, + 0, NULL, NULL, SID_NT_AUTHENTICATED_USERS, SEC_ACE_TYPE_ACCESS_ALLOWED, |