r4309: idl and torture test for lsa_GetUserName()
[samba.git] / source4 / librpc / idl / lsa.idl
index 42891eecf79d8f0387777336a049017ce0fa8c2e..ec694df1bf772a437f363c4f1a873e19e27659b4 100644 (file)
        } lsa_LUIDAttribute;
        
        typedef struct {
-               uint32 count;
+               [range(0,1000)] uint32 count;
                uint32 unknown;
                [size_is(count)] lsa_LUIDAttribute set[*];
        } lsa_PrivilegeSet;
                );
 
 
+       /****************************************/
        /* Function:            0x13 */
-       NTSTATUS lsa_AddPrivilegesToAccount();
+       NTSTATUS lsa_AddPrivilegesToAccount(
+               [in,ref]     policy_handle *handle,
+               [in,ref]     lsa_PrivilegeSet *privs
+               );
        
+
+       /****************************************/
        /* Function:         0x14 */
-       NTSTATUS lsa_RemovePrivilegesFromAccount();
+       NTSTATUS lsa_RemovePrivilegesFromAccount(
+               [in,ref]     policy_handle *handle,
+               [in]         uint8 remove_all,
+               [in]         lsa_PrivilegeSet *privs
+               );
 
        /* Function:           0x15 */
        NTSTATUS lsa_GetQuotasForAccount();
                [out,ref] policy_handle *handle
                );
 
+       /**********************/
+       /* Function:     0x2d */
+       typedef struct {
+               lsa_String *string;
+       } lsa_StringPointer;
 
-       /* Function:    0x2d */
-       NTSTATUS lsa_GetUserName();
+       NTSTATUS lsa_GetUserName(
+               [in] unistr *system_name,
+               [in,out] lsa_String *account_name,
+               [in,out] lsa_StringPointer *unknown_name
+               );
 
        /**********************/
        /* Function:          0x2e */