r4437: added IDL and test code for lsa_LookupSids3() and lsa_LookupNames3().
[samba.git] / source / librpc / idl / lsa.idl
index e4ef17b7124ac4ad16f9b558f99bb64ab33b1f91..66a75935664f34b642f8a0516f5ff8a6de102610 100644 (file)
        /* 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();
        /* 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();