w3:winbind: Convert WINBINDD_ALLOCATE_UID to the new API
[ira/wip.git] / source3 / librpc / gen_ndr / wbint.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "libcli/util/ntstatus.h"
6
7 #include "librpc/gen_ndr/lsa.h"
8 #ifndef _HEADER_wbint
9 #define _HEADER_wbint
10
11 struct wbint_userinfo {
12         const char *acct_name;/* [unique,charset(UTF8)] */
13         const char *full_name;/* [unique,charset(UTF8)] */
14         const char *homedir;/* [unique,charset(UTF8)] */
15         const char *shell;/* [unique,charset(UTF8)] */
16         uint64_t primary_gid;
17         struct dom_sid user_sid;
18         struct dom_sid group_sid;
19 }/* [public] */;
20
21 struct wbint_SidArray {
22         uint32_t num_sids;
23         struct dom_sid *sids;/* [size_is(num_sids)] */
24 }/* [public] */;
25
26 struct wbint_RidArray {
27         uint32_t num_rids;
28         uint32_t *rids;/* [size_is(num_rids)] */
29 }/* [public] */;
30
31 struct wbint_Principal {
32         struct dom_sid sid;
33         enum lsa_SidType type;
34         const char *name;/* [unique,charset(UTF8)] */
35 }/* [public] */;
36
37 struct wbint_Principals {
38         int32_t num_principals;
39         struct wbint_Principal *principals;/* [size_is(num_principals)] */
40 }/* [public] */;
41
42 struct wbint_userinfos {
43         uint32_t num_userinfos;
44         struct wbint_userinfo *userinfos;/* [size_is(num_userinfos)] */
45 }/* [public] */;
46
47
48 struct wbint_Ping {
49         struct {
50                 uint32_t in_data;
51         } in;
52
53         struct {
54                 uint32_t *out_data;/* [ref] */
55         } out;
56
57 };
58
59
60 struct wbint_LookupSid {
61         struct {
62                 struct dom_sid *sid;/* [ref] */
63         } in;
64
65         struct {
66                 enum lsa_SidType *type;/* [ref] */
67                 const char **domain;/* [ref,charset(UTF8)] */
68                 const char **name;/* [ref,charset(UTF8)] */
69                 NTSTATUS result;
70         } out;
71
72 };
73
74
75 struct wbint_LookupName {
76         struct {
77                 const char *domain;/* [ref,charset(UTF8)] */
78                 const char *name;/* [ref,charset(UTF8)] */
79                 uint32_t flags;
80         } in;
81
82         struct {
83                 enum lsa_SidType *type;/* [ref] */
84                 struct dom_sid *sid;/* [ref] */
85                 NTSTATUS result;
86         } out;
87
88 };
89
90
91 struct wbint_Sid2Uid {
92         struct {
93                 const char *dom_name;/* [unique,charset(UTF8)] */
94                 struct dom_sid *sid;/* [ref] */
95         } in;
96
97         struct {
98                 uint64_t *uid;/* [ref] */
99                 NTSTATUS result;
100         } out;
101
102 };
103
104
105 struct wbint_Sid2Gid {
106         struct {
107                 const char *dom_name;/* [unique,charset(UTF8)] */
108                 struct dom_sid *sid;/* [ref] */
109         } in;
110
111         struct {
112                 uint64_t *gid;/* [ref] */
113                 NTSTATUS result;
114         } out;
115
116 };
117
118
119 struct wbint_Uid2Sid {
120         struct {
121                 const char *dom_name;/* [unique,charset(UTF8)] */
122                 uint64_t uid;
123         } in;
124
125         struct {
126                 struct dom_sid *sid;/* [ref] */
127                 NTSTATUS result;
128         } out;
129
130 };
131
132
133 struct wbint_Gid2Sid {
134         struct {
135                 const char *dom_name;/* [unique,charset(UTF8)] */
136                 uint64_t gid;
137         } in;
138
139         struct {
140                 struct dom_sid *sid;/* [ref] */
141                 NTSTATUS result;
142         } out;
143
144 };
145
146
147 struct wbint_AllocateUid {
148         struct {
149                 uint64_t *uid;/* [ref] */
150                 NTSTATUS result;
151         } out;
152
153 };
154
155
156 struct wbint_QueryUser {
157         struct {
158                 struct dom_sid *sid;/* [ref] */
159         } in;
160
161         struct {
162                 struct wbint_userinfo *info;/* [ref] */
163                 NTSTATUS result;
164         } out;
165
166 };
167
168
169 struct wbint_LookupUserAliases {
170         struct {
171                 struct wbint_SidArray *sids;/* [ref] */
172         } in;
173
174         struct {
175                 struct wbint_RidArray *rids;/* [ref] */
176                 NTSTATUS result;
177         } out;
178
179 };
180
181
182 struct wbint_LookupUserGroups {
183         struct {
184                 struct dom_sid *sid;/* [ref] */
185         } in;
186
187         struct {
188                 struct wbint_SidArray *sids;/* [ref] */
189                 NTSTATUS result;
190         } out;
191
192 };
193
194
195 struct wbint_QuerySequenceNumber {
196         struct {
197                 uint32_t *sequence;/* [ref] */
198                 NTSTATUS result;
199         } out;
200
201 };
202
203
204 struct wbint_LookupGroupMembers {
205         struct {
206                 struct dom_sid *sid;/* [ref] */
207                 enum lsa_SidType type;
208         } in;
209
210         struct {
211                 struct wbint_Principals *members;/* [ref] */
212                 NTSTATUS result;
213         } out;
214
215 };
216
217
218 struct wbint_QueryUserList {
219         struct {
220                 struct wbint_userinfos *users;/* [ref] */
221                 NTSTATUS result;
222         } out;
223
224 };
225
226
227 struct wbint_QueryGroupList {
228         struct {
229                 struct wbint_Principals *groups;/* [ref] */
230                 NTSTATUS result;
231         } out;
232
233 };
234
235
236 struct wbint_DsGetDcName {
237         struct {
238                 const char *domain_name;/* [ref,charset(UTF8)] */
239                 struct GUID *domain_guid;/* [unique] */
240                 const char *site_name;/* [unique,charset(UTF8)] */
241                 uint32_t flags;
242         } in;
243
244         struct {
245                 struct netr_DsRGetDCNameInfo **dc_info;/* [ref] */
246                 NTSTATUS result;
247         } out;
248
249 };
250
251
252 struct wbint_LookupRids {
253         struct {
254                 struct wbint_RidArray *rids;/* [ref] */
255         } in;
256
257         struct {
258                 struct wbint_Principals *names;/* [ref] */
259                 NTSTATUS result;
260         } out;
261
262 };
263
264 #endif /* _HEADER_wbint */