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_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_0 *r)
1941 {
1942         if (ndr_flags & NDR_SCALARS) {
1943                 NDR_CHECK(ndr_push_align(ndr, 4));
1944                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name));
1945         }
1946         if (ndr_flags & NDR_BUFFERS) {
1947         }
1948         return NDR_ERR_SUCCESS;
1949 }
1950
1951 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r)
1952 {
1953         if (ndr_flags & NDR_SCALARS) {
1954                 NDR_CHECK(ndr_pull_align(ndr, 4));
1955                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name));
1956         }
1957         if (ndr_flags & NDR_BUFFERS) {
1958         }
1959         return NDR_ERR_SUCCESS;
1960 }
1961
1962 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r)
1963 {
1964         ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0");
1965         ndr->depth++;
1966         ndr_print_string(ndr, "grui0_name", r->grui0_name);
1967         ndr->depth--;
1968 }
1969
1970 _PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_1 *r)
1971 {
1972         if (ndr_flags & NDR_SCALARS) {
1973                 NDR_CHECK(ndr_push_align(ndr, 4));
1974                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name));
1975                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes));
1976         }
1977         if (ndr_flags & NDR_BUFFERS) {
1978         }
1979         return NDR_ERR_SUCCESS;
1980 }
1981
1982 _PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r)
1983 {
1984         if (ndr_flags & NDR_SCALARS) {
1985                 NDR_CHECK(ndr_pull_align(ndr, 4));
1986                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name));
1987                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes));
1988         }
1989         if (ndr_flags & NDR_BUFFERS) {
1990         }
1991         return NDR_ERR_SUCCESS;
1992 }
1993
1994 _PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r)
1995 {
1996         ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1");
1997         ndr->depth++;
1998         ndr_print_string(ndr, "grui1_name", r->grui1_name);
1999         ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes);
2000         ndr->depth--;
2001 }
2002
2003 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
2004 {
2005         ndr_print_struct(ndr, name, "NetJoinDomain");
2006         ndr->depth++;
2007         if (flags & NDR_SET_VALUES) {
2008                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2009         }
2010         if (flags & NDR_IN) {
2011                 ndr_print_struct(ndr, "in", "NetJoinDomain");
2012                 ndr->depth++;
2013                 ndr_print_ptr(ndr, "server", r->in.server);
2014                 ndr->depth++;
2015                 if (r->in.server) {
2016                         ndr_print_string(ndr, "server", r->in.server);
2017                 }
2018                 ndr->depth--;
2019                 ndr_print_ptr(ndr, "domain", r->in.domain);
2020                 ndr->depth++;
2021                 ndr_print_string(ndr, "domain", r->in.domain);
2022                 ndr->depth--;
2023                 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
2024                 ndr->depth++;
2025                 if (r->in.account_ou) {
2026                         ndr_print_string(ndr, "account_ou", r->in.account_ou);
2027                 }
2028                 ndr->depth--;
2029                 ndr_print_ptr(ndr, "account", r->in.account);
2030                 ndr->depth++;
2031                 if (r->in.account) {
2032                         ndr_print_string(ndr, "account", r->in.account);
2033                 }
2034                 ndr->depth--;
2035                 ndr_print_ptr(ndr, "password", r->in.password);
2036                 ndr->depth++;
2037                 if (r->in.password) {
2038                         ndr_print_string(ndr, "password", r->in.password);
2039                 }
2040                 ndr->depth--;
2041                 ndr_print_uint32(ndr, "join_flags", r->in.join_flags);
2042                 ndr->depth--;
2043         }
2044         if (flags & NDR_OUT) {
2045                 ndr_print_struct(ndr, "out", "NetJoinDomain");
2046                 ndr->depth++;
2047                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2048                 ndr->depth--;
2049         }
2050         ndr->depth--;
2051 }
2052
2053 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
2054 {
2055         ndr_print_struct(ndr, name, "NetUnjoinDomain");
2056         ndr->depth++;
2057         if (flags & NDR_SET_VALUES) {
2058                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2059         }
2060         if (flags & NDR_IN) {
2061                 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
2062                 ndr->depth++;
2063                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2064                 ndr->depth++;
2065                 if (r->in.server_name) {
2066                         ndr_print_string(ndr, "server_name", r->in.server_name);
2067                 }
2068                 ndr->depth--;
2069                 ndr_print_ptr(ndr, "account", r->in.account);
2070                 ndr->depth++;
2071                 if (r->in.account) {
2072                         ndr_print_string(ndr, "account", r->in.account);
2073                 }
2074                 ndr->depth--;
2075                 ndr_print_ptr(ndr, "password", r->in.password);
2076                 ndr->depth++;
2077                 if (r->in.password) {
2078                         ndr_print_string(ndr, "password", r->in.password);
2079                 }
2080                 ndr->depth--;
2081                 ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags);
2082                 ndr->depth--;
2083         }
2084         if (flags & NDR_OUT) {
2085                 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
2086                 ndr->depth++;
2087                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2088                 ndr->depth--;
2089         }
2090         ndr->depth--;
2091 }
2092
2093 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
2094 {
2095         ndr_print_struct(ndr, name, "NetGetJoinInformation");
2096         ndr->depth++;
2097         if (flags & NDR_SET_VALUES) {
2098                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2099         }
2100         if (flags & NDR_IN) {
2101                 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
2102                 ndr->depth++;
2103                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2104                 ndr->depth++;
2105                 if (r->in.server_name) {
2106                         ndr_print_string(ndr, "server_name", r->in.server_name);
2107                 }
2108                 ndr->depth--;
2109                 ndr->depth--;
2110         }
2111         if (flags & NDR_OUT) {
2112                 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
2113                 ndr->depth++;
2114                 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
2115                 ndr->depth++;
2116                 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
2117                 ndr->depth++;
2118                 if (*r->out.name_buffer) {
2119                         ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
2120                 }
2121                 ndr->depth--;
2122                 ndr->depth--;
2123                 ndr_print_ptr(ndr, "name_type", r->out.name_type);
2124                 ndr->depth++;
2125                 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
2126                 ndr->depth--;
2127                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2128                 ndr->depth--;
2129         }
2130         ndr->depth--;
2131 }
2132
2133 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
2134 {
2135         ndr_print_struct(ndr, name, "NetGetJoinableOUs");
2136         ndr->depth++;
2137         if (flags & NDR_SET_VALUES) {
2138                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2139         }
2140         if (flags & NDR_IN) {
2141                 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
2142                 ndr->depth++;
2143                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2144                 ndr->depth++;
2145                 if (r->in.server_name) {
2146                         ndr_print_string(ndr, "server_name", r->in.server_name);
2147                 }
2148                 ndr->depth--;
2149                 ndr_print_ptr(ndr, "domain", r->in.domain);
2150                 ndr->depth++;
2151                 ndr_print_string(ndr, "domain", r->in.domain);
2152                 ndr->depth--;
2153                 ndr_print_ptr(ndr, "account", r->in.account);
2154                 ndr->depth++;
2155                 if (r->in.account) {
2156                         ndr_print_string(ndr, "account", r->in.account);
2157                 }
2158                 ndr->depth--;
2159                 ndr_print_ptr(ndr, "password", r->in.password);
2160                 ndr->depth++;
2161                 if (r->in.password) {
2162                         ndr_print_string(ndr, "password", r->in.password);
2163                 }
2164                 ndr->depth--;
2165                 ndr->depth--;
2166         }
2167         if (flags & NDR_OUT) {
2168                 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
2169                 ndr->depth++;
2170                 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
2171                 ndr->depth++;
2172                 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
2173                 ndr->depth--;
2174                 ndr_print_ptr(ndr, "ous", r->out.ous);
2175                 ndr->depth++;
2176                 ndr_print_ptr(ndr, "ous", *r->out.ous);
2177                 ndr->depth++;
2178                 if (*r->out.ous) {
2179                         ndr_print_ptr(ndr, "ous", **r->out.ous);
2180                         ndr->depth++;
2181                         if (**r->out.ous) {
2182                                 ndr_print_string(ndr, "ous", **r->out.ous);
2183                         }
2184                         ndr->depth--;
2185                 }
2186                 ndr->depth--;
2187                 ndr->depth--;
2188                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2189                 ndr->depth--;
2190         }
2191         ndr->depth--;
2192 }
2193
2194 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
2195 {
2196         ndr_print_struct(ndr, name, "NetServerGetInfo");
2197         ndr->depth++;
2198         if (flags & NDR_SET_VALUES) {
2199                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2200         }
2201         if (flags & NDR_IN) {
2202                 ndr_print_struct(ndr, "in", "NetServerGetInfo");
2203                 ndr->depth++;
2204                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2205                 ndr->depth++;
2206                 if (r->in.server_name) {
2207                         ndr_print_string(ndr, "server_name", r->in.server_name);
2208                 }
2209                 ndr->depth--;
2210                 ndr_print_uint32(ndr, "level", r->in.level);
2211                 ndr->depth--;
2212         }
2213         if (flags & NDR_OUT) {
2214                 ndr_print_struct(ndr, "out", "NetServerGetInfo");
2215                 ndr->depth++;
2216                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2217                 ndr->depth++;
2218                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2219                 ndr->depth++;
2220                 if (*r->out.buffer) {
2221                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2222                 }
2223                 ndr->depth--;
2224                 ndr->depth--;
2225                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2226                 ndr->depth--;
2227         }
2228         ndr->depth--;
2229 }
2230
2231 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
2232 {
2233         ndr_print_struct(ndr, name, "NetServerSetInfo");
2234         ndr->depth++;
2235         if (flags & NDR_SET_VALUES) {
2236                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2237         }
2238         if (flags & NDR_IN) {
2239                 ndr_print_struct(ndr, "in", "NetServerSetInfo");
2240                 ndr->depth++;
2241                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2242                 ndr->depth++;
2243                 if (r->in.server_name) {
2244                         ndr_print_string(ndr, "server_name", r->in.server_name);
2245                 }
2246                 ndr->depth--;
2247                 ndr_print_uint32(ndr, "level", r->in.level);
2248                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2249                 ndr->depth++;
2250                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2251                 ndr->depth--;
2252                 ndr->depth--;
2253         }
2254         if (flags & NDR_OUT) {
2255                 ndr_print_struct(ndr, "out", "NetServerSetInfo");
2256                 ndr->depth++;
2257                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2258                 ndr->depth++;
2259                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2260                 ndr->depth--;
2261                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2262                 ndr->depth--;
2263         }
2264         ndr->depth--;
2265 }
2266
2267 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
2268 {
2269         ndr_print_struct(ndr, name, "NetGetDCName");
2270         ndr->depth++;
2271         if (flags & NDR_SET_VALUES) {
2272                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2273         }
2274         if (flags & NDR_IN) {
2275                 ndr_print_struct(ndr, "in", "NetGetDCName");
2276                 ndr->depth++;
2277                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2278                 ndr->depth++;
2279                 if (r->in.server_name) {
2280                         ndr_print_string(ndr, "server_name", r->in.server_name);
2281                 }
2282                 ndr->depth--;
2283                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2284                 ndr->depth++;
2285                 if (r->in.domain_name) {
2286                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2287                 }
2288                 ndr->depth--;
2289                 ndr->depth--;
2290         }
2291         if (flags & NDR_OUT) {
2292                 ndr_print_struct(ndr, "out", "NetGetDCName");
2293                 ndr->depth++;
2294                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2295                 ndr->depth++;
2296                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2297                 ndr->depth++;
2298                 if (*r->out.buffer) {
2299                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2300                 }
2301                 ndr->depth--;
2302                 ndr->depth--;
2303                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2304                 ndr->depth--;
2305         }
2306         ndr->depth--;
2307 }
2308
2309 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
2310 {
2311         ndr_print_struct(ndr, name, "NetGetAnyDCName");
2312         ndr->depth++;
2313         if (flags & NDR_SET_VALUES) {
2314                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2315         }
2316         if (flags & NDR_IN) {
2317                 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
2318                 ndr->depth++;
2319                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2320                 ndr->depth++;
2321                 if (r->in.server_name) {
2322                         ndr_print_string(ndr, "server_name", r->in.server_name);
2323                 }
2324                 ndr->depth--;
2325                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2326                 ndr->depth++;
2327                 if (r->in.domain_name) {
2328                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
2329                 }
2330                 ndr->depth--;
2331                 ndr->depth--;
2332         }
2333         if (flags & NDR_OUT) {
2334                 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
2335                 ndr->depth++;
2336                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2337                 ndr->depth++;
2338                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2339                 ndr->depth++;
2340                 if (*r->out.buffer) {
2341                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2342                 }
2343                 ndr->depth--;
2344                 ndr->depth--;
2345                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2346                 ndr->depth--;
2347         }
2348         ndr->depth--;
2349 }
2350
2351 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
2352 {
2353         ndr_print_struct(ndr, name, "DsGetDcName");
2354         ndr->depth++;
2355         if (flags & NDR_SET_VALUES) {
2356                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2357         }
2358         if (flags & NDR_IN) {
2359                 ndr_print_struct(ndr, "in", "DsGetDcName");
2360                 ndr->depth++;
2361                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2362                 ndr->depth++;
2363                 if (r->in.server_name) {
2364                         ndr_print_string(ndr, "server_name", r->in.server_name);
2365                 }
2366                 ndr->depth--;
2367                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
2368                 ndr->depth++;
2369                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2370                 ndr->depth--;
2371                 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
2372                 ndr->depth++;
2373                 if (r->in.domain_guid) {
2374                         ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
2375                 }
2376                 ndr->depth--;
2377                 ndr_print_ptr(ndr, "site_name", r->in.site_name);
2378                 ndr->depth++;
2379                 if (r->in.site_name) {
2380                         ndr_print_string(ndr, "site_name", r->in.site_name);
2381                 }
2382                 ndr->depth--;
2383                 ndr_print_uint32(ndr, "flags", r->in.flags);
2384                 ndr->depth--;
2385         }
2386         if (flags & NDR_OUT) {
2387                 ndr_print_struct(ndr, "out", "DsGetDcName");
2388                 ndr->depth++;
2389                 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
2390                 ndr->depth++;
2391                 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
2392                 ndr->depth++;
2393                 if (*r->out.dc_info) {
2394                         ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
2395                 }
2396                 ndr->depth--;
2397                 ndr->depth--;
2398                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2399                 ndr->depth--;
2400         }
2401         ndr->depth--;
2402 }
2403
2404 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
2405 {
2406         ndr_print_struct(ndr, name, "NetUserAdd");
2407         ndr->depth++;
2408         if (flags & NDR_SET_VALUES) {
2409                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2410         }
2411         if (flags & NDR_IN) {
2412                 ndr_print_struct(ndr, "in", "NetUserAdd");
2413                 ndr->depth++;
2414                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2415                 ndr->depth++;
2416                 if (r->in.server_name) {
2417                         ndr_print_string(ndr, "server_name", r->in.server_name);
2418                 }
2419                 ndr->depth--;
2420                 ndr_print_uint32(ndr, "level", r->in.level);
2421                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2422                 ndr->depth++;
2423                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2424                 ndr->depth--;
2425                 ndr->depth--;
2426         }
2427         if (flags & NDR_OUT) {
2428                 ndr_print_struct(ndr, "out", "NetUserAdd");
2429                 ndr->depth++;
2430                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
2431                 ndr->depth++;
2432                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
2433                 ndr->depth--;
2434                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2435                 ndr->depth--;
2436         }
2437         ndr->depth--;
2438 }
2439
2440 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
2441 {
2442         ndr_print_struct(ndr, name, "NetUserDel");
2443         ndr->depth++;
2444         if (flags & NDR_SET_VALUES) {
2445                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2446         }
2447         if (flags & NDR_IN) {
2448                 ndr_print_struct(ndr, "in", "NetUserDel");
2449                 ndr->depth++;
2450                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2451                 ndr->depth++;
2452                 if (r->in.server_name) {
2453                         ndr_print_string(ndr, "server_name", r->in.server_name);
2454                 }
2455                 ndr->depth--;
2456                 ndr_print_ptr(ndr, "user_name", r->in.user_name);
2457                 ndr->depth++;
2458                 ndr_print_string(ndr, "user_name", r->in.user_name);
2459                 ndr->depth--;
2460                 ndr->depth--;
2461         }
2462         if (flags & NDR_OUT) {
2463                 ndr_print_struct(ndr, "out", "NetUserDel");
2464                 ndr->depth++;
2465                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2466                 ndr->depth--;
2467         }
2468         ndr->depth--;
2469 }
2470
2471 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
2472 {
2473         ndr_print_struct(ndr, name, "NetUserEnum");
2474         ndr->depth++;
2475         if (flags & NDR_SET_VALUES) {
2476                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2477         }
2478         if (flags & NDR_IN) {
2479                 ndr_print_struct(ndr, "in", "NetUserEnum");
2480                 ndr->depth++;
2481                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2482                 ndr->depth++;
2483                 if (r->in.server_name) {
2484                         ndr_print_string(ndr, "server_name", r->in.server_name);
2485                 }
2486                 ndr->depth--;
2487                 ndr_print_uint32(ndr, "level", r->in.level);
2488                 ndr_print_uint32(ndr, "filter", r->in.filter);
2489                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2490                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2491                 ndr->depth++;
2492                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2493                 ndr->depth--;
2494                 ndr->depth--;
2495         }
2496         if (flags & NDR_OUT) {
2497                 ndr_print_struct(ndr, "out", "NetUserEnum");
2498                 ndr->depth++;
2499                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2500                 ndr->depth++;
2501                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2502                 ndr->depth++;
2503                 if (*r->out.buffer) {
2504                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2505                 }
2506                 ndr->depth--;
2507                 ndr->depth--;
2508                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2509                 ndr->depth++;
2510                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2511                 ndr->depth--;
2512                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2513                 ndr->depth++;
2514                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2515                 ndr->depth--;
2516                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2517                 ndr->depth++;
2518                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2519                 ndr->depth--;
2520                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2521                 ndr->depth--;
2522         }
2523         ndr->depth--;
2524 }
2525
2526 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
2527 {
2528         ndr_print_struct(ndr, name, "NetUserChangePassword");
2529         ndr->depth++;
2530         if (flags & NDR_SET_VALUES) {
2531                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2532         }
2533         if (flags & NDR_IN) {
2534                 ndr_print_struct(ndr, "in", "NetUserChangePassword");
2535                 ndr->depth++;
2536                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
2537                 ndr_print_string(ndr, "user_name", r->in.user_name);
2538                 ndr_print_string(ndr, "old_password", r->in.old_password);
2539                 ndr_print_string(ndr, "new_password", r->in.new_password);
2540                 ndr->depth--;
2541         }
2542         if (flags & NDR_OUT) {
2543                 ndr_print_struct(ndr, "out", "NetUserChangePassword");
2544                 ndr->depth++;
2545                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2546                 ndr->depth--;
2547         }
2548         ndr->depth--;
2549 }
2550
2551 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
2552 {
2553         ndr_print_struct(ndr, name, "NetUserGetInfo");
2554         ndr->depth++;
2555         if (flags & NDR_SET_VALUES) {
2556                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2557         }
2558         if (flags & NDR_IN) {
2559                 ndr_print_struct(ndr, "in", "NetUserGetInfo");
2560                 ndr->depth++;
2561                 ndr_print_string(ndr, "server_name", r->in.server_name);
2562                 ndr_print_string(ndr, "user_name", r->in.user_name);
2563                 ndr_print_uint32(ndr, "level", r->in.level);
2564                 ndr->depth--;
2565         }
2566         if (flags & NDR_OUT) {
2567                 ndr_print_struct(ndr, "out", "NetUserGetInfo");
2568                 ndr->depth++;
2569                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2570                 ndr->depth++;
2571                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2572                 ndr->depth++;
2573                 if (*r->out.buffer) {
2574                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2575                 }
2576                 ndr->depth--;
2577                 ndr->depth--;
2578                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2579                 ndr->depth--;
2580         }
2581         ndr->depth--;
2582 }
2583
2584 _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
2585 {
2586         ndr_print_struct(ndr, name, "NetUserSetInfo");
2587         ndr->depth++;
2588         if (flags & NDR_SET_VALUES) {
2589                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2590         }
2591         if (flags & NDR_IN) {
2592                 ndr_print_struct(ndr, "in", "NetUserSetInfo");
2593                 ndr->depth++;
2594                 ndr_print_string(ndr, "server_name", r->in.server_name);
2595                 ndr_print_string(ndr, "user_name", r->in.user_name);
2596                 ndr_print_uint32(ndr, "level", r->in.level);
2597                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2598                 ndr->depth++;
2599                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2600                 ndr->depth--;
2601                 ndr->depth--;
2602         }
2603         if (flags & NDR_OUT) {
2604                 ndr_print_struct(ndr, "out", "NetUserSetInfo");
2605                 ndr->depth++;
2606                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2607                 ndr->depth++;
2608                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2609                 ndr->depth--;
2610                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2611                 ndr->depth--;
2612         }
2613         ndr->depth--;
2614 }
2615
2616 _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r)
2617 {
2618         ndr_print_struct(ndr, name, "NetUserModalsGet");
2619         ndr->depth++;
2620         if (flags & NDR_SET_VALUES) {
2621                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2622         }
2623         if (flags & NDR_IN) {
2624                 ndr_print_struct(ndr, "in", "NetUserModalsGet");
2625                 ndr->depth++;
2626                 ndr_print_string(ndr, "server_name", r->in.server_name);
2627                 ndr_print_uint32(ndr, "level", r->in.level);
2628                 ndr->depth--;
2629         }
2630         if (flags & NDR_OUT) {
2631                 ndr_print_struct(ndr, "out", "NetUserModalsGet");
2632                 ndr->depth++;
2633                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2634                 ndr->depth++;
2635                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2636                 ndr->depth++;
2637                 if (*r->out.buffer) {
2638                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2639                 }
2640                 ndr->depth--;
2641                 ndr->depth--;
2642                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2643                 ndr->depth--;
2644         }
2645         ndr->depth--;
2646 }
2647
2648 _PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r)
2649 {
2650         ndr_print_struct(ndr, name, "NetUserModalsSet");
2651         ndr->depth++;
2652         if (flags & NDR_SET_VALUES) {
2653                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2654         }
2655         if (flags & NDR_IN) {
2656                 ndr_print_struct(ndr, "in", "NetUserModalsSet");
2657                 ndr->depth++;
2658                 ndr_print_string(ndr, "server_name", r->in.server_name);
2659                 ndr_print_uint32(ndr, "level", r->in.level);
2660                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2661                 ndr->depth++;
2662                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2663                 ndr->depth--;
2664                 ndr->depth--;
2665         }
2666         if (flags & NDR_OUT) {
2667                 ndr_print_struct(ndr, "out", "NetUserModalsSet");
2668                 ndr->depth++;
2669                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2670                 ndr->depth++;
2671                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2672                 ndr->depth--;
2673                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2674                 ndr->depth--;
2675         }
2676         ndr->depth--;
2677 }
2678
2679 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
2680 {
2681         ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
2682         ndr->depth++;
2683         if (flags & NDR_SET_VALUES) {
2684                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2685         }
2686         if (flags & NDR_IN) {
2687                 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
2688                 ndr->depth++;
2689                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
2690                 ndr->depth++;
2691                 if (r->in.server_name) {
2692                         ndr_print_string(ndr, "server_name", r->in.server_name);
2693                 }
2694                 ndr->depth--;
2695                 ndr_print_uint32(ndr, "level", r->in.level);
2696                 ndr_print_uint32(ndr, "idx", r->in.idx);
2697                 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
2698                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2699                 ndr->depth--;
2700         }
2701         if (flags & NDR_OUT) {
2702                 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
2703                 ndr->depth++;
2704                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2705                 ndr->depth++;
2706                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2707                 ndr->depth--;
2708                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2709                 ndr->depth--;
2710         }
2711         ndr->depth--;
2712 }
2713
2714 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
2715 {
2716         ndr_print_struct(ndr, name, "NetGroupAdd");
2717         ndr->depth++;
2718         if (flags & NDR_SET_VALUES) {
2719                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2720         }
2721         if (flags & NDR_IN) {
2722                 ndr_print_struct(ndr, "in", "NetGroupAdd");
2723                 ndr->depth++;
2724                 ndr_print_string(ndr, "server_name", r->in.server_name);
2725                 ndr_print_uint32(ndr, "level", r->in.level);
2726                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2727                 ndr->depth++;
2728                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2729                 ndr->depth--;
2730                 ndr->depth--;
2731         }
2732         if (flags & NDR_OUT) {
2733                 ndr_print_struct(ndr, "out", "NetGroupAdd");
2734                 ndr->depth++;
2735                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2736                 ndr->depth++;
2737                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2738                 ndr->depth--;
2739                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2740                 ndr->depth--;
2741         }
2742         ndr->depth--;
2743 }
2744
2745 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
2746 {
2747         ndr_print_struct(ndr, name, "NetGroupDel");
2748         ndr->depth++;
2749         if (flags & NDR_SET_VALUES) {
2750                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2751         }
2752         if (flags & NDR_IN) {
2753                 ndr_print_struct(ndr, "in", "NetGroupDel");
2754                 ndr->depth++;
2755                 ndr_print_string(ndr, "server_name", r->in.server_name);
2756                 ndr_print_string(ndr, "group_name", r->in.group_name);
2757                 ndr->depth--;
2758         }
2759         if (flags & NDR_OUT) {
2760                 ndr_print_struct(ndr, "out", "NetGroupDel");
2761                 ndr->depth++;
2762                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2763                 ndr->depth--;
2764         }
2765         ndr->depth--;
2766 }
2767
2768 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
2769 {
2770         ndr_print_struct(ndr, name, "NetGroupEnum");
2771         ndr->depth++;
2772         if (flags & NDR_SET_VALUES) {
2773                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2774         }
2775         if (flags & NDR_IN) {
2776                 ndr_print_struct(ndr, "in", "NetGroupEnum");
2777                 ndr->depth++;
2778                 ndr_print_string(ndr, "server_name", r->in.server_name);
2779                 ndr_print_uint32(ndr, "level", r->in.level);
2780                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2781                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2782                 ndr->depth++;
2783                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2784                 ndr->depth--;
2785                 ndr->depth--;
2786         }
2787         if (flags & NDR_OUT) {
2788                 ndr_print_struct(ndr, "out", "NetGroupEnum");
2789                 ndr->depth++;
2790                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2791                 ndr->depth++;
2792                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2793                 ndr->depth++;
2794                 if (*r->out.buffer) {
2795                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2796                 }
2797                 ndr->depth--;
2798                 ndr->depth--;
2799                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2800                 ndr->depth++;
2801                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2802                 ndr->depth--;
2803                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2804                 ndr->depth++;
2805                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2806                 ndr->depth--;
2807                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2808                 ndr->depth++;
2809                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2810                 ndr->depth--;
2811                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2812                 ndr->depth--;
2813         }
2814         ndr->depth--;
2815 }
2816
2817 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
2818 {
2819         ndr_print_struct(ndr, name, "NetGroupSetInfo");
2820         ndr->depth++;
2821         if (flags & NDR_SET_VALUES) {
2822                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2823         }
2824         if (flags & NDR_IN) {
2825                 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
2826                 ndr->depth++;
2827                 ndr_print_string(ndr, "server_name", r->in.server_name);
2828                 ndr_print_string(ndr, "group_name", r->in.group_name);
2829                 ndr_print_uint32(ndr, "level", r->in.level);
2830                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2831                 ndr->depth++;
2832                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2833                 ndr->depth--;
2834                 ndr->depth--;
2835         }
2836         if (flags & NDR_OUT) {
2837                 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
2838                 ndr->depth++;
2839                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2840                 ndr->depth++;
2841                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2842                 ndr->depth--;
2843                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2844                 ndr->depth--;
2845         }
2846         ndr->depth--;
2847 }
2848
2849 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
2850 {
2851         ndr_print_struct(ndr, name, "NetGroupGetInfo");
2852         ndr->depth++;
2853         if (flags & NDR_SET_VALUES) {
2854                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2855         }
2856         if (flags & NDR_IN) {
2857                 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
2858                 ndr->depth++;
2859                 ndr_print_string(ndr, "server_name", r->in.server_name);
2860                 ndr_print_string(ndr, "group_name", r->in.group_name);
2861                 ndr_print_uint32(ndr, "level", r->in.level);
2862                 ndr->depth--;
2863         }
2864         if (flags & NDR_OUT) {
2865                 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
2866                 ndr->depth++;
2867                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2868                 ndr->depth++;
2869                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2870                 ndr->depth++;
2871                 if (*r->out.buffer) {
2872                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2873                 }
2874                 ndr->depth--;
2875                 ndr->depth--;
2876                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2877                 ndr->depth--;
2878         }
2879         ndr->depth--;
2880 }
2881
2882 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
2883 {
2884         ndr_print_struct(ndr, name, "NetGroupAddUser");
2885         ndr->depth++;
2886         if (flags & NDR_SET_VALUES) {
2887                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2888         }
2889         if (flags & NDR_IN) {
2890                 ndr_print_struct(ndr, "in", "NetGroupAddUser");
2891                 ndr->depth++;
2892                 ndr_print_string(ndr, "server_name", r->in.server_name);
2893                 ndr_print_string(ndr, "group_name", r->in.group_name);
2894                 ndr_print_string(ndr, "user_name", r->in.user_name);
2895                 ndr->depth--;
2896         }
2897         if (flags & NDR_OUT) {
2898                 ndr_print_struct(ndr, "out", "NetGroupAddUser");
2899                 ndr->depth++;
2900                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2901                 ndr->depth--;
2902         }
2903         ndr->depth--;
2904 }
2905
2906 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
2907 {
2908         ndr_print_struct(ndr, name, "NetGroupDelUser");
2909         ndr->depth++;
2910         if (flags & NDR_SET_VALUES) {
2911                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2912         }
2913         if (flags & NDR_IN) {
2914                 ndr_print_struct(ndr, "in", "NetGroupDelUser");
2915                 ndr->depth++;
2916                 ndr_print_string(ndr, "server_name", r->in.server_name);
2917                 ndr_print_string(ndr, "group_name", r->in.group_name);
2918                 ndr_print_string(ndr, "user_name", r->in.user_name);
2919                 ndr->depth--;
2920         }
2921         if (flags & NDR_OUT) {
2922                 ndr_print_struct(ndr, "out", "NetGroupDelUser");
2923                 ndr->depth++;
2924                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2925                 ndr->depth--;
2926         }
2927         ndr->depth--;
2928 }
2929
2930 _PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r)
2931 {
2932         ndr_print_struct(ndr, name, "NetGroupGetUsers");
2933         ndr->depth++;
2934         if (flags & NDR_SET_VALUES) {
2935                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2936         }
2937         if (flags & NDR_IN) {
2938                 ndr_print_struct(ndr, "in", "NetGroupGetUsers");
2939                 ndr->depth++;
2940                 ndr_print_string(ndr, "server_name", r->in.server_name);
2941                 ndr_print_string(ndr, "group_name", r->in.group_name);
2942                 ndr_print_uint32(ndr, "level", r->in.level);
2943                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
2944                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
2945                 ndr->depth++;
2946                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
2947                 ndr->depth--;
2948                 ndr->depth--;
2949         }
2950         if (flags & NDR_OUT) {
2951                 ndr_print_struct(ndr, "out", "NetGroupGetUsers");
2952                 ndr->depth++;
2953                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
2954                 ndr->depth++;
2955                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
2956                 ndr->depth++;
2957                 if (*r->out.buffer) {
2958                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
2959                 }
2960                 ndr->depth--;
2961                 ndr->depth--;
2962                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
2963                 ndr->depth++;
2964                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
2965                 ndr->depth--;
2966                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
2967                 ndr->depth++;
2968                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
2969                 ndr->depth--;
2970                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
2971                 ndr->depth++;
2972                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
2973                 ndr->depth--;
2974                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2975                 ndr->depth--;
2976         }
2977         ndr->depth--;
2978 }
2979
2980 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
2981 {
2982         ndr_print_struct(ndr, name, "NetLocalGroupAdd");
2983         ndr->depth++;
2984         if (flags & NDR_SET_VALUES) {
2985                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2986         }
2987         if (flags & NDR_IN) {
2988                 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
2989                 ndr->depth++;
2990                 ndr_print_string(ndr, "server_name", r->in.server_name);
2991                 ndr_print_uint32(ndr, "level", r->in.level);
2992                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
2993                 ndr->depth++;
2994                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
2995                 ndr->depth--;
2996                 ndr->depth--;
2997         }
2998         if (flags & NDR_OUT) {
2999                 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
3000                 ndr->depth++;
3001                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3002                 ndr->depth++;
3003                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3004                 ndr->depth--;
3005                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3006                 ndr->depth--;
3007         }
3008         ndr->depth--;
3009 }
3010
3011 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
3012 {
3013         ndr_print_struct(ndr, name, "NetLocalGroupDel");
3014         ndr->depth++;
3015         if (flags & NDR_SET_VALUES) {
3016                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3017         }
3018         if (flags & NDR_IN) {
3019                 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
3020                 ndr->depth++;
3021                 ndr_print_string(ndr, "server_name", r->in.server_name);
3022                 ndr_print_string(ndr, "group_name", r->in.group_name);
3023                 ndr->depth--;
3024         }
3025         if (flags & NDR_OUT) {
3026                 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
3027                 ndr->depth++;
3028                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3029                 ndr->depth--;
3030         }
3031         ndr->depth--;
3032 }
3033
3034 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
3035 {
3036         ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
3037         ndr->depth++;
3038         if (flags & NDR_SET_VALUES) {
3039                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3040         }
3041         if (flags & NDR_IN) {
3042                 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
3043                 ndr->depth++;
3044                 ndr_print_string(ndr, "server_name", r->in.server_name);
3045                 ndr_print_string(ndr, "group_name", r->in.group_name);
3046                 ndr_print_uint32(ndr, "level", r->in.level);
3047                 ndr->depth--;
3048         }
3049         if (flags & NDR_OUT) {
3050                 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
3051                 ndr->depth++;
3052                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3053                 ndr->depth++;
3054                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3055                 ndr->depth++;
3056                 if (*r->out.buffer) {
3057                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3058                 }
3059                 ndr->depth--;
3060                 ndr->depth--;
3061                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3062                 ndr->depth--;
3063         }
3064         ndr->depth--;
3065 }
3066
3067 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
3068 {
3069         ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
3070         ndr->depth++;
3071         if (flags & NDR_SET_VALUES) {
3072                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3073         }
3074         if (flags & NDR_IN) {
3075                 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
3076                 ndr->depth++;
3077                 ndr_print_string(ndr, "server_name", r->in.server_name);
3078                 ndr_print_string(ndr, "group_name", r->in.group_name);
3079                 ndr_print_uint32(ndr, "level", r->in.level);
3080                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3081                 ndr->depth++;
3082                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3083                 ndr->depth--;
3084                 ndr->depth--;
3085         }
3086         if (flags & NDR_OUT) {
3087                 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
3088                 ndr->depth++;
3089                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
3090                 ndr->depth++;
3091                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
3092                 ndr->depth--;
3093                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3094                 ndr->depth--;
3095         }
3096         ndr->depth--;
3097 }
3098
3099 _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r)
3100 {
3101         ndr_print_struct(ndr, name, "NetLocalGroupEnum");
3102         ndr->depth++;
3103         if (flags & NDR_SET_VALUES) {
3104                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3105         }
3106         if (flags & NDR_IN) {
3107                 ndr_print_struct(ndr, "in", "NetLocalGroupEnum");
3108                 ndr->depth++;
3109                 ndr_print_string(ndr, "server_name", r->in.server_name);
3110                 ndr_print_uint32(ndr, "level", r->in.level);
3111                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3112                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3113                 ndr->depth++;
3114                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3115                 ndr->depth--;
3116                 ndr->depth--;
3117         }
3118         if (flags & NDR_OUT) {
3119                 ndr_print_struct(ndr, "out", "NetLocalGroupEnum");
3120                 ndr->depth++;
3121                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3122                 ndr->depth++;
3123                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3124                 ndr->depth++;
3125                 if (*r->out.buffer) {
3126                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3127                 }
3128                 ndr->depth--;
3129                 ndr->depth--;
3130                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3131                 ndr->depth++;
3132                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3133                 ndr->depth--;
3134                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3135                 ndr->depth++;
3136                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3137                 ndr->depth--;
3138                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3139                 ndr->depth++;
3140                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3141                 ndr->depth--;
3142                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3143                 ndr->depth--;
3144         }
3145         ndr->depth--;
3146 }
3147
3148 _PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r)
3149 {
3150         ndr_print_struct(ndr, name, "NetLocalGroupAddMembers");
3151         ndr->depth++;
3152         if (flags & NDR_SET_VALUES) {
3153                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3154         }
3155         if (flags & NDR_IN) {
3156                 ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers");
3157                 ndr->depth++;
3158                 ndr_print_string(ndr, "server_name", r->in.server_name);
3159                 ndr_print_string(ndr, "group_name", r->in.group_name);
3160                 ndr_print_uint32(ndr, "level", r->in.level);
3161                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3162                 ndr->depth++;
3163                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3164                 ndr->depth--;
3165                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3166                 ndr->depth--;
3167         }
3168         if (flags & NDR_OUT) {
3169                 ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers");
3170                 ndr->depth++;
3171                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3172                 ndr->depth--;
3173         }
3174         ndr->depth--;
3175 }
3176
3177 _PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r)
3178 {
3179         ndr_print_struct(ndr, name, "NetLocalGroupDelMembers");
3180         ndr->depth++;
3181         if (flags & NDR_SET_VALUES) {
3182                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3183         }
3184         if (flags & NDR_IN) {
3185                 ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers");
3186                 ndr->depth++;
3187                 ndr_print_string(ndr, "server_name", r->in.server_name);
3188                 ndr_print_string(ndr, "group_name", r->in.group_name);
3189                 ndr_print_uint32(ndr, "level", r->in.level);
3190                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3191                 ndr->depth++;
3192                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3193                 ndr->depth--;
3194                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3195                 ndr->depth--;
3196         }
3197         if (flags & NDR_OUT) {
3198                 ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers");
3199                 ndr->depth++;
3200                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3201                 ndr->depth--;
3202         }
3203         ndr->depth--;
3204 }
3205
3206 _PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r)
3207 {
3208         ndr_print_struct(ndr, name, "NetLocalGroupGetMembers");
3209         ndr->depth++;
3210         if (flags & NDR_SET_VALUES) {
3211                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3212         }
3213         if (flags & NDR_IN) {
3214                 ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers");
3215                 ndr->depth++;
3216                 ndr_print_string(ndr, "server_name", r->in.server_name);
3217                 ndr_print_string(ndr, "local_group_name", r->in.local_group_name);
3218                 ndr_print_uint32(ndr, "level", r->in.level);
3219                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
3220                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
3221                 ndr->depth++;
3222                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
3223                 ndr->depth--;
3224                 ndr->depth--;
3225         }
3226         if (flags & NDR_OUT) {
3227                 ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers");
3228                 ndr->depth++;
3229                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3230                 ndr->depth++;
3231                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3232                 ndr->depth++;
3233                 if (*r->out.buffer) {
3234                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3235                 }
3236                 ndr->depth--;
3237                 ndr->depth--;
3238                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
3239                 ndr->depth++;
3240                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
3241                 ndr->depth--;
3242                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
3243                 ndr->depth++;
3244                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
3245                 ndr->depth--;
3246                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
3247                 ndr->depth++;
3248                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
3249                 ndr->depth--;
3250                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3251                 ndr->depth--;
3252         }
3253         ndr->depth--;
3254 }
3255
3256 _PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r)
3257 {
3258         ndr_print_struct(ndr, name, "NetLocalGroupSetMembers");
3259         ndr->depth++;
3260         if (flags & NDR_SET_VALUES) {
3261                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3262         }
3263         if (flags & NDR_IN) {
3264                 ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers");
3265                 ndr->depth++;
3266                 ndr_print_string(ndr, "server_name", r->in.server_name);
3267                 ndr_print_string(ndr, "group_name", r->in.group_name);
3268                 ndr_print_uint32(ndr, "level", r->in.level);
3269                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
3270                 ndr->depth++;
3271                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
3272                 ndr->depth--;
3273                 ndr_print_uint32(ndr, "total_entries", r->in.total_entries);
3274                 ndr->depth--;
3275         }
3276         if (flags & NDR_OUT) {
3277                 ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers");
3278                 ndr->depth++;
3279                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3280                 ndr->depth--;
3281         }
3282         ndr->depth--;
3283 }
3284
3285 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
3286 {
3287         ndr_print_struct(ndr, name, "NetRemoteTOD");
3288         ndr->depth++;
3289         if (flags & NDR_SET_VALUES) {
3290                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
3291         }
3292         if (flags & NDR_IN) {
3293                 ndr_print_struct(ndr, "in", "NetRemoteTOD");
3294                 ndr->depth++;
3295                 ndr_print_string(ndr, "server_name", r->in.server_name);
3296                 ndr->depth--;
3297         }
3298         if (flags & NDR_OUT) {
3299                 ndr_print_struct(ndr, "out", "NetRemoteTOD");
3300                 ndr->depth++;
3301                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
3302                 ndr->depth++;
3303                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
3304                 ndr->depth++;
3305                 if (*r->out.buffer) {
3306                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
3307                 }
3308                 ndr->depth--;
3309                 ndr->depth--;
3310                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
3311                 ndr->depth--;
3312         }
3313         ndr->depth--;
3314 }
3315