r18391: - match the samba3 protocol for UNIXINFO
[Samba.git] / source / librpc / idl / unixinfo.idl
blob955e38d86b20cf1a6897ba4c508880166b2481dd
1 #include "idl_types.h"
2 /*
3 Unixinfo interface definition
4 */
6 [ uuid("9c54e310-a955-4885-bd31-78787147dfa6"),
7 version(0.0),
8 endpoint("ncacn_np:[\\pipe\\unixinfo]", "ncacn_ip_tcp:", "ncalrpc:"),
9 pointer_default(unique),
10 helpstring("Unixinfo specific stuff"),
11 depends(security),
12 keepref
13 ] interface unixinfo
15 /******************/
16 /* Function: 0x00 */
17 NTSTATUS unixinfo_SidToUid (
18 [in] dom_sid sid,
19 [out,ref] hyper *uid
22 /******************/
23 /* Function: 0x01 */
24 NTSTATUS unixinfo_UidToSid (
25 [in] hyper uid,
26 [out,unique] dom_sid *sid
29 /******************/
30 /* Function: 0x02 */
31 NTSTATUS unixinfo_SidToGid (
32 [in] dom_sid sid,
33 [out,ref] hyper *gid
36 /******************/
37 /* Function: 0x03 */
38 NTSTATUS unixinfo_GidToSid (
39 [in] hyper gid,
40 [out,unique] dom_sid *sid
43 typedef struct {
44 NTSTATUS status;
45 utf8string homedir;
46 utf8string shell;
47 } unixinfo_GetPWUidInfo;
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