summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-13 09:34:43 +0100
committerMichael Adam <obnox@samba.org>2012-11-20 17:37:19 +0100
commit1199ab1f84dc7858afa137be2743c8df0735e3aa (patch)
tree7cae7fbad03797517affb8088970f4b642e7c2a4 /librpc
parent6b123607c8afa30a7f9dc62101063eb8a9a00779 (diff)
downloadsamba-1199ab1f84dc7858afa137be2743c8df0735e3aa.tar.gz
samba-1199ab1f84dc7858afa137be2743c8df0735e3aa.tar.bz2
samba-1199ab1f84dc7858afa137be2743c8df0735e3aa.zip
librpc/idl: teach ndrdump about dumping security.idl structures
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/security.idl21
1 files changed, 21 insertions, 0 deletions
diff --git a/librpc/idl/security.idl b/librpc/idl/security.idl
index 33085c4e14..d4324aba73 100644
--- a/librpc/idl/security.idl
+++ b/librpc/idl/security.idl
@@ -26,6 +26,11 @@ cpp_quote("#define dom_sid28 dom_sid")
cpp_quote("#define dom_sid0 dom_sid")
[
+ /*
+ * cbf7d408-2d6c-11e2-ae5b-0b5692790e18 just to make ndrdump happy
+ */
+ uuid("cbf7d408-2d6c-11e2-ae5b-0b5692790e18"),
+ version(0.0),
pyhelper("librpc/ndr/py_security.c"),
pointer_default(unique)
]
@@ -571,11 +576,19 @@ interface security
[relative] security_acl *dacl; /* user (discretionary) ACL */
} security_descriptor;
+ [nopython] void decode_security_descriptor (
+ [in] security_descriptor sd
+ );
+
typedef [public] struct {
[range(0,0x40000),value(ndr_size_security_descriptor(sd,ndr->flags))] uint32 sd_size;
[subcontext(4)] security_descriptor *sd;
} sec_desc_buf;
+ [nopython] void decode_sec_desc_buf (
+ [in] sec_desc_buf sd_buf
+ );
+
/* This is not yet sent over the network, but is simply defined in IDL */
typedef [public] struct {
uint32 num_sids;
@@ -584,6 +597,10 @@ interface security
lsa_SystemAccessModeFlags rights_mask;
} security_token;
+ [nopython] void decode_security_token (
+ [in] security_token token
+ );
+
/* This is not yet sent over the network, but is simply defined in IDL */
typedef [public] struct {
uid_t uid;
@@ -592,6 +609,10 @@ interface security
[size_is(ngroups)] gid_t groups[*];
} security_unix_token;
+ [nopython] void decode_security_unix_token (
+ [in] security_unix_token unix_token
+ );
+
/* bits that determine which parts of a security descriptor
are being queried/set */
typedef [public,bitmap32bit] bitmap {