s3: re-run make samba3-idl.
[kai/samba-autobuild/.git] / librpc / idl / unixinfo.idl
1 #include "idl_types.h"
2 /*
3   Unixinfo interface definition
4 */
5
6 import "security.idl";
7
8 [ uuid("9c54e310-a955-4885-bd31-78787147dfa6"),
9   version(0.0),
10   endpoint("ncacn_np:[\\pipe\\unixinfo]", "ncacn_ip_tcp:", "ncalrpc:"),
11   pointer_default(unique),
12   helpstring("Unixinfo specific stuff")
13 ] interface unixinfo
14 {
15         /******************/
16         /* Function: 0x00 */
17         NTSTATUS unixinfo_SidToUid (
18             [in]        dom_sid sid,
19             [out]       hyper *uid
20             );
21
22         /******************/
23         /* Function: 0x01 */
24         NTSTATUS unixinfo_UidToSid (
25             [in]        hyper uid,
26             [out]       dom_sid *sid
27             );
28
29         /******************/
30         /* Function: 0x02 */
31         NTSTATUS unixinfo_SidToGid (
32             [in]        dom_sid sid,
33             [out]       hyper *gid
34             );
35
36         /******************/
37         /* Function: 0x03 */
38         NTSTATUS unixinfo_GidToSid (
39             [in]        hyper gid,
40             [out]       dom_sid *sid
41             );
42
43         typedef struct {
44                 NTSTATUS status;
45                 [charset(UTF8),string] uint8 homedir[];
46                 [charset(UTF8),string] uint8 shell[];
47         } unixinfo_GetPWUidInfo;
48
49         /******************/
50         /* Function: 0x04 */
51         NTSTATUS unixinfo_GetPWUid (
52                 [in,out,ref,range(0,1023)] uint32 *count,
53                 [in,size_is(*count)] hyper uids[],
54                 [out,size_is(*count)] unixinfo_GetPWUidInfo infos[*]
55         );
56 }