From 5d35fe6f711985ac337da812bdbde006172bf256 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 20 Nov 2004 00:29:04 +0000 Subject: r3885: Add security descriptor comparison to our RPC-SAMSYNC test. We now verify that the security descriptor found in the SamSync is the same as what is available over SAMR. Unfortunately, the administrator seems unable to retrieve the SACL on the security descriptor, so I've added a new function to compare with a mask. Andrew Bartlett (This used to be commit 39ae5e1dac31a22086be50fb23261e02be877f3f) --- source4/librpc/idl/lsa.idl | 5 ----- source4/librpc/idl/samr.idl | 9 ++------- source4/librpc/idl/security.idl | 5 +++++ 3 files changed, 7 insertions(+), 12 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl index d0bf2ad3e1..225979da18 100644 --- a/source4/librpc/idl/lsa.idl +++ b/source4/librpc/idl/lsa.idl @@ -56,11 +56,6 @@ /******************/ /* Function: 0x03 */ - typedef [public] struct { - uint32 size; - [subcontext(4)] security_descriptor *sd; - } sec_desc_buf; - NTSTATUS lsa_QuerySecObj ( [in,ref] policy_handle *handle, [in] uint32 sec_info, diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl index 358218c2a0..58e0601606 100644 --- a/source4/librpc/idl/samr.idl +++ b/source4/librpc/idl/samr.idl @@ -48,15 +48,10 @@ /******************/ /* Function: 0x02 */ - typedef struct { - [range(0,0x40000),value(ndr_size_security_descriptor(r->sd))] uint32 sd_size; - [subcontext(4)] security_descriptor *sd; - } samr_SdBuf; - NTSTATUS samr_SetSecurity ( [in,ref] policy_handle *handle, [in] uint32 sec_info, - [in,ref] samr_SdBuf *sdbuf + [in,ref] sec_desc_buf *sdbuf ); /******************/ @@ -65,7 +60,7 @@ NTSTATUS samr_QuerySecurity ( [in,ref] policy_handle *handle, [in] uint32 sec_info, - [out] samr_SdBuf *sdbuf + [out] sec_desc_buf *sdbuf ); /******************/ diff --git a/source4/librpc/idl/security.idl b/source4/librpc/idl/security.idl index 201868e531..9625153ec1 100644 --- a/source4/librpc/idl/security.idl +++ b/source4/librpc/idl/security.idl @@ -120,6 +120,11 @@ interface security [relative] security_acl *dacl; /* user (discretionary) ACL */ } security_descriptor; + typedef [public] struct { + [range(0,0x40000),value(ndr_size_security_descriptor(r->sd))] uint32 sd_size; + [subcontext(4)] security_descriptor *sd; + } sec_desc_buf; + typedef [public,printonly] struct { /* TODO */ uint32 flags; -- cgit