From 835d231cee5761e159bf7f4bb65eeddba04290f3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 31 Dec 2004 07:26:26 +0000 Subject: r4437: added IDL and test code for lsa_LookupSids3() and lsa_LookupNames3(). For some reason I am getting ACCESS_DENIED from w2k3 on lsa_LookupSids3(). I will investigate. (This used to be commit c759fa0000e37c3e93a7529a7701998af6727612) --- source4/librpc/idl/lsa.idl | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'source4/librpc/idl/lsa.idl') diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl index e4ef17b712..66a7593566 100644 --- a/source4/librpc/idl/lsa.idl +++ b/source4/librpc/idl/lsa.idl @@ -792,8 +792,31 @@ /* Function 0x43 */ NTSTATUS lsa_CREDRPROFILELOADED(); + /**********************/ /* Function 0x44 */ - NTSTATUS lsa_LSARLOOKUPNAMES3(); + typedef struct { + uint16 sid_type; + dom_sid *sid; + uint32 sid_index; + uint32 unknown; + } lsa_TranslatedSid3; + + typedef struct { + [range(0,1000)] uint32 count; + [size_is(count)] lsa_TranslatedSid3 *sids; + } lsa_TransSidArray3; + + NTSTATUS lsa_LookupNames3 ( + [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_TransSidArray3 *sids, + [in] uint16 level, + [in,out,ref] uint32 *count, + [in] uint32 unknown1, + [in] uint32 unknown2 + ); /* Function 0x45 */ NTSTATUS lsa_CREDRGETSESSIONTYPES(); @@ -816,8 +839,18 @@ /* Function 0x4b */ NTSTATUS lsa_CREDRRENAME(); + /*****************/ /* Function 0x4c */ - NTSTATUS lsa_LSARLOOKUPSIDS3(); + + NTSTATUS lsa_LookupSids3( + [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 0x4d */ NTSTATUS lsa_LSARLOOKUPNAMES4(); -- cgit