re-run make idl.
[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_primary_group_id));
1899         }
1900         if (ndr_flags & NDR_BUFFERS) {
1901                 if (r->usriX_logon_hours) {
1902                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usriX_logon_hours));
1903                 }
1904         }
1905         return NDR_ERR_SUCCESS;
1906 }
1907
1908 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_X *r)
1909 {
1910         uint32_t _ptr_usriX_logon_hours;
1911         TALLOC_CTX *_mem_save_usriX_logon_hours_0;
1912         if (ndr_flags & NDR_SCALARS) {
1913                 NDR_CHECK(ndr_pull_align(ndr, 4));
1914                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_name));
1915                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_password));
1916                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_age));
1917                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_priv));
1918                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir));
1919                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_comment));
1920                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_flags));
1921                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_script_path));
1922                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_auth_flags));
1923                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_full_name));
1924                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_usr_comment));
1925                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_parms));
1926                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_workstations));
1927                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logon));
1928                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logoff));
1929                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_acct_expires));
1930                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_max_storage));
1931                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_units_per_week));
1932                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usriX_logon_hours));
1933                 if (_ptr_usriX_logon_hours) {
1934                         NDR_PULL_ALLOC(ndr, r->usriX_logon_hours);
1935                 } else {
1936                         r->usriX_logon_hours = NULL;
1937                 }
1938                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_bad_pw_count));
1939                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_num_logons));
1940                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server));
1941                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code));
1942                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page));
1943                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_profile));
1944                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir_drive));
1945                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_primary_group_id));
1946         }
1947         if (ndr_flags & NDR_BUFFERS) {
1948                 if (r->usriX_logon_hours) {
1949                         _mem_save_usriX_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1950                         NDR_PULL_SET_MEM_CTX(ndr, r->usriX_logon_hours, 0);
1951                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usriX_logon_hours));
1952                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usriX_logon_hours_0, 0);
1953                 }
1954         }
1955         return NDR_ERR_SUCCESS;
1956 }
1957
1958 _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, const struct USER_INFO_X *r)
1959 {
1960         ndr_print_struct(ndr, name, "USER_INFO_X");
1961         ndr->depth++;
1962         ndr_print_string(ndr, "usriX_name", r->usriX_name);
1963         ndr_print_string(ndr, "usriX_password", r->usriX_password);
1964         ndr_print_uint32(ndr, "usriX_password_age", r->usriX_password_age);
1965         ndr_print_uint32(ndr, "usriX_priv", r->usriX_priv);
1966         ndr_print_string(ndr, "usriX_home_dir", r->usriX_home_dir);
1967         ndr_print_string(ndr, "usriX_comment", r->usriX_comment);
1968         ndr_print_uint32(ndr, "usriX_flags", r->usriX_flags);
1969         ndr_print_string(ndr, "usriX_script_path", r->usriX_script_path);
1970         ndr_print_uint32(ndr, "usriX_auth_flags", r->usriX_auth_flags);
1971         ndr_print_string(ndr, "usriX_full_name", r->usriX_full_name);
1972         ndr_print_string(ndr, "usriX_usr_comment", r->usriX_usr_comment);
1973         ndr_print_string(ndr, "usriX_parms", r->usriX_parms);
1974         ndr_print_string(ndr, "usriX_workstations", r->usriX_workstations);
1975         ndr_print_uint32(ndr, "usriX_last_logon", r->usriX_last_logon);
1976         ndr_print_uint32(ndr, "usriX_last_logoff", r->usriX_last_logoff);
1977         ndr_print_uint32(ndr, "usriX_acct_expires", r->usriX_acct_expires);
1978         ndr_print_uint32(ndr, "usriX_max_storage", r->usriX_max_storage);
1979         ndr_print_uint32(ndr, "usriX_units_per_week", r->usriX_units_per_week);
1980         ndr_print_ptr(ndr, "usriX_logon_hours", r->usriX_logon_hours);
1981         ndr->depth++;
1982         if (r->usriX_logon_hours) {
1983                 ndr_print_uint8(ndr, "usriX_logon_hours", *r->usriX_logon_hours);
1984         }
1985         ndr->depth--;
1986         ndr_print_uint32(ndr, "usriX_bad_pw_count", r->usriX_bad_pw_count);
1987         ndr_print_uint32(ndr, "usriX_num_logons", r->usriX_num_logons);
1988         ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server);
1989         ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code);
1990         ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page);
1991         ndr_print_string(ndr, "usriX_profile", r->usriX_profile);
1992         ndr_print_string(ndr, "usriX_home_dir_drive", r->usriX_home_dir_drive);
1993         ndr_print_uint32(ndr, "usriX_primary_group_id", r->usriX_primary_group_id);
1994         ndr->depth--;
1995 }
1996
1997 _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)
1998 {
1999         if (ndr_flags & NDR_SCALARS) {
2000                 NDR_CHECK(ndr_push_align(ndr, 4));
2001                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name));
2002         }
2003         if (ndr_flags & NDR_BUFFERS) {
2004         }
2005         return NDR_ERR_SUCCESS;
2006 }
2007
2008 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r)
2009 {
2010         if (ndr_flags & NDR_SCALARS) {
2011                 NDR_CHECK(ndr_pull_align(ndr, 4));
2012                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name));
2013         }
2014         if (ndr_flags & NDR_BUFFERS) {
2015         }
2016         return NDR_ERR_SUCCESS;
2017 }
2018
2019 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r)
2020 {
2021         ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0");
2022         ndr->depth++;
2023         ndr_print_string(ndr, "grui0_name", r->grui0_name);
2024         ndr->depth--;
2025 }
2026
2027 _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)
2028 {
2029         if (ndr_flags & NDR_SCALARS) {
2030                 NDR_CHECK(ndr_push_align(ndr, 4));
2031                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name));
2032                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes));
2033         }
2034         if (ndr_flags & NDR_BUFFERS) {
2035         }
2036         return NDR_ERR_SUCCESS;
2037 }
2038
2039 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r)
2040 {
2041         if (ndr_flags & NDR_SCALARS) {
2042                 NDR_CHECK(ndr_pull_align(ndr, 4));
2043                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name));
2044                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes));
2045         }
2046         if (ndr_flags & NDR_BUFFERS) {
2047         }
2048         return NDR_ERR_SUCCESS;
2049 }
2050
2051 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r)
2052 {
2053         ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1");
2054         ndr->depth++;
2055         ndr_print_string(ndr, "grui1_name", r->grui1_name);
2056         ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes);
2057         ndr->depth--;
2058 }
2059
2060 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
2061 {
2062         if (ndr_flags & NDR_SCALARS) {
2063                 NDR_CHECK(ndr_push_align(ndr, 4));
2064                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
2065                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
2066                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
2067                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
2068                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
2069                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
2070         }
2071         if (ndr_flags & NDR_BUFFERS) {
2072         }
2073         return NDR_ERR_SUCCESS;
2074 }
2075
2076 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
2077 {
2078         if (ndr_flags & NDR_SCALARS) {
2079                 NDR_CHECK(ndr_pull_align(ndr, 4));
2080                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
2081                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
2082                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
2083                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
2084                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
2085                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
2086         }
2087         if (ndr_flags & NDR_BUFFERS) {
2088         }
2089         return NDR_ERR_SUCCESS;
2090 }
2091
2092 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
2093 {
2094         ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
2095         ndr->depth++;
2096         ndr_print_string(ndr, "usri1_name", r->usri1_name);
2097         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
2098         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
2099         ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
2100         ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
2101         ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
2102         ndr->depth--;
2103 }
2104
2105 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
2106 {
2107         if (ndr_flags & NDR_SCALARS) {
2108                 NDR_CHECK(ndr_push_align(ndr, 4));
2109                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
2110                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
2111                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
2112                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
2113                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
2114         }
2115         if (ndr_flags & NDR_BUFFERS) {
2116         }
2117         return NDR_ERR_SUCCESS;
2118 }
2119
2120 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
2121 {
2122         if (ndr_flags & NDR_SCALARS) {
2123                 NDR_CHECK(ndr_pull_align(ndr, 4));
2124                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
2125                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
2126                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
2127                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
2128                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
2129         }
2130         if (ndr_flags & NDR_BUFFERS) {
2131         }
2132         return NDR_ERR_SUCCESS;
2133 }
2134
2135 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
2136 {
2137         ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
2138         ndr->depth++;
2139         ndr_print_string(ndr, "usri2_name", r->usri2_name);
2140         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
2141         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
2142         ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
2143         ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
2144         ndr->depth--;
2145 }
2146
2147 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
2148 {
2149         if (ndr_flags & NDR_SCALARS) {
2150                 NDR_CHECK(ndr_push_align(ndr, 4));
2151                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
2152                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
2153                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
2154                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
2155                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
2156         }
2157         if (ndr_flags & NDR_BUFFERS) {
2158         }
2159         return NDR_ERR_SUCCESS;
2160 }
2161
2162 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
2163 {
2164         if (ndr_flags & NDR_SCALARS) {
2165                 NDR_CHECK(ndr_pull_align(ndr, 4));
2166                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
2167                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
2168                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
2169                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
2170                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
2171         }
2172         if (ndr_flags & NDR_BUFFERS) {
2173         }
2174         return NDR_ERR_SUCCESS;
2175 }
2176
2177 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
2178 {
2179         ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
2180         ndr->depth++;
2181         ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
2182         ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
2183         ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
2184         ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
2185         ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
2186         ndr->depth--;
2187 }
2188
2189 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
2190 {
2191         ndr_print_struct(ndr, name, "NetJoinDomain");
2192         ndr->depth++;
2193         if (flags & NDR_SET_VALUES) {
2194                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2195         }
2196         if (flags & NDR_IN) {
2197                 ndr_print_struct(ndr, "in", "NetJoinDomain");
2198                 ndr->depth++;
2199                 ndr_print_ptr(ndr, "server", r->in.server);
2200                 ndr->depth++;
2201                 if (r->in.server) {
2202                         ndr_print_string(ndr, "server", r->in.server);
2203                 }
2204                 ndr->depth--;
2205                 ndr_print_ptr(ndr, "domain", r->in.domain);
2206                 ndr->depth++;
2207                 ndr_print_string(ndr, "domain", r->in.domain);
2208                 ndr->depth--;
2209                 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
2210                 ndr->depth++;
2211                 if (r->in.account_ou) {
2212                         ndr_print_string(ndr, "account_ou", r->in.account_ou);
2213                 }
2214                 ndr->depth--;
2215                 ndr_print_ptr(ndr, "account", r->in.account);
2216                 ndr->depth++;
2217                 if (r->in.account) {
2218                         ndr_print_string(ndr, "account", r->in.account);
2219                 }
2220                 ndr->depth--;
2221                 ndr_print_ptr(ndr, "password", r->in.password);
2222                 ndr->depth++;
2223                 if (r->in.password) {
2224                         ndr_print_string(ndr, "password", r->in.password);
2225                 }
2226                 ndr->depth--;
2227                 ndr_print_NetJoinFlags(ndr, "join_flags", r->in.join_flags);
2228                 ndr->depth--;
2229         }
2230         if (flags & NDR_OUT) {
2231                 ndr_print_struct(ndr, "out", "NetJoinDomain");
2232                 ndr->depth++;
2233                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2234                 ndr->depth--;
2235         }
2236         ndr->depth--;
2237 }
2238
2239 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
2240 {
2241         ndr_print_struct(ndr, name, "NetUnjoinDomain");
2242         ndr->depth++;
2243         if (flags & NDR_SET_VALUES) {
2244                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2245         }
2246         if (flags & NDR_IN) {
2247                 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
2248                 ndr->depth++;
2249                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2250                 ndr->depth++;
2251                 if (r->in.server_name) {
2252                         ndr_print_string(ndr, "server_name", r->in.server_name);
2253                 }
2254                 ndr->depth--;
2255                 ndr_print_ptr(ndr, "account", r->in.account);
2256                 ndr->depth++;
2257                 if (r->in.account) {
2258                         ndr_print_string(ndr, "account", r->in.account);
2259                 }
2260                 ndr->depth--;
2261                 ndr_print_ptr(ndr, "password", r->in.password);
2262                 ndr->depth++;
2263                 if (r->in.password) {
2264                         ndr_print_string(ndr, "password", r->in.password);
2265                 }
2266                 ndr->depth--;
2267                 ndr_print_NetJoinFlags(ndr, "unjoin_flags", r->in.unjoin_flags);
2268                 ndr->depth--;
2269         }
2270         if (flags & NDR_OUT) {
2271                 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
2272                 ndr->depth++;
2273                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2274                 ndr->depth--;
2275         }
2276         ndr->depth--;
2277 }
2278
2279 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
2280 {
2281         ndr_print_struct(ndr, name, "NetGetJoinInformation");
2282         ndr->depth++;
2283         if (flags & NDR_SET_VALUES) {
2284                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2285         }
2286         if (flags & NDR_IN) {
2287                 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
2288                 ndr->depth++;
2289                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2290                 ndr->depth++;
2291                 if (r->in.server_name) {
2292                         ndr_print_string(ndr, "server_name", r->in.server_name);
2293                 }
2294                 ndr->depth--;
2295                 ndr->depth--;
2296         }
2297         if (flags & NDR_OUT) {
2298                 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
2299                 ndr->depth++;
2300                 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
2301                 ndr->depth++;
2302                 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
2303                 ndr->depth++;
2304                 if (*r->out.name_buffer) {
2305                         ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
2306                 }
2307                 ndr->depth--;
2308                 ndr->depth--;
2309                 ndr_print_ptr(ndr, "name_type", r->out.name_type);
2310                 ndr->depth++;
2311                 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
2312                 ndr->depth--;
2313                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2314                 ndr->depth--;
2315         }
2316         ndr->depth--;
2317 }
2318
2319 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
2320 {
2321         ndr_print_struct(ndr, name, "NetGetJoinableOUs");
2322         ndr->depth++;
2323         if (flags & NDR_SET_VALUES) {
2324                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2325         }
2326         if (flags & NDR_IN) {
2327                 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
2328                 ndr->depth++;
2329                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2330                 ndr->depth++;
2331                 if (r->in.server_name) {
2332                         ndr_print_string(ndr, "server_name", r->in.server_name);
2333                 }
2334                 ndr->depth--;
2335                 ndr_print_ptr(ndr, "domain", r->in.domain);
2336                 ndr->depth++;
2337                 ndr_print_string(ndr, "domain", r->in.domain);
2338                 ndr->depth--;
2339                 ndr_print_ptr(ndr, "account", r->in.account);
2340                 ndr->depth++;
2341                 if (r->in.account) {
2342                         ndr_print_string(ndr, "account", r->in.account);
2343                 }
2344                 ndr->depth--;
2345                 ndr_print_ptr(ndr, "password", r->in.password);
2346                 ndr->depth++;
2347                 if (r->in.password) {
2348                         ndr_print_string(ndr, "password", r->in.password);
2349                 }
2350                 ndr->depth--;
2351                 ndr->depth--;
2352         }
2353         if (flags & NDR_OUT) {
2354                 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
2355                 ndr->depth++;
2356                 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
2357                 ndr->depth++;
2358                 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
2359                 ndr->depth--;
2360                 ndr_print_ptr(ndr, "ous", r->out.ous);
2361                 ndr->depth++;
2362                 ndr_print_ptr(ndr, "ous", *r->out.ous);
2363                 ndr->depth++;
2364                 if (*r->out.ous) {
2365                         ndr_print_ptr(ndr, "ous", **r->out.ous);
2366                         ndr->depth++;
2367                         if (**r->out.ous) {
2368                                 ndr_print_string(ndr, "ous", **r->out.ous);
2369                         }
2370                         ndr->depth--;
2371                 }
2372                 ndr->depth--;
2373                 ndr->depth--;
2374                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2375                 ndr->depth--;
2376         }
2377         ndr->depth--;
2378 }
2379
2380 _PUBLIC_ void ndr_print_NetRenameMachineInDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetRenameMachineInDomain *r)
2381 {
2382         ndr_print_struct(ndr, name, "NetRenameMachineInDomain");
2383         ndr->depth++;
2384         if (flags & NDR_SET_VALUES) {
2385                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2386         }
2387         if (flags & NDR_IN) {
2388                 ndr_print_struct(ndr, "in", "NetRenameMachineInDomain");
2389                 ndr->depth++;
2390                 ndr_print_string(ndr, "server_name", r->in.server_name);
2391                 ndr_print_string(ndr, "new_machine_name", r->in.new_machine_name);
2392                 ndr_print_string(ndr, "account", r->in.account);
2393                 ndr_print_string(ndr, "password", r->in.password);
2394                 ndr_print_uint32(ndr, "rename_options", r->in.rename_options);
2395                 ndr->depth--;
2396         }
2397         if (flags & NDR_OUT) {
2398                 ndr_print_struct(ndr, "out", "NetRenameMachineInDomain");
2399                 ndr->depth++;
2400                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2401                 ndr->depth--;
2402         }
2403         ndr->depth--;
2404 }
2405
2406 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
2407 {
2408         ndr_print_struct(ndr, name, "NetServerGetInfo");
2409         ndr->depth++;
2410         if (flags & NDR_SET_VALUES) {
2411                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2412         }
2413         if (flags & NDR_IN) {
2414                 ndr_print_struct(ndr, "in", "NetServerGetInfo");
2415                 ndr->depth++;
2416                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2417                 ndr->depth++;
2418                 if (r->in.server_name) {
2419                         ndr_print_string(ndr, "server_name", r->in.server_name);
2420                 }
2421                 ndr->depth--;
2422                 ndr_print_uint32(ndr, "level", r->in.level);
2423                 ndr->depth--;
2424         }
2425         if (flags & NDR_OUT) {
2426                 ndr_print_struct(ndr, "out", "NetServerGetInfo");
2427                 ndr->depth++;
2428                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2429                 ndr->depth++;
2430                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2431                 ndr->depth++;
2432                 if (*r->out.buffer) {
2433                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2434                 }
2435                 ndr->depth--;
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_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
2444 {
2445         ndr_print_struct(ndr, name, "NetServerSetInfo");
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", "NetServerSetInfo");
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_print_ptr(ndr, "buffer", r->in.buffer);
2461                 ndr->depth++;
2462                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2463                 ndr->depth--;
2464                 ndr->depth--;
2465         }
2466         if (flags & NDR_OUT) {
2467                 ndr_print_struct(ndr, "out", "NetServerSetInfo");
2468                 ndr->depth++;
2469                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2470                 ndr->depth++;
2471                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2472                 ndr->depth--;
2473                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2474                 ndr->depth--;
2475         }
2476         ndr->depth--;
2477 }
2478
2479 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
2480 {
2481         ndr_print_struct(ndr, name, "NetGetDCName");
2482         ndr->depth++;
2483         if (flags & NDR_SET_VALUES) {
2484                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2485         }
2486         if (flags & NDR_IN) {
2487                 ndr_print_struct(ndr, "in", "NetGetDCName");
2488                 ndr->depth++;
2489                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2490                 ndr->depth++;
2491                 if (r->in.server_name) {
2492                         ndr_print_string(ndr, "server_name", r->in.server_name);
2493                 }
2494                 ndr->depth--;
2495                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2496                 ndr->depth++;
2497                 if (r->in.domain_name) {
2498                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2499                 }
2500                 ndr->depth--;
2501                 ndr->depth--;
2502         }
2503         if (flags & NDR_OUT) {
2504                 ndr_print_struct(ndr, "out", "NetGetDCName");
2505                 ndr->depth++;
2506                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2507                 ndr->depth++;
2508                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2509                 ndr->depth++;
2510                 if (*r->out.buffer) {
2511                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2512                 }
2513                 ndr->depth--;
2514                 ndr->depth--;
2515                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2516                 ndr->depth--;
2517         }
2518         ndr->depth--;
2519 }
2520
2521 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
2522 {
2523         ndr_print_struct(ndr, name, "NetGetAnyDCName");
2524         ndr->depth++;
2525         if (flags & NDR_SET_VALUES) {
2526                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2527         }
2528         if (flags & NDR_IN) {
2529                 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
2530                 ndr->depth++;
2531                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2532                 ndr->depth++;
2533                 if (r->in.server_name) {
2534                         ndr_print_string(ndr, "server_name", r->in.server_name);
2535                 }
2536                 ndr->depth--;
2537                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2538                 ndr->depth++;
2539                 if (r->in.domain_name) {
2540                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2541                 }
2542                 ndr->depth--;
2543                 ndr->depth--;
2544         }
2545         if (flags & NDR_OUT) {
2546                 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
2547                 ndr->depth++;
2548                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2549                 ndr->depth++;
2550                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2551                 ndr->depth++;
2552                 if (*r->out.buffer) {
2553                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2554                 }
2555                 ndr->depth--;
2556                 ndr->depth--;
2557                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2558                 ndr->depth--;
2559         }
2560         ndr->depth--;
2561 }
2562
2563 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
2564 {
2565         ndr_print_struct(ndr, name, "DsGetDcName");
2566         ndr->depth++;
2567         if (flags & NDR_SET_VALUES) {
2568                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2569         }
2570         if (flags & NDR_IN) {
2571                 ndr_print_struct(ndr, "in", "DsGetDcName");
2572                 ndr->depth++;
2573                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2574                 ndr->depth++;
2575                 if (r->in.server_name) {
2576                         ndr_print_string(ndr, "server_name", r->in.server_name);
2577                 }
2578                 ndr->depth--;
2579                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2580                 ndr->depth++;
2581                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2582                 ndr->depth--;
2583                 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
2584                 ndr->depth++;
2585                 if (r->in.domain_guid) {
2586                         ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
2587                 }
2588                 ndr->depth--;
2589                 ndr_print_ptr(ndr, "site_name", r->in.site_name);
2590                 ndr->depth++;
2591                 if (r->in.site_name) {
2592                         ndr_print_string(ndr, "site_name", r->in.site_name);
2593                 }
2594                 ndr->depth--;
2595                 ndr_print_uint32(ndr, "flags", r->in.flags);
2596                 ndr->depth--;
2597         }
2598         if (flags & NDR_OUT) {
2599                 ndr_print_struct(ndr, "out", "DsGetDcName");
2600                 ndr->depth++;
2601                 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
2602                 ndr->depth++;
2603                 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
2604                 ndr->depth++;
2605                 if (*r->out.dc_info) {
2606                         ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
2607                 }
2608                 ndr->depth--;
2609                 ndr->depth--;
2610                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2611                 ndr->depth--;
2612         }
2613         ndr->depth--;
2614 }
2615
2616 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
2617 {
2618         ndr_print_struct(ndr, name, "NetUserAdd");
2619         ndr->depth++;
2620         if (flags & NDR_SET_VALUES) {
2621                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2622         }
2623         if (flags & NDR_IN) {
2624                 ndr_print_struct(ndr, "in", "NetUserAdd");
2625                 ndr->depth++;
2626                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2627                 ndr->depth++;
2628                 if (r->in.server_name) {
2629                         ndr_print_string(ndr, "server_name", r->in.server_name);
2630                 }
2631                 ndr->depth--;
2632                 ndr_print_uint32(ndr, "level", r->in.level);
2633                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2634                 ndr->depth++;
2635                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2636                 ndr->depth--;
2637                 ndr->depth--;
2638         }
2639         if (flags & NDR_OUT) {
2640                 ndr_print_struct(ndr, "out", "NetUserAdd");
2641                 ndr->depth++;
2642                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2643                 ndr->depth++;
2644                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2645                 ndr->depth--;
2646                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2647                 ndr->depth--;
2648         }
2649         ndr->depth--;
2650 }
2651
2652 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
2653 {
2654         ndr_print_struct(ndr, name, "NetUserDel");
2655         ndr->depth++;
2656         if (flags & NDR_SET_VALUES) {
2657                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2658         }
2659         if (flags & NDR_IN) {
2660                 ndr_print_struct(ndr, "in", "NetUserDel");
2661                 ndr->depth++;
2662                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2663                 ndr->depth++;
2664                 if (r->in.server_name) {
2665                         ndr_print_string(ndr, "server_name", r->in.server_name);
2666                 }
2667                 ndr->depth--;
2668                 ndr_print_ptr(ndr, "user_name", r->in.user_name);
2669                 ndr->depth++;
2670                 ndr_print_string(ndr, "user_name", r->in.user_name);
2671                 ndr->depth--;
2672                 ndr->depth--;
2673         }
2674         if (flags & NDR_OUT) {
2675                 ndr_print_struct(ndr, "out", "NetUserDel");
2676                 ndr->depth++;
2677                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2678                 ndr->depth--;
2679         }
2680         ndr->depth--;
2681 }
2682
2683 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
2684 {
2685         ndr_print_struct(ndr, name, "NetUserEnum");
2686         ndr->depth++;
2687         if (flags & NDR_SET_VALUES) {
2688                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2689         }
2690         if (flags & NDR_IN) {
2691                 ndr_print_struct(ndr, "in", "NetUserEnum");
2692                 ndr->depth++;
2693                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2694                 ndr->depth++;
2695                 if (r->in.server_name) {
2696                         ndr_print_string(ndr, "server_name", r->in.server_name);
2697                 }
2698                 ndr->depth--;
2699                 ndr_print_uint32(ndr, "level", r->in.level);
2700                 ndr_print_uint32(ndr, "filter", r->in.filter);
2701                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2702                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2703                 ndr->depth++;
2704                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2705                 ndr->depth--;
2706                 ndr->depth--;
2707         }
2708         if (flags & NDR_OUT) {
2709                 ndr_print_struct(ndr, "out", "NetUserEnum");
2710                 ndr->depth++;
2711                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2712                 ndr->depth++;
2713                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2714                 ndr->depth++;
2715                 if (*r->out.buffer) {
2716                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2717                 }
2718                 ndr->depth--;
2719                 ndr->depth--;
2720                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2721                 ndr->depth++;
2722                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2723                 ndr->depth--;
2724                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2725                 ndr->depth++;
2726                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2727                 ndr->depth--;
2728                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2729                 ndr->depth++;
2730                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2731                 ndr->depth--;
2732                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2733                 ndr->depth--;
2734         }
2735         ndr->depth--;
2736 }
2737
2738 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
2739 {
2740         ndr_print_struct(ndr, name, "NetUserChangePassword");
2741         ndr->depth++;
2742         if (flags & NDR_SET_VALUES) {
2743                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2744         }
2745         if (flags & NDR_IN) {
2746                 ndr_print_struct(ndr, "in", "NetUserChangePassword");
2747                 ndr->depth++;
2748                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2749                 ndr_print_string(ndr, "user_name", r->in.user_name);
2750                 ndr_print_string(ndr, "old_password", r->in.old_password);
2751                 ndr_print_string(ndr, "new_password", r->in.new_password);
2752                 ndr->depth--;
2753         }
2754         if (flags & NDR_OUT) {
2755                 ndr_print_struct(ndr, "out", "NetUserChangePassword");
2756                 ndr->depth++;
2757                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2758                 ndr->depth--;
2759         }
2760         ndr->depth--;
2761 }
2762
2763 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
2764 {
2765         ndr_print_struct(ndr, name, "NetUserGetInfo");
2766         ndr->depth++;
2767         if (flags & NDR_SET_VALUES) {
2768                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2769         }
2770         if (flags & NDR_IN) {
2771                 ndr_print_struct(ndr, "in", "NetUserGetInfo");
2772                 ndr->depth++;
2773                 ndr_print_string(ndr, "server_name", r->in.server_name);
2774                 ndr_print_string(ndr, "user_name", r->in.user_name);
2775                 ndr_print_uint32(ndr, "level", r->in.level);
2776                 ndr->depth--;
2777         }
2778         if (flags & NDR_OUT) {
2779                 ndr_print_struct(ndr, "out", "NetUserGetInfo");
2780                 ndr->depth++;
2781                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2782                 ndr->depth++;
2783                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2784                 ndr->depth++;
2785                 if (*r->out.buffer) {
2786                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2787                 }
2788                 ndr->depth--;
2789                 ndr->depth--;
2790                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2791                 ndr->depth--;
2792         }
2793         ndr->depth--;
2794 }
2795
2796 _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
2797 {
2798         ndr_print_struct(ndr, name, "NetUserSetInfo");
2799         ndr->depth++;
2800         if (flags & NDR_SET_VALUES) {
2801                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2802         }
2803         if (flags & NDR_IN) {
2804                 ndr_print_struct(ndr, "in", "NetUserSetInfo");
2805                 ndr->depth++;
2806                 ndr_print_string(ndr, "server_name", r->in.server_name);
2807                 ndr_print_string(ndr, "user_name", r->in.user_name);
2808                 ndr_print_uint32(ndr, "level", r->in.level);
2809                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2810                 ndr->depth++;
2811                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2812                 ndr->depth--;
2813                 ndr->depth--;
2814         }
2815         if (flags & NDR_OUT) {
2816                 ndr_print_struct(ndr, "out", "NetUserSetInfo");
2817                 ndr->depth++;
2818                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2819                 ndr->depth++;
2820                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2821                 ndr->depth--;
2822                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2823                 ndr->depth--;
2824         }
2825         ndr->depth--;
2826 }
2827
2828 _PUBLIC_ void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetGroups *r)
2829 {
2830         ndr_print_struct(ndr, name, "NetUserGetGroups");
2831         ndr->depth++;
2832         if (flags & NDR_SET_VALUES) {
2833                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2834         }
2835         if (flags & NDR_IN) {
2836                 ndr_print_struct(ndr, "in", "NetUserGetGroups");
2837                 ndr->depth++;
2838                 ndr_print_string(ndr, "server_name", r->in.server_name);
2839                 ndr_print_string(ndr, "user_name", r->in.user_name);
2840                 ndr_print_uint32(ndr, "level", r->in.level);
2841                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2842                 ndr->depth--;
2843         }
2844         if (flags & NDR_OUT) {
2845                 ndr_print_struct(ndr, "out", "NetUserGetGroups");
2846                 ndr->depth++;
2847                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2848                 ndr->depth++;
2849                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2850                 ndr->depth++;
2851                 if (*r->out.buffer) {
2852                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2853                 }
2854                 ndr->depth--;
2855                 ndr->depth--;
2856                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2857                 ndr->depth++;
2858                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2859                 ndr->depth--;
2860                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2861                 ndr->depth++;
2862                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2863                 ndr->depth--;
2864                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2865                 ndr->depth--;
2866         }
2867         ndr->depth--;
2868 }
2869
2870 _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r)
2871 {
2872         ndr_print_struct(ndr, name, "NetUserModalsGet");
2873         ndr->depth++;
2874         if (flags & NDR_SET_VALUES) {
2875                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2876         }
2877         if (flags & NDR_IN) {
2878                 ndr_print_struct(ndr, "in", "NetUserModalsGet");
2879                 ndr->depth++;
2880                 ndr_print_string(ndr, "server_name", r->in.server_name);
2881                 ndr_print_uint32(ndr, "level", r->in.level);
2882                 ndr->depth--;
2883         }
2884         if (flags & NDR_OUT) {
2885                 ndr_print_struct(ndr, "out", "NetUserModalsGet");
2886                 ndr->depth++;
2887                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2888                 ndr->depth++;
2889                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2890                 ndr->depth++;
2891                 if (*r->out.buffer) {
2892                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2893                 }
2894                 ndr->depth--;
2895                 ndr->depth--;
2896                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2897                 ndr->depth--;
2898         }
2899         ndr->depth--;
2900 }
2901
2902 _PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r)
2903 {
2904         ndr_print_struct(ndr, name, "NetUserModalsSet");
2905         ndr->depth++;
2906         if (flags & NDR_SET_VALUES) {
2907                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2908         }
2909         if (flags & NDR_IN) {
2910                 ndr_print_struct(ndr, "in", "NetUserModalsSet");
2911                 ndr->depth++;
2912                 ndr_print_string(ndr, "server_name", r->in.server_name);
2913                 ndr_print_uint32(ndr, "level", r->in.level);
2914                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2915                 ndr->depth++;
2916                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2917                 ndr->depth--;
2918                 ndr->depth--;
2919         }
2920         if (flags & NDR_OUT) {
2921                 ndr_print_struct(ndr, "out", "NetUserModalsSet");
2922                 ndr->depth++;
2923                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2924                 ndr->depth++;
2925                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2926                 ndr->depth--;
2927                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2928                 ndr->depth--;
2929         }
2930         ndr->depth--;
2931 }
2932
2933 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
2934 {
2935         ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
2936         ndr->depth++;
2937         if (flags & NDR_SET_VALUES) {
2938                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2939         }
2940         if (flags & NDR_IN) {
2941                 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
2942                 ndr->depth++;
2943                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2944                 ndr->depth++;
2945                 if (r->in.server_name) {
2946                         ndr_print_string(ndr, "server_name", r->in.server_name);
2947                 }
2948                 ndr->depth--;
2949                 ndr_print_uint32(ndr, "level", r->in.level);
2950                 ndr_print_uint32(ndr, "idx", r->in.idx);
2951                 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
2952                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2953                 ndr->depth--;
2954         }
2955         if (flags & NDR_OUT) {
2956                 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
2957                 ndr->depth++;
2958                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2959                 ndr->depth++;
2960                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2961                 ndr->depth--;
2962                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2963                 ndr->depth--;
2964         }
2965         ndr->depth--;
2966 }
2967
2968 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
2969 {
2970         ndr_print_struct(ndr, name, "NetGroupAdd");
2971         ndr->depth++;
2972         if (flags & NDR_SET_VALUES) {
2973                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2974         }
2975         if (flags & NDR_IN) {
2976                 ndr_print_struct(ndr, "in", "NetGroupAdd");
2977                 ndr->depth++;
2978                 ndr_print_string(ndr, "server_name", r->in.server_name);
2979                 ndr_print_uint32(ndr, "level", r->in.level);
2980                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2981                 ndr->depth++;
2982                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2983                 ndr->depth--;
2984                 ndr->depth--;
2985         }
2986         if (flags & NDR_OUT) {
2987                 ndr_print_struct(ndr, "out", "NetGroupAdd");
2988                 ndr->depth++;
2989                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2990                 ndr->depth++;
2991                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2992                 ndr->depth--;
2993                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2994                 ndr->depth--;
2995         }
2996         ndr->depth--;
2997 }
2998
2999 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
3000 {
3001         ndr_print_struct(ndr, name, "NetGroupDel");
3002         ndr->depth++;
3003         if (flags & NDR_SET_VALUES) {
3004                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3005         }
3006         if (flags & NDR_IN) {
3007                 ndr_print_struct(ndr, "in", "NetGroupDel");
3008                 ndr->depth++;
3009                 ndr_print_string(ndr, "server_name", r->in.server_name);
3010                 ndr_print_string(ndr, "group_name", r->in.group_name);
3011                 ndr->depth--;
3012         }
3013         if (flags & NDR_OUT) {
3014                 ndr_print_struct(ndr, "out", "NetGroupDel");
3015                 ndr->depth++;
3016                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3017                 ndr->depth--;
3018         }
3019         ndr->depth--;
3020 }
3021
3022 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
3023 {
3024         ndr_print_struct(ndr, name, "NetGroupEnum");
3025         ndr->depth++;
3026         if (flags & NDR_SET_VALUES) {
3027                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3028         }
3029         if (flags & NDR_IN) {
3030                 ndr_print_struct(ndr, "in", "NetGroupEnum");
3031                 ndr->depth++;
3032                 ndr_print_string(ndr, "server_name", r->in.server_name);
3033                 ndr_print_uint32(ndr, "level", r->in.level);
3034                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3035                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3036                 ndr->depth++;
3037                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3038                 ndr->depth--;
3039                 ndr->depth--;
3040         }
3041         if (flags & NDR_OUT) {
3042                 ndr_print_struct(ndr, "out", "NetGroupEnum");
3043                 ndr->depth++;
3044                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3045                 ndr->depth++;
3046                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3047                 ndr->depth++;
3048                 if (*r->out.buffer) {
3049                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3050                 }
3051                 ndr->depth--;
3052                 ndr->depth--;
3053                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3054                 ndr->depth++;
3055                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3056                 ndr->depth--;
3057                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3058                 ndr->depth++;
3059                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3060                 ndr->depth--;
3061                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3062                 ndr->depth++;
3063                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3064                 ndr->depth--;
3065                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3066                 ndr->depth--;
3067         }
3068         ndr->depth--;
3069 }
3070
3071 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
3072 {
3073         ndr_print_struct(ndr, name, "NetGroupSetInfo");
3074         ndr->depth++;
3075         if (flags & NDR_SET_VALUES) {
3076                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3077         }
3078         if (flags & NDR_IN) {
3079                 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
3080                 ndr->depth++;
3081                 ndr_print_string(ndr, "server_name", r->in.server_name);
3082                 ndr_print_string(ndr, "group_name", r->in.group_name);
3083                 ndr_print_uint32(ndr, "level", r->in.level);
3084                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3085                 ndr->depth++;
3086                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3087                 ndr->depth--;
3088                 ndr->depth--;
3089         }
3090         if (flags & NDR_OUT) {
3091                 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
3092                 ndr->depth++;
3093                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3094                 ndr->depth++;
3095                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3096                 ndr->depth--;
3097                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3098                 ndr->depth--;
3099         }
3100         ndr->depth--;
3101 }
3102
3103 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
3104 {
3105         ndr_print_struct(ndr, name, "NetGroupGetInfo");
3106         ndr->depth++;
3107         if (flags & NDR_SET_VALUES) {
3108                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3109         }
3110         if (flags & NDR_IN) {
3111                 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
3112                 ndr->depth++;
3113                 ndr_print_string(ndr, "server_name", r->in.server_name);
3114                 ndr_print_string(ndr, "group_name", r->in.group_name);
3115                 ndr_print_uint32(ndr, "level", r->in.level);
3116                 ndr->depth--;
3117         }
3118         if (flags & NDR_OUT) {
3119                 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
3120                 ndr->depth++;
3121                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3122                 ndr->depth++;
3123                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3124                 ndr->depth++;
3125                 if (*r->out.buffer) {
3126                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3127                 }
3128                 ndr->depth--;
3129                 ndr->depth--;
3130                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3131                 ndr->depth--;
3132         }
3133         ndr->depth--;
3134 }
3135
3136 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
3137 {
3138         ndr_print_struct(ndr, name, "NetGroupAddUser");
3139         ndr->depth++;
3140         if (flags & NDR_SET_VALUES) {
3141                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3142         }
3143         if (flags & NDR_IN) {
3144                 ndr_print_struct(ndr, "in", "NetGroupAddUser");
3145                 ndr->depth++;
3146                 ndr_print_string(ndr, "server_name", r->in.server_name);
3147                 ndr_print_string(ndr, "group_name", r->in.group_name);
3148                 ndr_print_string(ndr, "user_name", r->in.user_name);
3149                 ndr->depth--;
3150         }
3151         if (flags & NDR_OUT) {
3152                 ndr_print_struct(ndr, "out", "NetGroupAddUser");
3153                 ndr->depth++;
3154                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3155                 ndr->depth--;
3156         }
3157         ndr->depth--;
3158 }
3159
3160 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
3161 {
3162         ndr_print_struct(ndr, name, "NetGroupDelUser");
3163         ndr->depth++;
3164         if (flags & NDR_SET_VALUES) {
3165                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3166         }
3167         if (flags & NDR_IN) {
3168                 ndr_print_struct(ndr, "in", "NetGroupDelUser");
3169                 ndr->depth++;
3170                 ndr_print_string(ndr, "server_name", r->in.server_name);
3171                 ndr_print_string(ndr, "group_name", r->in.group_name);
3172                 ndr_print_string(ndr, "user_name", r->in.user_name);
3173                 ndr->depth--;
3174         }
3175         if (flags & NDR_OUT) {
3176                 ndr_print_struct(ndr, "out", "NetGroupDelUser");
3177                 ndr->depth++;
3178                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3179                 ndr->depth--;
3180         }
3181         ndr->depth--;
3182 }
3183
3184 _PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r)
3185 {
3186         ndr_print_struct(ndr, name, "NetGroupGetUsers");
3187         ndr->depth++;
3188         if (flags & NDR_SET_VALUES) {
3189                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3190         }
3191         if (flags & NDR_IN) {
3192                 ndr_print_struct(ndr, "in", "NetGroupGetUsers");
3193                 ndr->depth++;
3194                 ndr_print_string(ndr, "server_name", r->in.server_name);
3195                 ndr_print_string(ndr, "group_name", r->in.group_name);
3196                 ndr_print_uint32(ndr, "level", r->in.level);
3197                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3198                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3199                 ndr->depth++;
3200                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3201                 ndr->depth--;
3202                 ndr->depth--;
3203         }
3204         if (flags & NDR_OUT) {
3205                 ndr_print_struct(ndr, "out", "NetGroupGetUsers");
3206                 ndr->depth++;
3207                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3208                 ndr->depth++;
3209                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3210                 ndr->depth++;
3211                 if (*r->out.buffer) {
3212                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3213                 }
3214                 ndr->depth--;
3215                 ndr->depth--;
3216                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3217                 ndr->depth++;
3218                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3219                 ndr->depth--;
3220                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3221                 ndr->depth++;
3222                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3223                 ndr->depth--;
3224                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3225                 ndr->depth++;
3226                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3227                 ndr->depth--;
3228                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3229                 ndr->depth--;
3230         }
3231         ndr->depth--;
3232 }
3233
3234 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
3235 {
3236         ndr_print_struct(ndr, name, "NetLocalGroupAdd");
3237         ndr->depth++;
3238         if (flags & NDR_SET_VALUES) {
3239                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3240         }
3241         if (flags & NDR_IN) {
3242                 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
3243                 ndr->depth++;
3244                 ndr_print_string(ndr, "server_name", r->in.server_name);
3245                 ndr_print_uint32(ndr, "level", r->in.level);
3246                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3247                 ndr->depth++;
3248                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3249                 ndr->depth--;
3250                 ndr->depth--;
3251         }
3252         if (flags & NDR_OUT) {
3253                 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
3254                 ndr->depth++;
3255                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3256                 ndr->depth++;
3257                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3258                 ndr->depth--;
3259                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3260                 ndr->depth--;
3261         }
3262         ndr->depth--;
3263 }
3264
3265 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
3266 {
3267         ndr_print_struct(ndr, name, "NetLocalGroupDel");
3268         ndr->depth++;
3269         if (flags & NDR_SET_VALUES) {
3270                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3271         }
3272         if (flags & NDR_IN) {
3273                 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
3274                 ndr->depth++;
3275                 ndr_print_string(ndr, "server_name", r->in.server_name);
3276                 ndr_print_string(ndr, "group_name", r->in.group_name);
3277                 ndr->depth--;
3278         }
3279         if (flags & NDR_OUT) {
3280                 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
3281                 ndr->depth++;
3282                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3283                 ndr->depth--;
3284         }
3285         ndr->depth--;
3286 }
3287
3288 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
3289 {
3290         ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
3291         ndr->depth++;
3292         if (flags & NDR_SET_VALUES) {
3293                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3294         }
3295         if (flags & NDR_IN) {
3296                 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
3297                 ndr->depth++;
3298                 ndr_print_string(ndr, "server_name", r->in.server_name);
3299                 ndr_print_string(ndr, "group_name", r->in.group_name);
3300                 ndr_print_uint32(ndr, "level", r->in.level);
3301                 ndr->depth--;
3302         }
3303         if (flags & NDR_OUT) {
3304                 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
3305                 ndr->depth++;
3306                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3307                 ndr->depth++;
3308                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3309                 ndr->depth++;
3310                 if (*r->out.buffer) {
3311                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3312                 }
3313                 ndr->depth--;
3314                 ndr->depth--;
3315                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3316                 ndr->depth--;
3317         }
3318         ndr->depth--;
3319 }
3320
3321 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
3322 {
3323         ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
3324         ndr->depth++;
3325         if (flags & NDR_SET_VALUES) {
3326                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3327         }
3328         if (flags & NDR_IN) {
3329                 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
3330                 ndr->depth++;
3331                 ndr_print_string(ndr, "server_name", r->in.server_name);
3332                 ndr_print_string(ndr, "group_name", r->in.group_name);
3333                 ndr_print_uint32(ndr, "level", r->in.level);
3334                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3335                 ndr->depth++;
3336                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3337                 ndr->depth--;
3338                 ndr->depth--;
3339         }
3340         if (flags & NDR_OUT) {
3341                 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
3342                 ndr->depth++;
3343                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3344                 ndr->depth++;
3345                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3346                 ndr->depth--;
3347                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3348                 ndr->depth--;
3349         }
3350         ndr->depth--;
3351 }
3352
3353 _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r)
3354 {
3355         ndr_print_struct(ndr, name, "NetLocalGroupEnum");
3356         ndr->depth++;
3357         if (flags & NDR_SET_VALUES) {
3358                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3359         }
3360         if (flags & NDR_IN) {
3361                 ndr_print_struct(ndr, "in", "NetLocalGroupEnum");
3362                 ndr->depth++;
3363                 ndr_print_string(ndr, "server_name", r->in.server_name);
3364                 ndr_print_uint32(ndr, "level", r->in.level);
3365                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3366                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3367                 ndr->depth++;
3368                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3369                 ndr->depth--;
3370                 ndr->depth--;
3371         }
3372         if (flags & NDR_OUT) {
3373                 ndr_print_struct(ndr, "out", "NetLocalGroupEnum");
3374                 ndr->depth++;
3375                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3376                 ndr->depth++;
3377                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3378                 ndr->depth++;
3379                 if (*r->out.buffer) {
3380                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3381                 }
3382                 ndr->depth--;
3383                 ndr->depth--;
3384                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3385                 ndr->depth++;
3386                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3387                 ndr->depth--;
3388                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3389                 ndr->depth++;
3390                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3391                 ndr->depth--;
3392                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3393                 ndr->depth++;
3394                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3395                 ndr->depth--;
3396                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3397                 ndr->depth--;
3398         }
3399         ndr->depth--;
3400 }
3401
3402 _PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r)
3403 {
3404         ndr_print_struct(ndr, name, "NetLocalGroupAddMembers");
3405         ndr->depth++;
3406         if (flags & NDR_SET_VALUES) {
3407                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3408         }
3409         if (flags & NDR_IN) {
3410                 ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers");
3411                 ndr->depth++;
3412                 ndr_print_string(ndr, "server_name", r->in.server_name);
3413                 ndr_print_string(ndr, "group_name", r->in.group_name);
3414                 ndr_print_uint32(ndr, "level", r->in.level);
3415                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3416                 ndr->depth++;
3417                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3418                 ndr->depth--;
3419                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3420                 ndr->depth--;
3421         }
3422         if (flags & NDR_OUT) {
3423                 ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers");
3424                 ndr->depth++;
3425                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3426                 ndr->depth--;
3427         }
3428         ndr->depth--;
3429 }
3430
3431 _PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r)
3432 {
3433         ndr_print_struct(ndr, name, "NetLocalGroupDelMembers");
3434         ndr->depth++;
3435         if (flags & NDR_SET_VALUES) {
3436                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3437         }
3438         if (flags & NDR_IN) {
3439                 ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers");
3440                 ndr->depth++;
3441                 ndr_print_string(ndr, "server_name", r->in.server_name);
3442                 ndr_print_string(ndr, "group_name", r->in.group_name);
3443                 ndr_print_uint32(ndr, "level", r->in.level);
3444                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3445                 ndr->depth++;
3446                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3447                 ndr->depth--;
3448                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3449                 ndr->depth--;
3450         }
3451         if (flags & NDR_OUT) {
3452                 ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers");
3453                 ndr->depth++;
3454                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3455                 ndr->depth--;
3456         }
3457         ndr->depth--;
3458 }
3459
3460 _PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r)
3461 {
3462         ndr_print_struct(ndr, name, "NetLocalGroupGetMembers");
3463         ndr->depth++;
3464         if (flags & NDR_SET_VALUES) {
3465                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3466         }
3467         if (flags & NDR_IN) {
3468                 ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers");
3469                 ndr->depth++;
3470                 ndr_print_string(ndr, "server_name", r->in.server_name);
3471                 ndr_print_string(ndr, "local_group_name", r->in.local_group_name);
3472                 ndr_print_uint32(ndr, "level", r->in.level);
3473                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3474                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3475                 ndr->depth++;
3476                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3477                 ndr->depth--;
3478                 ndr->depth--;
3479         }
3480         if (flags & NDR_OUT) {
3481                 ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers");
3482                 ndr->depth++;
3483                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3484                 ndr->depth++;
3485                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3486                 ndr->depth++;
3487                 if (*r->out.buffer) {
3488                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3489                 }
3490                 ndr->depth--;
3491                 ndr->depth--;
3492                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3493                 ndr->depth++;
3494                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3495                 ndr->depth--;
3496                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3497                 ndr->depth++;
3498                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3499                 ndr->depth--;
3500                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3501                 ndr->depth++;
3502                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3503                 ndr->depth--;
3504                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3505                 ndr->depth--;
3506         }
3507         ndr->depth--;
3508 }
3509
3510 _PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r)
3511 {
3512         ndr_print_struct(ndr, name, "NetLocalGroupSetMembers");
3513         ndr->depth++;
3514         if (flags & NDR_SET_VALUES) {
3515                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3516         }
3517         if (flags & NDR_IN) {
3518                 ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers");
3519                 ndr->depth++;
3520                 ndr_print_string(ndr, "server_name", r->in.server_name);
3521                 ndr_print_string(ndr, "group_name", r->in.group_name);
3522                 ndr_print_uint32(ndr, "level", r->in.level);
3523                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3524                 ndr->depth++;
3525                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3526                 ndr->depth--;
3527                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3528                 ndr->depth--;
3529         }
3530         if (flags & NDR_OUT) {
3531                 ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers");
3532                 ndr->depth++;
3533                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3534                 ndr->depth--;
3535         }
3536         ndr->depth--;
3537 }
3538
3539 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
3540 {
3541         ndr_print_struct(ndr, name, "NetRemoteTOD");
3542         ndr->depth++;
3543         if (flags & NDR_SET_VALUES) {
3544                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3545         }
3546         if (flags & NDR_IN) {
3547                 ndr_print_struct(ndr, "in", "NetRemoteTOD");
3548                 ndr->depth++;
3549                 ndr_print_string(ndr, "server_name", r->in.server_name);
3550                 ndr->depth--;
3551         }
3552         if (flags & NDR_OUT) {
3553                 ndr_print_struct(ndr, "out", "NetRemoteTOD");
3554                 ndr->depth++;
3555                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3556                 ndr->depth++;
3557                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3558                 ndr->depth++;
3559                 if (*r->out.buffer) {
3560                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3561                 }
3562                 ndr->depth--;
3563                 ndr->depth--;
3564                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3565                 ndr->depth--;
3566         }
3567         ndr->depth--;
3568 }
3569
3570 _PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r)
3571 {
3572         ndr_print_struct(ndr, name, "NetShareAdd");
3573         ndr->depth++;
3574         if (flags & NDR_SET_VALUES) {
3575                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3576         }
3577         if (flags & NDR_IN) {
3578                 ndr_print_struct(ndr, "in", "NetShareAdd");
3579                 ndr->depth++;
3580                 ndr_print_string(ndr, "server_name", r->in.server_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->depth--;
3587         }
3588         if (flags & NDR_OUT) {
3589                 ndr_print_struct(ndr, "out", "NetShareAdd");
3590                 ndr->depth++;
3591                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3592                 ndr->depth++;
3593                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3594                 ndr->depth--;
3595                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3596                 ndr->depth--;
3597         }
3598         ndr->depth--;
3599 }
3600
3601 _PUBLIC_ void ndr_print_NetShareDel(struct ndr_print *ndr, const char *name, int flags, const struct NetShareDel *r)
3602 {
3603         ndr_print_struct(ndr, name, "NetShareDel");
3604         ndr->depth++;
3605         if (flags & NDR_SET_VALUES) {
3606                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3607         }
3608         if (flags & NDR_IN) {
3609                 ndr_print_struct(ndr, "in", "NetShareDel");
3610                 ndr->depth++;
3611                 ndr_print_string(ndr, "server_name", r->in.server_name);
3612                 ndr_print_string(ndr, "net_name", r->in.net_name);
3613                 ndr_print_uint32(ndr, "reserved", r->in.reserved);
3614                 ndr->depth--;
3615         }
3616         if (flags & NDR_OUT) {
3617                 ndr_print_struct(ndr, "out", "NetShareDel");
3618                 ndr->depth++;
3619                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3620                 ndr->depth--;
3621         }
3622         ndr->depth--;
3623 }
3624
3625 _PUBLIC_ void ndr_print_NetShareEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetShareEnum *r)
3626 {
3627         ndr_print_struct(ndr, name, "NetShareEnum");
3628         ndr->depth++;
3629         if (flags & NDR_SET_VALUES) {
3630                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3631         }
3632         if (flags & NDR_IN) {
3633                 ndr_print_struct(ndr, "in", "NetShareEnum");
3634                 ndr->depth++;
3635                 ndr_print_string(ndr, "server_name", r->in.server_name);
3636                 ndr_print_uint32(ndr, "level", r->in.level);
3637                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3638                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3639                 ndr->depth++;
3640                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3641                 ndr->depth--;
3642                 ndr->depth--;
3643         }
3644         if (flags & NDR_OUT) {
3645                 ndr_print_struct(ndr, "out", "NetShareEnum");
3646                 ndr->depth++;
3647                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3648                 ndr->depth++;
3649                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3650                 ndr->depth++;
3651                 if (*r->out.buffer) {
3652                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3653                 }
3654                 ndr->depth--;
3655                 ndr->depth--;
3656                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3657                 ndr->depth++;
3658                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3659                 ndr->depth--;
3660                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3661                 ndr->depth++;
3662                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3663                 ndr->depth--;
3664                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3665                 ndr->depth++;
3666                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3667                 ndr->depth--;
3668                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3669                 ndr->depth--;
3670         }
3671         ndr->depth--;
3672 }
3673
3674 _PUBLIC_ void ndr_print_NetShareGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareGetInfo *r)
3675 {
3676         ndr_print_struct(ndr, name, "NetShareGetInfo");
3677         ndr->depth++;
3678         if (flags & NDR_SET_VALUES) {
3679                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3680         }
3681         if (flags & NDR_IN) {
3682                 ndr_print_struct(ndr, "in", "NetShareGetInfo");
3683                 ndr->depth++;
3684                 ndr_print_string(ndr, "server_name", r->in.server_name);
3685                 ndr_print_string(ndr, "net_name", r->in.net_name);
3686                 ndr_print_uint32(ndr, "level", r->in.level);
3687                 ndr->depth--;
3688         }
3689         if (flags & NDR_OUT) {
3690                 ndr_print_struct(ndr, "out", "NetShareGetInfo");
3691                 ndr->depth++;
3692                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3693                 ndr->depth++;
3694                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3695                 ndr->depth++;
3696                 if (*r->out.buffer) {
3697                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3698                 }
3699                 ndr->depth--;
3700                 ndr->depth--;
3701                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3702                 ndr->depth--;
3703         }
3704         ndr->depth--;
3705 }
3706
3707 _PUBLIC_ void ndr_print_NetShareSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareSetInfo *r)
3708 {
3709         ndr_print_struct(ndr, name, "NetShareSetInfo");
3710         ndr->depth++;
3711         if (flags & NDR_SET_VALUES) {
3712                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3713         }
3714         if (flags & NDR_IN) {
3715                 ndr_print_struct(ndr, "in", "NetShareSetInfo");
3716                 ndr->depth++;
3717                 ndr_print_string(ndr, "server_name", r->in.server_name);
3718                 ndr_print_string(ndr, "net_name", r->in.net_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", "NetShareSetInfo");
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