re-run make idl.
[metze/samba/wip.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_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r)
91 {
92         if (ndr_flags & NDR_SCALARS) {
93                 NDR_CHECK(ndr_push_align(ndr, 4));
94                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment));
95         }
96         if (ndr_flags & NDR_BUFFERS) {
97         }
98         return NDR_ERR_SUCCESS;
99 }
100
101 _PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r)
102 {
103         if (ndr_flags & NDR_SCALARS) {
104                 NDR_CHECK(ndr_pull_align(ndr, 4));
105                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment));
106         }
107         if (ndr_flags & NDR_BUFFERS) {
108         }
109         return NDR_ERR_SUCCESS;
110 }
111
112 _PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r)
113 {
114         ndr_print_struct(ndr, name, "SERVER_INFO_1005");
115         ndr->depth++;
116         ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment);
117         ndr->depth--;
118 }
119
120 _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r)
121 {
122         if (ndr_flags & NDR_SCALARS) {
123                 NDR_CHECK(ndr_push_align(ndr, 4));
124                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name));
125                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address));
126                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type));
127                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid));
128                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name));
129                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name));
130                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags));
131                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name));
132                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name));
133         }
134         if (ndr_flags & NDR_BUFFERS) {
135         }
136         return NDR_ERR_SUCCESS;
137 }
138
139 _PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r)
140 {
141         if (ndr_flags & NDR_SCALARS) {
142                 NDR_CHECK(ndr_pull_align(ndr, 4));
143                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name));
144                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address));
145                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type));
146                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid));
147                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name));
148                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name));
149                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
150                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name));
151                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name));
152         }
153         if (ndr_flags & NDR_BUFFERS) {
154         }
155         return NDR_ERR_SUCCESS;
156 }
157
158 _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r)
159 {
160         ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO");
161         ndr->depth++;
162         ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name);
163         ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address);
164         ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type);
165         ndr_print_GUID(ndr, "domain_guid", &r->domain_guid);
166         ndr_print_string(ndr, "domain_name", r->domain_name);
167         ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name);
168         ndr_print_uint32(ndr, "flags", r->flags);
169         ndr_print_string(ndr, "dc_site_name", r->dc_site_name);
170         ndr_print_string(ndr, "client_site_name", r->client_site_name);
171         ndr->depth--;
172 }
173
174 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r)
175 {
176         if (ndr_flags & NDR_SCALARS) {
177                 NDR_CHECK(ndr_push_align(ndr, 4));
178                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name));
179         }
180         if (ndr_flags & NDR_BUFFERS) {
181         }
182         return NDR_ERR_SUCCESS;
183 }
184
185 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r)
186 {
187         if (ndr_flags & NDR_SCALARS) {
188                 NDR_CHECK(ndr_pull_align(ndr, 4));
189                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name));
190         }
191         if (ndr_flags & NDR_BUFFERS) {
192         }
193         return NDR_ERR_SUCCESS;
194 }
195
196 _PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r)
197 {
198         ndr_print_struct(ndr, name, "USER_INFO_0");
199         ndr->depth++;
200         ndr_print_string(ndr, "usri0_name", r->usri0_name);
201         ndr->depth--;
202 }
203
204 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r)
205 {
206         if (ndr_flags & NDR_SCALARS) {
207                 NDR_CHECK(ndr_push_align(ndr, 4));
208                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
209                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password));
210                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age));
211                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv));
212                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir));
213                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
214                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
215                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path));
216         }
217         if (ndr_flags & NDR_BUFFERS) {
218         }
219         return NDR_ERR_SUCCESS;
220 }
221
222 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r)
223 {
224         if (ndr_flags & NDR_SCALARS) {
225                 NDR_CHECK(ndr_pull_align(ndr, 4));
226                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
227                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password));
228                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age));
229                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv));
230                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir));
231                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
232                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
233                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path));
234         }
235         if (ndr_flags & NDR_BUFFERS) {
236         }
237         return NDR_ERR_SUCCESS;
238 }
239
240 _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r)
241 {
242         ndr_print_struct(ndr, name, "USER_INFO_1");
243         ndr->depth++;
244         ndr_print_string(ndr, "usri1_name", r->usri1_name);
245         ndr_print_string(ndr, "usri1_password", r->usri1_password);
246         ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age);
247         ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv);
248         ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir);
249         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
250         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
251         ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path);
252         ndr->depth--;
253 }
254
255 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_2(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_2 *r)
256 {
257         if (ndr_flags & NDR_SCALARS) {
258                 NDR_CHECK(ndr_push_align(ndr, 4));
259                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
260                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_password));
261                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_password_age));
262                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_priv));
263                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_home_dir));
264                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
265                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
266                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_script_path));
267                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_auth_flags));
268                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_full_name));
269                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_usr_comment));
270                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_parms));
271                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_workstations));
272                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logon));
273                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logoff));
274                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_acct_expires));
275                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_max_storage));
276                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_units_per_week));
277                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri2_logon_hours));
278                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_bad_pw_count));
279                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_num_logons));
280                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_logon_server));
281                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_country_code));
282                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_code_page));
283         }
284         if (ndr_flags & NDR_BUFFERS) {
285                 if (r->usri2_logon_hours) {
286                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri2_logon_hours));
287                 }
288         }
289         return NDR_ERR_SUCCESS;
290 }
291
292 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_2(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_2 *r)
293 {
294         uint32_t _ptr_usri2_logon_hours;
295         TALLOC_CTX *_mem_save_usri2_logon_hours_0;
296         if (ndr_flags & NDR_SCALARS) {
297                 NDR_CHECK(ndr_pull_align(ndr, 4));
298                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
299                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_password));
300                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_password_age));
301                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_priv));
302                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_home_dir));
303                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
304                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
305                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_script_path));
306                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_auth_flags));
307                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_full_name));
308                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_usr_comment));
309                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_parms));
310                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_workstations));
311                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logon));
312                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logoff));
313                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_acct_expires));
314                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_max_storage));
315                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_units_per_week));
316                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri2_logon_hours));
317                 if (_ptr_usri2_logon_hours) {
318                         NDR_PULL_ALLOC(ndr, r->usri2_logon_hours);
319                 } else {
320                         r->usri2_logon_hours = NULL;
321                 }
322                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_bad_pw_count));
323                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_num_logons));
324                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_logon_server));
325                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_country_code));
326                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_code_page));
327         }
328         if (ndr_flags & NDR_BUFFERS) {
329                 if (r->usri2_logon_hours) {
330                         _mem_save_usri2_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
331                         NDR_PULL_SET_MEM_CTX(ndr, r->usri2_logon_hours, 0);
332                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri2_logon_hours));
333                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri2_logon_hours_0, 0);
334                 }
335         }
336         return NDR_ERR_SUCCESS;
337 }
338
339 _PUBLIC_ void ndr_print_USER_INFO_2(struct ndr_print *ndr, const char *name, const struct USER_INFO_2 *r)
340 {
341         ndr_print_struct(ndr, name, "USER_INFO_2");
342         ndr->depth++;
343         ndr_print_string(ndr, "usri2_name", r->usri2_name);
344         ndr_print_string(ndr, "usri2_password", r->usri2_password);
345         ndr_print_uint32(ndr, "usri2_password_age", r->usri2_password_age);
346         ndr_print_uint32(ndr, "usri2_priv", r->usri2_priv);
347         ndr_print_string(ndr, "usri2_home_dir", r->usri2_home_dir);
348         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
349         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
350         ndr_print_string(ndr, "usri2_script_path", r->usri2_script_path);
351         ndr_print_uint32(ndr, "usri2_auth_flags", r->usri2_auth_flags);
352         ndr_print_string(ndr, "usri2_full_name", r->usri2_full_name);
353         ndr_print_string(ndr, "usri2_usr_comment", r->usri2_usr_comment);
354         ndr_print_string(ndr, "usri2_parms", r->usri2_parms);
355         ndr_print_string(ndr, "usri2_workstations", r->usri2_workstations);
356         ndr_print_uint32(ndr, "usri2_last_logon", r->usri2_last_logon);
357         ndr_print_uint32(ndr, "usri2_last_logoff", r->usri2_last_logoff);
358         ndr_print_uint32(ndr, "usri2_acct_expires", r->usri2_acct_expires);
359         ndr_print_uint32(ndr, "usri2_max_storage", r->usri2_max_storage);
360         ndr_print_uint32(ndr, "usri2_units_per_week", r->usri2_units_per_week);
361         ndr_print_ptr(ndr, "usri2_logon_hours", r->usri2_logon_hours);
362         ndr->depth++;
363         if (r->usri2_logon_hours) {
364                 ndr_print_uint8(ndr, "usri2_logon_hours", *r->usri2_logon_hours);
365         }
366         ndr->depth--;
367         ndr_print_uint32(ndr, "usri2_bad_pw_count", r->usri2_bad_pw_count);
368         ndr_print_uint32(ndr, "usri2_num_logons", r->usri2_num_logons);
369         ndr_print_string(ndr, "usri2_logon_server", r->usri2_logon_server);
370         ndr_print_uint32(ndr, "usri2_country_code", r->usri2_country_code);
371         ndr_print_uint32(ndr, "usri2_code_page", r->usri2_code_page);
372         ndr->depth--;
373 }
374
375 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_3(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_3 *r)
376 {
377         if (ndr_flags & NDR_SCALARS) {
378                 NDR_CHECK(ndr_push_align(ndr, 4));
379                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_name));
380                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_age));
381                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_priv));
382                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir));
383                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_comment));
384                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_flags));
385                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_script_path));
386                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_auth_flags));
387                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_full_name));
388                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_usr_comment));
389                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_parms));
390                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_workstations));
391                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logon));
392                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logoff));
393                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_acct_expires));
394                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_max_storage));
395                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_units_per_week));
396                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri3_logon_hours));
397                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_bad_pw_count));
398                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_num_logons));
399                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_logon_server));
400                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_country_code));
401                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_code_page));
402                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_user_id));
403                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_primary_group_id));
404                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_profile));
405                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir_drive));
406                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_expired));
407         }
408         if (ndr_flags & NDR_BUFFERS) {
409                 if (r->usri3_logon_hours) {
410                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri3_logon_hours));
411                 }
412         }
413         return NDR_ERR_SUCCESS;
414 }
415
416 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_3(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_3 *r)
417 {
418         uint32_t _ptr_usri3_logon_hours;
419         TALLOC_CTX *_mem_save_usri3_logon_hours_0;
420         if (ndr_flags & NDR_SCALARS) {
421                 NDR_CHECK(ndr_pull_align(ndr, 4));
422                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_name));
423                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_age));
424                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_priv));
425                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir));
426                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_comment));
427                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_flags));
428                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_script_path));
429                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_auth_flags));
430                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_full_name));
431                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_usr_comment));
432                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_parms));
433                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_workstations));
434                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logon));
435                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logoff));
436                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_acct_expires));
437                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_max_storage));
438                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_units_per_week));
439                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri3_logon_hours));
440                 if (_ptr_usri3_logon_hours) {
441                         NDR_PULL_ALLOC(ndr, r->usri3_logon_hours);
442                 } else {
443                         r->usri3_logon_hours = NULL;
444                 }
445                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_bad_pw_count));
446                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_num_logons));
447                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_logon_server));
448                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_country_code));
449                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_code_page));
450                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_user_id));
451                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_primary_group_id));
452                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_profile));
453                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir_drive));
454                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_expired));
455         }
456         if (ndr_flags & NDR_BUFFERS) {
457                 if (r->usri3_logon_hours) {
458                         _mem_save_usri3_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
459                         NDR_PULL_SET_MEM_CTX(ndr, r->usri3_logon_hours, 0);
460                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri3_logon_hours));
461                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri3_logon_hours_0, 0);
462                 }
463         }
464         return NDR_ERR_SUCCESS;
465 }
466
467 _PUBLIC_ void ndr_print_USER_INFO_3(struct ndr_print *ndr, const char *name, const struct USER_INFO_3 *r)
468 {
469         ndr_print_struct(ndr, name, "USER_INFO_3");
470         ndr->depth++;
471         ndr_print_string(ndr, "usri3_name", r->usri3_name);
472         ndr_print_uint32(ndr, "usri3_password_age", r->usri3_password_age);
473         ndr_print_uint32(ndr, "usri3_priv", r->usri3_priv);
474         ndr_print_string(ndr, "usri3_home_dir", r->usri3_home_dir);
475         ndr_print_string(ndr, "usri3_comment", r->usri3_comment);
476         ndr_print_uint32(ndr, "usri3_flags", r->usri3_flags);
477         ndr_print_string(ndr, "usri3_script_path", r->usri3_script_path);
478         ndr_print_uint32(ndr, "usri3_auth_flags", r->usri3_auth_flags);
479         ndr_print_string(ndr, "usri3_full_name", r->usri3_full_name);
480         ndr_print_string(ndr, "usri3_usr_comment", r->usri3_usr_comment);
481         ndr_print_string(ndr, "usri3_parms", r->usri3_parms);
482         ndr_print_string(ndr, "usri3_workstations", r->usri3_workstations);
483         ndr_print_uint32(ndr, "usri3_last_logon", r->usri3_last_logon);
484         ndr_print_uint32(ndr, "usri3_last_logoff", r->usri3_last_logoff);
485         ndr_print_uint32(ndr, "usri3_acct_expires", r->usri3_acct_expires);
486         ndr_print_uint32(ndr, "usri3_max_storage", r->usri3_max_storage);
487         ndr_print_uint32(ndr, "usri3_units_per_week", r->usri3_units_per_week);
488         ndr_print_ptr(ndr, "usri3_logon_hours", r->usri3_logon_hours);
489         ndr->depth++;
490         if (r->usri3_logon_hours) {
491                 ndr_print_uint8(ndr, "usri3_logon_hours", *r->usri3_logon_hours);
492         }
493         ndr->depth--;
494         ndr_print_uint32(ndr, "usri3_bad_pw_count", r->usri3_bad_pw_count);
495         ndr_print_uint32(ndr, "usri3_num_logons", r->usri3_num_logons);
496         ndr_print_string(ndr, "usri3_logon_server", r->usri3_logon_server);
497         ndr_print_uint32(ndr, "usri3_country_code", r->usri3_country_code);
498         ndr_print_uint32(ndr, "usri3_code_page", r->usri3_code_page);
499         ndr_print_uint32(ndr, "usri3_user_id", r->usri3_user_id);
500         ndr_print_uint32(ndr, "usri3_primary_group_id", r->usri3_primary_group_id);
501         ndr_print_string(ndr, "usri3_profile", r->usri3_profile);
502         ndr_print_string(ndr, "usri3_home_dir_drive", r->usri3_home_dir_drive);
503         ndr_print_uint32(ndr, "usri3_password_expired", r->usri3_password_expired);
504         ndr->depth--;
505 }
506
507 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_4(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_4 *r)
508 {
509         if (ndr_flags & NDR_SCALARS) {
510                 NDR_CHECK(ndr_push_align(ndr, 4));
511                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_name));
512                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_password));
513                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_age));
514                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_priv));
515                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir));
516                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_comment));
517                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_flags));
518                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_script_path));
519                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_auth_flags));
520                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_full_name));
521                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_usr_comment));
522                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_parms));
523                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_workstations));
524                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logon));
525                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logoff));
526                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_acct_expires));
527                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_max_storage));
528                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_units_per_week));
529                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_logon_hours));
530                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_bad_pw_count));
531                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_num_logons));
532                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_logon_server));
533                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_country_code));
534                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_code_page));
535                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_user_sid));
536                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_primary_group_id));
537                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_profile));
538                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir_drive));
539                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_expired));
540         }
541         if (ndr_flags & NDR_BUFFERS) {
542                 if (r->usri4_logon_hours) {
543                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri4_logon_hours));
544                 }
545                 if (r->usri4_user_sid) {
546                         NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->usri4_user_sid));
547                 }
548         }
549         return NDR_ERR_SUCCESS;
550 }
551
552 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_4(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_4 *r)
553 {
554         uint32_t _ptr_usri4_logon_hours;
555         TALLOC_CTX *_mem_save_usri4_logon_hours_0;
556         uint32_t _ptr_usri4_user_sid;
557         TALLOC_CTX *_mem_save_usri4_user_sid_0;
558         if (ndr_flags & NDR_SCALARS) {
559                 NDR_CHECK(ndr_pull_align(ndr, 4));
560                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_name));
561                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_password));
562                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_age));
563                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_priv));
564                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir));
565                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_comment));
566                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_flags));
567                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_script_path));
568                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_auth_flags));
569                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_full_name));
570                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_usr_comment));
571                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_parms));
572                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_workstations));
573                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logon));
574                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logoff));
575                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_acct_expires));
576                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_max_storage));
577                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_units_per_week));
578                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_logon_hours));
579                 if (_ptr_usri4_logon_hours) {
580                         NDR_PULL_ALLOC(ndr, r->usri4_logon_hours);
581                 } else {
582                         r->usri4_logon_hours = NULL;
583                 }
584                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_bad_pw_count));
585                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_num_logons));
586                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_logon_server));
587                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_country_code));
588                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_code_page));
589                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_user_sid));
590                 if (_ptr_usri4_user_sid) {
591                         NDR_PULL_ALLOC(ndr, r->usri4_user_sid);
592                 } else {
593                         r->usri4_user_sid = NULL;
594                 }
595                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_primary_group_id));
596                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_profile));
597                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir_drive));
598                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_expired));
599         }
600         if (ndr_flags & NDR_BUFFERS) {
601                 if (r->usri4_logon_hours) {
602                         _mem_save_usri4_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
603                         NDR_PULL_SET_MEM_CTX(ndr, r->usri4_logon_hours, 0);
604                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri4_logon_hours));
605                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_logon_hours_0, 0);
606                 }
607                 if (r->usri4_user_sid) {
608                         _mem_save_usri4_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
609                         NDR_PULL_SET_MEM_CTX(ndr, r->usri4_user_sid, 0);
610                         NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->usri4_user_sid));
611                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_user_sid_0, 0);
612                 }
613         }
614         return NDR_ERR_SUCCESS;
615 }
616
617 _PUBLIC_ void ndr_print_USER_INFO_4(struct ndr_print *ndr, const char *name, const struct USER_INFO_4 *r)
618 {
619         ndr_print_struct(ndr, name, "USER_INFO_4");
620         ndr->depth++;
621         ndr_print_string(ndr, "usri4_name", r->usri4_name);
622         ndr_print_string(ndr, "usri4_password", r->usri4_password);
623         ndr_print_uint32(ndr, "usri4_password_age", r->usri4_password_age);
624         ndr_print_uint32(ndr, "usri4_priv", r->usri4_priv);
625         ndr_print_string(ndr, "usri4_home_dir", r->usri4_home_dir);
626         ndr_print_string(ndr, "usri4_comment", r->usri4_comment);
627         ndr_print_uint32(ndr, "usri4_flags", r->usri4_flags);
628         ndr_print_string(ndr, "usri4_script_path", r->usri4_script_path);
629         ndr_print_uint32(ndr, "usri4_auth_flags", r->usri4_auth_flags);
630         ndr_print_string(ndr, "usri4_full_name", r->usri4_full_name);
631         ndr_print_string(ndr, "usri4_usr_comment", r->usri4_usr_comment);
632         ndr_print_string(ndr, "usri4_parms", r->usri4_parms);
633         ndr_print_string(ndr, "usri4_workstations", r->usri4_workstations);
634         ndr_print_uint32(ndr, "usri4_last_logon", r->usri4_last_logon);
635         ndr_print_uint32(ndr, "usri4_last_logoff", r->usri4_last_logoff);
636         ndr_print_uint32(ndr, "usri4_acct_expires", r->usri4_acct_expires);
637         ndr_print_uint32(ndr, "usri4_max_storage", r->usri4_max_storage);
638         ndr_print_uint32(ndr, "usri4_units_per_week", r->usri4_units_per_week);
639         ndr_print_ptr(ndr, "usri4_logon_hours", r->usri4_logon_hours);
640         ndr->depth++;
641         if (r->usri4_logon_hours) {
642                 ndr_print_uint8(ndr, "usri4_logon_hours", *r->usri4_logon_hours);
643         }
644         ndr->depth--;
645         ndr_print_uint32(ndr, "usri4_bad_pw_count", r->usri4_bad_pw_count);
646         ndr_print_uint32(ndr, "usri4_num_logons", r->usri4_num_logons);
647         ndr_print_string(ndr, "usri4_logon_server", r->usri4_logon_server);
648         ndr_print_uint32(ndr, "usri4_country_code", r->usri4_country_code);
649         ndr_print_uint32(ndr, "usri4_code_page", r->usri4_code_page);
650         ndr_print_ptr(ndr, "usri4_user_sid", r->usri4_user_sid);
651         ndr->depth++;
652         if (r->usri4_user_sid) {
653                 ndr_print_dom_sid(ndr, "usri4_user_sid", r->usri4_user_sid);
654         }
655         ndr->depth--;
656         ndr_print_uint32(ndr, "usri4_primary_group_id", r->usri4_primary_group_id);
657         ndr_print_string(ndr, "usri4_profile", r->usri4_profile);
658         ndr_print_string(ndr, "usri4_home_dir_drive", r->usri4_home_dir_drive);
659         ndr_print_uint32(ndr, "usri4_password_expired", r->usri4_password_expired);
660         ndr->depth--;
661 }
662
663 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_10(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_10 *r)
664 {
665         if (ndr_flags & NDR_SCALARS) {
666                 NDR_CHECK(ndr_push_align(ndr, 4));
667                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_name));
668                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_comment));
669                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_usr_comment));
670                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_full_name));
671         }
672         if (ndr_flags & NDR_BUFFERS) {
673         }
674         return NDR_ERR_SUCCESS;
675 }
676
677 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_10(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_10 *r)
678 {
679         if (ndr_flags & NDR_SCALARS) {
680                 NDR_CHECK(ndr_pull_align(ndr, 4));
681                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_name));
682                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_comment));
683                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_usr_comment));
684                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_full_name));
685         }
686         if (ndr_flags & NDR_BUFFERS) {
687         }
688         return NDR_ERR_SUCCESS;
689 }
690
691 _PUBLIC_ void ndr_print_USER_INFO_10(struct ndr_print *ndr, const char *name, const struct USER_INFO_10 *r)
692 {
693         ndr_print_struct(ndr, name, "USER_INFO_10");
694         ndr->depth++;
695         ndr_print_string(ndr, "usri10_name", r->usri10_name);
696         ndr_print_string(ndr, "usri10_comment", r->usri10_comment);
697         ndr_print_string(ndr, "usri10_usr_comment", r->usri10_usr_comment);
698         ndr_print_string(ndr, "usri10_full_name", r->usri10_full_name);
699         ndr->depth--;
700 }
701
702 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_11(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_11 *r)
703 {
704         if (ndr_flags & NDR_SCALARS) {
705                 NDR_CHECK(ndr_push_align(ndr, 4));
706                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_name));
707                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_comment));
708                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_usr_comment));
709                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_full_name));
710                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_priv));
711                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_auth_flags));
712                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_password_age));
713                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_home_dir));
714                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_parms));
715                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logon));
716                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logoff));
717                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_bad_pw_count));
718                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_num_logons));
719                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_logon_server));
720                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_country_code));
721                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_workstations));
722                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_max_storage));
723                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_units_per_week));
724                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri11_logon_hours));
725                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_code_page));
726         }
727         if (ndr_flags & NDR_BUFFERS) {
728                 if (r->usri11_logon_hours) {
729                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri11_logon_hours));
730                 }
731         }
732         return NDR_ERR_SUCCESS;
733 }
734
735 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_11(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_11 *r)
736 {
737         uint32_t _ptr_usri11_logon_hours;
738         TALLOC_CTX *_mem_save_usri11_logon_hours_0;
739         if (ndr_flags & NDR_SCALARS) {
740                 NDR_CHECK(ndr_pull_align(ndr, 4));
741                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_name));
742                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_comment));
743                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_usr_comment));
744                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_full_name));
745                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_priv));
746                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_auth_flags));
747                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_password_age));
748                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_home_dir));
749                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_parms));
750                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logon));
751                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logoff));
752                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_bad_pw_count));
753                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_num_logons));
754                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_logon_server));
755                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_country_code));
756                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_workstations));
757                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_max_storage));
758                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_units_per_week));
759                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri11_logon_hours));
760                 if (_ptr_usri11_logon_hours) {
761                         NDR_PULL_ALLOC(ndr, r->usri11_logon_hours);
762                 } else {
763                         r->usri11_logon_hours = NULL;
764                 }
765                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_code_page));
766         }
767         if (ndr_flags & NDR_BUFFERS) {
768                 if (r->usri11_logon_hours) {
769                         _mem_save_usri11_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
770                         NDR_PULL_SET_MEM_CTX(ndr, r->usri11_logon_hours, 0);
771                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri11_logon_hours));
772                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri11_logon_hours_0, 0);
773                 }
774         }
775         return NDR_ERR_SUCCESS;
776 }
777
778 _PUBLIC_ void ndr_print_USER_INFO_11(struct ndr_print *ndr, const char *name, const struct USER_INFO_11 *r)
779 {
780         ndr_print_struct(ndr, name, "USER_INFO_11");
781         ndr->depth++;
782         ndr_print_string(ndr, "usri11_name", r->usri11_name);
783         ndr_print_string(ndr, "usri11_comment", r->usri11_comment);
784         ndr_print_string(ndr, "usri11_usr_comment", r->usri11_usr_comment);
785         ndr_print_string(ndr, "usri11_full_name", r->usri11_full_name);
786         ndr_print_uint32(ndr, "usri11_priv", r->usri11_priv);
787         ndr_print_uint32(ndr, "usri11_auth_flags", r->usri11_auth_flags);
788         ndr_print_uint32(ndr, "usri11_password_age", r->usri11_password_age);
789         ndr_print_string(ndr, "usri11_home_dir", r->usri11_home_dir);
790         ndr_print_string(ndr, "usri11_parms", r->usri11_parms);
791         ndr_print_uint32(ndr, "usri11_last_logon", r->usri11_last_logon);
792         ndr_print_uint32(ndr, "usri11_last_logoff", r->usri11_last_logoff);
793         ndr_print_uint32(ndr, "usri11_bad_pw_count", r->usri11_bad_pw_count);
794         ndr_print_uint32(ndr, "usri11_num_logons", r->usri11_num_logons);
795         ndr_print_string(ndr, "usri11_logon_server", r->usri11_logon_server);
796         ndr_print_uint32(ndr, "usri11_country_code", r->usri11_country_code);
797         ndr_print_string(ndr, "usri11_workstations", r->usri11_workstations);
798         ndr_print_uint32(ndr, "usri11_max_storage", r->usri11_max_storage);
799         ndr_print_uint32(ndr, "usri11_units_per_week", r->usri11_units_per_week);
800         ndr_print_ptr(ndr, "usri11_logon_hours", r->usri11_logon_hours);
801         ndr->depth++;
802         if (r->usri11_logon_hours) {
803                 ndr_print_uint8(ndr, "usri11_logon_hours", *r->usri11_logon_hours);
804         }
805         ndr->depth--;
806         ndr_print_uint32(ndr, "usri11_code_page", r->usri11_code_page);
807         ndr->depth--;
808 }
809
810 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_20(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_20 *r)
811 {
812         if (ndr_flags & NDR_SCALARS) {
813                 NDR_CHECK(ndr_push_align(ndr, 4));
814                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_name));
815                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_full_name));
816                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_comment));
817                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_flags));
818                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_user_id));
819         }
820         if (ndr_flags & NDR_BUFFERS) {
821         }
822         return NDR_ERR_SUCCESS;
823 }
824
825 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_20(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_20 *r)
826 {
827         if (ndr_flags & NDR_SCALARS) {
828                 NDR_CHECK(ndr_pull_align(ndr, 4));
829                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_name));
830                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_full_name));
831                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_comment));
832                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_flags));
833                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_user_id));
834         }
835         if (ndr_flags & NDR_BUFFERS) {
836         }
837         return NDR_ERR_SUCCESS;
838 }
839
840 _PUBLIC_ void ndr_print_USER_INFO_20(struct ndr_print *ndr, const char *name, const struct USER_INFO_20 *r)
841 {
842         ndr_print_struct(ndr, name, "USER_INFO_20");
843         ndr->depth++;
844         ndr_print_string(ndr, "usri20_name", r->usri20_name);
845         ndr_print_string(ndr, "usri20_full_name", r->usri20_full_name);
846         ndr_print_string(ndr, "usri20_comment", r->usri20_comment);
847         ndr_print_uint32(ndr, "usri20_flags", r->usri20_flags);
848         ndr_print_uint32(ndr, "usri20_user_id", r->usri20_user_id);
849         ndr->depth--;
850 }
851
852 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_21(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_21 *r)
853 {
854         if (ndr_flags & NDR_SCALARS) {
855                 NDR_CHECK(ndr_push_align(ndr, 1));
856                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
857         }
858         if (ndr_flags & NDR_BUFFERS) {
859         }
860         return NDR_ERR_SUCCESS;
861 }
862
863 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_21(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_21 *r)
864 {
865         if (ndr_flags & NDR_SCALARS) {
866                 NDR_CHECK(ndr_pull_align(ndr, 1));
867                 NDR_PULL_ALLOC_N(ndr, r->usri21_password, ENCRYPTED_PWLEN);
868                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN));
869         }
870         if (ndr_flags & NDR_BUFFERS) {
871         }
872         return NDR_ERR_SUCCESS;
873 }
874
875 _PUBLIC_ void ndr_print_USER_INFO_21(struct ndr_print *ndr, const char *name, const struct USER_INFO_21 *r)
876 {
877         ndr_print_struct(ndr, name, "USER_INFO_21");
878         ndr->depth++;
879         ndr_print_array_uint8(ndr, "usri21_password", r->usri21_password, ENCRYPTED_PWLEN);
880         ndr->depth--;
881 }
882
883 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_22(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_22 *r)
884 {
885         if (ndr_flags & NDR_SCALARS) {
886                 NDR_CHECK(ndr_push_align(ndr, 4));
887                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_name));
888                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
889                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_password_age));
890                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_priv));
891                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_home_dir));
892                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_comment));
893                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_flags));
894                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_script_path));
895                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_auth_flags));
896                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_full_name));
897                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_usr_comment));
898                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_parms));
899                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_workstations));
900                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logon));
901                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logoff));
902                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_acct_expires));
903                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_max_storage));
904                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_units_per_week));
905                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri22_logon_hours));
906                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_bad_pw_count));
907                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_num_logons));
908                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_logon_server));
909                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_country_code));
910                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_code_page));
911         }
912         if (ndr_flags & NDR_BUFFERS) {
913                 if (r->usri22_logon_hours) {
914                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri22_logon_hours));
915                 }
916         }
917         return NDR_ERR_SUCCESS;
918 }
919
920 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_22(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_22 *r)
921 {
922         uint32_t _ptr_usri22_logon_hours;
923         TALLOC_CTX *_mem_save_usri22_logon_hours_0;
924         if (ndr_flags & NDR_SCALARS) {
925                 NDR_CHECK(ndr_pull_align(ndr, 4));
926                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_name));
927                 NDR_PULL_ALLOC_N(ndr, r->usri22_password, ENCRYPTED_PWLEN);
928                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN));
929                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_password_age));
930                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_priv));
931                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_home_dir));
932                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_comment));
933                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_flags));
934                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_script_path));
935                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_auth_flags));
936                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_full_name));
937                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_usr_comment));
938                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_parms));
939                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_workstations));
940                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logon));
941                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logoff));
942                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_acct_expires));
943                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_max_storage));
944                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_units_per_week));
945                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri22_logon_hours));
946                 if (_ptr_usri22_logon_hours) {
947                         NDR_PULL_ALLOC(ndr, r->usri22_logon_hours);
948                 } else {
949                         r->usri22_logon_hours = NULL;
950                 }
951                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_bad_pw_count));
952                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_num_logons));
953                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_logon_server));
954                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_country_code));
955                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_code_page));
956         }
957         if (ndr_flags & NDR_BUFFERS) {
958                 if (r->usri22_logon_hours) {
959                         _mem_save_usri22_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
960                         NDR_PULL_SET_MEM_CTX(ndr, r->usri22_logon_hours, 0);
961                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri22_logon_hours));
962                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri22_logon_hours_0, 0);
963                 }
964         }
965         return NDR_ERR_SUCCESS;
966 }
967
968 _PUBLIC_ void ndr_print_USER_INFO_22(struct ndr_print *ndr, const char *name, const struct USER_INFO_22 *r)
969 {
970         ndr_print_struct(ndr, name, "USER_INFO_22");
971         ndr->depth++;
972         ndr_print_string(ndr, "usri22_name", r->usri22_name);
973         ndr_print_array_uint8(ndr, "usri22_password", r->usri22_password, ENCRYPTED_PWLEN);
974         ndr_print_uint32(ndr, "usri22_password_age", r->usri22_password_age);
975         ndr_print_uint32(ndr, "usri22_priv", r->usri22_priv);
976         ndr_print_string(ndr, "usri22_home_dir", r->usri22_home_dir);
977         ndr_print_string(ndr, "usri22_comment", r->usri22_comment);
978         ndr_print_uint32(ndr, "usri22_flags", r->usri22_flags);
979         ndr_print_uint32(ndr, "usri22_script_path", r->usri22_script_path);
980         ndr_print_uint32(ndr, "usri22_auth_flags", r->usri22_auth_flags);
981         ndr_print_string(ndr, "usri22_full_name", r->usri22_full_name);
982         ndr_print_string(ndr, "usri22_usr_comment", r->usri22_usr_comment);
983         ndr_print_string(ndr, "usri22_parms", r->usri22_parms);
984         ndr_print_string(ndr, "usri22_workstations", r->usri22_workstations);
985         ndr_print_uint32(ndr, "usri22_last_logon", r->usri22_last_logon);
986         ndr_print_uint32(ndr, "usri22_last_logoff", r->usri22_last_logoff);
987         ndr_print_uint32(ndr, "usri22_acct_expires", r->usri22_acct_expires);
988         ndr_print_uint32(ndr, "usri22_max_storage", r->usri22_max_storage);
989         ndr_print_uint32(ndr, "usri22_units_per_week", r->usri22_units_per_week);
990         ndr_print_ptr(ndr, "usri22_logon_hours", r->usri22_logon_hours);
991         ndr->depth++;
992         if (r->usri22_logon_hours) {
993                 ndr_print_uint8(ndr, "usri22_logon_hours", *r->usri22_logon_hours);
994         }
995         ndr->depth--;
996         ndr_print_uint32(ndr, "usri22_bad_pw_count", r->usri22_bad_pw_count);
997         ndr_print_uint32(ndr, "usri22_num_logons", r->usri22_num_logons);
998         ndr_print_string(ndr, "usri22_logon_server", r->usri22_logon_server);
999         ndr_print_uint32(ndr, "usri22_country_code", r->usri22_country_code);
1000         ndr_print_uint32(ndr, "usri22_code_page", r->usri22_code_page);
1001         ndr->depth--;
1002 }
1003
1004 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r)
1005 {
1006         if (ndr_flags & NDR_SCALARS) {
1007                 NDR_CHECK(ndr_push_align(ndr, 4));
1008                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_name));
1009                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_full_name));
1010                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_comment));
1011                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri23_flags));
1012                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri23_user_sid));
1013         }
1014         if (ndr_flags & NDR_BUFFERS) {
1015                 if (r->usri23_user_sid) {
1016                         NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1017                 }
1018         }
1019         return NDR_ERR_SUCCESS;
1020 }
1021
1022 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_23(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_23 *r)
1023 {
1024         uint32_t _ptr_usri23_user_sid;
1025         TALLOC_CTX *_mem_save_usri23_user_sid_0;
1026         if (ndr_flags & NDR_SCALARS) {
1027                 NDR_CHECK(ndr_pull_align(ndr, 4));
1028                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_name));
1029                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_full_name));
1030                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_comment));
1031                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri23_flags));
1032                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri23_user_sid));
1033                 if (_ptr_usri23_user_sid) {
1034                         NDR_PULL_ALLOC(ndr, r->usri23_user_sid);
1035                 } else {
1036                         r->usri23_user_sid = NULL;
1037                 }
1038         }
1039         if (ndr_flags & NDR_BUFFERS) {
1040                 if (r->usri23_user_sid) {
1041                         _mem_save_usri23_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
1042                         NDR_PULL_SET_MEM_CTX(ndr, r->usri23_user_sid, 0);
1043                         NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
1044                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri23_user_sid_0, 0);
1045                 }
1046         }
1047         return NDR_ERR_SUCCESS;
1048 }
1049
1050 _PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, const struct USER_INFO_23 *r)
1051 {
1052         ndr_print_struct(ndr, name, "USER_INFO_23");
1053         ndr->depth++;
1054         ndr_print_string(ndr, "usri23_name", r->usri23_name);
1055         ndr_print_string(ndr, "usri23_full_name", r->usri23_full_name);
1056         ndr_print_string(ndr, "usri23_comment", r->usri23_comment);
1057         ndr_print_uint32(ndr, "usri23_flags", r->usri23_flags);
1058         ndr_print_ptr(ndr, "usri23_user_sid", r->usri23_user_sid);
1059         ndr->depth++;
1060         if (r->usri23_user_sid) {
1061                 ndr_print_domsid(ndr, "usri23_user_sid", r->usri23_user_sid);
1062         }
1063         ndr->depth--;
1064         ndr->depth--;
1065 }
1066
1067 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1003(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1003 *r)
1068 {
1069         if (ndr_flags & NDR_SCALARS) {
1070                 NDR_CHECK(ndr_push_align(ndr, 4));
1071                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1003_password));
1072         }
1073         if (ndr_flags & NDR_BUFFERS) {
1074         }
1075         return NDR_ERR_SUCCESS;
1076 }
1077
1078 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1003(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1003 *r)
1079 {
1080         if (ndr_flags & NDR_SCALARS) {
1081                 NDR_CHECK(ndr_pull_align(ndr, 4));
1082                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1003_password));
1083         }
1084         if (ndr_flags & NDR_BUFFERS) {
1085         }
1086         return NDR_ERR_SUCCESS;
1087 }
1088
1089 _PUBLIC_ void ndr_print_USER_INFO_1003(struct ndr_print *ndr, const char *name, const struct USER_INFO_1003 *r)
1090 {
1091         ndr_print_struct(ndr, name, "USER_INFO_1003");
1092         ndr->depth++;
1093         ndr_print_string(ndr, "usri1003_password", r->usri1003_password);
1094         ndr->depth--;
1095 }
1096
1097 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1005 *r)
1098 {
1099         if (ndr_flags & NDR_SCALARS) {
1100                 NDR_CHECK(ndr_push_align(ndr, 4));
1101                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1005_priv));
1102         }
1103         if (ndr_flags & NDR_BUFFERS) {
1104         }
1105         return NDR_ERR_SUCCESS;
1106 }
1107
1108 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1005 *r)
1109 {
1110         if (ndr_flags & NDR_SCALARS) {
1111                 NDR_CHECK(ndr_pull_align(ndr, 4));
1112                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1005_priv));
1113         }
1114         if (ndr_flags & NDR_BUFFERS) {
1115         }
1116         return NDR_ERR_SUCCESS;
1117 }
1118
1119 _PUBLIC_ void ndr_print_USER_INFO_1005(struct ndr_print *ndr, const char *name, const struct USER_INFO_1005 *r)
1120 {
1121         ndr_print_struct(ndr, name, "USER_INFO_1005");
1122         ndr->depth++;
1123         ndr_print_uint32(ndr, "usri1005_priv", r->usri1005_priv);
1124         ndr->depth--;
1125 }
1126
1127 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1006(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1006 *r)
1128 {
1129         if (ndr_flags & NDR_SCALARS) {
1130                 NDR_CHECK(ndr_push_align(ndr, 4));
1131                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1006_home_dir));
1132         }
1133         if (ndr_flags & NDR_BUFFERS) {
1134         }
1135         return NDR_ERR_SUCCESS;
1136 }
1137
1138 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1006(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1006 *r)
1139 {
1140         if (ndr_flags & NDR_SCALARS) {
1141                 NDR_CHECK(ndr_pull_align(ndr, 4));
1142                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1006_home_dir));
1143         }
1144         if (ndr_flags & NDR_BUFFERS) {
1145         }
1146         return NDR_ERR_SUCCESS;
1147 }
1148
1149 _PUBLIC_ void ndr_print_USER_INFO_1006(struct ndr_print *ndr, const char *name, const struct USER_INFO_1006 *r)
1150 {
1151         ndr_print_struct(ndr, name, "USER_INFO_1006");
1152         ndr->depth++;
1153         ndr_print_string(ndr, "usri1006_home_dir", r->usri1006_home_dir);
1154         ndr->depth--;
1155 }
1156
1157 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r)
1158 {
1159         if (ndr_flags & NDR_SCALARS) {
1160                 NDR_CHECK(ndr_push_align(ndr, 4));
1161                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1007_comment));
1162         }
1163         if (ndr_flags & NDR_BUFFERS) {
1164         }
1165         return NDR_ERR_SUCCESS;
1166 }
1167
1168 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1007(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1007 *r)
1169 {
1170         if (ndr_flags & NDR_SCALARS) {
1171                 NDR_CHECK(ndr_pull_align(ndr, 4));
1172                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1007_comment));
1173         }
1174         if (ndr_flags & NDR_BUFFERS) {
1175         }
1176         return NDR_ERR_SUCCESS;
1177 }
1178
1179 _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, const struct USER_INFO_1007 *r)
1180 {
1181         ndr_print_struct(ndr, name, "USER_INFO_1007");
1182         ndr->depth++;
1183         ndr_print_string(ndr, "usri1007_comment", r->usri1007_comment);
1184         ndr->depth--;
1185 }
1186
1187 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1008(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1008 *r)
1188 {
1189         if (ndr_flags & NDR_SCALARS) {
1190                 NDR_CHECK(ndr_push_align(ndr, 4));
1191                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1008_flags));
1192         }
1193         if (ndr_flags & NDR_BUFFERS) {
1194         }
1195         return NDR_ERR_SUCCESS;
1196 }
1197
1198 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1008(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1008 *r)
1199 {
1200         if (ndr_flags & NDR_SCALARS) {
1201                 NDR_CHECK(ndr_pull_align(ndr, 4));
1202                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1008_flags));
1203         }
1204         if (ndr_flags & NDR_BUFFERS) {
1205         }
1206         return NDR_ERR_SUCCESS;
1207 }
1208
1209 _PUBLIC_ void ndr_print_USER_INFO_1008(struct ndr_print *ndr, const char *name, const struct USER_INFO_1008 *r)
1210 {
1211         ndr_print_struct(ndr, name, "USER_INFO_1008");
1212         ndr->depth++;
1213         ndr_print_uint32(ndr, "usri1008_flags", r->usri1008_flags);
1214         ndr->depth--;
1215 }
1216
1217 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1009(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1009 *r)
1218 {
1219         if (ndr_flags & NDR_SCALARS) {
1220                 NDR_CHECK(ndr_push_align(ndr, 4));
1221                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1009_script_path));
1222         }
1223         if (ndr_flags & NDR_BUFFERS) {
1224         }
1225         return NDR_ERR_SUCCESS;
1226 }
1227
1228 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1009(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1009 *r)
1229 {
1230         if (ndr_flags & NDR_SCALARS) {
1231                 NDR_CHECK(ndr_pull_align(ndr, 4));
1232                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1009_script_path));
1233         }
1234         if (ndr_flags & NDR_BUFFERS) {
1235         }
1236         return NDR_ERR_SUCCESS;
1237 }
1238
1239 _PUBLIC_ void ndr_print_USER_INFO_1009(struct ndr_print *ndr, const char *name, const struct USER_INFO_1009 *r)
1240 {
1241         ndr_print_struct(ndr, name, "USER_INFO_1009");
1242         ndr->depth++;
1243         ndr_print_string(ndr, "usri1009_script_path", r->usri1009_script_path);
1244         ndr->depth--;
1245 }
1246
1247 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1010(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1010 *r)
1248 {
1249         if (ndr_flags & NDR_SCALARS) {
1250                 NDR_CHECK(ndr_push_align(ndr, 4));
1251                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1010_auth_flags));
1252         }
1253         if (ndr_flags & NDR_BUFFERS) {
1254         }
1255         return NDR_ERR_SUCCESS;
1256 }
1257
1258 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1010(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1010 *r)
1259 {
1260         if (ndr_flags & NDR_SCALARS) {
1261                 NDR_CHECK(ndr_pull_align(ndr, 4));
1262                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1010_auth_flags));
1263         }
1264         if (ndr_flags & NDR_BUFFERS) {
1265         }
1266         return NDR_ERR_SUCCESS;
1267 }
1268
1269 _PUBLIC_ void ndr_print_USER_INFO_1010(struct ndr_print *ndr, const char *name, const struct USER_INFO_1010 *r)
1270 {
1271         ndr_print_struct(ndr, name, "USER_INFO_1010");
1272         ndr->depth++;
1273         ndr_print_uint32(ndr, "usri1010_auth_flags", r->usri1010_auth_flags);
1274         ndr->depth--;
1275 }
1276
1277 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1011(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1011 *r)
1278 {
1279         if (ndr_flags & NDR_SCALARS) {
1280                 NDR_CHECK(ndr_push_align(ndr, 4));
1281                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1011_full_name));
1282         }
1283         if (ndr_flags & NDR_BUFFERS) {
1284         }
1285         return NDR_ERR_SUCCESS;
1286 }
1287
1288 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1011(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1011 *r)
1289 {
1290         if (ndr_flags & NDR_SCALARS) {
1291                 NDR_CHECK(ndr_pull_align(ndr, 4));
1292                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1011_full_name));
1293         }
1294         if (ndr_flags & NDR_BUFFERS) {
1295         }
1296         return NDR_ERR_SUCCESS;
1297 }
1298
1299 _PUBLIC_ void ndr_print_USER_INFO_1011(struct ndr_print *ndr, const char *name, const struct USER_INFO_1011 *r)
1300 {
1301         ndr_print_struct(ndr, name, "USER_INFO_1011");
1302         ndr->depth++;
1303         ndr_print_string(ndr, "usri1011_full_name", r->usri1011_full_name);
1304         ndr->depth--;
1305 }
1306
1307 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1012(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1012 *r)
1308 {
1309         if (ndr_flags & NDR_SCALARS) {
1310                 NDR_CHECK(ndr_push_align(ndr, 4));
1311                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1012_usr_comment));
1312         }
1313         if (ndr_flags & NDR_BUFFERS) {
1314         }
1315         return NDR_ERR_SUCCESS;
1316 }
1317
1318 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1012(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1012 *r)
1319 {
1320         if (ndr_flags & NDR_SCALARS) {
1321                 NDR_CHECK(ndr_pull_align(ndr, 4));
1322                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1012_usr_comment));
1323         }
1324         if (ndr_flags & NDR_BUFFERS) {
1325         }
1326         return NDR_ERR_SUCCESS;
1327 }
1328
1329 _PUBLIC_ void ndr_print_USER_INFO_1012(struct ndr_print *ndr, const char *name, const struct USER_INFO_1012 *r)
1330 {
1331         ndr_print_struct(ndr, name, "USER_INFO_1012");
1332         ndr->depth++;
1333         ndr_print_string(ndr, "usri1012_usr_comment", r->usri1012_usr_comment);
1334         ndr->depth--;
1335 }
1336
1337 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1013(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1013 *r)
1338 {
1339         if (ndr_flags & NDR_SCALARS) {
1340                 NDR_CHECK(ndr_push_align(ndr, 4));
1341                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1013_parms));
1342         }
1343         if (ndr_flags & NDR_BUFFERS) {
1344         }
1345         return NDR_ERR_SUCCESS;
1346 }
1347
1348 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1013(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1013 *r)
1349 {
1350         if (ndr_flags & NDR_SCALARS) {
1351                 NDR_CHECK(ndr_pull_align(ndr, 4));
1352                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1013_parms));
1353         }
1354         if (ndr_flags & NDR_BUFFERS) {
1355         }
1356         return NDR_ERR_SUCCESS;
1357 }
1358
1359 _PUBLIC_ void ndr_print_USER_INFO_1013(struct ndr_print *ndr, const char *name, const struct USER_INFO_1013 *r)
1360 {
1361         ndr_print_struct(ndr, name, "USER_INFO_1013");
1362         ndr->depth++;
1363         ndr_print_string(ndr, "usri1013_parms", r->usri1013_parms);
1364         ndr->depth--;
1365 }
1366
1367 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1014(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1014 *r)
1368 {
1369         if (ndr_flags & NDR_SCALARS) {
1370                 NDR_CHECK(ndr_push_align(ndr, 4));
1371                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1014_workstations));
1372         }
1373         if (ndr_flags & NDR_BUFFERS) {
1374         }
1375         return NDR_ERR_SUCCESS;
1376 }
1377
1378 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1014(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1014 *r)
1379 {
1380         if (ndr_flags & NDR_SCALARS) {
1381                 NDR_CHECK(ndr_pull_align(ndr, 4));
1382                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1014_workstations));
1383         }
1384         if (ndr_flags & NDR_BUFFERS) {
1385         }
1386         return NDR_ERR_SUCCESS;
1387 }
1388
1389 _PUBLIC_ void ndr_print_USER_INFO_1014(struct ndr_print *ndr, const char *name, const struct USER_INFO_1014 *r)
1390 {
1391         ndr_print_struct(ndr, name, "USER_INFO_1014");
1392         ndr->depth++;
1393         ndr_print_string(ndr, "usri1014_workstations", r->usri1014_workstations);
1394         ndr->depth--;
1395 }
1396
1397 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1017(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1017 *r)
1398 {
1399         if (ndr_flags & NDR_SCALARS) {
1400                 NDR_CHECK(ndr_push_align(ndr, 4));
1401                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1017_acct_expires));
1402         }
1403         if (ndr_flags & NDR_BUFFERS) {
1404         }
1405         return NDR_ERR_SUCCESS;
1406 }
1407
1408 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1017(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1017 *r)
1409 {
1410         if (ndr_flags & NDR_SCALARS) {
1411                 NDR_CHECK(ndr_pull_align(ndr, 4));
1412                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1017_acct_expires));
1413         }
1414         if (ndr_flags & NDR_BUFFERS) {
1415         }
1416         return NDR_ERR_SUCCESS;
1417 }
1418
1419 _PUBLIC_ void ndr_print_USER_INFO_1017(struct ndr_print *ndr, const char *name, const struct USER_INFO_1017 *r)
1420 {
1421         ndr_print_struct(ndr, name, "USER_INFO_1017");
1422         ndr->depth++;
1423         ndr_print_uint32(ndr, "usri1017_acct_expires", r->usri1017_acct_expires);
1424         ndr->depth--;
1425 }
1426
1427 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1018(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1018 *r)
1428 {
1429         if (ndr_flags & NDR_SCALARS) {
1430                 NDR_CHECK(ndr_push_align(ndr, 4));
1431                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1018_max_storage));
1432         }
1433         if (ndr_flags & NDR_BUFFERS) {
1434         }
1435         return NDR_ERR_SUCCESS;
1436 }
1437
1438 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1018(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1018 *r)
1439 {
1440         if (ndr_flags & NDR_SCALARS) {
1441                 NDR_CHECK(ndr_pull_align(ndr, 4));
1442                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1018_max_storage));
1443         }
1444         if (ndr_flags & NDR_BUFFERS) {
1445         }
1446         return NDR_ERR_SUCCESS;
1447 }
1448
1449 _PUBLIC_ void ndr_print_USER_INFO_1018(struct ndr_print *ndr, const char *name, const struct USER_INFO_1018 *r)
1450 {
1451         ndr_print_struct(ndr, name, "USER_INFO_1018");
1452         ndr->depth++;
1453         ndr_print_uint32(ndr, "usri1018_max_storage", r->usri1018_max_storage);
1454         ndr->depth--;
1455 }
1456
1457 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1020(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1020 *r)
1458 {
1459         if (ndr_flags & NDR_SCALARS) {
1460                 NDR_CHECK(ndr_push_align(ndr, 4));
1461                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1020_units_per_week));
1462                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri1020_logon_hours));
1463         }
1464         if (ndr_flags & NDR_BUFFERS) {
1465                 if (r->usri1020_logon_hours) {
1466                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri1020_logon_hours));
1467                 }
1468         }
1469         return NDR_ERR_SUCCESS;
1470 }
1471
1472 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1020(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1020 *r)
1473 {
1474         uint32_t _ptr_usri1020_logon_hours;
1475         TALLOC_CTX *_mem_save_usri1020_logon_hours_0;
1476         if (ndr_flags & NDR_SCALARS) {
1477                 NDR_CHECK(ndr_pull_align(ndr, 4));
1478                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1020_units_per_week));
1479                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri1020_logon_hours));
1480                 if (_ptr_usri1020_logon_hours) {
1481                         NDR_PULL_ALLOC(ndr, r->usri1020_logon_hours);
1482                 } else {
1483                         r->usri1020_logon_hours = NULL;
1484                 }
1485         }
1486         if (ndr_flags & NDR_BUFFERS) {
1487                 if (r->usri1020_logon_hours) {
1488                         _mem_save_usri1020_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1489                         NDR_PULL_SET_MEM_CTX(ndr, r->usri1020_logon_hours, 0);
1490                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri1020_logon_hours));
1491                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri1020_logon_hours_0, 0);
1492                 }
1493         }
1494         return NDR_ERR_SUCCESS;
1495 }
1496
1497 _PUBLIC_ void ndr_print_USER_INFO_1020(struct ndr_print *ndr, const char *name, const struct USER_INFO_1020 *r)
1498 {
1499         ndr_print_struct(ndr, name, "USER_INFO_1020");
1500         ndr->depth++;
1501         ndr_print_uint32(ndr, "usri1020_units_per_week", r->usri1020_units_per_week);
1502         ndr_print_ptr(ndr, "usri1020_logon_hours", r->usri1020_logon_hours);
1503         ndr->depth++;
1504         if (r->usri1020_logon_hours) {
1505                 ndr_print_uint8(ndr, "usri1020_logon_hours", *r->usri1020_logon_hours);
1506         }
1507         ndr->depth--;
1508         ndr->depth--;
1509 }
1510
1511 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1023(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1023 *r)
1512 {
1513         if (ndr_flags & NDR_SCALARS) {
1514                 NDR_CHECK(ndr_push_align(ndr, 4));
1515                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1023_logon_server));
1516         }
1517         if (ndr_flags & NDR_BUFFERS) {
1518         }
1519         return NDR_ERR_SUCCESS;
1520 }
1521
1522 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1023(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1023 *r)
1523 {
1524         if (ndr_flags & NDR_SCALARS) {
1525                 NDR_CHECK(ndr_pull_align(ndr, 4));
1526                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1023_logon_server));
1527         }
1528         if (ndr_flags & NDR_BUFFERS) {
1529         }
1530         return NDR_ERR_SUCCESS;
1531 }
1532
1533 _PUBLIC_ void ndr_print_USER_INFO_1023(struct ndr_print *ndr, const char *name, const struct USER_INFO_1023 *r)
1534 {
1535         ndr_print_struct(ndr, name, "USER_INFO_1023");
1536         ndr->depth++;
1537         ndr_print_string(ndr, "usri1023_logon_server", r->usri1023_logon_server);
1538         ndr->depth--;
1539 }
1540
1541 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1024(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1024 *r)
1542 {
1543         if (ndr_flags & NDR_SCALARS) {
1544                 NDR_CHECK(ndr_push_align(ndr, 4));
1545                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1024_country_code));
1546         }
1547         if (ndr_flags & NDR_BUFFERS) {
1548         }
1549         return NDR_ERR_SUCCESS;
1550 }
1551
1552 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1024(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1024 *r)
1553 {
1554         if (ndr_flags & NDR_SCALARS) {
1555                 NDR_CHECK(ndr_pull_align(ndr, 4));
1556                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1024_country_code));
1557         }
1558         if (ndr_flags & NDR_BUFFERS) {
1559         }
1560         return NDR_ERR_SUCCESS;
1561 }
1562
1563 _PUBLIC_ void ndr_print_USER_INFO_1024(struct ndr_print *ndr, const char *name, const struct USER_INFO_1024 *r)
1564 {
1565         ndr_print_struct(ndr, name, "USER_INFO_1024");
1566         ndr->depth++;
1567         ndr_print_uint32(ndr, "usri1024_country_code", r->usri1024_country_code);
1568         ndr->depth--;
1569 }
1570
1571 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1025(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1025 *r)
1572 {
1573         if (ndr_flags & NDR_SCALARS) {
1574                 NDR_CHECK(ndr_push_align(ndr, 4));
1575                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1025_code_page));
1576         }
1577         if (ndr_flags & NDR_BUFFERS) {
1578         }
1579         return NDR_ERR_SUCCESS;
1580 }
1581
1582 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1025(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1025 *r)
1583 {
1584         if (ndr_flags & NDR_SCALARS) {
1585                 NDR_CHECK(ndr_pull_align(ndr, 4));
1586                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1025_code_page));
1587         }
1588         if (ndr_flags & NDR_BUFFERS) {
1589         }
1590         return NDR_ERR_SUCCESS;
1591 }
1592
1593 _PUBLIC_ void ndr_print_USER_INFO_1025(struct ndr_print *ndr, const char *name, const struct USER_INFO_1025 *r)
1594 {
1595         ndr_print_struct(ndr, name, "USER_INFO_1025");
1596         ndr->depth++;
1597         ndr_print_uint32(ndr, "usri1025_code_page", r->usri1025_code_page);
1598         ndr->depth--;
1599 }
1600
1601 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1051(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1051 *r)
1602 {
1603         if (ndr_flags & NDR_SCALARS) {
1604                 NDR_CHECK(ndr_push_align(ndr, 4));
1605                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1051_primary_group_id));
1606         }
1607         if (ndr_flags & NDR_BUFFERS) {
1608         }
1609         return NDR_ERR_SUCCESS;
1610 }
1611
1612 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1051(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1051 *r)
1613 {
1614         if (ndr_flags & NDR_SCALARS) {
1615                 NDR_CHECK(ndr_pull_align(ndr, 4));
1616                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1051_primary_group_id));
1617         }
1618         if (ndr_flags & NDR_BUFFERS) {
1619         }
1620         return NDR_ERR_SUCCESS;
1621 }
1622
1623 _PUBLIC_ void ndr_print_USER_INFO_1051(struct ndr_print *ndr, const char *name, const struct USER_INFO_1051 *r)
1624 {
1625         ndr_print_struct(ndr, name, "USER_INFO_1051");
1626         ndr->depth++;
1627         ndr_print_uint32(ndr, "usri1051_primary_group_id", r->usri1051_primary_group_id);
1628         ndr->depth--;
1629 }
1630
1631 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1052(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1052 *r)
1632 {
1633         if (ndr_flags & NDR_SCALARS) {
1634                 NDR_CHECK(ndr_push_align(ndr, 4));
1635                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1052_profile));
1636         }
1637         if (ndr_flags & NDR_BUFFERS) {
1638         }
1639         return NDR_ERR_SUCCESS;
1640 }
1641
1642 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1052(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1052 *r)
1643 {
1644         if (ndr_flags & NDR_SCALARS) {
1645                 NDR_CHECK(ndr_pull_align(ndr, 4));
1646                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1052_profile));
1647         }
1648         if (ndr_flags & NDR_BUFFERS) {
1649         }
1650         return NDR_ERR_SUCCESS;
1651 }
1652
1653 _PUBLIC_ void ndr_print_USER_INFO_1052(struct ndr_print *ndr, const char *name, const struct USER_INFO_1052 *r)
1654 {
1655         ndr_print_struct(ndr, name, "USER_INFO_1052");
1656         ndr->depth++;
1657         ndr_print_string(ndr, "usri1052_profile", r->usri1052_profile);
1658         ndr->depth--;
1659 }
1660
1661 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1053(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1053 *r)
1662 {
1663         if (ndr_flags & NDR_SCALARS) {
1664                 NDR_CHECK(ndr_push_align(ndr, 4));
1665                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1053_home_dir_drive));
1666         }
1667         if (ndr_flags & NDR_BUFFERS) {
1668         }
1669         return NDR_ERR_SUCCESS;
1670 }
1671
1672 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1053(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1053 *r)
1673 {
1674         if (ndr_flags & NDR_SCALARS) {
1675                 NDR_CHECK(ndr_pull_align(ndr, 4));
1676                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1053_home_dir_drive));
1677         }
1678         if (ndr_flags & NDR_BUFFERS) {
1679         }
1680         return NDR_ERR_SUCCESS;
1681 }
1682
1683 _PUBLIC_ void ndr_print_USER_INFO_1053(struct ndr_print *ndr, const char *name, const struct USER_INFO_1053 *r)
1684 {
1685         ndr_print_struct(ndr, name, "USER_INFO_1053");
1686         ndr->depth++;
1687         ndr_print_string(ndr, "usri1053_home_dir_drive", r->usri1053_home_dir_drive);
1688         ndr->depth--;
1689 }
1690
1691 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_X *r)
1692 {
1693         if (ndr_flags & NDR_SCALARS) {
1694                 NDR_CHECK(ndr_push_align(ndr, 4));
1695                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_name));
1696                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_password));
1697                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_password_age));
1698                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_priv));
1699                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir));
1700                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_comment));
1701                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_flags));
1702                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_script_path));
1703                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_auth_flags));
1704                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_full_name));
1705                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_usr_comment));
1706                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_parms));
1707                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_workstations));
1708                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logon));
1709                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logoff));
1710                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_acct_expires));
1711                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_max_storage));
1712                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_units_per_week));
1713                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usriX_logon_hours));
1714                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_bad_pw_count));
1715                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_num_logons));
1716                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_logon_server));
1717                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_country_code));
1718                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_code_page));
1719         }
1720         if (ndr_flags & NDR_BUFFERS) {
1721                 if (r->usriX_logon_hours) {
1722                         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usriX_logon_hours));
1723                 }
1724         }
1725         return NDR_ERR_SUCCESS;
1726 }
1727
1728 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_X *r)
1729 {
1730         uint32_t _ptr_usriX_logon_hours;
1731         TALLOC_CTX *_mem_save_usriX_logon_hours_0;
1732         if (ndr_flags & NDR_SCALARS) {
1733                 NDR_CHECK(ndr_pull_align(ndr, 4));
1734                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_name));
1735                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_password));
1736                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_age));
1737                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_priv));
1738                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir));
1739                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_comment));
1740                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_flags));
1741                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_script_path));
1742                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_auth_flags));
1743                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_full_name));
1744                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_usr_comment));
1745                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_parms));
1746                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_workstations));
1747                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logon));
1748                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logoff));
1749                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_acct_expires));
1750                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_max_storage));
1751                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_units_per_week));
1752                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usriX_logon_hours));
1753                 if (_ptr_usriX_logon_hours) {
1754                         NDR_PULL_ALLOC(ndr, r->usriX_logon_hours);
1755                 } else {
1756                         r->usriX_logon_hours = NULL;
1757                 }
1758                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_bad_pw_count));
1759                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_num_logons));
1760                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server));
1761                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code));
1762                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page));
1763         }
1764         if (ndr_flags & NDR_BUFFERS) {
1765                 if (r->usriX_logon_hours) {
1766                         _mem_save_usriX_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr);
1767                         NDR_PULL_SET_MEM_CTX(ndr, r->usriX_logon_hours, 0);
1768                         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usriX_logon_hours));
1769                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usriX_logon_hours_0, 0);
1770                 }
1771         }
1772         return NDR_ERR_SUCCESS;
1773 }
1774
1775 _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, const struct USER_INFO_X *r)
1776 {
1777         ndr_print_struct(ndr, name, "USER_INFO_X");
1778         ndr->depth++;
1779         ndr_print_string(ndr, "usriX_name", r->usriX_name);
1780         ndr_print_string(ndr, "usriX_password", r->usriX_password);
1781         ndr_print_uint32(ndr, "usriX_password_age", r->usriX_password_age);
1782         ndr_print_uint32(ndr, "usriX_priv", r->usriX_priv);
1783         ndr_print_string(ndr, "usriX_home_dir", r->usriX_home_dir);
1784         ndr_print_string(ndr, "usriX_comment", r->usriX_comment);
1785         ndr_print_uint32(ndr, "usriX_flags", r->usriX_flags);
1786         ndr_print_string(ndr, "usriX_script_path", r->usriX_script_path);
1787         ndr_print_uint32(ndr, "usriX_auth_flags", r->usriX_auth_flags);
1788         ndr_print_string(ndr, "usriX_full_name", r->usriX_full_name);
1789         ndr_print_string(ndr, "usriX_usr_comment", r->usriX_usr_comment);
1790         ndr_print_string(ndr, "usriX_parms", r->usriX_parms);
1791         ndr_print_string(ndr, "usriX_workstations", r->usriX_workstations);
1792         ndr_print_uint32(ndr, "usriX_last_logon", r->usriX_last_logon);
1793         ndr_print_uint32(ndr, "usriX_last_logoff", r->usriX_last_logoff);
1794         ndr_print_uint32(ndr, "usriX_acct_expires", r->usriX_acct_expires);
1795         ndr_print_uint32(ndr, "usriX_max_storage", r->usriX_max_storage);
1796         ndr_print_uint32(ndr, "usriX_units_per_week", r->usriX_units_per_week);
1797         ndr_print_ptr(ndr, "usriX_logon_hours", r->usriX_logon_hours);
1798         ndr->depth++;
1799         if (r->usriX_logon_hours) {
1800                 ndr_print_uint8(ndr, "usriX_logon_hours", *r->usriX_logon_hours);
1801         }
1802         ndr->depth--;
1803         ndr_print_uint32(ndr, "usriX_bad_pw_count", r->usriX_bad_pw_count);
1804         ndr_print_uint32(ndr, "usriX_num_logons", r->usriX_num_logons);
1805         ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server);
1806         ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code);
1807         ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page);
1808         ndr->depth--;
1809 }
1810
1811 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
1812 {
1813         if (ndr_flags & NDR_SCALARS) {
1814                 NDR_CHECK(ndr_push_align(ndr, 4));
1815                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
1816                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
1817                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
1818                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
1819                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
1820                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
1821         }
1822         if (ndr_flags & NDR_BUFFERS) {
1823         }
1824         return NDR_ERR_SUCCESS;
1825 }
1826
1827 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
1828 {
1829         if (ndr_flags & NDR_SCALARS) {
1830                 NDR_CHECK(ndr_pull_align(ndr, 4));
1831                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
1832                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
1833                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
1834                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
1835                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
1836                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
1837         }
1838         if (ndr_flags & NDR_BUFFERS) {
1839         }
1840         return NDR_ERR_SUCCESS;
1841 }
1842
1843 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
1844 {
1845         ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
1846         ndr->depth++;
1847         ndr_print_string(ndr, "usri1_name", r->usri1_name);
1848         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
1849         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
1850         ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
1851         ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
1852         ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
1853         ndr->depth--;
1854 }
1855
1856 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
1857 {
1858         if (ndr_flags & NDR_SCALARS) {
1859                 NDR_CHECK(ndr_push_align(ndr, 4));
1860                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
1861                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
1862                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
1863                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
1864                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
1865         }
1866         if (ndr_flags & NDR_BUFFERS) {
1867         }
1868         return NDR_ERR_SUCCESS;
1869 }
1870
1871 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
1872 {
1873         if (ndr_flags & NDR_SCALARS) {
1874                 NDR_CHECK(ndr_pull_align(ndr, 4));
1875                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
1876                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
1877                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
1878                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
1879                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
1880         }
1881         if (ndr_flags & NDR_BUFFERS) {
1882         }
1883         return NDR_ERR_SUCCESS;
1884 }
1885
1886 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
1887 {
1888         ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
1889         ndr->depth++;
1890         ndr_print_string(ndr, "usri2_name", r->usri2_name);
1891         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
1892         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
1893         ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
1894         ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
1895         ndr->depth--;
1896 }
1897
1898 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
1899 {
1900         if (ndr_flags & NDR_SCALARS) {
1901                 NDR_CHECK(ndr_push_align(ndr, 4));
1902                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
1903                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
1904                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
1905                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
1906                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
1907         }
1908         if (ndr_flags & NDR_BUFFERS) {
1909         }
1910         return NDR_ERR_SUCCESS;
1911 }
1912
1913 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
1914 {
1915         if (ndr_flags & NDR_SCALARS) {
1916                 NDR_CHECK(ndr_pull_align(ndr, 4));
1917                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
1918                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
1919                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
1920                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
1921                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
1922         }
1923         if (ndr_flags & NDR_BUFFERS) {
1924         }
1925         return NDR_ERR_SUCCESS;
1926 }
1927
1928 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
1929 {
1930         ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
1931         ndr->depth++;
1932         ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
1933         ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
1934         ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
1935         ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
1936         ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
1937         ndr->depth--;
1938 }
1939
1940 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
1941 {
1942         ndr_print_struct(ndr, name, "NetJoinDomain");
1943         ndr->depth++;
1944         if (flags & NDR_SET_VALUES) {
1945                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1946         }
1947         if (flags & NDR_IN) {
1948                 ndr_print_struct(ndr, "in", "NetJoinDomain");
1949                 ndr->depth++;
1950                 ndr_print_ptr(ndr, "server", r->in.server);
1951                 ndr->depth++;
1952                 if (r->in.server) {
1953                         ndr_print_string(ndr, "server", r->in.server);
1954                 }
1955                 ndr->depth--;
1956                 ndr_print_ptr(ndr, "domain", r->in.domain);
1957                 ndr->depth++;
1958                 ndr_print_string(ndr, "domain", r->in.domain);
1959                 ndr->depth--;
1960                 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
1961                 ndr->depth++;
1962                 if (r->in.account_ou) {
1963                         ndr_print_string(ndr, "account_ou", r->in.account_ou);
1964                 }
1965                 ndr->depth--;
1966                 ndr_print_ptr(ndr, "account", r->in.account);
1967                 ndr->depth++;
1968                 if (r->in.account) {
1969                         ndr_print_string(ndr, "account", r->in.account);
1970                 }
1971                 ndr->depth--;
1972                 ndr_print_ptr(ndr, "password", r->in.password);
1973                 ndr->depth++;
1974                 if (r->in.password) {
1975                         ndr_print_string(ndr, "password", r->in.password);
1976                 }
1977                 ndr->depth--;
1978                 ndr_print_uint32(ndr, "join_flags", r->in.join_flags);
1979                 ndr->depth--;
1980         }
1981         if (flags & NDR_OUT) {
1982                 ndr_print_struct(ndr, "out", "NetJoinDomain");
1983                 ndr->depth++;
1984                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1985                 ndr->depth--;
1986         }
1987         ndr->depth--;
1988 }
1989
1990 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
1991 {
1992         ndr_print_struct(ndr, name, "NetUnjoinDomain");
1993         ndr->depth++;
1994         if (flags & NDR_SET_VALUES) {
1995                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1996         }
1997         if (flags & NDR_IN) {
1998                 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
1999                 ndr->depth++;
2000                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2001                 ndr->depth++;
2002                 if (r->in.server_name) {
2003                         ndr_print_string(ndr, "server_name", r->in.server_name);
2004                 }
2005                 ndr->depth--;
2006                 ndr_print_ptr(ndr, "account", r->in.account);
2007                 ndr->depth++;
2008                 if (r->in.account) {
2009                         ndr_print_string(ndr, "account", r->in.account);
2010                 }
2011                 ndr->depth--;
2012                 ndr_print_ptr(ndr, "password", r->in.password);
2013                 ndr->depth++;
2014                 if (r->in.password) {
2015                         ndr_print_string(ndr, "password", r->in.password);
2016                 }
2017                 ndr->depth--;
2018                 ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags);
2019                 ndr->depth--;
2020         }
2021         if (flags & NDR_OUT) {
2022                 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
2023                 ndr->depth++;
2024                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2025                 ndr->depth--;
2026         }
2027         ndr->depth--;
2028 }
2029
2030 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
2031 {
2032         ndr_print_struct(ndr, name, "NetGetJoinInformation");
2033         ndr->depth++;
2034         if (flags & NDR_SET_VALUES) {
2035                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2036         }
2037         if (flags & NDR_IN) {
2038                 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
2039                 ndr->depth++;
2040                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2041                 ndr->depth++;
2042                 if (r->in.server_name) {
2043                         ndr_print_string(ndr, "server_name", r->in.server_name);
2044                 }
2045                 ndr->depth--;
2046                 ndr->depth--;
2047         }
2048         if (flags & NDR_OUT) {
2049                 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
2050                 ndr->depth++;
2051                 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
2052                 ndr->depth++;
2053                 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
2054                 ndr->depth++;
2055                 if (*r->out.name_buffer) {
2056                         ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
2057                 }
2058                 ndr->depth--;
2059                 ndr->depth--;
2060                 ndr_print_ptr(ndr, "name_type", r->out.name_type);
2061                 ndr->depth++;
2062                 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
2063                 ndr->depth--;
2064                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2065                 ndr->depth--;
2066         }
2067         ndr->depth--;
2068 }
2069
2070 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
2071 {
2072         ndr_print_struct(ndr, name, "NetGetJoinableOUs");
2073         ndr->depth++;
2074         if (flags & NDR_SET_VALUES) {
2075                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2076         }
2077         if (flags & NDR_IN) {
2078                 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
2079                 ndr->depth++;
2080                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2081                 ndr->depth++;
2082                 if (r->in.server_name) {
2083                         ndr_print_string(ndr, "server_name", r->in.server_name);
2084                 }
2085                 ndr->depth--;
2086                 ndr_print_ptr(ndr, "domain", r->in.domain);
2087                 ndr->depth++;
2088                 ndr_print_string(ndr, "domain", r->in.domain);
2089                 ndr->depth--;
2090                 ndr_print_ptr(ndr, "account", r->in.account);
2091                 ndr->depth++;
2092                 if (r->in.account) {
2093                         ndr_print_string(ndr, "account", r->in.account);
2094                 }
2095                 ndr->depth--;
2096                 ndr_print_ptr(ndr, "password", r->in.password);
2097                 ndr->depth++;
2098                 if (r->in.password) {
2099                         ndr_print_string(ndr, "password", r->in.password);
2100                 }
2101                 ndr->depth--;
2102                 ndr->depth--;
2103         }
2104         if (flags & NDR_OUT) {
2105                 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
2106                 ndr->depth++;
2107                 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
2108                 ndr->depth++;
2109                 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
2110                 ndr->depth--;
2111                 ndr_print_ptr(ndr, "ous", r->out.ous);
2112                 ndr->depth++;
2113                 ndr_print_ptr(ndr, "ous", *r->out.ous);
2114                 ndr->depth++;
2115                 if (*r->out.ous) {
2116                         ndr_print_ptr(ndr, "ous", **r->out.ous);
2117                         ndr->depth++;
2118                         if (**r->out.ous) {
2119                                 ndr_print_string(ndr, "ous", **r->out.ous);
2120                         }
2121                         ndr->depth--;
2122                 }
2123                 ndr->depth--;
2124                 ndr->depth--;
2125                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2126                 ndr->depth--;
2127         }
2128         ndr->depth--;
2129 }
2130
2131 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
2132 {
2133         ndr_print_struct(ndr, name, "NetServerGetInfo");
2134         ndr->depth++;
2135         if (flags & NDR_SET_VALUES) {
2136                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2137         }
2138         if (flags & NDR_IN) {
2139                 ndr_print_struct(ndr, "in", "NetServerGetInfo");
2140                 ndr->depth++;
2141                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2142                 ndr->depth++;
2143                 if (r->in.server_name) {
2144                         ndr_print_string(ndr, "server_name", r->in.server_name);
2145                 }
2146                 ndr->depth--;
2147                 ndr_print_uint32(ndr, "level", r->in.level);
2148                 ndr->depth--;
2149         }
2150         if (flags & NDR_OUT) {
2151                 ndr_print_struct(ndr, "out", "NetServerGetInfo");
2152                 ndr->depth++;
2153                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2154                 ndr->depth++;
2155                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2156                 ndr->depth++;
2157                 if (*r->out.buffer) {
2158                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2159                 }
2160                 ndr->depth--;
2161                 ndr->depth--;
2162                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2163                 ndr->depth--;
2164         }
2165         ndr->depth--;
2166 }
2167
2168 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
2169 {
2170         ndr_print_struct(ndr, name, "NetServerSetInfo");
2171         ndr->depth++;
2172         if (flags & NDR_SET_VALUES) {
2173                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2174         }
2175         if (flags & NDR_IN) {
2176                 ndr_print_struct(ndr, "in", "NetServerSetInfo");
2177                 ndr->depth++;
2178                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2179                 ndr->depth++;
2180                 if (r->in.server_name) {
2181                         ndr_print_string(ndr, "server_name", r->in.server_name);
2182                 }
2183                 ndr->depth--;
2184                 ndr_print_uint32(ndr, "level", r->in.level);
2185                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2186                 ndr->depth++;
2187                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2188                 ndr->depth--;
2189                 ndr->depth--;
2190         }
2191         if (flags & NDR_OUT) {
2192                 ndr_print_struct(ndr, "out", "NetServerSetInfo");
2193                 ndr->depth++;
2194                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2195                 ndr->depth++;
2196                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2197                 ndr->depth--;
2198                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2199                 ndr->depth--;
2200         }
2201         ndr->depth--;
2202 }
2203
2204 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
2205 {
2206         ndr_print_struct(ndr, name, "NetGetDCName");
2207         ndr->depth++;
2208         if (flags & NDR_SET_VALUES) {
2209                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2210         }
2211         if (flags & NDR_IN) {
2212                 ndr_print_struct(ndr, "in", "NetGetDCName");
2213                 ndr->depth++;
2214                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2215                 ndr->depth++;
2216                 if (r->in.server_name) {
2217                         ndr_print_string(ndr, "server_name", r->in.server_name);
2218                 }
2219                 ndr->depth--;
2220                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2221                 ndr->depth++;
2222                 if (r->in.domain_name) {
2223                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2224                 }
2225                 ndr->depth--;
2226                 ndr->depth--;
2227         }
2228         if (flags & NDR_OUT) {
2229                 ndr_print_struct(ndr, "out", "NetGetDCName");
2230                 ndr->depth++;
2231                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2232                 ndr->depth++;
2233                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2234                 ndr->depth++;
2235                 if (*r->out.buffer) {
2236                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2237                 }
2238                 ndr->depth--;
2239                 ndr->depth--;
2240                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2241                 ndr->depth--;
2242         }
2243         ndr->depth--;
2244 }
2245
2246 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
2247 {
2248         ndr_print_struct(ndr, name, "NetGetAnyDCName");
2249         ndr->depth++;
2250         if (flags & NDR_SET_VALUES) {
2251                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2252         }
2253         if (flags & NDR_IN) {
2254                 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
2255                 ndr->depth++;
2256                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2257                 ndr->depth++;
2258                 if (r->in.server_name) {
2259                         ndr_print_string(ndr, "server_name", r->in.server_name);
2260                 }
2261                 ndr->depth--;
2262                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2263                 ndr->depth++;
2264                 if (r->in.domain_name) {
2265                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2266                 }
2267                 ndr->depth--;
2268                 ndr->depth--;
2269         }
2270         if (flags & NDR_OUT) {
2271                 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
2272                 ndr->depth++;
2273                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2274                 ndr->depth++;
2275                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2276                 ndr->depth++;
2277                 if (*r->out.buffer) {
2278                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2279                 }
2280                 ndr->depth--;
2281                 ndr->depth--;
2282                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2283                 ndr->depth--;
2284         }
2285         ndr->depth--;
2286 }
2287
2288 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
2289 {
2290         ndr_print_struct(ndr, name, "DsGetDcName");
2291         ndr->depth++;
2292         if (flags & NDR_SET_VALUES) {
2293                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2294         }
2295         if (flags & NDR_IN) {
2296                 ndr_print_struct(ndr, "in", "DsGetDcName");
2297                 ndr->depth++;
2298                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2299                 ndr->depth++;
2300                 if (r->in.server_name) {
2301                         ndr_print_string(ndr, "server_name", r->in.server_name);
2302                 }
2303                 ndr->depth--;
2304                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2305                 ndr->depth++;
2306                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2307                 ndr->depth--;
2308                 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
2309                 ndr->depth++;
2310                 if (r->in.domain_guid) {
2311                         ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
2312                 }
2313                 ndr->depth--;
2314                 ndr_print_ptr(ndr, "site_name", r->in.site_name);
2315                 ndr->depth++;
2316                 if (r->in.site_name) {
2317                         ndr_print_string(ndr, "site_name", r->in.site_name);
2318                 }
2319                 ndr->depth--;
2320                 ndr_print_uint32(ndr, "flags", r->in.flags);
2321                 ndr->depth--;
2322         }
2323         if (flags & NDR_OUT) {
2324                 ndr_print_struct(ndr, "out", "DsGetDcName");
2325                 ndr->depth++;
2326                 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
2327                 ndr->depth++;
2328                 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
2329                 ndr->depth++;
2330                 if (*r->out.dc_info) {
2331                         ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
2332                 }
2333                 ndr->depth--;
2334                 ndr->depth--;
2335                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2336                 ndr->depth--;
2337         }
2338         ndr->depth--;
2339 }
2340
2341 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
2342 {
2343         ndr_print_struct(ndr, name, "NetUserAdd");
2344         ndr->depth++;
2345         if (flags & NDR_SET_VALUES) {
2346                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2347         }
2348         if (flags & NDR_IN) {
2349                 ndr_print_struct(ndr, "in", "NetUserAdd");
2350                 ndr->depth++;
2351                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2352                 ndr->depth++;
2353                 if (r->in.server_name) {
2354                         ndr_print_string(ndr, "server_name", r->in.server_name);
2355                 }
2356                 ndr->depth--;
2357                 ndr_print_uint32(ndr, "level", r->in.level);
2358                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2359                 ndr->depth++;
2360                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2361                 ndr->depth--;
2362                 ndr->depth--;
2363         }
2364         if (flags & NDR_OUT) {
2365                 ndr_print_struct(ndr, "out", "NetUserAdd");
2366                 ndr->depth++;
2367                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2368                 ndr->depth++;
2369                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2370                 ndr->depth--;
2371                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2372                 ndr->depth--;
2373         }
2374         ndr->depth--;
2375 }
2376
2377 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
2378 {
2379         ndr_print_struct(ndr, name, "NetUserDel");
2380         ndr->depth++;
2381         if (flags & NDR_SET_VALUES) {
2382                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2383         }
2384         if (flags & NDR_IN) {
2385                 ndr_print_struct(ndr, "in", "NetUserDel");
2386                 ndr->depth++;
2387                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2388                 ndr->depth++;
2389                 if (r->in.server_name) {
2390                         ndr_print_string(ndr, "server_name", r->in.server_name);
2391                 }
2392                 ndr->depth--;
2393                 ndr_print_ptr(ndr, "user_name", r->in.user_name);
2394                 ndr->depth++;
2395                 ndr_print_string(ndr, "user_name", r->in.user_name);
2396                 ndr->depth--;
2397                 ndr->depth--;
2398         }
2399         if (flags & NDR_OUT) {
2400                 ndr_print_struct(ndr, "out", "NetUserDel");
2401                 ndr->depth++;
2402                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2403                 ndr->depth--;
2404         }
2405         ndr->depth--;
2406 }
2407
2408 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
2409 {
2410         ndr_print_struct(ndr, name, "NetUserEnum");
2411         ndr->depth++;
2412         if (flags & NDR_SET_VALUES) {
2413                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2414         }
2415         if (flags & NDR_IN) {
2416                 ndr_print_struct(ndr, "in", "NetUserEnum");
2417                 ndr->depth++;
2418                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2419                 ndr->depth++;
2420                 if (r->in.server_name) {
2421                         ndr_print_string(ndr, "server_name", r->in.server_name);
2422                 }
2423                 ndr->depth--;
2424                 ndr_print_uint32(ndr, "level", r->in.level);
2425                 ndr_print_uint32(ndr, "filter", r->in.filter);
2426                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2427                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2428                 ndr->depth++;
2429                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2430                 ndr->depth--;
2431                 ndr->depth--;
2432         }
2433         if (flags & NDR_OUT) {
2434                 ndr_print_struct(ndr, "out", "NetUserEnum");
2435                 ndr->depth++;
2436                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2437                 ndr->depth++;
2438                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2439                 ndr->depth++;
2440                 if (*r->out.buffer) {
2441                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2442                 }
2443                 ndr->depth--;
2444                 ndr->depth--;
2445                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2446                 ndr->depth++;
2447                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2448                 ndr->depth--;
2449                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2450                 ndr->depth++;
2451                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2452                 ndr->depth--;
2453                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2454                 ndr->depth++;
2455                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2456                 ndr->depth--;
2457                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2458                 ndr->depth--;
2459         }
2460         ndr->depth--;
2461 }
2462
2463 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
2464 {
2465         ndr_print_struct(ndr, name, "NetUserChangePassword");
2466         ndr->depth++;
2467         if (flags & NDR_SET_VALUES) {
2468                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2469         }
2470         if (flags & NDR_IN) {
2471                 ndr_print_struct(ndr, "in", "NetUserChangePassword");
2472                 ndr->depth++;
2473                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2474                 ndr_print_string(ndr, "user_name", r->in.user_name);
2475                 ndr_print_string(ndr, "old_password", r->in.old_password);
2476                 ndr_print_string(ndr, "new_password", r->in.new_password);
2477                 ndr->depth--;
2478         }
2479         if (flags & NDR_OUT) {
2480                 ndr_print_struct(ndr, "out", "NetUserChangePassword");
2481                 ndr->depth++;
2482                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2483                 ndr->depth--;
2484         }
2485         ndr->depth--;
2486 }
2487
2488 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
2489 {
2490         ndr_print_struct(ndr, name, "NetUserGetInfo");
2491         ndr->depth++;
2492         if (flags & NDR_SET_VALUES) {
2493                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2494         }
2495         if (flags & NDR_IN) {
2496                 ndr_print_struct(ndr, "in", "NetUserGetInfo");
2497                 ndr->depth++;
2498                 ndr_print_string(ndr, "server_name", r->in.server_name);
2499                 ndr_print_string(ndr, "user_name", r->in.user_name);
2500                 ndr_print_uint32(ndr, "level", r->in.level);
2501                 ndr->depth--;
2502         }
2503         if (flags & NDR_OUT) {
2504                 ndr_print_struct(ndr, "out", "NetUserGetInfo");
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_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
2522 {
2523         ndr_print_struct(ndr, name, "NetUserSetInfo");
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", "NetUserSetInfo");
2530                 ndr->depth++;
2531                 ndr_print_string(ndr, "server_name", r->in.server_name);
2532                 ndr_print_string(ndr, "user_name", r->in.user_name);
2533                 ndr_print_uint32(ndr, "level", r->in.level);
2534                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2535                 ndr->depth++;
2536                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2537                 ndr->depth--;
2538                 ndr->depth--;
2539         }
2540         if (flags & NDR_OUT) {
2541                 ndr_print_struct(ndr, "out", "NetUserSetInfo");
2542                 ndr->depth++;
2543                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2544                 ndr->depth++;
2545                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2546                 ndr->depth--;
2547                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2548                 ndr->depth--;
2549         }
2550         ndr->depth--;
2551 }
2552
2553 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
2554 {
2555         ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
2556         ndr->depth++;
2557         if (flags & NDR_SET_VALUES) {
2558                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2559         }
2560         if (flags & NDR_IN) {
2561                 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
2562                 ndr->depth++;
2563                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2564                 ndr->depth++;
2565                 if (r->in.server_name) {
2566                         ndr_print_string(ndr, "server_name", r->in.server_name);
2567                 }
2568                 ndr->depth--;
2569                 ndr_print_uint32(ndr, "level", r->in.level);
2570                 ndr_print_uint32(ndr, "idx", r->in.idx);
2571                 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
2572                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2573                 ndr->depth--;
2574         }
2575         if (flags & NDR_OUT) {
2576                 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
2577                 ndr->depth++;
2578                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2579                 ndr->depth++;
2580                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2581                 ndr->depth--;
2582                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2583                 ndr->depth--;
2584         }
2585         ndr->depth--;
2586 }
2587
2588 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
2589 {
2590         ndr_print_struct(ndr, name, "NetGroupAdd");
2591         ndr->depth++;
2592         if (flags & NDR_SET_VALUES) {
2593                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2594         }
2595         if (flags & NDR_IN) {
2596                 ndr_print_struct(ndr, "in", "NetGroupAdd");
2597                 ndr->depth++;
2598                 ndr_print_string(ndr, "server_name", r->in.server_name);
2599                 ndr_print_uint32(ndr, "level", r->in.level);
2600                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2601                 ndr->depth++;
2602                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2603                 ndr->depth--;
2604                 ndr->depth--;
2605         }
2606         if (flags & NDR_OUT) {
2607                 ndr_print_struct(ndr, "out", "NetGroupAdd");
2608                 ndr->depth++;
2609                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2610                 ndr->depth++;
2611                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2612                 ndr->depth--;
2613                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2614                 ndr->depth--;
2615         }
2616         ndr->depth--;
2617 }
2618
2619 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
2620 {
2621         ndr_print_struct(ndr, name, "NetGroupDel");
2622         ndr->depth++;
2623         if (flags & NDR_SET_VALUES) {
2624                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2625         }
2626         if (flags & NDR_IN) {
2627                 ndr_print_struct(ndr, "in", "NetGroupDel");
2628                 ndr->depth++;
2629                 ndr_print_string(ndr, "server_name", r->in.server_name);
2630                 ndr_print_string(ndr, "group_name", r->in.group_name);
2631                 ndr->depth--;
2632         }
2633         if (flags & NDR_OUT) {
2634                 ndr_print_struct(ndr, "out", "NetGroupDel");
2635                 ndr->depth++;
2636                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2637                 ndr->depth--;
2638         }
2639         ndr->depth--;
2640 }
2641
2642 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
2643 {
2644         ndr_print_struct(ndr, name, "NetGroupEnum");
2645         ndr->depth++;
2646         if (flags & NDR_SET_VALUES) {
2647                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2648         }
2649         if (flags & NDR_IN) {
2650                 ndr_print_struct(ndr, "in", "NetGroupEnum");
2651                 ndr->depth++;
2652                 ndr_print_string(ndr, "server_name", r->in.server_name);
2653                 ndr_print_uint32(ndr, "level", r->in.level);
2654                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2655                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2656                 ndr->depth++;
2657                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2658                 ndr->depth--;
2659                 ndr->depth--;
2660         }
2661         if (flags & NDR_OUT) {
2662                 ndr_print_struct(ndr, "out", "NetGroupEnum");
2663                 ndr->depth++;
2664                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2665                 ndr->depth++;
2666                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2667                 ndr->depth++;
2668                 if (*r->out.buffer) {
2669                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2670                 }
2671                 ndr->depth--;
2672                 ndr->depth--;
2673                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2674                 ndr->depth++;
2675                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2676                 ndr->depth--;
2677                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2678                 ndr->depth++;
2679                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2680                 ndr->depth--;
2681                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2682                 ndr->depth++;
2683                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2684                 ndr->depth--;
2685                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2686                 ndr->depth--;
2687         }
2688         ndr->depth--;
2689 }
2690
2691 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
2692 {
2693         ndr_print_struct(ndr, name, "NetGroupSetInfo");
2694         ndr->depth++;
2695         if (flags & NDR_SET_VALUES) {
2696                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2697         }
2698         if (flags & NDR_IN) {
2699                 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
2700                 ndr->depth++;
2701                 ndr_print_string(ndr, "server_name", r->in.server_name);
2702                 ndr_print_string(ndr, "group_name", r->in.group_name);
2703                 ndr_print_uint32(ndr, "level", r->in.level);
2704                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2705                 ndr->depth++;
2706                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2707                 ndr->depth--;
2708                 ndr->depth--;
2709         }
2710         if (flags & NDR_OUT) {
2711                 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
2712                 ndr->depth++;
2713                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2714                 ndr->depth++;
2715                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2716                 ndr->depth--;
2717                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2718                 ndr->depth--;
2719         }
2720         ndr->depth--;
2721 }
2722
2723 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
2724 {
2725         ndr_print_struct(ndr, name, "NetGroupGetInfo");
2726         ndr->depth++;
2727         if (flags & NDR_SET_VALUES) {
2728                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2729         }
2730         if (flags & NDR_IN) {
2731                 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
2732                 ndr->depth++;
2733                 ndr_print_string(ndr, "server_name", r->in.server_name);
2734                 ndr_print_string(ndr, "group_name", r->in.group_name);
2735                 ndr_print_uint32(ndr, "level", r->in.level);
2736                 ndr->depth--;
2737         }
2738         if (flags & NDR_OUT) {
2739                 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
2740                 ndr->depth++;
2741                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2742                 ndr->depth++;
2743                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2744                 ndr->depth++;
2745                 if (*r->out.buffer) {
2746                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2747                 }
2748                 ndr->depth--;
2749                 ndr->depth--;
2750                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2751                 ndr->depth--;
2752         }
2753         ndr->depth--;
2754 }
2755
2756 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
2757 {
2758         ndr_print_struct(ndr, name, "NetGroupAddUser");
2759         ndr->depth++;
2760         if (flags & NDR_SET_VALUES) {
2761                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2762         }
2763         if (flags & NDR_IN) {
2764                 ndr_print_struct(ndr, "in", "NetGroupAddUser");
2765                 ndr->depth++;
2766                 ndr_print_string(ndr, "server_name", r->in.server_name);
2767                 ndr_print_string(ndr, "group_name", r->in.group_name);
2768                 ndr_print_string(ndr, "user_name", r->in.user_name);
2769                 ndr->depth--;
2770         }
2771         if (flags & NDR_OUT) {
2772                 ndr_print_struct(ndr, "out", "NetGroupAddUser");
2773                 ndr->depth++;
2774                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2775                 ndr->depth--;
2776         }
2777         ndr->depth--;
2778 }
2779
2780 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
2781 {
2782         ndr_print_struct(ndr, name, "NetGroupDelUser");
2783         ndr->depth++;
2784         if (flags & NDR_SET_VALUES) {
2785                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2786         }
2787         if (flags & NDR_IN) {
2788                 ndr_print_struct(ndr, "in", "NetGroupDelUser");
2789                 ndr->depth++;
2790                 ndr_print_string(ndr, "server_name", r->in.server_name);
2791                 ndr_print_string(ndr, "group_name", r->in.group_name);
2792                 ndr_print_string(ndr, "user_name", r->in.user_name);
2793                 ndr->depth--;
2794         }
2795         if (flags & NDR_OUT) {
2796                 ndr_print_struct(ndr, "out", "NetGroupDelUser");
2797                 ndr->depth++;
2798                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2799                 ndr->depth--;
2800         }
2801         ndr->depth--;
2802 }
2803
2804 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
2805 {
2806         ndr_print_struct(ndr, name, "NetLocalGroupAdd");
2807         ndr->depth++;
2808         if (flags & NDR_SET_VALUES) {
2809                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2810         }
2811         if (flags & NDR_IN) {
2812                 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
2813                 ndr->depth++;
2814                 ndr_print_string(ndr, "server_name", r->in.server_name);
2815                 ndr_print_uint32(ndr, "level", r->in.level);
2816                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2817                 ndr->depth++;
2818                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2819                 ndr->depth--;
2820                 ndr->depth--;
2821         }
2822         if (flags & NDR_OUT) {
2823                 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
2824                 ndr->depth++;
2825                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2826                 ndr->depth++;
2827                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2828                 ndr->depth--;
2829                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2830                 ndr->depth--;
2831         }
2832         ndr->depth--;
2833 }
2834
2835 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
2836 {
2837         ndr_print_struct(ndr, name, "NetLocalGroupDel");
2838         ndr->depth++;
2839         if (flags & NDR_SET_VALUES) {
2840                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2841         }
2842         if (flags & NDR_IN) {
2843                 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
2844                 ndr->depth++;
2845                 ndr_print_string(ndr, "server_name", r->in.server_name);
2846                 ndr_print_string(ndr, "group_name", r->in.group_name);
2847                 ndr->depth--;
2848         }
2849         if (flags & NDR_OUT) {
2850                 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
2851                 ndr->depth++;
2852                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2853                 ndr->depth--;
2854         }
2855         ndr->depth--;
2856 }
2857
2858 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
2859 {
2860         ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
2861         ndr->depth++;
2862         if (flags & NDR_SET_VALUES) {
2863                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2864         }
2865         if (flags & NDR_IN) {
2866                 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
2867                 ndr->depth++;
2868                 ndr_print_string(ndr, "server_name", r->in.server_name);
2869                 ndr_print_string(ndr, "group_name", r->in.group_name);
2870                 ndr_print_uint32(ndr, "level", r->in.level);
2871                 ndr->depth--;
2872         }
2873         if (flags & NDR_OUT) {
2874                 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
2875                 ndr->depth++;
2876                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2877                 ndr->depth++;
2878                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2879                 ndr->depth++;
2880                 if (*r->out.buffer) {
2881                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2882                 }
2883                 ndr->depth--;
2884                 ndr->depth--;
2885                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2886                 ndr->depth--;
2887         }
2888         ndr->depth--;
2889 }
2890
2891 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
2892 {
2893         ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
2894         ndr->depth++;
2895         if (flags & NDR_SET_VALUES) {
2896                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2897         }
2898         if (flags & NDR_IN) {
2899                 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
2900                 ndr->depth++;
2901                 ndr_print_string(ndr, "server_name", r->in.server_name);
2902                 ndr_print_string(ndr, "group_name", r->in.group_name);
2903                 ndr_print_uint32(ndr, "level", r->in.level);
2904                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2905                 ndr->depth++;
2906                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2907                 ndr->depth--;
2908                 ndr->depth--;
2909         }
2910         if (flags & NDR_OUT) {
2911                 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
2912                 ndr->depth++;
2913                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2914                 ndr->depth++;
2915                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2916                 ndr->depth--;
2917                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2918                 ndr->depth--;
2919         }
2920         ndr->depth--;
2921 }
2922
2923 _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r)
2924 {
2925         ndr_print_struct(ndr, name, "NetLocalGroupEnum");
2926         ndr->depth++;
2927         if (flags & NDR_SET_VALUES) {
2928                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2929         }
2930         if (flags & NDR_IN) {
2931                 ndr_print_struct(ndr, "in", "NetLocalGroupEnum");
2932                 ndr->depth++;
2933                 ndr_print_string(ndr, "server_name", r->in.server_name);
2934                 ndr_print_uint32(ndr, "level", r->in.level);
2935                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2936                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2937                 ndr->depth++;
2938                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2939                 ndr->depth--;
2940                 ndr->depth--;
2941         }
2942         if (flags & NDR_OUT) {
2943                 ndr_print_struct(ndr, "out", "NetLocalGroupEnum");
2944                 ndr->depth++;
2945                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2946                 ndr->depth++;
2947                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2948                 ndr->depth++;
2949                 if (*r->out.buffer) {
2950                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2951                 }
2952                 ndr->depth--;
2953                 ndr->depth--;
2954                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2955                 ndr->depth++;
2956                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2957                 ndr->depth--;
2958                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2959                 ndr->depth++;
2960                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2961                 ndr->depth--;
2962                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2963                 ndr->depth++;
2964                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2965                 ndr->depth--;
2966                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2967                 ndr->depth--;
2968         }
2969         ndr->depth--;
2970 }
2971
2972 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
2973 {
2974         ndr_print_struct(ndr, name, "NetRemoteTOD");
2975         ndr->depth++;
2976         if (flags & NDR_SET_VALUES) {
2977                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2978         }
2979         if (flags & NDR_IN) {
2980                 ndr_print_struct(ndr, "in", "NetRemoteTOD");
2981                 ndr->depth++;
2982                 ndr_print_string(ndr, "server_name", r->in.server_name);
2983                 ndr->depth--;
2984         }
2985         if (flags & NDR_OUT) {
2986                 ndr_print_struct(ndr, "out", "NetRemoteTOD");
2987                 ndr->depth++;
2988                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2989                 ndr->depth++;
2990                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2991                 ndr->depth++;
2992                 if (*r->out.buffer) {
2993                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2994                 }
2995                 ndr->depth--;
2996                 ndr->depth--;
2997                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2998                 ndr->depth--;
2999         }
3000         ndr->depth--;
3001 }
3002