summaryrefslogtreecommitdiff
path: root/source3/librpc/idl/wbint.idl
blob: f9941267112f0fd1897abbf2571cde697fd24500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#include "idl_types.h"
import "lsa.idl";

[
    uuid("bf09192c-ed60-4928-9dff-d0d7bcb03ed8"),
    endpoint("ncalrpc:"),
    pointer_default(unique),
    version(1.0),
    helpstring("winbind parent-child protocol")
]
interface wbint
{
    void wbint_Ping(
	[in] uint32 in_data,
	[out] uint32 *out_data
	);

    NTSTATUS wbint_LookupSid(
	[in] dom_sid *sid,
	[out] lsa_SidType *type,
	[out,string,charset(UTF8)] char **domain,
	[out,string,charset(UTF8)] char **name
	);

    NTSTATUS wbint_LookupName(
	[in,string,charset(UTF8)] char *domain,
	[in,string,charset(UTF8)] char *name,
	[in] uint32 flags,
	[out] lsa_SidType *type,
	[out] dom_sid *sid
	);

    NTSTATUS wbint_Sid2Uid(
	[in,unique,string,charset(UTF8)] char *dom_name,
	[in] dom_sid *sid,
	[out] hyper *uid
	);

    NTSTATUS wbint_Sid2Gid(
	[in,unique,string,charset(UTF8)] char *dom_name,
	[in] dom_sid *sid,
	[out] hyper *gid
	);

    NTSTATUS wbint_Uid2Sid(
	[in,unique,string,charset(UTF8)] char *dom_name,
	[in] hyper uid,
	[out] dom_sid *sid
	);

    NTSTATUS wbint_Gid2Sid(
	[in,unique,string,charset(UTF8)] char *dom_name,
	[in] hyper gid,
	[out] dom_sid *sid
	);

    typedef [public] struct {
	[string,charset(UTF8)] char *acct_name;
	[string,charset(UTF8)] char *full_name;
	[string,charset(UTF8)] char *homedir;
	[string,charset(UTF8)] char *shell;
	hyper primary_gid;
	dom_sid user_sid;
	dom_sid group_sid;
    } wbint_userinfo;

    NTSTATUS wbint_QueryUser(
	[in] dom_sid *sid,
	[out] wbint_userinfo *info
	);

    typedef [public] struct {
	uint32 num_sids;
	[size_is(num_sids)] dom_sid sids[];
    } wbint_SidArray;

    typedef [public] struct {
	uint32 num_rids;
	[size_is(num_rids)] uint32 rids[];
    } wbint_RidArray;

    NTSTATUS wbint_LookupUserAliases(
	[in] wbint_SidArray *sids,
	[out] wbint_RidArray *rids
	);

    NTSTATUS wbint_LookupUserGroups(
	[in] dom_sid *sid,
	[out] wbint_SidArray *sids
	);
}