summaryrefslogtreecommitdiff
path: root/source4/librpc/idl
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-26 06:33:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:10 -0500
commitb56d1c5cb7768a403f57c3a48e4dbd40978d3c79 (patch)
tree1e7c750a415968cd2d0e9db801d520927cfd7a07 /source4/librpc/idl
parent990acc9f770325bf8c5bb8d04e0c6f6cdb4b67ef (diff)
downloadsamba-b56d1c5cb7768a403f57c3a48e4dbd40978d3c79.tar.gz
samba-b56d1c5cb7768a403f57c3a48e4dbd40978d3c79.tar.bz2
samba-b56d1c5cb7768a403f57c3a48e4dbd40978d3c79.zip
r3978: added IDL and test code for lsa_LookupSids2() and lsa_LookupNames2()
(This used to be commit 9da455ed56ebc167f295b231c2730e3ff9c94617)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r--source4/librpc/idl/lsa.idl53
1 files changed, 51 insertions, 2 deletions
diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl
index 262babaf21..b04b436e74 100644
--- a/source4/librpc/idl/lsa.idl
+++ b/source4/librpc/idl/lsa.idl
@@ -652,6 +652,7 @@
/* Function 0x2f */
NTSTATUS lsa_SetInfoPolicy2();
+ /**********************/
/* Function 0x30 */
NTSTATUS lsa_QueryTrustedDomainInfoByName(
[in,ref] policy_handle *handle,
@@ -678,6 +679,7 @@
/* Function 0x36 */
NTSTATUS lsa_SetDomInfoPolicy();
+ /**********************/
/* Function 0x37 */
NTSTATUS lsa_OpenTrustedDomainByName(
[in,ref] policy_handle *handle,
@@ -689,11 +691,58 @@
/* Function 0x38 */
NTSTATUS lsa_TestCall();
+ /**********************/
/* Function 0x39 */
- NTSTATUS lsa_LookupSids2();
+ typedef struct {
+ uint16 sid_type;
+ lsa_String name;
+ uint32 sid_index;
+ uint32 unknown;
+ } lsa_TranslatedName2;
+
+ typedef struct {
+ [range(0,1000)] uint32 count;
+ [size_is(count)] lsa_TranslatedName2 *names;
+ } lsa_TransNameArray2;
+
+ NTSTATUS lsa_LookupSids2(
+ [in,ref] policy_handle *handle,
+ [in,ref] lsa_SidArray *sids,
+ [out] lsa_RefDomainList *domains,
+ [in,out,ref] lsa_TransNameArray2 *names,
+ [in] uint16 level,
+ [in,out,ref] uint32 *count,
+ [in] uint32 unknown1,
+ [in] uint32 unknown2
+ );
+
+ /**********************/
/* Function 0x3a */
- NTSTATUS lsa_LookupNames2();
+
+ typedef struct {
+ uint16 sid_type;
+ uint32 rid;
+ uint32 sid_index;
+ uint32 unknown;
+ } lsa_TranslatedSid2;
+
+ typedef struct {
+ [range(0,1000)] uint32 count;
+ [size_is(count)] lsa_TranslatedSid2 *sids;
+ } lsa_TransSidArray2;
+
+ NTSTATUS lsa_LookupNames2 (
+ [in,ref] policy_handle *handle,
+ [in,range(0,1000)] uint32 num_names,
+ [in,ref,size_is(num_names)] lsa_String *names,
+ [out] lsa_RefDomainList *domains,
+ [in,out,ref] lsa_TransSidArray2 *sids,
+ [in] uint16 level,
+ [in,out,ref] uint32 *count,
+ [in] uint32 unknown1,
+ [in] uint32 unknown2
+ );
/* Function 0x3b */
NTSTATUS lsa_CreateTrustedDomainEx2();