Consider shared IDL files and Samba3-specific IDL files separately, allow overriding...
[kai/samba.git] / source3 / librpc / gen_ndr / ndr_libnetapi.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnetapi.h"
5
6 _PUBLIC_ enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r)
7 {
8         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
9         return NDR_ERR_SUCCESS;
10 }
11
12 _PUBLIC_ enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r)
13 {
14         uint32_t v;
15         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
16         *r = v;
17         return NDR_ERR_SUCCESS;
18 }
19
20 _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r)
21 {
22         const char *val = NULL;
23
24         switch (r) {
25                 case NERR_Success: val = "NERR_Success"; break;
26         }
27         ndr_print_enum(ndr, name, "ENUM", val, r);
28 }
29
30 _PUBLIC_ enum ndr_err_code ndr_push_domsid(struct ndr_push *ndr, int ndr_flags, const struct domsid *r)
31 {
32         uint32_t cntr_sub_auths_0;
33         if (ndr_flags & NDR_SCALARS) {
34                 NDR_CHECK(ndr_push_align(ndr, 4));
35                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sid_rev_num));
36                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->num_auths));
37                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
38                 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
39                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sub_auths[cntr_sub_auths_0]));
40                 }
41         }
42         if (ndr_flags & NDR_BUFFERS) {
43         }
44         return NDR_ERR_SUCCESS;
45 }
46
47 _PUBLIC_ enum ndr_err_code ndr_pull_domsid(struct ndr_pull *ndr, int ndr_flags, struct domsid *r)
48 {
49         uint32_t cntr_sub_auths_0;
50         TALLOC_CTX *_mem_save_sub_auths_0;
51         if (ndr_flags & NDR_SCALARS) {
52                 NDR_CHECK(ndr_pull_align(ndr, 4));
53                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sid_rev_num));
54                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->num_auths));
55                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
56                 NDR_PULL_ALLOC_N(ndr, r->sub_auths, MAXSUBAUTHS);
57                 _mem_save_sub_auths_0 = NDR_PULL_GET_MEM_CTX(ndr);
58                 NDR_PULL_SET_MEM_CTX(ndr, r->sub_auths, 0);
59                 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
60                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sub_auths[cntr_sub_auths_0]));
61                 }
62                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sub_auths_0, 0);
63         }
64         if (ndr_flags & NDR_BUFFERS) {
65         }
66         return NDR_ERR_SUCCESS;
67 }
68
69 _PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const struct domsid *r)
70 {
71         uint32_t cntr_sub_auths_0;
72         ndr_print_struct(ndr, name, "domsid");
73         ndr->depth++;
74         ndr_print_uint8(ndr, "sid_rev_num", r->sid_rev_num);
75         ndr_print_uint8(ndr, "num_auths", r->num_auths);
76         ndr_print_array_uint8(ndr, "id_auth", r->id_auth, 6);
77         ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", (int)MAXSUBAUTHS);
78         ndr->depth++;
79         for (cntr_sub_auths_0=0;cntr_sub_auths_0<MAXSUBAUTHS;cntr_sub_auths_0++) {
80                 char *idx_0=NULL;
81                 if (asprintf(&idx_0, "[%d]", cntr_sub_auths_0) != -1) {
82                         ndr_print_uint32(ndr, "sub_auths", r->sub_auths[cntr_sub_auths_0]);
83                         free(idx_0);
84                 }
85         }
86         ndr->depth--;
87         ndr->depth--;
88 }
89
90 _PUBLIC_ enum ndr_err_code ndr_push_NetJoinFlags(struct ndr_push *ndr, int ndr_flags, uint32_t r)
91 {
92         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
93         return NDR_ERR_SUCCESS;
94 }
95
96 _PUBLIC_ enum ndr_err_code ndr_pull_NetJoinFlags(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
97 {
98         uint32_t v;
99         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
100         *r = v;
101         return NDR_ERR_SUCCESS;
102 }
103
104 _PUBLIC_ void ndr_print_NetJoinFlags(struct ndr_print *ndr, const char *name, uint32_t r)
105 {
106         ndr_print_uint32(ndr, name, r);
107         ndr->depth++;
108         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_DOMAIN", NETSETUP_JOIN_DOMAIN, r);
109         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_ACCT_CREATE", NETSETUP_ACCT_CREATE, r);
110         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_ACCT_DELETE", NETSETUP_ACCT_DELETE, r);
111         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_WIN9X_UPGRADE", NETSETUP_WIN9X_UPGRADE, r);
112         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_DOMAIN_JOIN_IF_JOINED", NETSETUP_DOMAIN_JOIN_IF_JOINED, r);
113         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_UNSECURE", NETSETUP_JOIN_UNSECURE, r);
114         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_MACHINE_PWD_PASSED", NETSETUP_MACHINE_PWD_PASSED, r);
115         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_DEFER_SPN_SET", NETSETUP_DEFER_SPN_SET, r);
116         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_DC_ACCOUNT", NETSETUP_JOIN_DC_ACCOUNT, r);
117         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_WITH_NEW_NAME", NETSETUP_JOIN_WITH_NEW_NAME, r);
118         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_INSTALL_INVOCATION", NETSETUP_INSTALL_INVOCATION, r);
119         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_IGNORE_UNSUPPORTED_FLAGS", NETSETUP_IGNORE_UNSUPPORTED_FLAGS, r);
120         ndr->depth--;
121 }
122
123 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_100(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_100 *r)
124 {
125         if (ndr_flags & NDR_SCALARS) {
126                 NDR_CHECK(ndr_push_align(ndr, 4));
127                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv100_platform_id));
128                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv100_name));
129         }
130         if (ndr_flags & NDR_BUFFERS) {
131         }
132         return NDR_ERR_SUCCESS;
133 }
134
135 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_100(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_100 *r)
136 {
137         if (ndr_flags & NDR_SCALARS) {
138                 NDR_CHECK(ndr_pull_align(ndr, 4));
139                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv100_platform_id));
140                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv100_name));
141         }
142         if (ndr_flags & NDR_BUFFERS) {
143         }
144         return NDR_ERR_SUCCESS;
145 }
146
147 _PUBLIC_ void ndr_print_SERVER_INFO_100(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_100 *r)
148 {
149         ndr_print_struct(ndr, name, "SERVER_INFO_100");
150         ndr->depth++;
151         ndr_print_uint32(ndr, "sv100_platform_id", r->sv100_platform_id);
152         ndr_print_string(ndr, "sv100_name", r->sv100_name);
153         ndr->depth--;
154 }
155
156 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_101(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_101 *r)
157 {
158         if (ndr_flags & NDR_SCALARS) {
159                 NDR_CHECK(ndr_push_align(ndr, 4));
160                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_platform_id));
161                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv101_name));
162                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_version_major));
163                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_version_minor));
164                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_type));
165                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv101_comment));
166         }
167         if (ndr_flags & NDR_BUFFERS) {
168         }
169         return NDR_ERR_SUCCESS;
170 }
171
172 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_101(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_101 *r)
173 {
174         if (ndr_flags & NDR_SCALARS) {
175                 NDR_CHECK(ndr_pull_align(ndr, 4));
176                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_platform_id));
177                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv101_name));
178                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_version_major));
179                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_version_minor));
180                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_type));
181                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv101_comment));
182         }
183         if (ndr_flags & NDR_BUFFERS) {
184         }
185         return NDR_ERR_SUCCESS;
186 }
187
188 _PUBLIC_ void ndr_print_SERVER_INFO_101(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_101 *r)
189 {
190         ndr_print_struct(ndr, name, "SERVER_INFO_101");
191         ndr->depth++;
192         ndr_print_uint32(ndr, "sv101_platform_id", r->sv101_platform_id);
193         ndr_print_string(ndr, "sv101_name", r->sv101_name);
194         ndr_print_uint32(ndr, "sv101_version_major", r->sv101_version_major);
195         ndr_print_uint32(ndr, "sv101_version_minor", r->sv101_version_minor);
196         ndr_print_uint32(ndr, "sv101_type", r->sv101_type);
197         ndr_print_string(ndr, "sv101_comment", r->sv101_comment);
198         ndr->depth--;
199 }
200
201 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_102(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_102 *r)
202 {
203         if (ndr_flags & NDR_SCALARS) {
204                 NDR_CHECK(ndr_push_align(ndr, 4));
205                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_platform_id));
206                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_name));
207                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_version_major));
208                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_version_minor));
209                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_type));
210                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_comment));
211                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_users));
212                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_disc));
213                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sv102_hidden));
214                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_announce));
215                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_anndelta));
216                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_licenses));
217                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_userpath));
218         }
219         if (ndr_flags & NDR_BUFFERS) {
220         }
221         return NDR_ERR_SUCCESS;
222 }
223
224 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_102(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_102 *r)
225 {
226         if (ndr_flags & NDR_SCALARS) {
227                 NDR_CHECK(ndr_pull_align(ndr, 4));
228                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_platform_id));
229                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_name));
230                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_version_major));
231                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_version_minor));
232                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_type));
233                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_comment));
234                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_users));
235                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_disc));
236                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sv102_hidden));
237                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_announce));
238                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_anndelta));
239                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_licenses));
240                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_userpath));
241         }
242         if (ndr_flags & NDR_BUFFERS) {
243         }
244         return NDR_ERR_SUCCESS;
245 }
246
247 _PUBLIC_ void ndr_print_SERVER_INFO_102(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_102 *r)
248 {
249         ndr_print_struct(ndr, name, "SERVER_INFO_102");
250         ndr->depth++;
251         ndr_print_uint32(ndr, "sv102_platform_id", r->sv102_platform_id);
252         ndr_print_string(ndr, "sv102_name", r->sv102_name);
253         ndr_print_uint32(ndr, "sv102_version_major", r->sv102_version_major);
254         ndr_print_uint32(ndr, "sv102_version_minor", r->sv102_version_minor);
255         ndr_print_uint32(ndr, "sv102_type", r->sv102_type);
256         ndr_print_string(ndr, "sv102_comment", r->sv102_comment);
257         ndr_print_uint32(ndr, "sv102_users", r->sv102_users);
258         ndr_print_uint32(ndr, "sv102_disc", r->sv102_disc);
259         ndr_print_uint8(ndr, "sv102_hidden", r->sv102_hidden);
260         ndr_print_uint32(ndr, "sv102_announce", r->sv102_announce);
261         ndr_print_uint32(ndr, "sv102_anndelta", r->sv102_anndelta);
262         ndr_print_uint32(ndr, "sv102_licenses", r->sv102_licenses);
263         ndr_print_string(ndr, "sv102_userpath", r->sv102_userpath);
264         ndr->depth--;
265 }
266
267 _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
268 {
269         if (ndr_flags & NDR_SCALARS) {
270                 NDR_CHECK(ndr_push_align(ndr, 4));
271                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
272         }
273         if (ndr_flags & NDR_BUFFERS) {
274         }
275         return NDR_ERR_SUCCESS;
276 }
277
278 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
279 {
280         if (ndr_flags & NDR_SCALARS) {
281                 NDR_CHECK(ndr_pull_align(ndr, 4));
282                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
283         }
284         if (ndr_flags & NDR_BUFFERS) {
285         }
286         return NDR_ERR_SUCCESS;
287 }
288
289 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
290 {
291         ndr_print_struct(ndr, name, "SERVER_INFO_1005");
292         ndr->depth++;
293         ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
294         ndr->depth--;
295 }
296
297 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
298 {
299         if (ndr_flags & NDR_SCALARS) {
300                 NDR_CHECK(ndr_push_align(ndr, 4));
301                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
302                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
303                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
304                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
305                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
306                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
307                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
308                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
309                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
310         }
311         if (ndr_flags & NDR_BUFFERS) {
312         }
313         return NDR_ERR_SUCCESS;
314 }
315
316 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
317 {
318         if (ndr_flags & NDR_SCALARS) {
319                 NDR_CHECK(ndr_pull_align(ndr, 4));
320                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
321                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
322                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
323                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
324                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
325                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
326                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
327                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
328                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
329         }
330         if (ndr_flags & NDR_BUFFERS) {
331         }
332         return NDR_ERR_SUCCESS;
333 }
334
335 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
336 {
337         ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
338         ndr->depth++;
339         ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
340         ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
341         ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
342         ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
343         ndr_print_string(ndr, "domain_name", r->domain_name);
344         ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
345         ndr_print_uint32(ndr, "flags", r->flags);
346         ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
347         ndr_print_string(ndr, "client_site_name", r->client_site_name);
348         ndr->depth--;
349 }
350
351 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
352 {
353         if (ndr_flags & NDR_SCALARS) {
354                 NDR_CHECK(ndr_push_align(ndr, 4));
355                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
356         }
357         if (ndr_flags & NDR_BUFFERS) {
358         }
359         return NDR_ERR_SUCCESS;
360 }
361
362 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
363 {
364         if (ndr_flags & NDR_SCALARS) {
365                 NDR_CHECK(ndr_pull_align(ndr, 4));
366                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
367         }
368         if (ndr_flags & NDR_BUFFERS) {
369         }
370         return NDR_ERR_SUCCESS;
371 }
372
373 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
374 {
375         ndr_print_struct(ndr, name, "USER_INFO_0");
376         ndr->depth++;
377         ndr_print_string(ndr, "usri0_name", r->usri0_name);
378         ndr->depth--;
379 }
380
381 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
382 {
383         if (ndr_flags & NDR_SCALARS) {
384                 NDR_CHECK(ndr_push_align(ndr, 4));
385                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
386                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
387                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
388                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
389                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
390                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
391                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
392                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
393         }
394         if (ndr_flags & NDR_BUFFERS) {
395         }
396         return NDR_ERR_SUCCESS;
397 }
398
399 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
400 {
401         if (ndr_flags & NDR_SCALARS) {
402                 NDR_CHECK(ndr_pull_align(ndr, 4));
403                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
404                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
405                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
406                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
407                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
408                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
409                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
410                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
411         }
412         if (ndr_flags & NDR_BUFFERS) {
413         }
414         return NDR_ERR_SUCCESS;
415 }
416
417 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
418 {
419         ndr_print_struct(ndr, name, "USER_INFO_1");
420         ndr->depth++;
421         ndr_print_string(ndr, "usri1_name", r->usri1_name);
422         ndr_print_string(ndr, "usri1_password", r->usri1_password);
423         ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
424         ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
425         ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
426         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
427         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
428         ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
429         ndr->depth--;
430 }
431
432 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_2(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_2 *r)
433 {
434         if (ndr_flags & NDR_SCALARS) {
435                 NDR_CHECK(ndr_push_align(ndr, 4));
436                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
437                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_password));
438                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_password_age));
439                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_priv));
440                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_home_dir));
441                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
442                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
443                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_script_path));
444                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_auth_flags));
445                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_full_name));
446                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_usr_comment));
447                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_parms));
448                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_workstations));
449                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logon));
450                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logoff));
451                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_acct_expires));
452                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_max_storage));
453                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_units_per_week));
454                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri2_logon_hours));
455                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_bad_pw_count));
456                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_num_logons));
457                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_logon_server));
458                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_country_code));
459                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_code_page));
460         }
461         if (ndr_flags & NDR_BUFFERS) {
462                 if (r->usri2_logon_hours) {
463                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri2_logon_hours));
464                 }
465         }
466         return NDR_ERR_SUCCESS;
467 }
468
469 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_2(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_2 *r)
470 {
471         uint32_t _ptr_usri2_logon_hours;
472         TALLOC_CTX *_mem_save_usri2_logon_hours_0;
473         if (ndr_flags & NDR_SCALARS) {
474                 NDR_CHECK(ndr_pull_align(ndr, 4));
475                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
476                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_password));
477                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_password_age));
478                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_priv));
479                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_home_dir));
480                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
481                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
482                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_script_path));
483                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_auth_flags));
484                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_full_name));
485                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_usr_comment));
486                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_parms));
487                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_workstations));
488                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logon));
489                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logoff));
490                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_acct_expires));
491                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_max_storage));
492                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_units_per_week));
493                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri2_logon_hours));
494                 if (_ptr_usri2_logon_hours) {
495                         NDR_PULL_ALLOC(ndr, r->usri2_logon_hours);
496                 } else {
497                         r->usri2_logon_hours = NULL;
498                 }
499                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_bad_pw_count));
500                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_num_logons));
501                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_logon_server));
502                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_country_code));
503                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_code_page));
504         }
505         if (ndr_flags & NDR_BUFFERS) {
506                 if (r->usri2_logon_hours) {
507                         _mem_save_usri2_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
508                         NDR_PULL_SET_MEM_CTX(ndr, r->usri2_logon_hours, 0);
509                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri2_logon_hours));
510                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri2_logon_hours_0, 0);
511                 }
512         }
513         return NDR_ERR_SUCCESS;
514 }
515
516 _PUBLIC_ void ndr_print_USER_INFO_2(struct ndr_print *ndr, const char *name, const struct USER_INFO_2 *r)
517 {
518         ndr_print_struct(ndr, name, "USER_INFO_2");
519         ndr->depth++;
520         ndr_print_string(ndr, "usri2_name", r->usri2_name);
521         ndr_print_string(ndr, "usri2_password", r->usri2_password);
522         ndr_print_uint32(ndr, "usri2_password_age", r->usri2_password_age);
523         ndr_print_uint32(ndr, "usri2_priv", r->usri2_priv);
524         ndr_print_string(ndr, "usri2_home_dir", r->usri2_home_dir);
525         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
526         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
527         ndr_print_string(ndr, "usri2_script_path", r->usri2_script_path);
528         ndr_print_uint32(ndr, "usri2_auth_flags", r->usri2_auth_flags);
529         ndr_print_string(ndr, "usri2_full_name", r->usri2_full_name);
530         ndr_print_string(ndr, "usri2_usr_comment", r->usri2_usr_comment);
531         ndr_print_string(ndr, "usri2_parms", r->usri2_parms);
532         ndr_print_string(ndr, "usri2_workstations", r->usri2_workstations);
533         ndr_print_uint32(ndr, "usri2_last_logon", r->usri2_last_logon);
534         ndr_print_uint32(ndr, "usri2_last_logoff", r->usri2_last_logoff);
535         ndr_print_uint32(ndr, "usri2_acct_expires", r->usri2_acct_expires);
536         ndr_print_uint32(ndr, "usri2_max_storage", r->usri2_max_storage);
537         ndr_print_uint32(ndr, "usri2_units_per_week", r->usri2_units_per_week);
538         ndr_print_ptr(ndr, "usri2_logon_hours", r->usri2_logon_hours);
539         ndr->depth++;
540         if (r->usri2_logon_hours) {
541                 ndr_print_uint8(ndr, "usri2_logon_hours", *r->usri2_logon_hours);
542         }
543         ndr->depth--;
544         ndr_print_uint32(ndr, "usri2_bad_pw_count", r->usri2_bad_pw_count);
545         ndr_print_uint32(ndr, "usri2_num_logons", r->usri2_num_logons);
546         ndr_print_string(ndr, "usri2_logon_server", r->usri2_logon_server);
547         ndr_print_uint32(ndr, "usri2_country_code", r->usri2_country_code);
548         ndr_print_uint32(ndr, "usri2_code_page", r->usri2_code_page);
549         ndr->depth--;
550 }
551
552 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_3(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_3 *r)
553 {
554         if (ndr_flags & NDR_SCALARS) {
555                 NDR_CHECK(ndr_push_align(ndr, 4));
556                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_name));
557                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_age));
558                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_priv));
559                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir));
560                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_comment));
561                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_flags));
562                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_script_path));
563                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_auth_flags));
564                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_full_name));
565                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_usr_comment));
566                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_parms));
567                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_workstations));
568                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logon));
569                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logoff));
570                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_acct_expires));
571                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_max_storage));
572                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_units_per_week));
573                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri3_logon_hours));
574                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_bad_pw_count));
575                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_num_logons));
576                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_logon_server));
577                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_country_code));
578                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_code_page));
579                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_user_id));
580                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_primary_group_id));
581                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_profile));
582                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir_drive));
583                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_expired));
584         }
585         if (ndr_flags & NDR_BUFFERS) {
586                 if (r->usri3_logon_hours) {
587                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri3_logon_hours));
588                 }
589         }
590         return NDR_ERR_SUCCESS;
591 }
592
593 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_3(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_3 *r)
594 {
595         uint32_t _ptr_usri3_logon_hours;
596         TALLOC_CTX *_mem_save_usri3_logon_hours_0;
597         if (ndr_flags & NDR_SCALARS) {
598                 NDR_CHECK(ndr_pull_align(ndr, 4));
599                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_name));
600                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_age));
601                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_priv));
602                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir));
603                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_comment));
604                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_flags));
605                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_script_path));
606                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_auth_flags));
607                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_full_name));
608                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_usr_comment));
609                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_parms));
610                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_workstations));
611                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logon));
612                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logoff));
613                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_acct_expires));
614                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_max_storage));
615                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_units_per_week));
616                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri3_logon_hours));
617                 if (_ptr_usri3_logon_hours) {
618                         NDR_PULL_ALLOC(ndr, r->usri3_logon_hours);
619                 } else {
620                         r->usri3_logon_hours = NULL;
621                 }
622                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_bad_pw_count));
623                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_num_logons));
624                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_logon_server));
625                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_country_code));
626                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_code_page));
627                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_user_id));
628                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_primary_group_id));
629                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_profile));
630                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir_drive));
631                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_expired));
632         }
633         if (ndr_flags & NDR_BUFFERS) {
634                 if (r->usri3_logon_hours) {
635                         _mem_save_usri3_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
636                         NDR_PULL_SET_MEM_CTX(ndr, r->usri3_logon_hours, 0);
637                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri3_logon_hours));
638                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri3_logon_hours_0, 0);
639                 }
640         }
641         return NDR_ERR_SUCCESS;
642 }
643
644 _PUBLIC_ void ndr_print_USER_INFO_3(struct ndr_print *ndr, const char *name, const struct USER_INFO_3 *r)
645 {
646         ndr_print_struct(ndr, name, "USER_INFO_3");
647         ndr->depth++;
648         ndr_print_string(ndr, "usri3_name", r->usri3_name);
649         ndr_print_uint32(ndr, "usri3_password_age", r->usri3_password_age);
650         ndr_print_uint32(ndr, "usri3_priv", r->usri3_priv);
651         ndr_print_string(ndr, "usri3_home_dir", r->usri3_home_dir);
652         ndr_print_string(ndr, "usri3_comment", r->usri3_comment);
653         ndr_print_uint32(ndr, "usri3_flags", r->usri3_flags);
654         ndr_print_string(ndr, "usri3_script_path", r->usri3_script_path);
655         ndr_print_uint32(ndr, "usri3_auth_flags", r->usri3_auth_flags);
656         ndr_print_string(ndr, "usri3_full_name", r->usri3_full_name);
657         ndr_print_string(ndr, "usri3_usr_comment", r->usri3_usr_comment);
658         ndr_print_string(ndr, "usri3_parms", r->usri3_parms);
659         ndr_print_string(ndr, "usri3_workstations", r->usri3_workstations);
660         ndr_print_uint32(ndr, "usri3_last_logon", r->usri3_last_logon);
661         ndr_print_uint32(ndr, "usri3_last_logoff", r->usri3_last_logoff);
662         ndr_print_uint32(ndr, "usri3_acct_expires", r->usri3_acct_expires);
663         ndr_print_uint32(ndr, "usri3_max_storage", r->usri3_max_storage);
664         ndr_print_uint32(ndr, "usri3_units_per_week", r->usri3_units_per_week);
665         ndr_print_ptr(ndr, "usri3_logon_hours", r->usri3_logon_hours);
666         ndr->depth++;
667         if (r->usri3_logon_hours) {
668                 ndr_print_uint8(ndr, "usri3_logon_hours", *r->usri3_logon_hours);
669         }
670         ndr->depth--;
671         ndr_print_uint32(ndr, "usri3_bad_pw_count", r->usri3_bad_pw_count);
672         ndr_print_uint32(ndr, "usri3_num_logons", r->usri3_num_logons);
673         ndr_print_string(ndr, "usri3_logon_server", r->usri3_logon_server);
674         ndr_print_uint32(ndr, "usri3_country_code", r->usri3_country_code);
675         ndr_print_uint32(ndr, "usri3_code_page", r->usri3_code_page);
676         ndr_print_uint32(ndr, "usri3_user_id", r->usri3_user_id);
677         ndr_print_uint32(ndr, "usri3_primary_group_id", r->usri3_primary_group_id);
678         ndr_print_string(ndr, "usri3_profile", r->usri3_profile);
679         ndr_print_string(ndr, "usri3_home_dir_drive", r->usri3_home_dir_drive);
680         ndr_print_uint32(ndr, "usri3_password_expired", r->usri3_password_expired);
681         ndr->depth--;
682 }
683
684 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_4(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_4 *r)
685 {
686         if (ndr_flags & NDR_SCALARS) {
687                 NDR_CHECK(ndr_push_align(ndr, 4));
688                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_name));
689                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_password));
690                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_age));
691                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_priv));
692                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir));
693                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_comment));
694                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_flags));
695                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_script_path));
696                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_auth_flags));
697                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_full_name));
698                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_usr_comment));
699                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_parms));
700                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_workstations));
701                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logon));
702                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logoff));
703                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_acct_expires));
704                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_max_storage));
705                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_units_per_week));
706                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_logon_hours));
707                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_bad_pw_count));
708                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_num_logons));
709                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_logon_server));
710                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_country_code));
711                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_code_page));
712                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_user_sid));
713                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_primary_group_id));
714                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_profile));
715                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir_drive));
716                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_expired));
717         }
718         if (ndr_flags & NDR_BUFFERS) {
719                 if (r->usri4_logon_hours) {
720                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri4_logon_hours));
721                 }
722                 if (r->usri4_user_sid) {
723                         NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri4_user_sid));
724                 }
725         }
726         return NDR_ERR_SUCCESS;
727 }
728
729 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_4(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_4 *r)
730 {
731         uint32_t _ptr_usri4_logon_hours;
732         TALLOC_CTX *_mem_save_usri4_logon_hours_0;
733         uint32_t _ptr_usri4_user_sid;
734         TALLOC_CTX *_mem_save_usri4_user_sid_0;
735         if (ndr_flags & NDR_SCALARS) {
736                 NDR_CHECK(ndr_pull_align(ndr, 4));
737                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_name));
738                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_password));
739                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_age));
740                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_priv));
741                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir));
742                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_comment));
743                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_flags));
744                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_script_path));
745                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_auth_flags));
746                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_full_name));
747                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_usr_comment));
748                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_parms));
749                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_workstations));
750                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logon));
751                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logoff));
752                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_acct_expires));
753                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_max_storage));
754                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_units_per_week));
755                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_logon_hours));
756                 if (_ptr_usri4_logon_hours) {
757                         NDR_PULL_ALLOC(ndr, r->usri4_logon_hours);
758                 } else {
759                         r->usri4_logon_hours = NULL;
760                 }
761                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_bad_pw_count));
762                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_num_logons));
763                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_logon_server));
764                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_country_code));
765                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_code_page));
766                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_user_sid));
767                 if (_ptr_usri4_user_sid) {
768                         NDR_PULL_ALLOC(ndr, r->usri4_user_sid);
769                 } else {
770                         r->usri4_user_sid = NULL;
771                 }
772                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_primary_group_id));
773                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_profile));
774                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir_drive));
775                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_expired));
776         }
777         if (ndr_flags & NDR_BUFFERS) {
778                 if (r->usri4_logon_hours) {
779                         _mem_save_usri4_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
780                         NDR_PULL_SET_MEM_CTX(ndr, r->usri4_logon_hours, 0);
781                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri4_logon_hours));
782                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_logon_hours_0, 0);
783                 }
784                 if (r->usri4_user_sid) {
785                         _mem_save_usri4_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
786                         NDR_PULL_SET_MEM_CTX(ndr, r->usri4_user_sid, 0);
787                         NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri4_user_sid));
788                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_user_sid_0, 0);
789                 }
790         }
791         return NDR_ERR_SUCCESS;
792 }
793
794 _PUBLIC_ void ndr_print_USER_INFO_4(struct ndr_print *ndr, const char *name, const struct USER_INFO_4 *r)
795 {
796         ndr_print_struct(ndr, name, "USER_INFO_4");
797         ndr->depth++;
798         ndr_print_string(ndr, "usri4_name", r->usri4_name);
799         ndr_print_string(ndr, "usri4_password", r->usri4_password);
800         ndr_print_uint32(ndr, "usri4_password_age", r->usri4_password_age);
801         ndr_print_uint32(ndr, "usri4_priv", r->usri4_priv);
802         ndr_print_string(ndr, "usri4_home_dir", r->usri4_home_dir);
803         ndr_print_string(ndr, "usri4_comment", r->usri4_comment);
804         ndr_print_uint32(ndr, "usri4_flags", r->usri4_flags);
805         ndr_print_string(ndr, "usri4_script_path", r->usri4_script_path);
806         ndr_print_uint32(ndr, "usri4_auth_flags", r->usri4_auth_flags);
807         ndr_print_string(ndr, "usri4_full_name", r->usri4_full_name);
808         ndr_print_string(ndr, "usri4_usr_comment", r->usri4_usr_comment);
809         ndr_print_string(ndr, "usri4_parms", r->usri4_parms);
810         ndr_print_string(ndr, "usri4_workstations", r->usri4_workstations);
811         ndr_print_uint32(ndr, "usri4_last_logon", r->usri4_last_logon);
812         ndr_print_uint32(ndr, "usri4_last_logoff", r->usri4_last_logoff);
813         ndr_print_uint32(ndr, "usri4_acct_expires", r->usri4_acct_expires);
814         ndr_print_uint32(ndr, "usri4_max_storage", r->usri4_max_storage);
815         ndr_print_uint32(ndr, "usri4_units_per_week", r->usri4_units_per_week);
816         ndr_print_ptr(ndr, "usri4_logon_hours", r->usri4_logon_hours);
817         ndr->depth++;
818         if (r->usri4_logon_hours) {
819                 ndr_print_uint8(ndr, "usri4_logon_hours", *r->usri4_logon_hours);
820         }
821         ndr->depth--;
822         ndr_print_uint32(ndr, "usri4_bad_pw_count", r->usri4_bad_pw_count);
823         ndr_print_uint32(ndr, "usri4_num_logons", r->usri4_num_logons);
824         ndr_print_string(ndr, "usri4_logon_server", r->usri4_logon_server);
825         ndr_print_uint32(ndr, "usri4_country_code", r->usri4_country_code);
826         ndr_print_uint32(ndr, "usri4_code_page", r->usri4_code_page);
827         ndr_print_ptr(ndr, "usri4_user_sid", r->usri4_user_sid);
828         ndr->depth++;
829         if (r->usri4_user_sid) {
830                 ndr_print_domsid(ndr, "usri4_user_sid", r->usri4_user_sid);
831         }
832         ndr->depth--;
833         ndr_print_uint32(ndr, "usri4_primary_group_id", r->usri4_primary_group_id);
834         ndr_print_string(ndr, "usri4_profile", r->usri4_profile);
835         ndr_print_string(ndr, "usri4_home_dir_drive", r->usri4_home_dir_drive);
836         ndr_print_uint32(ndr, "usri4_password_expired", r->usri4_password_expired);
837         ndr->depth--;
838 }
839
840 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_10(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_10 *r)
841 {
842         if (ndr_flags & NDR_SCALARS) {
843                 NDR_CHECK(ndr_push_align(ndr, 4));
844                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_name));
845                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_comment));
846                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_usr_comment));
847                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_full_name));
848         }
849         if (ndr_flags & NDR_BUFFERS) {
850         }
851         return NDR_ERR_SUCCESS;
852 }
853
854 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_10(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_10 *r)
855 {
856         if (ndr_flags & NDR_SCALARS) {
857                 NDR_CHECK(ndr_pull_align(ndr, 4));
858                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_name));
859                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_comment));
860                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_usr_comment));
861                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_full_name));
862         }
863         if (ndr_flags & NDR_BUFFERS) {
864         }
865         return NDR_ERR_SUCCESS;
866 }
867
868 _PUBLIC_ void ndr_print_USER_INFO_10(struct ndr_print *ndr, const char *name, const struct USER_INFO_10 *r)
869 {
870         ndr_print_struct(ndr, name, "USER_INFO_10");
871         ndr->depth++;
872         ndr_print_string(ndr, "usri10_name", r->usri10_name);
873         ndr_print_string(ndr, "usri10_comment", r->usri10_comment);
874         ndr_print_string(ndr, "usri10_usr_comment", r->usri10_usr_comment);
875         ndr_print_string(ndr, "usri10_full_name", r->usri10_full_name);
876         ndr->depth--;
877 }
878
879 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_11(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_11 *r)
880 {
881         if (ndr_flags & NDR_SCALARS) {
882                 NDR_CHECK(ndr_push_align(ndr, 4));
883                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_name));
884                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_comment));
885                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_usr_comment));
886                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_full_name));
887                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_priv));
888                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_auth_flags));
889                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_password_age));
890                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_home_dir));
891                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_parms));
892                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logon));
893                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logoff));
894                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_bad_pw_count));
895                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_num_logons));
896                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_logon_server));
897                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_country_code));
898                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_workstations));
899                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_max_storage));
900                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_units_per_week));
901                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri11_logon_hours));
902                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_code_page));
903         }
904         if (ndr_flags & NDR_BUFFERS) {
905                 if (r->usri11_logon_hours) {
906                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri11_logon_hours));
907                 }
908         }
909         return NDR_ERR_SUCCESS;
910 }
911
912 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_11(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_11 *r)
913 {
914         uint32_t _ptr_usri11_logon_hours;
915         TALLOC_CTX *_mem_save_usri11_logon_hours_0;
916         if (ndr_flags & NDR_SCALARS) {
917                 NDR_CHECK(ndr_pull_align(ndr, 4));
918                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_name));
919                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_comment));
920                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_usr_comment));
921                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_full_name));
922                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_priv));
923                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_auth_flags));
924                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_password_age));
925                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_home_dir));
926                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_parms));
927                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logon));
928                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logoff));
929                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_bad_pw_count));
930                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_num_logons));
931                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_logon_server));
932                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_country_code));
933                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_workstations));
934                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_max_storage));
935                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_units_per_week));
936                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri11_logon_hours));
937                 if (_ptr_usri11_logon_hours) {
938                         NDR_PULL_ALLOC(ndr, r->usri11_logon_hours);
939                 } else {
940                         r->usri11_logon_hours = NULL;
941                 }
942                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_code_page));
943         }
944         if (ndr_flags & NDR_BUFFERS) {
945                 if (r->usri11_logon_hours) {
946                         _mem_save_usri11_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
947                         NDR_PULL_SET_MEM_CTX(ndr, r->usri11_logon_hours, 0);
948                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri11_logon_hours));
949                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri11_logon_hours_0, 0);
950                 }
951         }
952         return NDR_ERR_SUCCESS;
953 }
954
955 _PUBLIC_ void ndr_print_USER_INFO_11(struct ndr_print *ndr, const char *name, const struct USER_INFO_11 *r)
956 {
957         ndr_print_struct(ndr, name, "USER_INFO_11");
958         ndr->depth++;
959         ndr_print_string(ndr, "usri11_name", r->usri11_name);
960         ndr_print_string(ndr, "usri11_comment", r->usri11_comment);
961         ndr_print_string(ndr, "usri11_usr_comment", r->usri11_usr_comment);
962         ndr_print_string(ndr, "usri11_full_name", r->usri11_full_name);
963         ndr_print_uint32(ndr, "usri11_priv", r->usri11_priv);
964         ndr_print_uint32(ndr, "usri11_auth_flags", r->usri11_auth_flags);
965         ndr_print_uint32(ndr, "usri11_password_age", r->usri11_password_age);
966         ndr_print_string(ndr, "usri11_home_dir", r->usri11_home_dir);
967         ndr_print_string(ndr, "usri11_parms", r->usri11_parms);
968         ndr_print_uint32(ndr, "usri11_last_logon", r->usri11_last_logon);
969         ndr_print_uint32(ndr, "usri11_last_logoff", r->usri11_last_logoff);
970         ndr_print_uint32(ndr, "usri11_bad_pw_count", r->usri11_bad_pw_count);
971         ndr_print_uint32(ndr, "usri11_num_logons", r->usri11_num_logons);
972         ndr_print_string(ndr, "usri11_logon_server", r->usri11_logon_server);
973         ndr_print_uint32(ndr, "usri11_country_code", r->usri11_country_code);
974         ndr_print_string(ndr, "usri11_workstations", r->usri11_workstations);
975         ndr_print_uint32(ndr, "usri11_max_storage", r->usri11_max_storage);
976         ndr_print_uint32(ndr, "usri11_units_per_week", r->usri11_units_per_week);
977         ndr_print_ptr(ndr, "usri11_logon_hours", r->usri11_logon_hours);
978         ndr->depth++;
979         if (r->usri11_logon_hours) {
980                 ndr_print_uint8(ndr, "usri11_logon_hours", *r->usri11_logon_hours);
981         }
982         ndr->depth--;
983         ndr_print_uint32(ndr, "usri11_code_page", r->usri11_code_page);
984         ndr->depth--;
985 }
986
987 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_20(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_20 *r)
988 {
989         if (ndr_flags & NDR_SCALARS) {
990                 NDR_CHECK(ndr_push_align(ndr, 4));
991                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_name));
992                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_full_name));
993                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_comment));
994                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_flags));
995                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_user_id));
996         }
997         if (ndr_flags & NDR_BUFFERS) {
998         }
999         return NDR_ERR_SUCCESS;
1000 }
1001
1002 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_20(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_20 *r)
1003 {
1004         if (ndr_flags & NDR_SCALARS) {
1005                 NDR_CHECK(ndr_pull_align(ndr, 4));
1006                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_name));
1007                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_full_name));
1008                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_comment));
1009                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_flags));
1010                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_user_id));
1011         }
1012         if (ndr_flags & NDR_BUFFERS) {
1013         }
1014         return NDR_ERR_SUCCESS;
1015 }
1016
1017 _PUBLIC_ void ndr_print_USER_INFO_20(struct ndr_print *ndr, const char *name, const struct USER_INFO_20 *r)
1018 {
1019         ndr_print_struct(ndr, name, "USER_INFO_20");
1020         ndr->depth++;
1021         ndr_print_string(ndr, "usri20_name", r->usri20_name);
1022         ndr_print_string(ndr, "usri20_full_name", r->usri20_full_name);
1023         ndr_print_string(ndr, "usri20_comment", r->usri20_comment);
1024         ndr_print_uint32(ndr, "usri20_flags", r->usri20_flags);
1025         ndr_print_uint32(ndr, "usri20_user_id", r->usri20_user_id);
1026         ndr->depth--;
1027 }
1028
1029 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_21(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_21 *r)
1030 {
1031         if (ndr_flags & NDR_SCALARS) {
1032                 NDR_CHECK(ndr_push_align(ndr, 1));
1033                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
1034         }
1035         if (ndr_flags & NDR_BUFFERS) {
1036         }
1037         return NDR_ERR_SUCCESS;
1038 }
1039
1040 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_21(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_21 *r)
1041 {
1042         if (ndr_flags & NDR_SCALARS) {
1043                 NDR_CHECK(ndr_pull_align(ndr, 1));
1044                 NDR_PULL_ALLOC_N(ndr, r->usri21_password, ENCRYPTED_PWLEN);
1045                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
1046         }
1047         if (ndr_flags & NDR_BUFFERS) {
1048         }
1049         return NDR_ERR_SUCCESS;
1050 }
1051
1052 _PUBLIC_ void ndr_print_USER_INFO_21(struct ndr_print *ndr, const char *name, const struct USER_INFO_21 *r)
1053 {
1054         ndr_print_struct(ndr, name, "USER_INFO_21");
1055         ndr->depth++;
1056         ndr_print_array_uint8(ndr, "usri21_password", r->usri21_password, ENCRYPTED_PWLEN);
1057         ndr->depth--;
1058 }
1059
1060 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_22(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_22 *r)
1061 {
1062         if (ndr_flags & NDR_SCALARS) {
1063                 NDR_CHECK(ndr_push_align(ndr, 4));
1064                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_name));
1065                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
1066                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_password_age));
1067                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_priv));
1068                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_home_dir));
1069                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_comment));
1070                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_flags));
1071                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_script_path));
1072                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_auth_flags));
1073                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_full_name));
1074                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_usr_comment));
1075                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_parms));
1076                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_workstations));
1077                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logon));
1078                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logoff));
1079                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_acct_expires));
1080                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_max_storage));
1081                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_units_per_week));
1082                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri22_logon_hours));
1083                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_bad_pw_count));
1084                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_num_logons));
1085                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_logon_server));
1086                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_country_code));
1087                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_code_page));
1088         }
1089         if (ndr_flags & NDR_BUFFERS) {
1090                 if (r->usri22_logon_hours) {
1091                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri22_logon_hours));
1092                 }
1093         }
1094         return NDR_ERR_SUCCESS;
1095 }
1096
1097 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_22(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_22 *r)
1098 {
1099         uint32_t _ptr_usri22_logon_hours;
1100         TALLOC_CTX *_mem_save_usri22_logon_hours_0;
1101         if (ndr_flags & NDR_SCALARS) {
1102                 NDR_CHECK(ndr_pull_align(ndr, 4));
1103                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_name));
1104                 NDR_PULL_ALLOC_N(ndr, r->usri22_password, ENCRYPTED_PWLEN);
1105                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
1106                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_password_age));
1107                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_priv));
1108                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_home_dir));
1109                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_comment));
1110                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_flags));
1111                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_script_path));
1112                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_auth_flags));
1113                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_full_name));
1114                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_usr_comment));
1115                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_parms));
1116                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_workstations));
1117                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logon));
1118                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logoff));
1119                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_acct_expires));
1120                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_max_storage));
1121                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_units_per_week));
1122                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri22_logon_hours));
1123                 if (_ptr_usri22_logon_hours) {
1124                         NDR_PULL_ALLOC(ndr, r->usri22_logon_hours);
1125                 } else {
1126                         r->usri22_logon_hours = NULL;
1127                 }
1128                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_bad_pw_count));
1129                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_num_logons));
1130                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_logon_server));
1131                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_country_code));
1132                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_code_page));
1133         }
1134         if (ndr_flags & NDR_BUFFERS) {
1135                 if (r->usri22_logon_hours) {
1136                         _mem_save_usri22_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1137                         NDR_PULL_SET_MEM_CTX(ndr, r->usri22_logon_hours, 0);
1138                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri22_logon_hours));
1139                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri22_logon_hours_0, 0);
1140                 }
1141         }
1142         return NDR_ERR_SUCCESS;
1143 }
1144
1145 _PUBLIC_ void ndr_print_USER_INFO_22(struct ndr_print *ndr, const char *name, const struct USER_INFO_22 *r)
1146 {
1147         ndr_print_struct(ndr, name, "USER_INFO_22");
1148         ndr->depth++;
1149         ndr_print_string(ndr, "usri22_name", r->usri22_name);
1150         ndr_print_array_uint8(ndr, "usri22_password", r->usri22_password, ENCRYPTED_PWLEN);
1151         ndr_print_uint32(ndr, "usri22_password_age", r->usri22_password_age);
1152         ndr_print_uint32(ndr, "usri22_priv", r->usri22_priv);
1153         ndr_print_string(ndr, "usri22_home_dir", r->usri22_home_dir);
1154         ndr_print_string(ndr, "usri22_comment", r->usri22_comment);
1155         ndr_print_uint32(ndr, "usri22_flags", r->usri22_flags);
1156         ndr_print_uint32(ndr, "usri22_script_path", r->usri22_script_path);
1157         ndr_print_uint32(ndr, "usri22_auth_flags", r->usri22_auth_flags);
1158         ndr_print_string(ndr, "usri22_full_name", r->usri22_full_name);
1159         ndr_print_string(ndr, "usri22_usr_comment", r->usri22_usr_comment);
1160         ndr_print_string(ndr, "usri22_parms", r->usri22_parms);
1161         ndr_print_string(ndr, "usri22_workstations", r->usri22_workstations);
1162         ndr_print_uint32(ndr, "usri22_last_logon", r->usri22_last_logon);
1163         ndr_print_uint32(ndr, "usri22_last_logoff", r->usri22_last_logoff);
1164         ndr_print_uint32(ndr, "usri22_acct_expires", r->usri22_acct_expires);
1165         ndr_print_uint32(ndr, "usri22_max_storage", r->usri22_max_storage);
1166         ndr_print_uint32(ndr, "usri22_units_per_week", r->usri22_units_per_week);
1167         ndr_print_ptr(ndr, "usri22_logon_hours", r->usri22_logon_hours);
1168         ndr->depth++;
1169         if (r->usri22_logon_hours) {
1170                 ndr_print_uint8(ndr, "usri22_logon_hours", *r->usri22_logon_hours);
1171         }
1172         ndr->depth--;
1173         ndr_print_uint32(ndr, "usri22_bad_pw_count", r->usri22_bad_pw_count);
1174         ndr_print_uint32(ndr, "usri22_num_logons", r->usri22_num_logons);
1175         ndr_print_string(ndr, "usri22_logon_server", r->usri22_logon_server);
1176         ndr_print_uint32(ndr, "usri22_country_code", r->usri22_country_code);
1177         ndr_print_uint32(ndr, "usri22_code_page", r->usri22_code_page);
1178         ndr->depth--;
1179 }
1180
1181 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r)
1182 {
1183         if (ndr_flags & NDR_SCALARS) {
1184                 NDR_CHECK(ndr_push_align(ndr, 4));
1185                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_name));
1186                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_full_name));
1187                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_comment));
1188                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri23_flags));
1189                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri23_user_sid));
1190         }
1191         if (ndr_flags & NDR_BUFFERS) {
1192                 if (r->usri23_user_sid) {
1193                         NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1194                 }
1195         }
1196         return NDR_ERR_SUCCESS;
1197 }
1198
1199 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_23(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_23 *r)
1200 {
1201         uint32_t _ptr_usri23_user_sid;
1202         TALLOC_CTX *_mem_save_usri23_user_sid_0;
1203         if (ndr_flags & NDR_SCALARS) {
1204                 NDR_CHECK(ndr_pull_align(ndr, 4));
1205                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_name));
1206                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_full_name));
1207                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_comment));
1208                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri23_flags));
1209                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri23_user_sid));
1210                 if (_ptr_usri23_user_sid) {
1211                         NDR_PULL_ALLOC(ndr, r->usri23_user_sid);
1212                 } else {
1213                         r->usri23_user_sid = NULL;
1214                 }
1215         }
1216         if (ndr_flags & NDR_BUFFERS) {
1217                 if (r->usri23_user_sid) {
1218                         _mem_save_usri23_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
1219                         NDR_PULL_SET_MEM_CTX(ndr, r->usri23_user_sid, 0);
1220                         NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1221                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri23_user_sid_0, 0);
1222                 }
1223         }
1224         return NDR_ERR_SUCCESS;
1225 }
1226
1227 _PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, const struct USER_INFO_23 *r)
1228 {
1229         ndr_print_struct(ndr, name, "USER_INFO_23");
1230         ndr->depth++;
1231         ndr_print_string(ndr, "usri23_name", r->usri23_name);
1232         ndr_print_string(ndr, "usri23_full_name", r->usri23_full_name);
1233         ndr_print_string(ndr, "usri23_comment", r->usri23_comment);
1234         ndr_print_uint32(ndr, "usri23_flags", r->usri23_flags);
1235         ndr_print_ptr(ndr, "usri23_user_sid", r->usri23_user_sid);
1236         ndr->depth++;
1237         if (r->usri23_user_sid) {
1238                 ndr_print_domsid(ndr, "usri23_user_sid", r->usri23_user_sid);
1239         }
1240         ndr->depth--;
1241         ndr->depth--;
1242 }
1243
1244 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1003(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1003 *r)
1245 {
1246         if (ndr_flags & NDR_SCALARS) {
1247                 NDR_CHECK(ndr_push_align(ndr, 4));
1248                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1003_password));
1249         }
1250         if (ndr_flags & NDR_BUFFERS) {
1251         }
1252         return NDR_ERR_SUCCESS;
1253 }
1254
1255 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1003(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1003 *r)
1256 {
1257         if (ndr_flags & NDR_SCALARS) {
1258                 NDR_CHECK(ndr_pull_align(ndr, 4));
1259                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1003_password));
1260         }
1261         if (ndr_flags & NDR_BUFFERS) {
1262         }
1263         return NDR_ERR_SUCCESS;
1264 }
1265
1266 _PUBLIC_ void ndr_print_USER_INFO_1003(struct ndr_print *ndr, const char *name, const struct USER_INFO_1003 *r)
1267 {
1268         ndr_print_struct(ndr, name, "USER_INFO_1003");
1269         ndr->depth++;
1270         ndr_print_string(ndr, "usri1003_password", r->usri1003_password);
1271         ndr->depth--;
1272 }
1273
1274 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1005 *r)
1275 {
1276         if (ndr_flags & NDR_SCALARS) {
1277                 NDR_CHECK(ndr_push_align(ndr, 4));
1278                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1005_priv));
1279         }
1280         if (ndr_flags & NDR_BUFFERS) {
1281         }
1282         return NDR_ERR_SUCCESS;
1283 }
1284
1285 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1005 *r)
1286 {
1287         if (ndr_flags & NDR_SCALARS) {
1288                 NDR_CHECK(ndr_pull_align(ndr, 4));
1289                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1005_priv));
1290         }
1291         if (ndr_flags & NDR_BUFFERS) {
1292         }
1293         return NDR_ERR_SUCCESS;
1294 }
1295
1296 _PUBLIC_ void ndr_print_USER_INFO_1005(struct ndr_print *ndr, const char *name, const struct USER_INFO_1005 *r)
1297 {
1298         ndr_print_struct(ndr, name, "USER_INFO_1005");
1299         ndr->depth++;
1300         ndr_print_uint32(ndr, "usri1005_priv", r->usri1005_priv);
1301         ndr->depth--;
1302 }
1303
1304 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1006(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1006 *r)
1305 {
1306         if (ndr_flags & NDR_SCALARS) {
1307                 NDR_CHECK(ndr_push_align(ndr, 4));
1308                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1006_home_dir));
1309         }
1310         if (ndr_flags & NDR_BUFFERS) {
1311         }
1312         return NDR_ERR_SUCCESS;
1313 }
1314
1315 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1006(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1006 *r)
1316 {
1317         if (ndr_flags & NDR_SCALARS) {
1318                 NDR_CHECK(ndr_pull_align(ndr, 4));
1319                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1006_home_dir));
1320         }
1321         if (ndr_flags & NDR_BUFFERS) {
1322         }
1323         return NDR_ERR_SUCCESS;
1324 }
1325
1326 _PUBLIC_ void ndr_print_USER_INFO_1006(struct ndr_print *ndr, const char *name, const struct USER_INFO_1006 *r)
1327 {
1328         ndr_print_struct(ndr, name, "USER_INFO_1006");
1329         ndr->depth++;
1330         ndr_print_string(ndr, "usri1006_home_dir", r->usri1006_home_dir);
1331         ndr->depth--;
1332 }
1333
1334 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r)
1335 {
1336         if (ndr_flags & NDR_SCALARS) {
1337                 NDR_CHECK(ndr_push_align(ndr, 4));
1338                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1007_comment));
1339         }
1340         if (ndr_flags & NDR_BUFFERS) {
1341         }
1342         return NDR_ERR_SUCCESS;
1343 }
1344
1345 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1007(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1007 *r)
1346 {
1347         if (ndr_flags & NDR_SCALARS) {
1348                 NDR_CHECK(ndr_pull_align(ndr, 4));
1349                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1007_comment));
1350         }
1351         if (ndr_flags & NDR_BUFFERS) {
1352         }
1353         return NDR_ERR_SUCCESS;
1354 }
1355
1356 _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, const struct USER_INFO_1007 *r)
1357 {
1358         ndr_print_struct(ndr, name, "USER_INFO_1007");
1359         ndr->depth++;
1360         ndr_print_string(ndr, "usri1007_comment", r->usri1007_comment);
1361         ndr->depth--;
1362 }
1363
1364 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1008(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1008 *r)
1365 {
1366         if (ndr_flags & NDR_SCALARS) {
1367                 NDR_CHECK(ndr_push_align(ndr, 4));
1368                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1008_flags));
1369         }
1370         if (ndr_flags & NDR_BUFFERS) {
1371         }
1372         return NDR_ERR_SUCCESS;
1373 }
1374
1375 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1008(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1008 *r)
1376 {
1377         if (ndr_flags & NDR_SCALARS) {
1378                 NDR_CHECK(ndr_pull_align(ndr, 4));
1379                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1008_flags));
1380         }
1381         if (ndr_flags & NDR_BUFFERS) {
1382         }
1383         return NDR_ERR_SUCCESS;
1384 }
1385
1386 _PUBLIC_ void ndr_print_USER_INFO_1008(struct ndr_print *ndr, const char *name, const struct USER_INFO_1008 *r)
1387 {
1388         ndr_print_struct(ndr, name, "USER_INFO_1008");
1389         ndr->depth++;
1390         ndr_print_uint32(ndr, "usri1008_flags", r->usri1008_flags);
1391         ndr->depth--;
1392 }
1393
1394 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1009(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1009 *r)
1395 {
1396         if (ndr_flags & NDR_SCALARS) {
1397                 NDR_CHECK(ndr_push_align(ndr, 4));
1398                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1009_script_path));
1399         }
1400         if (ndr_flags & NDR_BUFFERS) {
1401         }
1402         return NDR_ERR_SUCCESS;
1403 }
1404
1405 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1009(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1009 *r)
1406 {
1407         if (ndr_flags & NDR_SCALARS) {
1408                 NDR_CHECK(ndr_pull_align(ndr, 4));
1409                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1009_script_path));
1410         }
1411         if (ndr_flags & NDR_BUFFERS) {
1412         }
1413         return NDR_ERR_SUCCESS;
1414 }
1415
1416 _PUBLIC_ void ndr_print_USER_INFO_1009(struct ndr_print *ndr, const char *name, const struct USER_INFO_1009 *r)
1417 {
1418         ndr_print_struct(ndr, name, "USER_INFO_1009");
1419         ndr->depth++;
1420         ndr_print_string(ndr, "usri1009_script_path", r->usri1009_script_path);
1421         ndr->depth--;
1422 }
1423
1424 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1010(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1010 *r)
1425 {
1426         if (ndr_flags & NDR_SCALARS) {
1427                 NDR_CHECK(ndr_push_align(ndr, 4));
1428                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1010_auth_flags));
1429         }
1430         if (ndr_flags & NDR_BUFFERS) {
1431         }
1432         return NDR_ERR_SUCCESS;
1433 }
1434
1435 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1010(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1010 *r)
1436 {
1437         if (ndr_flags & NDR_SCALARS) {
1438                 NDR_CHECK(ndr_pull_align(ndr, 4));
1439                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1010_auth_flags));
1440         }
1441         if (ndr_flags & NDR_BUFFERS) {
1442         }
1443         return NDR_ERR_SUCCESS;
1444 }
1445
1446 _PUBLIC_ void ndr_print_USER_INFO_1010(struct ndr_print *ndr, const char *name, const struct USER_INFO_1010 *r)
1447 {
1448         ndr_print_struct(ndr, name, "USER_INFO_1010");
1449         ndr->depth++;
1450         ndr_print_uint32(ndr, "usri1010_auth_flags", r->usri1010_auth_flags);
1451         ndr->depth--;
1452 }
1453
1454 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1011(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1011 *r)
1455 {
1456         if (ndr_flags & NDR_SCALARS) {
1457                 NDR_CHECK(ndr_push_align(ndr, 4));
1458                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1011_full_name));
1459         }
1460         if (ndr_flags & NDR_BUFFERS) {
1461         }
1462         return NDR_ERR_SUCCESS;
1463 }
1464
1465 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1011(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1011 *r)
1466 {
1467         if (ndr_flags & NDR_SCALARS) {
1468                 NDR_CHECK(ndr_pull_align(ndr, 4));
1469                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1011_full_name));
1470         }
1471         if (ndr_flags & NDR_BUFFERS) {
1472         }
1473         return NDR_ERR_SUCCESS;
1474 }
1475
1476 _PUBLIC_ void ndr_print_USER_INFO_1011(struct ndr_print *ndr, const char *name, const struct USER_INFO_1011 *r)
1477 {
1478         ndr_print_struct(ndr, name, "USER_INFO_1011");
1479         ndr->depth++;
1480         ndr_print_string(ndr, "usri1011_full_name", r->usri1011_full_name);
1481         ndr->depth--;
1482 }
1483
1484 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1012(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1012 *r)
1485 {
1486         if (ndr_flags & NDR_SCALARS) {
1487                 NDR_CHECK(ndr_push_align(ndr, 4));
1488                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1012_usr_comment));
1489         }
1490         if (ndr_flags & NDR_BUFFERS) {
1491         }
1492         return NDR_ERR_SUCCESS;
1493 }
1494
1495 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1012(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1012 *r)
1496 {
1497         if (ndr_flags & NDR_SCALARS) {
1498                 NDR_CHECK(ndr_pull_align(ndr, 4));
1499                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1012_usr_comment));
1500         }
1501         if (ndr_flags & NDR_BUFFERS) {
1502         }
1503         return NDR_ERR_SUCCESS;
1504 }
1505
1506 _PUBLIC_ void ndr_print_USER_INFO_1012(struct ndr_print *ndr, const char *name, const struct USER_INFO_1012 *r)
1507 {
1508         ndr_print_struct(ndr, name, "USER_INFO_1012");
1509         ndr->depth++;
1510         ndr_print_string(ndr, "usri1012_usr_comment", r->usri1012_usr_comment);
1511         ndr->depth--;
1512 }
1513
1514 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1013(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1013 *r)
1515 {
1516         if (ndr_flags & NDR_SCALARS) {
1517                 NDR_CHECK(ndr_push_align(ndr, 4));
1518                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1013_parms));
1519         }
1520         if (ndr_flags & NDR_BUFFERS) {
1521         }
1522         return NDR_ERR_SUCCESS;
1523 }
1524
1525 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1013(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1013 *r)
1526 {
1527         if (ndr_flags & NDR_SCALARS) {
1528                 NDR_CHECK(ndr_pull_align(ndr, 4));
1529                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1013_parms));
1530         }
1531         if (ndr_flags & NDR_BUFFERS) {
1532         }
1533         return NDR_ERR_SUCCESS;
1534 }
1535
1536 _PUBLIC_ void ndr_print_USER_INFO_1013(struct ndr_print *ndr, const char *name, const struct USER_INFO_1013 *r)
1537 {
1538         ndr_print_struct(ndr, name, "USER_INFO_1013");
1539         ndr->depth++;
1540         ndr_print_string(ndr, "usri1013_parms", r->usri1013_parms);
1541         ndr->depth--;
1542 }
1543
1544 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1014(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1014 *r)
1545 {
1546         if (ndr_flags & NDR_SCALARS) {
1547                 NDR_CHECK(ndr_push_align(ndr, 4));
1548                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1014_workstations));
1549         }
1550         if (ndr_flags & NDR_BUFFERS) {
1551         }
1552         return NDR_ERR_SUCCESS;
1553 }
1554
1555 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1014(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1014 *r)
1556 {
1557         if (ndr_flags & NDR_SCALARS) {
1558                 NDR_CHECK(ndr_pull_align(ndr, 4));
1559                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1014_workstations));
1560         }
1561         if (ndr_flags & NDR_BUFFERS) {
1562         }
1563         return NDR_ERR_SUCCESS;
1564 }
1565
1566 _PUBLIC_ void ndr_print_USER_INFO_1014(struct ndr_print *ndr, const char *name, const struct USER_INFO_1014 *r)
1567 {
1568         ndr_print_struct(ndr, name, "USER_INFO_1014");
1569         ndr->depth++;
1570         ndr_print_string(ndr, "usri1014_workstations", r->usri1014_workstations);
1571         ndr->depth--;
1572 }
1573
1574 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1017(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1017 *r)
1575 {
1576         if (ndr_flags & NDR_SCALARS) {
1577                 NDR_CHECK(ndr_push_align(ndr, 4));
1578                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1017_acct_expires));
1579         }
1580         if (ndr_flags & NDR_BUFFERS) {
1581         }
1582         return NDR_ERR_SUCCESS;
1583 }
1584
1585 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1017(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1017 *r)
1586 {
1587         if (ndr_flags & NDR_SCALARS) {
1588                 NDR_CHECK(ndr_pull_align(ndr, 4));
1589                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1017_acct_expires));
1590         }
1591         if (ndr_flags & NDR_BUFFERS) {
1592         }
1593         return NDR_ERR_SUCCESS;
1594 }
1595
1596 _PUBLIC_ void ndr_print_USER_INFO_1017(struct ndr_print *ndr, const char *name, const struct USER_INFO_1017 *r)
1597 {
1598         ndr_print_struct(ndr, name, "USER_INFO_1017");
1599         ndr->depth++;
1600         ndr_print_uint32(ndr, "usri1017_acct_expires", r->usri1017_acct_expires);
1601         ndr->depth--;
1602 }
1603
1604 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1018(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1018 *r)
1605 {
1606         if (ndr_flags & NDR_SCALARS) {
1607                 NDR_CHECK(ndr_push_align(ndr, 4));
1608                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1018_max_storage));
1609         }
1610         if (ndr_flags & NDR_BUFFERS) {
1611         }
1612         return NDR_ERR_SUCCESS;
1613 }
1614
1615 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1018(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1018 *r)
1616 {
1617         if (ndr_flags & NDR_SCALARS) {
1618                 NDR_CHECK(ndr_pull_align(ndr, 4));
1619                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1018_max_storage));
1620         }
1621         if (ndr_flags & NDR_BUFFERS) {
1622         }
1623         return NDR_ERR_SUCCESS;
1624 }
1625
1626 _PUBLIC_ void ndr_print_USER_INFO_1018(struct ndr_print *ndr, const char *name, const struct USER_INFO_1018 *r)
1627 {
1628         ndr_print_struct(ndr, name, "USER_INFO_1018");
1629         ndr->depth++;
1630         ndr_print_uint32(ndr, "usri1018_max_storage", r->usri1018_max_storage);
1631         ndr->depth--;
1632 }
1633
1634 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1020(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1020 *r)
1635 {
1636         if (ndr_flags & NDR_SCALARS) {
1637                 NDR_CHECK(ndr_push_align(ndr, 4));
1638                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1020_units_per_week));
1639                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri1020_logon_hours));
1640         }
1641         if (ndr_flags & NDR_BUFFERS) {
1642                 if (r->usri1020_logon_hours) {
1643                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri1020_logon_hours));
1644                 }
1645         }
1646         return NDR_ERR_SUCCESS;
1647 }
1648
1649 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1020(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1020 *r)
1650 {
1651         uint32_t _ptr_usri1020_logon_hours;
1652         TALLOC_CTX *_mem_save_usri1020_logon_hours_0;
1653         if (ndr_flags & NDR_SCALARS) {
1654                 NDR_CHECK(ndr_pull_align(ndr, 4));
1655                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1020_units_per_week));
1656                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri1020_logon_hours));
1657                 if (_ptr_usri1020_logon_hours) {
1658                         NDR_PULL_ALLOC(ndr, r->usri1020_logon_hours);
1659                 } else {
1660                         r->usri1020_logon_hours = NULL;
1661                 }
1662         }
1663         if (ndr_flags & NDR_BUFFERS) {
1664                 if (r->usri1020_logon_hours) {
1665                         _mem_save_usri1020_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1666                         NDR_PULL_SET_MEM_CTX(ndr, r->usri1020_logon_hours, 0);
1667                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri1020_logon_hours));
1668                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri1020_logon_hours_0, 0);
1669                 }
1670         }
1671         return NDR_ERR_SUCCESS;
1672 }
1673
1674 _PUBLIC_ void ndr_print_USER_INFO_1020(struct ndr_print *ndr, const char *name, const struct USER_INFO_1020 *r)
1675 {
1676         ndr_print_struct(ndr, name, "USER_INFO_1020");
1677         ndr->depth++;
1678         ndr_print_uint32(ndr, "usri1020_units_per_week", r->usri1020_units_per_week);
1679         ndr_print_ptr(ndr, "usri1020_logon_hours", r->usri1020_logon_hours);
1680         ndr->depth++;
1681         if (r->usri1020_logon_hours) {
1682                 ndr_print_uint8(ndr, "usri1020_logon_hours", *r->usri1020_logon_hours);
1683         }
1684         ndr->depth--;
1685         ndr->depth--;
1686 }
1687
1688 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1023(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1023 *r)
1689 {
1690         if (ndr_flags & NDR_SCALARS) {
1691                 NDR_CHECK(ndr_push_align(ndr, 4));
1692                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1023_logon_server));
1693         }
1694         if (ndr_flags & NDR_BUFFERS) {
1695         }
1696         return NDR_ERR_SUCCESS;
1697 }
1698
1699 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1023(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1023 *r)
1700 {
1701         if (ndr_flags & NDR_SCALARS) {
1702                 NDR_CHECK(ndr_pull_align(ndr, 4));
1703                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1023_logon_server));
1704         }
1705         if (ndr_flags & NDR_BUFFERS) {
1706         }
1707         return NDR_ERR_SUCCESS;
1708 }
1709
1710 _PUBLIC_ void ndr_print_USER_INFO_1023(struct ndr_print *ndr, const char *name, const struct USER_INFO_1023 *r)
1711 {
1712         ndr_print_struct(ndr, name, "USER_INFO_1023");
1713         ndr->depth++;
1714         ndr_print_string(ndr, "usri1023_logon_server", r->usri1023_logon_server);
1715         ndr->depth--;
1716 }
1717
1718 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1024(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1024 *r)
1719 {
1720         if (ndr_flags & NDR_SCALARS) {
1721                 NDR_CHECK(ndr_push_align(ndr, 4));
1722                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1024_country_code));
1723         }
1724         if (ndr_flags & NDR_BUFFERS) {
1725         }
1726         return NDR_ERR_SUCCESS;
1727 }
1728
1729 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1024(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1024 *r)
1730 {
1731         if (ndr_flags & NDR_SCALARS) {
1732                 NDR_CHECK(ndr_pull_align(ndr, 4));
1733                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1024_country_code));
1734         }
1735         if (ndr_flags & NDR_BUFFERS) {
1736         }
1737         return NDR_ERR_SUCCESS;
1738 }
1739
1740 _PUBLIC_ void ndr_print_USER_INFO_1024(struct ndr_print *ndr, const char *name, const struct USER_INFO_1024 *r)
1741 {
1742         ndr_print_struct(ndr, name, "USER_INFO_1024");
1743         ndr->depth++;
1744         ndr_print_uint32(ndr, "usri1024_country_code", r->usri1024_country_code);
1745         ndr->depth--;
1746 }
1747
1748 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1025(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1025 *r)
1749 {
1750         if (ndr_flags & NDR_SCALARS) {
1751                 NDR_CHECK(ndr_push_align(ndr, 4));
1752                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1025_code_page));
1753         }
1754         if (ndr_flags & NDR_BUFFERS) {
1755         }
1756         return NDR_ERR_SUCCESS;
1757 }
1758
1759 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1025(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1025 *r)
1760 {
1761         if (ndr_flags & NDR_SCALARS) {
1762                 NDR_CHECK(ndr_pull_align(ndr, 4));
1763                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1025_code_page));
1764         }
1765         if (ndr_flags & NDR_BUFFERS) {
1766         }
1767         return NDR_ERR_SUCCESS;
1768 }
1769
1770 _PUBLIC_ void ndr_print_USER_INFO_1025(struct ndr_print *ndr, const char *name, const struct USER_INFO_1025 *r)
1771 {
1772         ndr_print_struct(ndr, name, "USER_INFO_1025");
1773         ndr->depth++;
1774         ndr_print_uint32(ndr, "usri1025_code_page", r->usri1025_code_page);
1775         ndr->depth--;
1776 }
1777
1778 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1051(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1051 *r)
1779 {
1780         if (ndr_flags & NDR_SCALARS) {
1781                 NDR_CHECK(ndr_push_align(ndr, 4));
1782                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1051_primary_group_id));
1783         }
1784         if (ndr_flags & NDR_BUFFERS) {
1785         }
1786         return NDR_ERR_SUCCESS;
1787 }
1788
1789 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1051(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1051 *r)
1790 {
1791         if (ndr_flags & NDR_SCALARS) {
1792                 NDR_CHECK(ndr_pull_align(ndr, 4));
1793                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1051_primary_group_id));
1794         }
1795         if (ndr_flags & NDR_BUFFERS) {
1796         }
1797         return NDR_ERR_SUCCESS;
1798 }
1799
1800 _PUBLIC_ void ndr_print_USER_INFO_1051(struct ndr_print *ndr, const char *name, const struct USER_INFO_1051 *r)
1801 {
1802         ndr_print_struct(ndr, name, "USER_INFO_1051");
1803         ndr->depth++;
1804         ndr_print_uint32(ndr, "usri1051_primary_group_id", r->usri1051_primary_group_id);
1805         ndr->depth--;
1806 }
1807
1808 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1052(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1052 *r)
1809 {
1810         if (ndr_flags & NDR_SCALARS) {
1811                 NDR_CHECK(ndr_push_align(ndr, 4));
1812                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1052_profile));
1813         }
1814         if (ndr_flags & NDR_BUFFERS) {
1815         }
1816         return NDR_ERR_SUCCESS;
1817 }
1818
1819 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1052(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1052 *r)
1820 {
1821         if (ndr_flags & NDR_SCALARS) {
1822                 NDR_CHECK(ndr_pull_align(ndr, 4));
1823                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1052_profile));
1824         }
1825         if (ndr_flags & NDR_BUFFERS) {
1826         }
1827         return NDR_ERR_SUCCESS;
1828 }
1829
1830 _PUBLIC_ void ndr_print_USER_INFO_1052(struct ndr_print *ndr, const char *name, const struct USER_INFO_1052 *r)
1831 {
1832         ndr_print_struct(ndr, name, "USER_INFO_1052");
1833         ndr->depth++;
1834         ndr_print_string(ndr, "usri1052_profile", r->usri1052_profile);
1835         ndr->depth--;
1836 }
1837
1838 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1053(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1053 *r)
1839 {
1840         if (ndr_flags & NDR_SCALARS) {
1841                 NDR_CHECK(ndr_push_align(ndr, 4));
1842                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1053_home_dir_drive));
1843         }
1844         if (ndr_flags & NDR_BUFFERS) {
1845         }
1846         return NDR_ERR_SUCCESS;
1847 }
1848
1849 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1053(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1053 *r)
1850 {
1851         if (ndr_flags & NDR_SCALARS) {
1852                 NDR_CHECK(ndr_pull_align(ndr, 4));
1853                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1053_home_dir_drive));
1854         }
1855         if (ndr_flags & NDR_BUFFERS) {
1856         }
1857         return NDR_ERR_SUCCESS;
1858 }
1859
1860 _PUBLIC_ void ndr_print_USER_INFO_1053(struct ndr_print *ndr, const char *name, const struct USER_INFO_1053 *r)
1861 {
1862         ndr_print_struct(ndr, name, "USER_INFO_1053");
1863         ndr->depth++;
1864         ndr_print_string(ndr, "usri1053_home_dir_drive", r->usri1053_home_dir_drive);
1865         ndr->depth--;
1866 }
1867
1868 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_X *r)
1869 {
1870         if (ndr_flags & NDR_SCALARS) {
1871                 NDR_CHECK(ndr_push_align(ndr, 4));
1872                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_name));
1873                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_password));
1874                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_password_age));
1875                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_priv));
1876                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir));
1877                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_comment));
1878                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_flags));
1879                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_script_path));
1880                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_auth_flags));
1881                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_full_name));
1882                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_usr_comment));
1883                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_parms));
1884                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_workstations));
1885                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logon));
1886                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logoff));
1887                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_acct_expires));
1888                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_max_storage));
1889                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_units_per_week));
1890                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usriX_logon_hours));
1891                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_bad_pw_count));
1892                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_num_logons));
1893                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_logon_server));
1894                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_country_code));
1895                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_code_page));
1896                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_profile));
1897                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir_drive));
1898                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_user_id));
1899                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_primary_group_id));
1900                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_password_expired));
1901         }
1902         if (ndr_flags & NDR_BUFFERS) {
1903                 if (r->usriX_logon_hours) {
1904                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usriX_logon_hours));
1905                 }
1906         }
1907         return NDR_ERR_SUCCESS;
1908 }
1909
1910 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_X *r)
1911 {
1912         uint32_t _ptr_usriX_logon_hours;
1913         TALLOC_CTX *_mem_save_usriX_logon_hours_0;
1914         if (ndr_flags & NDR_SCALARS) {
1915                 NDR_CHECK(ndr_pull_align(ndr, 4));
1916                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_name));
1917                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_password));
1918                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_age));
1919                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_priv));
1920                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir));
1921                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_comment));
1922                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_flags));
1923                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_script_path));
1924                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_auth_flags));
1925                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_full_name));
1926                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_usr_comment));
1927                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_parms));
1928                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_workstations));
1929                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logon));
1930                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logoff));
1931                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_acct_expires));
1932                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_max_storage));
1933                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_units_per_week));
1934                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usriX_logon_hours));
1935                 if (_ptr_usriX_logon_hours) {
1936                         NDR_PULL_ALLOC(ndr, r->usriX_logon_hours);
1937                 } else {
1938                         r->usriX_logon_hours = NULL;
1939                 }
1940                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_bad_pw_count));
1941                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_num_logons));
1942                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server));
1943                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code));
1944                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page));
1945                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_profile));
1946                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir_drive));
1947                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_user_id));
1948                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_primary_group_id));
1949                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_expired));
1950         }
1951         if (ndr_flags & NDR_BUFFERS) {
1952                 if (r->usriX_logon_hours) {
1953                         _mem_save_usriX_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1954                         NDR_PULL_SET_MEM_CTX(ndr, r->usriX_logon_hours, 0);
1955                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usriX_logon_hours));
1956                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usriX_logon_hours_0, 0);
1957                 }
1958         }
1959         return NDR_ERR_SUCCESS;
1960 }
1961
1962 _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, const struct USER_INFO_X *r)
1963 {
1964         ndr_print_struct(ndr, name, "USER_INFO_X");
1965         ndr->depth++;
1966         ndr_print_string(ndr, "usriX_name", r->usriX_name);
1967         ndr_print_string(ndr, "usriX_password", r->usriX_password);
1968         ndr_print_uint32(ndr, "usriX_password_age", r->usriX_password_age);
1969         ndr_print_uint32(ndr, "usriX_priv", r->usriX_priv);
1970         ndr_print_string(ndr, "usriX_home_dir", r->usriX_home_dir);
1971         ndr_print_string(ndr, "usriX_comment", r->usriX_comment);
1972         ndr_print_uint32(ndr, "usriX_flags", r->usriX_flags);
1973         ndr_print_string(ndr, "usriX_script_path", r->usriX_script_path);
1974         ndr_print_uint32(ndr, "usriX_auth_flags", r->usriX_auth_flags);
1975         ndr_print_string(ndr, "usriX_full_name", r->usriX_full_name);
1976         ndr_print_string(ndr, "usriX_usr_comment", r->usriX_usr_comment);
1977         ndr_print_string(ndr, "usriX_parms", r->usriX_parms);
1978         ndr_print_string(ndr, "usriX_workstations", r->usriX_workstations);
1979         ndr_print_uint32(ndr, "usriX_last_logon", r->usriX_last_logon);
1980         ndr_print_uint32(ndr, "usriX_last_logoff", r->usriX_last_logoff);
1981         ndr_print_uint32(ndr, "usriX_acct_expires", r->usriX_acct_expires);
1982         ndr_print_uint32(ndr, "usriX_max_storage", r->usriX_max_storage);
1983         ndr_print_uint32(ndr, "usriX_units_per_week", r->usriX_units_per_week);
1984         ndr_print_ptr(ndr, "usriX_logon_hours", r->usriX_logon_hours);
1985         ndr->depth++;
1986         if (r->usriX_logon_hours) {
1987                 ndr_print_uint8(ndr, "usriX_logon_hours", *r->usriX_logon_hours);
1988         }
1989         ndr->depth--;
1990         ndr_print_uint32(ndr, "usriX_bad_pw_count", r->usriX_bad_pw_count);
1991         ndr_print_uint32(ndr, "usriX_num_logons", r->usriX_num_logons);
1992         ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server);
1993         ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code);
1994         ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page);
1995         ndr_print_string(ndr, "usriX_profile", r->usriX_profile);
1996         ndr_print_string(ndr, "usriX_home_dir_drive", r->usriX_home_dir_drive);
1997         ndr_print_uint32(ndr, "usriX_user_id", r->usriX_user_id);
1998         ndr_print_uint32(ndr, "usriX_primary_group_id", r->usriX_primary_group_id);
1999         ndr_print_uint32(ndr, "usriX_password_expired", r->usriX_password_expired);
2000         ndr->depth--;
2001 }
2002
2003 _PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_0 *r)
2004 {
2005         if (ndr_flags & NDR_SCALARS) {
2006                 NDR_CHECK(ndr_push_align(ndr, 4));
2007                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name));
2008         }
2009         if (ndr_flags & NDR_BUFFERS) {
2010         }
2011         return NDR_ERR_SUCCESS;
2012 }
2013
2014 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r)
2015 {
2016         if (ndr_flags & NDR_SCALARS) {
2017                 NDR_CHECK(ndr_pull_align(ndr, 4));
2018                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name));
2019         }
2020         if (ndr_flags & NDR_BUFFERS) {
2021         }
2022         return NDR_ERR_SUCCESS;
2023 }
2024
2025 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r)
2026 {
2027         ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0");
2028         ndr->depth++;
2029         ndr_print_string(ndr, "grui0_name", r->grui0_name);
2030         ndr->depth--;
2031 }
2032
2033 _PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_1 *r)
2034 {
2035         if (ndr_flags & NDR_SCALARS) {
2036                 NDR_CHECK(ndr_push_align(ndr, 4));
2037                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name));
2038                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes));
2039         }
2040         if (ndr_flags & NDR_BUFFERS) {
2041         }
2042         return NDR_ERR_SUCCESS;
2043 }
2044
2045 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r)
2046 {
2047         if (ndr_flags & NDR_SCALARS) {
2048                 NDR_CHECK(ndr_pull_align(ndr, 4));
2049                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name));
2050                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes));
2051         }
2052         if (ndr_flags & NDR_BUFFERS) {
2053         }
2054         return NDR_ERR_SUCCESS;
2055 }
2056
2057 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r)
2058 {
2059         ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1");
2060         ndr->depth++;
2061         ndr_print_string(ndr, "grui1_name", r->grui1_name);
2062         ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes);
2063         ndr->depth--;
2064 }
2065
2066 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
2067 {
2068         if (ndr_flags & NDR_SCALARS) {
2069                 NDR_CHECK(ndr_push_align(ndr, 4));
2070                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
2071                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
2072                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
2073                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
2074                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
2075                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
2076         }
2077         if (ndr_flags & NDR_BUFFERS) {
2078         }
2079         return NDR_ERR_SUCCESS;
2080 }
2081
2082 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
2083 {
2084         if (ndr_flags & NDR_SCALARS) {
2085                 NDR_CHECK(ndr_pull_align(ndr, 4));
2086                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
2087                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
2088                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
2089                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
2090                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
2091                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
2092         }
2093         if (ndr_flags & NDR_BUFFERS) {
2094         }
2095         return NDR_ERR_SUCCESS;
2096 }
2097
2098 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
2099 {
2100         ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
2101         ndr->depth++;
2102         ndr_print_string(ndr, "usri1_name", r->usri1_name);
2103         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
2104         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
2105         ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
2106         ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
2107         ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
2108         ndr->depth--;
2109 }
2110
2111 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
2112 {
2113         if (ndr_flags & NDR_SCALARS) {
2114                 NDR_CHECK(ndr_push_align(ndr, 4));
2115                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
2116                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
2117                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
2118                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
2119                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
2120         }
2121         if (ndr_flags & NDR_BUFFERS) {
2122         }
2123         return NDR_ERR_SUCCESS;
2124 }
2125
2126 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
2127 {
2128         if (ndr_flags & NDR_SCALARS) {
2129                 NDR_CHECK(ndr_pull_align(ndr, 4));
2130                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
2131                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
2132                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
2133                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
2134                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
2135         }
2136         if (ndr_flags & NDR_BUFFERS) {
2137         }
2138         return NDR_ERR_SUCCESS;
2139 }
2140
2141 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
2142 {
2143         ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
2144         ndr->depth++;
2145         ndr_print_string(ndr, "usri2_name", r->usri2_name);
2146         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
2147         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
2148         ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
2149         ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
2150         ndr->depth--;
2151 }
2152
2153 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
2154 {
2155         if (ndr_flags & NDR_SCALARS) {
2156                 NDR_CHECK(ndr_push_align(ndr, 4));
2157                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
2158                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
2159                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
2160                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
2161                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
2162         }
2163         if (ndr_flags & NDR_BUFFERS) {
2164         }
2165         return NDR_ERR_SUCCESS;
2166 }
2167
2168 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
2169 {
2170         if (ndr_flags & NDR_SCALARS) {
2171                 NDR_CHECK(ndr_pull_align(ndr, 4));
2172                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
2173                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
2174                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
2175                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
2176                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
2177         }
2178         if (ndr_flags & NDR_BUFFERS) {
2179         }
2180         return NDR_ERR_SUCCESS;
2181 }
2182
2183 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
2184 {
2185         ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
2186         ndr->depth++;
2187         ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
2188         ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
2189         ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
2190         ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
2191         ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
2192         ndr->depth--;
2193 }
2194
2195 _PUBLIC_ enum ndr_err_code ndr_push_SHARE_INFO_1005_FLAGS(struct ndr_push *ndr, int ndr_flags, uint32_t r)
2196 {
2197         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
2198         return NDR_ERR_SUCCESS;
2199 }
2200
2201 _PUBLIC_ enum ndr_err_code ndr_pull_SHARE_INFO_1005_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
2202 {
2203         uint32_t v;
2204         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
2205         *r = v;
2206         return NDR_ERR_SUCCESS;
2207 }
2208
2209 _PUBLIC_ void ndr_print_SHARE_INFO_1005_FLAGS(struct ndr_print *ndr, const char *name, uint32_t r)
2210 {
2211         ndr_print_uint32(ndr, name, r);
2212         ndr->depth++;
2213         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS", SHI1005_FLAGS_DFS, r);
2214         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS_ROOT", SHI1005_FLAGS_DFS_ROOT, r);
2215         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_MANUAL_REINT", CSC_CACHE_MANUAL_REINT, r);
2216         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_AUTO_REINT", CSC_CACHE_AUTO_REINT, r);
2217         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_VDO", CSC_CACHE_VDO, r);
2218         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_NONE", CSC_CACHE_NONE, r);
2219         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS", SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS, r);
2220         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_FORCE_SHARED_DELETE", SHI1005_FLAGS_FORCE_SHARED_DELETE, r);
2221         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING", SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING, r);
2222         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM", SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM, r);
2223         ndr->depth--;
2224 }
2225
2226 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
2227 {
2228         ndr_print_struct(ndr, name, "NetJoinDomain");
2229         ndr->depth++;
2230         if (flags & NDR_SET_VALUES) {
2231                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2232         }
2233         if (flags & NDR_IN) {
2234                 ndr_print_struct(ndr, "in", "NetJoinDomain");
2235                 ndr->depth++;
2236                 ndr_print_ptr(ndr, "server", r->in.server);
2237                 ndr->depth++;
2238                 if (r->in.server) {
2239                         ndr_print_string(ndr, "server", r->in.server);
2240                 }
2241                 ndr->depth--;
2242                 ndr_print_ptr(ndr, "domain", r->in.domain);
2243                 ndr->depth++;
2244                 ndr_print_string(ndr, "domain", r->in.domain);
2245                 ndr->depth--;
2246                 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
2247                 ndr->depth++;
2248                 if (r->in.account_ou) {
2249                         ndr_print_string(ndr, "account_ou", r->in.account_ou);
2250                 }
2251                 ndr->depth--;
2252                 ndr_print_ptr(ndr, "account", r->in.account);
2253                 ndr->depth++;
2254                 if (r->in.account) {
2255                         ndr_print_string(ndr, "account", r->in.account);
2256                 }
2257                 ndr->depth--;
2258                 ndr_print_ptr(ndr, "password", r->in.password);
2259                 ndr->depth++;
2260                 if (r->in.password) {
2261                         ndr_print_string(ndr, "password", r->in.password);
2262                 }
2263                 ndr->depth--;
2264                 ndr_print_NetJoinFlags(ndr, "join_flags", r->in.join_flags);
2265                 ndr->depth--;
2266         }
2267         if (flags & NDR_OUT) {
2268                 ndr_print_struct(ndr, "out", "NetJoinDomain");
2269                 ndr->depth++;
2270                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2271                 ndr->depth--;
2272         }
2273         ndr->depth--;
2274 }
2275
2276 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
2277 {
2278         ndr_print_struct(ndr, name, "NetUnjoinDomain");
2279         ndr->depth++;
2280         if (flags & NDR_SET_VALUES) {
2281                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2282         }
2283         if (flags & NDR_IN) {
2284                 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
2285                 ndr->depth++;
2286                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2287                 ndr->depth++;
2288                 if (r->in.server_name) {
2289                         ndr_print_string(ndr, "server_name", r->in.server_name);
2290                 }
2291                 ndr->depth--;
2292                 ndr_print_ptr(ndr, "account", r->in.account);
2293                 ndr->depth++;
2294                 if (r->in.account) {
2295                         ndr_print_string(ndr, "account", r->in.account);
2296                 }
2297                 ndr->depth--;
2298                 ndr_print_ptr(ndr, "password", r->in.password);
2299                 ndr->depth++;
2300                 if (r->in.password) {
2301                         ndr_print_string(ndr, "password", r->in.password);
2302                 }
2303                 ndr->depth--;
2304                 ndr_print_NetJoinFlags(ndr, "unjoin_flags", r->in.unjoin_flags);
2305                 ndr->depth--;
2306         }
2307         if (flags & NDR_OUT) {
2308                 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
2309                 ndr->depth++;
2310                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2311                 ndr->depth--;
2312         }
2313         ndr->depth--;
2314 }
2315
2316 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
2317 {
2318         ndr_print_struct(ndr, name, "NetGetJoinInformation");
2319         ndr->depth++;
2320         if (flags & NDR_SET_VALUES) {
2321                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2322         }
2323         if (flags & NDR_IN) {
2324                 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
2325                 ndr->depth++;
2326                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2327                 ndr->depth++;
2328                 if (r->in.server_name) {
2329                         ndr_print_string(ndr, "server_name", r->in.server_name);
2330                 }
2331                 ndr->depth--;
2332                 ndr->depth--;
2333         }
2334         if (flags & NDR_OUT) {
2335                 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
2336                 ndr->depth++;
2337                 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
2338                 ndr->depth++;
2339                 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
2340                 ndr->depth++;
2341                 if (*r->out.name_buffer) {
2342                         ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
2343                 }
2344                 ndr->depth--;
2345                 ndr->depth--;
2346                 ndr_print_ptr(ndr, "name_type", r->out.name_type);
2347                 ndr->depth++;
2348                 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
2349                 ndr->depth--;
2350                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2351                 ndr->depth--;
2352         }
2353         ndr->depth--;
2354 }
2355
2356 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
2357 {
2358         ndr_print_struct(ndr, name, "NetGetJoinableOUs");
2359         ndr->depth++;
2360         if (flags & NDR_SET_VALUES) {
2361                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2362         }
2363         if (flags & NDR_IN) {
2364                 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
2365                 ndr->depth++;
2366                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2367                 ndr->depth++;
2368                 if (r->in.server_name) {
2369                         ndr_print_string(ndr, "server_name", r->in.server_name);
2370                 }
2371                 ndr->depth--;
2372                 ndr_print_ptr(ndr, "domain", r->in.domain);
2373                 ndr->depth++;
2374                 ndr_print_string(ndr, "domain", r->in.domain);
2375                 ndr->depth--;
2376                 ndr_print_ptr(ndr, "account", r->in.account);
2377                 ndr->depth++;
2378                 if (r->in.account) {
2379                         ndr_print_string(ndr, "account", r->in.account);
2380                 }
2381                 ndr->depth--;
2382                 ndr_print_ptr(ndr, "password", r->in.password);
2383                 ndr->depth++;
2384                 if (r->in.password) {
2385                         ndr_print_string(ndr, "password", r->in.password);
2386                 }
2387                 ndr->depth--;
2388                 ndr->depth--;
2389         }
2390         if (flags & NDR_OUT) {
2391                 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
2392                 ndr->depth++;
2393                 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
2394                 ndr->depth++;
2395                 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
2396                 ndr->depth--;
2397                 ndr_print_ptr(ndr, "ous", r->out.ous);
2398                 ndr->depth++;
2399                 ndr_print_ptr(ndr, "ous", *r->out.ous);
2400                 ndr->depth++;
2401                 if (*r->out.ous) {
2402                         ndr_print_ptr(ndr, "ous", **r->out.ous);
2403                         ndr->depth++;
2404                         if (**r->out.ous) {
2405                                 ndr_print_string(ndr, "ous", **r->out.ous);
2406                         }
2407                         ndr->depth--;
2408                 }
2409                 ndr->depth--;
2410                 ndr->depth--;
2411                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2412                 ndr->depth--;
2413         }
2414         ndr->depth--;
2415 }
2416
2417 _PUBLIC_ void ndr_print_NetRenameMachineInDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetRenameMachineInDomain *r)
2418 {
2419         ndr_print_struct(ndr, name, "NetRenameMachineInDomain");
2420         ndr->depth++;
2421         if (flags & NDR_SET_VALUES) {
2422                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2423         }
2424         if (flags & NDR_IN) {
2425                 ndr_print_struct(ndr, "in", "NetRenameMachineInDomain");
2426                 ndr->depth++;
2427                 ndr_print_string(ndr, "server_name", r->in.server_name);
2428                 ndr_print_string(ndr, "new_machine_name", r->in.new_machine_name);
2429                 ndr_print_string(ndr, "account", r->in.account);
2430                 ndr_print_string(ndr, "password", r->in.password);
2431                 ndr_print_uint32(ndr, "rename_options", r->in.rename_options);
2432                 ndr->depth--;
2433         }
2434         if (flags & NDR_OUT) {
2435                 ndr_print_struct(ndr, "out", "NetRenameMachineInDomain");
2436                 ndr->depth++;
2437                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2438                 ndr->depth--;
2439         }
2440         ndr->depth--;
2441 }
2442
2443 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
2444 {
2445         ndr_print_struct(ndr, name, "NetServerGetInfo");
2446         ndr->depth++;
2447         if (flags & NDR_SET_VALUES) {
2448                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2449         }
2450         if (flags & NDR_IN) {
2451                 ndr_print_struct(ndr, "in", "NetServerGetInfo");
2452                 ndr->depth++;
2453                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2454                 ndr->depth++;
2455                 if (r->in.server_name) {
2456                         ndr_print_string(ndr, "server_name", r->in.server_name);
2457                 }
2458                 ndr->depth--;
2459                 ndr_print_uint32(ndr, "level", r->in.level);
2460                 ndr->depth--;
2461         }
2462         if (flags & NDR_OUT) {
2463                 ndr_print_struct(ndr, "out", "NetServerGetInfo");
2464                 ndr->depth++;
2465                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2466                 ndr->depth++;
2467                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2468                 ndr->depth++;
2469                 if (*r->out.buffer) {
2470                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2471                 }
2472                 ndr->depth--;
2473                 ndr->depth--;
2474                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2475                 ndr->depth--;
2476         }
2477         ndr->depth--;
2478 }
2479
2480 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
2481 {
2482         ndr_print_struct(ndr, name, "NetServerSetInfo");
2483         ndr->depth++;
2484         if (flags & NDR_SET_VALUES) {
2485                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2486         }
2487         if (flags & NDR_IN) {
2488                 ndr_print_struct(ndr, "in", "NetServerSetInfo");
2489                 ndr->depth++;
2490                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2491                 ndr->depth++;
2492                 if (r->in.server_name) {
2493                         ndr_print_string(ndr, "server_name", r->in.server_name);
2494                 }
2495                 ndr->depth--;
2496                 ndr_print_uint32(ndr, "level", r->in.level);
2497                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2498                 ndr->depth++;
2499                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2500                 ndr->depth--;
2501                 ndr->depth--;
2502         }
2503         if (flags & NDR_OUT) {
2504                 ndr_print_struct(ndr, "out", "NetServerSetInfo");
2505                 ndr->depth++;
2506                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2507                 ndr->depth++;
2508                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2509                 ndr->depth--;
2510                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2511                 ndr->depth--;
2512         }
2513         ndr->depth--;
2514 }
2515
2516 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
2517 {
2518         ndr_print_struct(ndr, name, "NetGetDCName");
2519         ndr->depth++;
2520         if (flags & NDR_SET_VALUES) {
2521                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2522         }
2523         if (flags & NDR_IN) {
2524                 ndr_print_struct(ndr, "in", "NetGetDCName");
2525                 ndr->depth++;
2526                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2527                 ndr->depth++;
2528                 if (r->in.server_name) {
2529                         ndr_print_string(ndr, "server_name", r->in.server_name);
2530                 }
2531                 ndr->depth--;
2532                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2533                 ndr->depth++;
2534                 if (r->in.domain_name) {
2535                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2536                 }
2537                 ndr->depth--;
2538                 ndr->depth--;
2539         }
2540         if (flags & NDR_OUT) {
2541                 ndr_print_struct(ndr, "out", "NetGetDCName");
2542                 ndr->depth++;
2543                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2544                 ndr->depth++;
2545                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2546                 ndr->depth++;
2547                 if (*r->out.buffer) {
2548                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2549                 }
2550                 ndr->depth--;
2551                 ndr->depth--;
2552                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2553                 ndr->depth--;
2554         }
2555         ndr->depth--;
2556 }
2557
2558 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
2559 {
2560         ndr_print_struct(ndr, name, "NetGetAnyDCName");
2561         ndr->depth++;
2562         if (flags & NDR_SET_VALUES) {
2563                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2564         }
2565         if (flags & NDR_IN) {
2566                 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
2567                 ndr->depth++;
2568                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2569                 ndr->depth++;
2570                 if (r->in.server_name) {
2571                         ndr_print_string(ndr, "server_name", r->in.server_name);
2572                 }
2573                 ndr->depth--;
2574                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2575                 ndr->depth++;
2576                 if (r->in.domain_name) {
2577                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2578                 }
2579                 ndr->depth--;
2580                 ndr->depth--;
2581         }
2582         if (flags & NDR_OUT) {
2583                 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
2584                 ndr->depth++;
2585                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2586                 ndr->depth++;
2587                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2588                 ndr->depth++;
2589                 if (*r->out.buffer) {
2590                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2591                 }
2592                 ndr->depth--;
2593                 ndr->depth--;
2594                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2595                 ndr->depth--;
2596         }
2597         ndr->depth--;
2598 }
2599
2600 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
2601 {
2602         ndr_print_struct(ndr, name, "DsGetDcName");
2603         ndr->depth++;
2604         if (flags & NDR_SET_VALUES) {
2605                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2606         }
2607         if (flags & NDR_IN) {
2608                 ndr_print_struct(ndr, "in", "DsGetDcName");
2609                 ndr->depth++;
2610                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2611                 ndr->depth++;
2612                 if (r->in.server_name) {
2613                         ndr_print_string(ndr, "server_name", r->in.server_name);
2614                 }
2615                 ndr->depth--;
2616                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2617                 ndr->depth++;
2618                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2619                 ndr->depth--;
2620                 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
2621                 ndr->depth++;
2622                 if (r->in.domain_guid) {
2623                         ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
2624                 }
2625                 ndr->depth--;
2626                 ndr_print_ptr(ndr, "site_name", r->in.site_name);
2627                 ndr->depth++;
2628                 if (r->in.site_name) {
2629                         ndr_print_string(ndr, "site_name", r->in.site_name);
2630                 }
2631                 ndr->depth--;
2632                 ndr_print_uint32(ndr, "flags", r->in.flags);
2633                 ndr->depth--;
2634         }
2635         if (flags & NDR_OUT) {
2636                 ndr_print_struct(ndr, "out", "DsGetDcName");
2637                 ndr->depth++;
2638                 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
2639                 ndr->depth++;
2640                 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
2641                 ndr->depth++;
2642                 if (*r->out.dc_info) {
2643                         ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
2644                 }
2645                 ndr->depth--;
2646                 ndr->depth--;
2647                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2648                 ndr->depth--;
2649         }
2650         ndr->depth--;
2651 }
2652
2653 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
2654 {
2655         ndr_print_struct(ndr, name, "NetUserAdd");
2656         ndr->depth++;
2657         if (flags & NDR_SET_VALUES) {
2658                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2659         }
2660         if (flags & NDR_IN) {
2661                 ndr_print_struct(ndr, "in", "NetUserAdd");
2662                 ndr->depth++;
2663                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2664                 ndr->depth++;
2665                 if (r->in.server_name) {
2666                         ndr_print_string(ndr, "server_name", r->in.server_name);
2667                 }
2668                 ndr->depth--;
2669                 ndr_print_uint32(ndr, "level", r->in.level);
2670                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2671                 ndr->depth++;
2672                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2673                 ndr->depth--;
2674                 ndr->depth--;
2675         }
2676         if (flags & NDR_OUT) {
2677                 ndr_print_struct(ndr, "out", "NetUserAdd");
2678                 ndr->depth++;
2679                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2680                 ndr->depth++;
2681                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2682                 ndr->depth--;
2683                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2684                 ndr->depth--;
2685         }
2686         ndr->depth--;
2687 }
2688
2689 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
2690 {
2691         ndr_print_struct(ndr, name, "NetUserDel");
2692         ndr->depth++;
2693         if (flags & NDR_SET_VALUES) {
2694                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2695         }
2696         if (flags & NDR_IN) {
2697                 ndr_print_struct(ndr, "in", "NetUserDel");
2698                 ndr->depth++;
2699                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2700                 ndr->depth++;
2701                 if (r->in.server_name) {
2702                         ndr_print_string(ndr, "server_name", r->in.server_name);
2703                 }
2704                 ndr->depth--;
2705                 ndr_print_ptr(ndr, "user_name", r->in.user_name);
2706                 ndr->depth++;
2707                 ndr_print_string(ndr, "user_name", r->in.user_name);
2708                 ndr->depth--;
2709                 ndr->depth--;
2710         }
2711         if (flags & NDR_OUT) {
2712                 ndr_print_struct(ndr, "out", "NetUserDel");
2713                 ndr->depth++;
2714                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2715                 ndr->depth--;
2716         }
2717         ndr->depth--;
2718 }
2719
2720 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
2721 {
2722         ndr_print_struct(ndr, name, "NetUserEnum");
2723         ndr->depth++;
2724         if (flags & NDR_SET_VALUES) {
2725                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2726         }
2727         if (flags & NDR_IN) {
2728                 ndr_print_struct(ndr, "in", "NetUserEnum");
2729                 ndr->depth++;
2730                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2731                 ndr->depth++;
2732                 if (r->in.server_name) {
2733                         ndr_print_string(ndr, "server_name", r->in.server_name);
2734                 }
2735                 ndr->depth--;
2736                 ndr_print_uint32(ndr, "level", r->in.level);
2737                 ndr_print_uint32(ndr, "filter", r->in.filter);
2738                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2739                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2740                 ndr->depth++;
2741                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2742                 ndr->depth--;
2743                 ndr->depth--;
2744         }
2745         if (flags & NDR_OUT) {
2746                 ndr_print_struct(ndr, "out", "NetUserEnum");
2747                 ndr->depth++;
2748                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2749                 ndr->depth++;
2750                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2751                 ndr->depth++;
2752                 if (*r->out.buffer) {
2753                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2754                 }
2755                 ndr->depth--;
2756                 ndr->depth--;
2757                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2758                 ndr->depth++;
2759                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2760                 ndr->depth--;
2761                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2762                 ndr->depth++;
2763                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2764                 ndr->depth--;
2765                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2766                 ndr->depth++;
2767                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2768                 ndr->depth--;
2769                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2770                 ndr->depth--;
2771         }
2772         ndr->depth--;
2773 }
2774
2775 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
2776 {
2777         ndr_print_struct(ndr, name, "NetUserChangePassword");
2778         ndr->depth++;
2779         if (flags & NDR_SET_VALUES) {
2780                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2781         }
2782         if (flags & NDR_IN) {
2783                 ndr_print_struct(ndr, "in", "NetUserChangePassword");
2784                 ndr->depth++;
2785                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2786                 ndr_print_string(ndr, "user_name", r->in.user_name);
2787                 ndr_print_string(ndr, "old_password", r->in.old_password);
2788                 ndr_print_string(ndr, "new_password", r->in.new_password);
2789                 ndr->depth--;
2790         }
2791         if (flags & NDR_OUT) {
2792                 ndr_print_struct(ndr, "out", "NetUserChangePassword");
2793                 ndr->depth++;
2794                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2795                 ndr->depth--;
2796         }
2797         ndr->depth--;
2798 }
2799
2800 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
2801 {
2802         ndr_print_struct(ndr, name, "NetUserGetInfo");
2803         ndr->depth++;
2804         if (flags & NDR_SET_VALUES) {
2805                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2806         }
2807         if (flags & NDR_IN) {
2808                 ndr_print_struct(ndr, "in", "NetUserGetInfo");
2809                 ndr->depth++;
2810                 ndr_print_string(ndr, "server_name", r->in.server_name);
2811                 ndr_print_string(ndr, "user_name", r->in.user_name);
2812                 ndr_print_uint32(ndr, "level", r->in.level);
2813                 ndr->depth--;
2814         }
2815         if (flags & NDR_OUT) {
2816                 ndr_print_struct(ndr, "out", "NetUserGetInfo");
2817                 ndr->depth++;
2818                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2819                 ndr->depth++;
2820                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2821                 ndr->depth++;
2822                 if (*r->out.buffer) {
2823                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2824                 }
2825                 ndr->depth--;
2826                 ndr->depth--;
2827                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2828                 ndr->depth--;
2829         }
2830         ndr->depth--;
2831 }
2832
2833 _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
2834 {
2835         ndr_print_struct(ndr, name, "NetUserSetInfo");
2836         ndr->depth++;
2837         if (flags & NDR_SET_VALUES) {
2838                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2839         }
2840         if (flags & NDR_IN) {
2841                 ndr_print_struct(ndr, "in", "NetUserSetInfo");
2842                 ndr->depth++;
2843                 ndr_print_string(ndr, "server_name", r->in.server_name);
2844                 ndr_print_string(ndr, "user_name", r->in.user_name);
2845                 ndr_print_uint32(ndr, "level", r->in.level);
2846                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2847                 ndr->depth++;
2848                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2849                 ndr->depth--;
2850                 ndr->depth--;
2851         }
2852         if (flags & NDR_OUT) {
2853                 ndr_print_struct(ndr, "out", "NetUserSetInfo");
2854                 ndr->depth++;
2855                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2856                 ndr->depth++;
2857                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2858                 ndr->depth--;
2859                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2860                 ndr->depth--;
2861         }
2862         ndr->depth--;
2863 }
2864
2865 _PUBLIC_ void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetGroups *r)
2866 {
2867         ndr_print_struct(ndr, name, "NetUserGetGroups");
2868         ndr->depth++;
2869         if (flags & NDR_SET_VALUES) {
2870                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2871         }
2872         if (flags & NDR_IN) {
2873                 ndr_print_struct(ndr, "in", "NetUserGetGroups");
2874                 ndr->depth++;
2875                 ndr_print_string(ndr, "server_name", r->in.server_name);
2876                 ndr_print_string(ndr, "user_name", r->in.user_name);
2877                 ndr_print_uint32(ndr, "level", r->in.level);
2878                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2879                 ndr->depth--;
2880         }
2881         if (flags & NDR_OUT) {
2882                 ndr_print_struct(ndr, "out", "NetUserGetGroups");
2883                 ndr->depth++;
2884                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2885                 ndr->depth++;
2886                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2887                 ndr->depth++;
2888                 if (*r->out.buffer) {
2889                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2890                 }
2891                 ndr->depth--;
2892                 ndr->depth--;
2893                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2894                 ndr->depth++;
2895                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2896                 ndr->depth--;
2897                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2898                 ndr->depth++;
2899                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2900                 ndr->depth--;
2901                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2902                 ndr->depth--;
2903         }
2904         ndr->depth--;
2905 }
2906
2907 _PUBLIC_ void ndr_print_NetUserSetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetGroups *r)
2908 {
2909         ndr_print_struct(ndr, name, "NetUserSetGroups");
2910         ndr->depth++;
2911         if (flags & NDR_SET_VALUES) {
2912                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2913         }
2914         if (flags & NDR_IN) {
2915                 ndr_print_struct(ndr, "in", "NetUserSetGroups");
2916                 ndr->depth++;
2917                 ndr_print_string(ndr, "server_name", r->in.server_name);
2918                 ndr_print_string(ndr, "user_name", r->in.user_name);
2919                 ndr_print_uint32(ndr, "level", r->in.level);
2920                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2921                 ndr->depth++;
2922                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2923                 ndr->depth--;
2924                 ndr_print_uint32(ndr, "num_entries", r->in.num_entries);
2925                 ndr->depth--;
2926         }
2927         if (flags & NDR_OUT) {
2928                 ndr_print_struct(ndr, "out", "NetUserSetGroups");
2929                 ndr->depth++;
2930                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2931                 ndr->depth--;
2932         }
2933         ndr->depth--;
2934 }
2935
2936 _PUBLIC_ void ndr_print_NetUserGetLocalGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetLocalGroups *r)
2937 {
2938         ndr_print_struct(ndr, name, "NetUserGetLocalGroups");
2939         ndr->depth++;
2940         if (flags & NDR_SET_VALUES) {
2941                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2942         }
2943         if (flags & NDR_IN) {
2944                 ndr_print_struct(ndr, "in", "NetUserGetLocalGroups");
2945                 ndr->depth++;
2946                 ndr_print_string(ndr, "server_name", r->in.server_name);
2947                 ndr_print_string(ndr, "user_name", r->in.user_name);
2948                 ndr_print_uint32(ndr, "level", r->in.level);
2949                 ndr_print_uint32(ndr, "flags", r->in.flags);
2950                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2951                 ndr->depth--;
2952         }
2953         if (flags & NDR_OUT) {
2954                 ndr_print_struct(ndr, "out", "NetUserGetLocalGroups");
2955                 ndr->depth++;
2956                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2957                 ndr->depth++;
2958                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2959                 ndr->depth++;
2960                 if (*r->out.buffer) {
2961                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2962                 }
2963                 ndr->depth--;
2964                 ndr->depth--;
2965                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2966                 ndr->depth++;
2967                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2968                 ndr->depth--;
2969                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2970                 ndr->depth++;
2971                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2972                 ndr->depth--;
2973                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2974                 ndr->depth--;
2975         }
2976         ndr->depth--;
2977 }
2978
2979 _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r)
2980 {
2981         ndr_print_struct(ndr, name, "NetUserModalsGet");
2982         ndr->depth++;
2983         if (flags & NDR_SET_VALUES) {
2984                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2985         }
2986         if (flags & NDR_IN) {
2987                 ndr_print_struct(ndr, "in", "NetUserModalsGet");
2988                 ndr->depth++;
2989                 ndr_print_string(ndr, "server_name", r->in.server_name);
2990                 ndr_print_uint32(ndr, "level", r->in.level);
2991                 ndr->depth--;
2992         }
2993         if (flags & NDR_OUT) {
2994                 ndr_print_struct(ndr, "out", "NetUserModalsGet");
2995                 ndr->depth++;
2996                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2997                 ndr->depth++;
2998                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2999                 ndr->depth++;
3000                 if (*r->out.buffer) {
3001                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3002                 }
3003                 ndr->depth--;
3004                 ndr->depth--;
3005                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3006                 ndr->depth--;
3007         }
3008         ndr->depth--;
3009 }
3010
3011 _PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r)
3012 {
3013         ndr_print_struct(ndr, name, "NetUserModalsSet");
3014         ndr->depth++;
3015         if (flags & NDR_SET_VALUES) {
3016                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3017         }
3018         if (flags & NDR_IN) {
3019                 ndr_print_struct(ndr, "in", "NetUserModalsSet");
3020                 ndr->depth++;
3021                 ndr_print_string(ndr, "server_name", r->in.server_name);
3022                 ndr_print_uint32(ndr, "level", r->in.level);
3023                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3024                 ndr->depth++;
3025                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3026                 ndr->depth--;
3027                 ndr->depth--;
3028         }
3029         if (flags & NDR_OUT) {
3030                 ndr_print_struct(ndr, "out", "NetUserModalsSet");
3031                 ndr->depth++;
3032                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3033                 ndr->depth++;
3034                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3035                 ndr->depth--;
3036                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3037                 ndr->depth--;
3038         }
3039         ndr->depth--;
3040 }
3041
3042 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
3043 {
3044         ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
3045         ndr->depth++;
3046         if (flags & NDR_SET_VALUES) {
3047                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3048         }
3049         if (flags & NDR_IN) {
3050                 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
3051                 ndr->depth++;
3052                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
3053                 ndr->depth++;
3054                 if (r->in.server_name) {
3055                         ndr_print_string(ndr, "server_name", r->in.server_name);
3056                 }
3057                 ndr->depth--;
3058                 ndr_print_uint32(ndr, "level", r->in.level);
3059                 ndr_print_uint32(ndr, "idx", r->in.idx);
3060                 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
3061                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3062                 ndr->depth--;
3063         }
3064         if (flags & NDR_OUT) {
3065                 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
3066                 ndr->depth++;
3067                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3068                 ndr->depth++;
3069                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3070                 ndr->depth--;
3071                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3072                 ndr->depth--;
3073         }
3074         ndr->depth--;
3075 }
3076
3077 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
3078 {
3079         ndr_print_struct(ndr, name, "NetGroupAdd");
3080         ndr->depth++;
3081         if (flags & NDR_SET_VALUES) {
3082                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3083         }
3084         if (flags & NDR_IN) {
3085                 ndr_print_struct(ndr, "in", "NetGroupAdd");
3086                 ndr->depth++;
3087                 ndr_print_string(ndr, "server_name", r->in.server_name);
3088                 ndr_print_uint32(ndr, "level", r->in.level);
3089                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3090                 ndr->depth++;
3091                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3092                 ndr->depth--;
3093                 ndr->depth--;
3094         }
3095         if (flags & NDR_OUT) {
3096                 ndr_print_struct(ndr, "out", "NetGroupAdd");
3097                 ndr->depth++;
3098                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3099                 ndr->depth++;
3100                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3101                 ndr->depth--;
3102                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3103                 ndr->depth--;
3104         }
3105         ndr->depth--;
3106 }
3107
3108 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
3109 {
3110         ndr_print_struct(ndr, name, "NetGroupDel");
3111         ndr->depth++;
3112         if (flags & NDR_SET_VALUES) {
3113                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3114         }
3115         if (flags & NDR_IN) {
3116                 ndr_print_struct(ndr, "in", "NetGroupDel");
3117                 ndr->depth++;
3118                 ndr_print_string(ndr, "server_name", r->in.server_name);
3119                 ndr_print_string(ndr, "group_name", r->in.group_name);
3120                 ndr->depth--;
3121         }
3122         if (flags & NDR_OUT) {
3123                 ndr_print_struct(ndr, "out", "NetGroupDel");
3124                 ndr->depth++;
3125                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3126                 ndr->depth--;
3127         }
3128         ndr->depth--;
3129 }
3130
3131 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
3132 {
3133         ndr_print_struct(ndr, name, "NetGroupEnum");
3134         ndr->depth++;
3135         if (flags & NDR_SET_VALUES) {
3136                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3137         }
3138         if (flags & NDR_IN) {
3139                 ndr_print_struct(ndr, "in", "NetGroupEnum");
3140                 ndr->depth++;
3141                 ndr_print_string(ndr, "server_name", r->in.server_name);
3142                 ndr_print_uint32(ndr, "level", r->in.level);
3143                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3144                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3145                 ndr->depth++;
3146                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3147                 ndr->depth--;
3148                 ndr->depth--;
3149         }
3150         if (flags & NDR_OUT) {
3151                 ndr_print_struct(ndr, "out", "NetGroupEnum");
3152                 ndr->depth++;
3153                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3154                 ndr->depth++;
3155                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3156                 ndr->depth++;
3157                 if (*r->out.buffer) {
3158                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3159                 }
3160                 ndr->depth--;
3161                 ndr->depth--;
3162                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3163                 ndr->depth++;
3164                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3165                 ndr->depth--;
3166                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3167                 ndr->depth++;
3168                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3169                 ndr->depth--;
3170                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3171                 ndr->depth++;
3172                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3173                 ndr->depth--;
3174                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3175                 ndr->depth--;
3176         }
3177         ndr->depth--;
3178 }
3179
3180 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
3181 {
3182         ndr_print_struct(ndr, name, "NetGroupSetInfo");
3183         ndr->depth++;
3184         if (flags & NDR_SET_VALUES) {
3185                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3186         }
3187         if (flags & NDR_IN) {
3188                 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
3189                 ndr->depth++;
3190                 ndr_print_string(ndr, "server_name", r->in.server_name);
3191                 ndr_print_string(ndr, "group_name", r->in.group_name);
3192                 ndr_print_uint32(ndr, "level", r->in.level);
3193                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3194                 ndr->depth++;
3195                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3196                 ndr->depth--;
3197                 ndr->depth--;
3198         }
3199         if (flags & NDR_OUT) {
3200                 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
3201                 ndr->depth++;
3202                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3203                 ndr->depth++;
3204                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3205                 ndr->depth--;
3206                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3207                 ndr->depth--;
3208         }
3209         ndr->depth--;
3210 }
3211
3212 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
3213 {
3214         ndr_print_struct(ndr, name, "NetGroupGetInfo");
3215         ndr->depth++;
3216         if (flags & NDR_SET_VALUES) {
3217                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3218         }
3219         if (flags & NDR_IN) {
3220                 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
3221                 ndr->depth++;
3222                 ndr_print_string(ndr, "server_name", r->in.server_name);
3223                 ndr_print_string(ndr, "group_name", r->in.group_name);
3224                 ndr_print_uint32(ndr, "level", r->in.level);
3225                 ndr->depth--;
3226         }
3227         if (flags & NDR_OUT) {
3228                 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
3229                 ndr->depth++;
3230                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3231                 ndr->depth++;
3232                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3233                 ndr->depth++;
3234                 if (*r->out.buffer) {
3235                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3236                 }
3237                 ndr->depth--;
3238                 ndr->depth--;
3239                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3240                 ndr->depth--;
3241         }
3242         ndr->depth--;
3243 }
3244
3245 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
3246 {
3247         ndr_print_struct(ndr, name, "NetGroupAddUser");
3248         ndr->depth++;
3249         if (flags & NDR_SET_VALUES) {
3250                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3251         }
3252         if (flags & NDR_IN) {
3253                 ndr_print_struct(ndr, "in", "NetGroupAddUser");
3254                 ndr->depth++;
3255                 ndr_print_string(ndr, "server_name", r->in.server_name);
3256                 ndr_print_string(ndr, "group_name", r->in.group_name);
3257                 ndr_print_string(ndr, "user_name", r->in.user_name);
3258                 ndr->depth--;
3259         }
3260         if (flags & NDR_OUT) {
3261                 ndr_print_struct(ndr, "out", "NetGroupAddUser");
3262                 ndr->depth++;
3263                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3264                 ndr->depth--;
3265         }
3266         ndr->depth--;
3267 }
3268
3269 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
3270 {
3271         ndr_print_struct(ndr, name, "NetGroupDelUser");
3272         ndr->depth++;
3273         if (flags & NDR_SET_VALUES) {
3274                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3275         }
3276         if (flags & NDR_IN) {
3277                 ndr_print_struct(ndr, "in", "NetGroupDelUser");
3278                 ndr->depth++;
3279                 ndr_print_string(ndr, "server_name", r->in.server_name);
3280                 ndr_print_string(ndr, "group_name", r->in.group_name);
3281                 ndr_print_string(ndr, "user_name", r->in.user_name);
3282                 ndr->depth--;
3283         }
3284         if (flags & NDR_OUT) {
3285                 ndr_print_struct(ndr, "out", "NetGroupDelUser");
3286                 ndr->depth++;
3287                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3288                 ndr->depth--;
3289         }
3290         ndr->depth--;
3291 }
3292
3293 _PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r)
3294 {
3295         ndr_print_struct(ndr, name, "NetGroupGetUsers");
3296         ndr->depth++;
3297         if (flags & NDR_SET_VALUES) {
3298                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3299         }
3300         if (flags & NDR_IN) {
3301                 ndr_print_struct(ndr, "in", "NetGroupGetUsers");
3302                 ndr->depth++;
3303                 ndr_print_string(ndr, "server_name", r->in.server_name);
3304                 ndr_print_string(ndr, "group_name", r->in.group_name);
3305                 ndr_print_uint32(ndr, "level", r->in.level);
3306                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3307                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3308                 ndr->depth++;
3309                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3310                 ndr->depth--;
3311                 ndr->depth--;
3312         }
3313         if (flags & NDR_OUT) {
3314                 ndr_print_struct(ndr, "out", "NetGroupGetUsers");
3315                 ndr->depth++;
3316                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3317                 ndr->depth++;
3318                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3319                 ndr->depth++;
3320                 if (*r->out.buffer) {
3321                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3322                 }
3323                 ndr->depth--;
3324                 ndr->depth--;
3325                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3326                 ndr->depth++;
3327                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3328                 ndr->depth--;
3329                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3330                 ndr->depth++;
3331                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3332                 ndr->depth--;
3333                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3334                 ndr->depth++;
3335                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3336                 ndr->depth--;
3337                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3338                 ndr->depth--;
3339         }
3340         ndr->depth--;
3341 }
3342
3343 _PUBLIC_ void ndr_print_NetGroupSetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetUsers *r)
3344 {
3345         ndr_print_struct(ndr, name, "NetGroupSetUsers");
3346         ndr->depth++;
3347         if (flags & NDR_SET_VALUES) {
3348                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3349         }
3350         if (flags & NDR_IN) {
3351                 ndr_print_struct(ndr, "in", "NetGroupSetUsers");
3352                 ndr->depth++;
3353                 ndr_print_string(ndr, "server_name", r->in.server_name);
3354                 ndr_print_string(ndr, "group_name", r->in.group_name);
3355                 ndr_print_uint32(ndr, "level", r->in.level);
3356                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3357                 ndr->depth++;
3358                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3359                 ndr->depth--;
3360                 ndr_print_uint32(ndr, "num_entries", r->in.num_entries);
3361                 ndr->depth--;
3362         }
3363         if (flags & NDR_OUT) {
3364                 ndr_print_struct(ndr, "out", "NetGroupSetUsers");
3365                 ndr->depth++;
3366                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3367                 ndr->depth--;
3368         }
3369         ndr->depth--;
3370 }
3371
3372 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
3373 {
3374         ndr_print_struct(ndr, name, "NetLocalGroupAdd");
3375         ndr->depth++;
3376         if (flags & NDR_SET_VALUES) {
3377                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3378         }
3379         if (flags & NDR_IN) {
3380                 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
3381                 ndr->depth++;
3382                 ndr_print_string(ndr, "server_name", r->in.server_name);
3383                 ndr_print_uint32(ndr, "level", r->in.level);
3384                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3385                 ndr->depth++;
3386                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3387                 ndr->depth--;
3388                 ndr->depth--;
3389         }
3390         if (flags & NDR_OUT) {
3391                 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
3392                 ndr->depth++;
3393                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3394                 ndr->depth++;
3395                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3396                 ndr->depth--;
3397                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3398                 ndr->depth--;
3399         }
3400         ndr->depth--;
3401 }
3402
3403 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
3404 {
3405         ndr_print_struct(ndr, name, "NetLocalGroupDel");
3406         ndr->depth++;
3407         if (flags & NDR_SET_VALUES) {
3408                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3409         }
3410         if (flags & NDR_IN) {
3411                 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
3412                 ndr->depth++;
3413                 ndr_print_string(ndr, "server_name", r->in.server_name);
3414                 ndr_print_string(ndr, "group_name", r->in.group_name);
3415                 ndr->depth--;
3416         }
3417         if (flags & NDR_OUT) {
3418                 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
3419                 ndr->depth++;
3420                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3421                 ndr->depth--;
3422         }
3423         ndr->depth--;
3424 }
3425
3426 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
3427 {
3428         ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
3429         ndr->depth++;
3430         if (flags & NDR_SET_VALUES) {
3431                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3432         }
3433         if (flags & NDR_IN) {
3434                 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
3435                 ndr->depth++;
3436                 ndr_print_string(ndr, "server_name", r->in.server_name);
3437                 ndr_print_string(ndr, "group_name", r->in.group_name);
3438                 ndr_print_uint32(ndr, "level", r->in.level);
3439                 ndr->depth--;
3440         }
3441         if (flags & NDR_OUT) {
3442                 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
3443                 ndr->depth++;
3444                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3445                 ndr->depth++;
3446                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3447                 ndr->depth++;
3448                 if (*r->out.buffer) {
3449                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3450                 }
3451                 ndr->depth--;
3452                 ndr->depth--;
3453                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3454                 ndr->depth--;
3455         }
3456         ndr->depth--;
3457 }
3458
3459 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
3460 {
3461         ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
3462         ndr->depth++;
3463         if (flags & NDR_SET_VALUES) {
3464                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3465         }
3466         if (flags & NDR_IN) {
3467                 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
3468                 ndr->depth++;
3469                 ndr_print_string(ndr, "server_name", r->in.server_name);
3470                 ndr_print_string(ndr, "group_name", r->in.group_name);
3471                 ndr_print_uint32(ndr, "level", r->in.level);
3472                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3473                 ndr->depth++;
3474                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3475                 ndr->depth--;
3476                 ndr->depth--;
3477         }
3478         if (flags & NDR_OUT) {
3479                 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
3480                 ndr->depth++;
3481                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3482                 ndr->depth++;
3483                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3484                 ndr->depth--;
3485                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3486                 ndr->depth--;
3487         }
3488         ndr->depth--;
3489 }
3490
3491 _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r)
3492 {
3493         ndr_print_struct(ndr, name, "NetLocalGroupEnum");
3494         ndr->depth++;
3495         if (flags & NDR_SET_VALUES) {
3496                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3497         }
3498         if (flags & NDR_IN) {
3499                 ndr_print_struct(ndr, "in", "NetLocalGroupEnum");
3500                 ndr->depth++;
3501                 ndr_print_string(ndr, "server_name", r->in.server_name);
3502                 ndr_print_uint32(ndr, "level", r->in.level);
3503                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3504                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3505                 ndr->depth++;
3506                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3507                 ndr->depth--;
3508                 ndr->depth--;
3509         }
3510         if (flags & NDR_OUT) {
3511                 ndr_print_struct(ndr, "out", "NetLocalGroupEnum");
3512                 ndr->depth++;
3513                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3514                 ndr->depth++;
3515                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3516                 ndr->depth++;
3517                 if (*r->out.buffer) {
3518                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3519                 }
3520                 ndr->depth--;
3521                 ndr->depth--;
3522                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3523                 ndr->depth++;
3524                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3525                 ndr->depth--;
3526                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3527                 ndr->depth++;
3528                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3529                 ndr->depth--;
3530                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3531                 ndr->depth++;
3532                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3533                 ndr->depth--;
3534                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3535                 ndr->depth--;
3536         }
3537         ndr->depth--;
3538 }
3539
3540 _PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r)
3541 {
3542         ndr_print_struct(ndr, name, "NetLocalGroupAddMembers");
3543         ndr->depth++;
3544         if (flags & NDR_SET_VALUES) {
3545                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3546         }
3547         if (flags & NDR_IN) {
3548                 ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers");
3549                 ndr->depth++;
3550                 ndr_print_string(ndr, "server_name", r->in.server_name);
3551                 ndr_print_string(ndr, "group_name", r->in.group_name);
3552                 ndr_print_uint32(ndr, "level", r->in.level);
3553                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3554                 ndr->depth++;
3555                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3556                 ndr->depth--;
3557                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3558                 ndr->depth--;
3559         }
3560         if (flags & NDR_OUT) {
3561                 ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers");
3562                 ndr->depth++;
3563                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3564                 ndr->depth--;
3565         }
3566         ndr->depth--;
3567 }
3568
3569 _PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r)
3570 {
3571         ndr_print_struct(ndr, name, "NetLocalGroupDelMembers");
3572         ndr->depth++;
3573         if (flags & NDR_SET_VALUES) {
3574                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3575         }
3576         if (flags & NDR_IN) {
3577                 ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers");
3578                 ndr->depth++;
3579                 ndr_print_string(ndr, "server_name", r->in.server_name);
3580                 ndr_print_string(ndr, "group_name", r->in.group_name);
3581                 ndr_print_uint32(ndr, "level", r->in.level);
3582                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3583                 ndr->depth++;
3584                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3585                 ndr->depth--;
3586                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3587                 ndr->depth--;
3588         }
3589         if (flags & NDR_OUT) {
3590                 ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers");
3591                 ndr->depth++;
3592                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3593                 ndr->depth--;
3594         }
3595         ndr->depth--;
3596 }
3597
3598 _PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r)
3599 {
3600         ndr_print_struct(ndr, name, "NetLocalGroupGetMembers");
3601         ndr->depth++;
3602         if (flags & NDR_SET_VALUES) {
3603                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3604         }
3605         if (flags & NDR_IN) {
3606                 ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers");
3607                 ndr->depth++;
3608                 ndr_print_string(ndr, "server_name", r->in.server_name);
3609                 ndr_print_string(ndr, "local_group_name", r->in.local_group_name);
3610                 ndr_print_uint32(ndr, "level", r->in.level);
3611                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3612                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3613                 ndr->depth++;
3614                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3615                 ndr->depth--;
3616                 ndr->depth--;
3617         }
3618         if (flags & NDR_OUT) {
3619                 ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers");
3620                 ndr->depth++;
3621                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3622                 ndr->depth++;
3623                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3624                 ndr->depth++;
3625                 if (*r->out.buffer) {
3626                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3627                 }
3628                 ndr->depth--;
3629                 ndr->depth--;
3630                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3631                 ndr->depth++;
3632                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3633                 ndr->depth--;
3634                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3635                 ndr->depth++;
3636                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3637                 ndr->depth--;
3638                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3639                 ndr->depth++;
3640                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3641                 ndr->depth--;
3642                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3643                 ndr->depth--;
3644         }
3645         ndr->depth--;
3646 }
3647
3648 _PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r)
3649 {
3650         ndr_print_struct(ndr, name, "NetLocalGroupSetMembers");
3651         ndr->depth++;
3652         if (flags & NDR_SET_VALUES) {
3653                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3654         }
3655         if (flags & NDR_IN) {
3656                 ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers");
3657                 ndr->depth++;
3658                 ndr_print_string(ndr, "server_name", r->in.server_name);
3659                 ndr_print_string(ndr, "group_name", r->in.group_name);
3660                 ndr_print_uint32(ndr, "level", r->in.level);
3661                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3662                 ndr->depth++;
3663                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3664                 ndr->depth--;
3665                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3666                 ndr->depth--;
3667         }
3668         if (flags & NDR_OUT) {
3669                 ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers");
3670                 ndr->depth++;
3671                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3672                 ndr->depth--;
3673         }
3674         ndr->depth--;
3675 }
3676
3677 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
3678 {
3679         ndr_print_struct(ndr, name, "NetRemoteTOD");
3680         ndr->depth++;
3681         if (flags & NDR_SET_VALUES) {
3682                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3683         }
3684         if (flags & NDR_IN) {
3685                 ndr_print_struct(ndr, "in", "NetRemoteTOD");
3686                 ndr->depth++;
3687                 ndr_print_string(ndr, "server_name", r->in.server_name);
3688                 ndr->depth--;
3689         }
3690         if (flags & NDR_OUT) {
3691                 ndr_print_struct(ndr, "out", "NetRemoteTOD");
3692                 ndr->depth++;
3693                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3694                 ndr->depth++;
3695                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3696                 ndr->depth++;
3697                 if (*r->out.buffer) {
3698                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3699                 }
3700                 ndr->depth--;
3701                 ndr->depth--;
3702                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3703                 ndr->depth--;
3704         }
3705         ndr->depth--;
3706 }
3707
3708 _PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r)
3709 {
3710         ndr_print_struct(ndr, name, "NetShareAdd");
3711         ndr->depth++;
3712         if (flags & NDR_SET_VALUES) {
3713                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3714         }
3715         if (flags & NDR_IN) {
3716                 ndr_print_struct(ndr, "in", "NetShareAdd");
3717                 ndr->depth++;
3718                 ndr_print_string(ndr, "server_name", r->in.server_name);
3719                 ndr_print_uint32(ndr, "level", r->in.level);
3720                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3721                 ndr->depth++;
3722                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3723                 ndr->depth--;
3724                 ndr->depth--;
3725         }
3726         if (flags & NDR_OUT) {
3727                 ndr_print_struct(ndr, "out", "NetShareAdd");
3728                 ndr->depth++;
3729                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3730                 ndr->depth++;
3731                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3732                 ndr->depth--;
3733                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3734                 ndr->depth--;
3735         }
3736         ndr->depth--;
3737 }
3738
3739 _PUBLIC_ void ndr_print_NetShareDel(struct ndr_print *ndr, const char *name, int flags, const struct NetShareDel *r)
3740 {
3741         ndr_print_struct(ndr, name, "NetShareDel");
3742         ndr->depth++;
3743         if (flags & NDR_SET_VALUES) {
3744                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3745         }
3746         if (flags & NDR_IN) {
3747                 ndr_print_struct(ndr, "in", "NetShareDel");
3748                 ndr->depth++;
3749                 ndr_print_string(ndr, "server_name", r->in.server_name);
3750                 ndr_print_string(ndr, "net_name", r->in.net_name);
3751                 ndr_print_uint32(ndr, "reserved", r->in.reserved);
3752                 ndr->depth--;
3753         }
3754         if (flags & NDR_OUT) {
3755                 ndr_print_struct(ndr, "out", "NetShareDel");
3756                 ndr->depth++;
3757                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3758                 ndr->depth--;
3759         }
3760         ndr->depth--;
3761 }
3762
3763 _PUBLIC_ void ndr_print_NetShareEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetShareEnum *r)
3764 {
3765         ndr_print_struct(ndr, name, "NetShareEnum");
3766         ndr->depth++;
3767         if (flags & NDR_SET_VALUES) {
3768                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3769         }
3770         if (flags & NDR_IN) {
3771                 ndr_print_struct(ndr, "in", "NetShareEnum");
3772                 ndr->depth++;
3773                 ndr_print_string(ndr, "server_name", r->in.server_name);
3774                 ndr_print_uint32(ndr, "level", r->in.level);
3775                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3776                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3777                 ndr->depth++;
3778                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3779                 ndr->depth--;
3780                 ndr->depth--;
3781         }
3782         if (flags & NDR_OUT) {
3783                 ndr_print_struct(ndr, "out", "NetShareEnum");
3784                 ndr->depth++;
3785                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3786                 ndr->depth++;
3787                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3788                 ndr->depth++;
3789                 if (*r->out.buffer) {
3790                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3791                 }
3792                 ndr->depth--;
3793                 ndr->depth--;
3794                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3795                 ndr->depth++;
3796                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3797                 ndr->depth--;
3798                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3799                 ndr->depth++;
3800                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3801                 ndr->depth--;
3802                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3803                 ndr->depth++;
3804                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3805                 ndr->depth--;
3806                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3807                 ndr->depth--;
3808         }
3809         ndr->depth--;
3810 }
3811
3812 _PUBLIC_ void ndr_print_NetShareGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareGetInfo *r)
3813 {
3814         ndr_print_struct(ndr, name, "NetShareGetInfo");
3815         ndr->depth++;
3816         if (flags & NDR_SET_VALUES) {
3817                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3818         }
3819         if (flags & NDR_IN) {
3820                 ndr_print_struct(ndr, "in", "NetShareGetInfo");
3821                 ndr->depth++;
3822                 ndr_print_string(ndr, "server_name", r->in.server_name);
3823                 ndr_print_string(ndr, "net_name", r->in.net_name);
3824                 ndr_print_uint32(ndr, "level", r->in.level);
3825                 ndr->depth--;
3826         }
3827         if (flags & NDR_OUT) {
3828                 ndr_print_struct(ndr, "out", "NetShareGetInfo");
3829                 ndr->depth++;
3830                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3831                 ndr->depth++;
3832                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3833                 ndr->depth++;
3834                 if (*r->out.buffer) {
3835                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3836                 }
3837                 ndr->depth--;
3838                 ndr->depth--;
3839                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3840                 ndr->depth--;
3841         }
3842         ndr->depth--;
3843 }
3844
3845 _PUBLIC_ void ndr_print_NetShareSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareSetInfo *r)
3846 {
3847         ndr_print_struct(ndr, name, "NetShareSetInfo");
3848         ndr->depth++;
3849         if (flags & NDR_SET_VALUES) {
3850                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3851         }
3852         if (flags & NDR_IN) {
3853                 ndr_print_struct(ndr, "in", "NetShareSetInfo");
3854                 ndr->depth++;
3855                 ndr_print_string(ndr, "server_name", r->in.server_name);
3856                 ndr_print_string(ndr, "net_name", r->in.net_name);
3857                 ndr_print_uint32(ndr, "level", r->in.level);
3858                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3859                 ndr->depth++;
3860                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3861                 ndr->depth--;
3862                 ndr->depth--;
3863         }
3864         if (flags & NDR_OUT) {
3865                 ndr_print_struct(ndr, "out", "NetShareSetInfo");
3866                 ndr->depth++;
3867                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3868                 ndr->depth++;
3869                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3870                 ndr->depth--;
3871                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3872                 ndr->depth--;
3873         }
3874         ndr->depth--;
3875 }
3876
3877 _PUBLIC_ void ndr_print_NetFileClose(struct ndr_print *ndr, const char *name, int flags, const struct NetFileClose *r)
3878 {
3879         ndr_print_struct(ndr, name, "NetFileClose");
3880         ndr->depth++;
3881         if (flags & NDR_SET_VALUES) {
3882                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3883         }
3884         if (flags & NDR_IN) {
3885                 ndr_print_struct(ndr, "in", "NetFileClose");
3886                 ndr->depth++;
3887                 ndr_print_string(ndr, "server_name", r->in.server_name);
3888                 ndr_print_uint32(ndr, "fileid", r->in.fileid);
3889                 ndr->depth--;
3890         }
3891         if (flags & NDR_OUT) {
3892                 ndr_print_struct(ndr, "out", "NetFileClose");
3893                 ndr->depth++;
3894                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3895                 ndr->depth--;
3896         }
3897         ndr->depth--;
3898 }
3899
3900 _PUBLIC_ void ndr_print_NetFileGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetFileGetInfo *r)
3901 {
3902         ndr_print_struct(ndr, name, "NetFileGetInfo");
3903         ndr->depth++;
3904         if (flags & NDR_SET_VALUES) {
3905                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3906         }
3907         if (flags & NDR_IN) {
3908                 ndr_print_struct(ndr, "in", "NetFileGetInfo");
3909                 ndr->depth++;
3910                 ndr_print_string(ndr, "server_name", r->in.server_name);
3911                 ndr_print_uint32(ndr, "fileid", r->in.fileid);
3912                 ndr_print_uint32(ndr, "level", r->in.level);
3913                 ndr->depth--;
3914         }
3915         if (flags & NDR_OUT) {
3916                 ndr_print_struct(ndr, "out", "NetFileGetInfo");
3917                 ndr->depth++;
3918                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3919                 ndr->depth++;
3920                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3921                 ndr->depth++;
3922                 if (*r->out.buffer) {
3923                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3924                 }
3925                 ndr->depth--;
3926                 ndr->depth--;
3927                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3928                 ndr->depth--;
3929         }
3930         ndr->depth--;
3931 }
3932
3933 _PUBLIC_ void ndr_print_NetFileEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetFileEnum *r)
3934 {
3935         ndr_print_struct(ndr, name, "NetFileEnum");
3936         ndr->depth++;
3937         if (flags & NDR_SET_VALUES) {
3938                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3939         }
3940         if (flags & NDR_IN) {
3941                 ndr_print_struct(ndr, "in", "NetFileEnum");
3942                 ndr->depth++;
3943                 ndr_print_string(ndr, "server_name", r->in.server_name);
3944                 ndr_print_string(ndr, "base_path", r->in.base_path);
3945                 ndr_print_string(ndr, "user_name", r->in.user_name);
3946                 ndr_print_uint32(ndr, "level", r->in.level);
3947                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3948                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3949                 ndr->depth++;
3950                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3951                 ndr->depth--;
3952                 ndr->depth--;
3953         }
3954         if (flags & NDR_OUT) {
3955                 ndr_print_struct(ndr, "out", "NetFileEnum");
3956                 ndr->depth++;
3957                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3958                 ndr->depth++;
3959                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3960                 ndr->depth++;
3961                 if (*r->out.buffer) {
3962                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3963                 }
3964                 ndr->depth--;
3965                 ndr->depth--;
3966                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3967                 ndr->depth++;
3968                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3969                 ndr->depth--;
3970                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3971                 ndr->depth++;
3972                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3973                 ndr->depth--;
3974                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3975                 ndr->depth++;
3976                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3977                 ndr->depth--;
3978                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3979                 ndr->depth--;
3980         }
3981         ndr->depth--;
3982 }
3983