re-run make idl.
[samba.git] / source3 / librpc / gen_ndr / ndr_libnetapi.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnetapi.h"
5
6 _PUBLIC_ enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r)
7 {
8         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
9         return NDR_ERR_SUCCESS;
10 }
11
12 _PUBLIC_ enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r)
13 {
14         uint32_t v;
15         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
16         *r = v;
17         return NDR_ERR_SUCCESS;
18 }
19
20 _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r)
21 {
22         const char *val = NULL;
23
24         switch (r) {
25                 case NERR_Success: val = "NERR_Success"; break;
26         }
27         ndr_print_enum(ndr, name, "ENUM", val, r);
28 }
29
30 _PUBLIC_ enum ndr_err_code ndr_push_domsid(struct ndr_push *ndr, int ndr_flags, const struct domsid *r)
31 {
32         uint32_t cntr_sub_auths_0;
33         if (ndr_flags & NDR_SCALARS) {
34                 NDR_CHECK(ndr_push_align(ndr, 4));
35                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sid_rev_num));
36                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->num_auths));
37                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
38                 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
39                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sub_auths[cntr_sub_auths_0]));
40                 }
41         }
42         if (ndr_flags & NDR_BUFFERS) {
43         }
44         return NDR_ERR_SUCCESS;
45 }
46
47 _PUBLIC_ enum ndr_err_code ndr_pull_domsid(struct ndr_pull *ndr, int ndr_flags, struct domsid *r)
48 {
49         uint32_t cntr_sub_auths_0;
50         TALLOC_CTX *_mem_save_sub_auths_0;
51         if (ndr_flags & NDR_SCALARS) {
52                 NDR_CHECK(ndr_pull_align(ndr, 4));
53                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sid_rev_num));
54                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->num_auths));
55                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6));
56                 NDR_PULL_ALLOC_N(ndr, r->sub_auths, MAXSUBAUTHS);
57                 _mem_save_sub_auths_0 = NDR_PULL_GET_MEM_CTX(ndr);
58                 NDR_PULL_SET_MEM_CTX(ndr, r->sub_auths, 0);
59                 for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) {
60                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sub_auths[cntr_sub_auths_0]));
61                 }
62                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sub_auths_0, 0);
63         }
64         if (ndr_flags & NDR_BUFFERS) {
65         }
66         return NDR_ERR_SUCCESS;
67 }
68
69 _PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const struct domsid *r)
70 {
71         uint32_t cntr_sub_auths_0;
72         ndr_print_struct(ndr, name, "domsid");
73         ndr->depth++;
74         ndr_print_uint8(ndr, "sid_rev_num", r->sid_rev_num);
75         ndr_print_uint8(ndr, "num_auths", r->num_auths);
76         ndr_print_array_uint8(ndr, "id_auth", r->id_auth, 6);
77         ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", 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_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r)
853 {
854         if (ndr_flags & NDR_SCALARS) {
855                 NDR_CHECK(ndr_push_align(ndr, 4));
856                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_name));
857                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_full_name));
858                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_comment));
859                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri23_flags));
860                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri23_user_sid));
861         }
862         if (ndr_flags & NDR_BUFFERS) {
863                 if (r->usri23_user_sid) {
864                         NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
865                 }
866         }
867         return NDR_ERR_SUCCESS;
868 }
869
870 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_23(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_23 *r)
871 {
872         uint32_t _ptr_usri23_user_sid;
873         TALLOC_CTX *_mem_save_usri23_user_sid_0;
874         if (ndr_flags & NDR_SCALARS) {
875                 NDR_CHECK(ndr_pull_align(ndr, 4));
876                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_name));
877                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_full_name));
878                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_comment));
879                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri23_flags));
880                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri23_user_sid));
881                 if (_ptr_usri23_user_sid) {
882                         NDR_PULL_ALLOC(ndr, r->usri23_user_sid);
883                 } else {
884                         r->usri23_user_sid = NULL;
885                 }
886         }
887         if (ndr_flags & NDR_BUFFERS) {
888                 if (r->usri23_user_sid) {
889                         _mem_save_usri23_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
890                         NDR_PULL_SET_MEM_CTX(ndr, r->usri23_user_sid, 0);
891                         NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri23_user_sid));
892                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri23_user_sid_0, 0);
893                 }
894         }
895         return NDR_ERR_SUCCESS;
896 }
897
898 _PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, const struct USER_INFO_23 *r)
899 {
900         ndr_print_struct(ndr, name, "USER_INFO_23");
901         ndr->depth++;
902         ndr_print_string(ndr, "usri23_name", r->usri23_name);
903         ndr_print_string(ndr, "usri23_full_name", r->usri23_full_name);
904         ndr_print_string(ndr, "usri23_comment", r->usri23_comment);
905         ndr_print_uint32(ndr, "usri23_flags", r->usri23_flags);
906         ndr_print_ptr(ndr, "usri23_user_sid", r->usri23_user_sid);
907         ndr->depth++;
908         if (r->usri23_user_sid) {
909                 ndr_print_domsid(ndr, "usri23_user_sid", r->usri23_user_sid);
910         }
911         ndr->depth--;
912         ndr->depth--;
913 }
914
915 _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r)
916 {
917         if (ndr_flags & NDR_SCALARS) {
918                 NDR_CHECK(ndr_push_align(ndr, 4));
919                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1007_comment));
920         }
921         if (ndr_flags & NDR_BUFFERS) {
922         }
923         return NDR_ERR_SUCCESS;
924 }
925
926 _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1007(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1007 *r)
927 {
928         if (ndr_flags & NDR_SCALARS) {
929                 NDR_CHECK(ndr_pull_align(ndr, 4));
930                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1007_comment));
931         }
932         if (ndr_flags & NDR_BUFFERS) {
933         }
934         return NDR_ERR_SUCCESS;
935 }
936
937 _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, const struct USER_INFO_1007 *r)
938 {
939         ndr_print_struct(ndr, name, "USER_INFO_1007");
940         ndr->depth++;
941         ndr_print_string(ndr, "usri1007_comment", r->usri1007_comment);
942         ndr->depth--;
943 }
944
945 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r)
946 {
947         if (ndr_flags & NDR_SCALARS) {
948                 NDR_CHECK(ndr_push_align(ndr, 4));
949                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name));
950                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment));
951                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags));
952                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name));
953                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id));
954                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index));
955         }
956         if (ndr_flags & NDR_BUFFERS) {
957         }
958         return NDR_ERR_SUCCESS;
959 }
960
961 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r)
962 {
963         if (ndr_flags & NDR_SCALARS) {
964                 NDR_CHECK(ndr_pull_align(ndr, 4));
965                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name));
966                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment));
967                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags));
968                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name));
969                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id));
970                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index));
971         }
972         if (ndr_flags & NDR_BUFFERS) {
973         }
974         return NDR_ERR_SUCCESS;
975 }
976
977 _PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r)
978 {
979         ndr_print_struct(ndr, name, "NET_DISPLAY_USER");
980         ndr->depth++;
981         ndr_print_string(ndr, "usri1_name", r->usri1_name);
982         ndr_print_string(ndr, "usri1_comment", r->usri1_comment);
983         ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags);
984         ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name);
985         ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id);
986         ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index);
987         ndr->depth--;
988 }
989
990 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r)
991 {
992         if (ndr_flags & NDR_SCALARS) {
993                 NDR_CHECK(ndr_push_align(ndr, 4));
994                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name));
995                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment));
996                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags));
997                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id));
998                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index));
999         }
1000         if (ndr_flags & NDR_BUFFERS) {
1001         }
1002         return NDR_ERR_SUCCESS;
1003 }
1004
1005 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r)
1006 {
1007         if (ndr_flags & NDR_SCALARS) {
1008                 NDR_CHECK(ndr_pull_align(ndr, 4));
1009                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name));
1010                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment));
1011                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags));
1012                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id));
1013                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index));
1014         }
1015         if (ndr_flags & NDR_BUFFERS) {
1016         }
1017         return NDR_ERR_SUCCESS;
1018 }
1019
1020 _PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r)
1021 {
1022         ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE");
1023         ndr->depth++;
1024         ndr_print_string(ndr, "usri2_name", r->usri2_name);
1025         ndr_print_string(ndr, "usri2_comment", r->usri2_comment);
1026         ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags);
1027         ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id);
1028         ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index);
1029         ndr->depth--;
1030 }
1031
1032 _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r)
1033 {
1034         if (ndr_flags & NDR_SCALARS) {
1035                 NDR_CHECK(ndr_push_align(ndr, 4));
1036                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name));
1037                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment));
1038                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id));
1039                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes));
1040                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index));
1041         }
1042         if (ndr_flags & NDR_BUFFERS) {
1043         }
1044         return NDR_ERR_SUCCESS;
1045 }
1046
1047 _PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r)
1048 {
1049         if (ndr_flags & NDR_SCALARS) {
1050                 NDR_CHECK(ndr_pull_align(ndr, 4));
1051                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name));
1052                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment));
1053                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id));
1054                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes));
1055                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index));
1056         }
1057         if (ndr_flags & NDR_BUFFERS) {
1058         }
1059         return NDR_ERR_SUCCESS;
1060 }
1061
1062 _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r)
1063 {
1064         ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP");
1065         ndr->depth++;
1066         ndr_print_string(ndr, "grpi3_name", r->grpi3_name);
1067         ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment);
1068         ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id);
1069         ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes);
1070         ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index);
1071         ndr->depth--;
1072 }
1073
1074 _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r)
1075 {
1076         ndr_print_struct(ndr, name, "NetJoinDomain");
1077         ndr->depth++;
1078         if (flags & NDR_SET_VALUES) {
1079                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1080         }
1081         if (flags & NDR_IN) {
1082                 ndr_print_struct(ndr, "in", "NetJoinDomain");
1083                 ndr->depth++;
1084                 ndr_print_ptr(ndr, "server", r->in.server);
1085                 ndr->depth++;
1086                 if (r->in.server) {
1087                         ndr_print_string(ndr, "server", r->in.server);
1088                 }
1089                 ndr->depth--;
1090                 ndr_print_ptr(ndr, "domain", r->in.domain);
1091                 ndr->depth++;
1092                 ndr_print_string(ndr, "domain", r->in.domain);
1093                 ndr->depth--;
1094                 ndr_print_ptr(ndr, "account_ou", r->in.account_ou);
1095                 ndr->depth++;
1096                 if (r->in.account_ou) {
1097                         ndr_print_string(ndr, "account_ou", r->in.account_ou);
1098                 }
1099                 ndr->depth--;
1100                 ndr_print_ptr(ndr, "account", r->in.account);
1101                 ndr->depth++;
1102                 if (r->in.account) {
1103                         ndr_print_string(ndr, "account", r->in.account);
1104                 }
1105                 ndr->depth--;
1106                 ndr_print_ptr(ndr, "password", r->in.password);
1107                 ndr->depth++;
1108                 if (r->in.password) {
1109                         ndr_print_string(ndr, "password", r->in.password);
1110                 }
1111                 ndr->depth--;
1112                 ndr_print_uint32(ndr, "join_flags", r->in.join_flags);
1113                 ndr->depth--;
1114         }
1115         if (flags & NDR_OUT) {
1116                 ndr_print_struct(ndr, "out", "NetJoinDomain");
1117                 ndr->depth++;
1118                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1119                 ndr->depth--;
1120         }
1121         ndr->depth--;
1122 }
1123
1124 _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r)
1125 {
1126         ndr_print_struct(ndr, name, "NetUnjoinDomain");
1127         ndr->depth++;
1128         if (flags & NDR_SET_VALUES) {
1129                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1130         }
1131         if (flags & NDR_IN) {
1132                 ndr_print_struct(ndr, "in", "NetUnjoinDomain");
1133                 ndr->depth++;
1134                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1135                 ndr->depth++;
1136                 if (r->in.server_name) {
1137                         ndr_print_string(ndr, "server_name", r->in.server_name);
1138                 }
1139                 ndr->depth--;
1140                 ndr_print_ptr(ndr, "account", r->in.account);
1141                 ndr->depth++;
1142                 if (r->in.account) {
1143                         ndr_print_string(ndr, "account", r->in.account);
1144                 }
1145                 ndr->depth--;
1146                 ndr_print_ptr(ndr, "password", r->in.password);
1147                 ndr->depth++;
1148                 if (r->in.password) {
1149                         ndr_print_string(ndr, "password", r->in.password);
1150                 }
1151                 ndr->depth--;
1152                 ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags);
1153                 ndr->depth--;
1154         }
1155         if (flags & NDR_OUT) {
1156                 ndr_print_struct(ndr, "out", "NetUnjoinDomain");
1157                 ndr->depth++;
1158                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1159                 ndr->depth--;
1160         }
1161         ndr->depth--;
1162 }
1163
1164 _PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r)
1165 {
1166         ndr_print_struct(ndr, name, "NetGetJoinInformation");
1167         ndr->depth++;
1168         if (flags & NDR_SET_VALUES) {
1169                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1170         }
1171         if (flags & NDR_IN) {
1172                 ndr_print_struct(ndr, "in", "NetGetJoinInformation");
1173                 ndr->depth++;
1174                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1175                 ndr->depth++;
1176                 if (r->in.server_name) {
1177                         ndr_print_string(ndr, "server_name", r->in.server_name);
1178                 }
1179                 ndr->depth--;
1180                 ndr->depth--;
1181         }
1182         if (flags & NDR_OUT) {
1183                 ndr_print_struct(ndr, "out", "NetGetJoinInformation");
1184                 ndr->depth++;
1185                 ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer);
1186                 ndr->depth++;
1187                 ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer);
1188                 ndr->depth++;
1189                 if (*r->out.name_buffer) {
1190                         ndr_print_string(ndr, "name_buffer", *r->out.name_buffer);
1191                 }
1192                 ndr->depth--;
1193                 ndr->depth--;
1194                 ndr_print_ptr(ndr, "name_type", r->out.name_type);
1195                 ndr->depth++;
1196                 ndr_print_uint16(ndr, "name_type", *r->out.name_type);
1197                 ndr->depth--;
1198                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1199                 ndr->depth--;
1200         }
1201         ndr->depth--;
1202 }
1203
1204 _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r)
1205 {
1206         ndr_print_struct(ndr, name, "NetGetJoinableOUs");
1207         ndr->depth++;
1208         if (flags & NDR_SET_VALUES) {
1209                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1210         }
1211         if (flags & NDR_IN) {
1212                 ndr_print_struct(ndr, "in", "NetGetJoinableOUs");
1213                 ndr->depth++;
1214                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1215                 ndr->depth++;
1216                 if (r->in.server_name) {
1217                         ndr_print_string(ndr, "server_name", r->in.server_name);
1218                 }
1219                 ndr->depth--;
1220                 ndr_print_ptr(ndr, "domain", r->in.domain);
1221                 ndr->depth++;
1222                 ndr_print_string(ndr, "domain", r->in.domain);
1223                 ndr->depth--;
1224                 ndr_print_ptr(ndr, "account", r->in.account);
1225                 ndr->depth++;
1226                 if (r->in.account) {
1227                         ndr_print_string(ndr, "account", r->in.account);
1228                 }
1229                 ndr->depth--;
1230                 ndr_print_ptr(ndr, "password", r->in.password);
1231                 ndr->depth++;
1232                 if (r->in.password) {
1233                         ndr_print_string(ndr, "password", r->in.password);
1234                 }
1235                 ndr->depth--;
1236                 ndr->depth--;
1237         }
1238         if (flags & NDR_OUT) {
1239                 ndr_print_struct(ndr, "out", "NetGetJoinableOUs");
1240                 ndr->depth++;
1241                 ndr_print_ptr(ndr, "ou_count", r->out.ou_count);
1242                 ndr->depth++;
1243                 ndr_print_uint32(ndr, "ou_count", *r->out.ou_count);
1244                 ndr->depth--;
1245                 ndr_print_ptr(ndr, "ous", r->out.ous);
1246                 ndr->depth++;
1247                 ndr_print_ptr(ndr, "ous", *r->out.ous);
1248                 ndr->depth++;
1249                 if (*r->out.ous) {
1250                         ndr_print_ptr(ndr, "ous", **r->out.ous);
1251                         ndr->depth++;
1252                         if (**r->out.ous) {
1253                                 ndr_print_string(ndr, "ous", **r->out.ous);
1254                         }
1255                         ndr->depth--;
1256                 }
1257                 ndr->depth--;
1258                 ndr->depth--;
1259                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1260                 ndr->depth--;
1261         }
1262         ndr->depth--;
1263 }
1264
1265 _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r)
1266 {
1267         ndr_print_struct(ndr, name, "NetServerGetInfo");
1268         ndr->depth++;
1269         if (flags & NDR_SET_VALUES) {
1270                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1271         }
1272         if (flags & NDR_IN) {
1273                 ndr_print_struct(ndr, "in", "NetServerGetInfo");
1274                 ndr->depth++;
1275                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1276                 ndr->depth++;
1277                 if (r->in.server_name) {
1278                         ndr_print_string(ndr, "server_name", r->in.server_name);
1279                 }
1280                 ndr->depth--;
1281                 ndr_print_uint32(ndr, "level", r->in.level);
1282                 ndr->depth--;
1283         }
1284         if (flags & NDR_OUT) {
1285                 ndr_print_struct(ndr, "out", "NetServerGetInfo");
1286                 ndr->depth++;
1287                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
1288                 ndr->depth++;
1289                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
1290                 ndr->depth++;
1291                 if (*r->out.buffer) {
1292                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
1293                 }
1294                 ndr->depth--;
1295                 ndr->depth--;
1296                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1297                 ndr->depth--;
1298         }
1299         ndr->depth--;
1300 }
1301
1302 _PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r)
1303 {
1304         ndr_print_struct(ndr, name, "NetServerSetInfo");
1305         ndr->depth++;
1306         if (flags & NDR_SET_VALUES) {
1307                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1308         }
1309         if (flags & NDR_IN) {
1310                 ndr_print_struct(ndr, "in", "NetServerSetInfo");
1311                 ndr->depth++;
1312                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1313                 ndr->depth++;
1314                 if (r->in.server_name) {
1315                         ndr_print_string(ndr, "server_name", r->in.server_name);
1316                 }
1317                 ndr->depth--;
1318                 ndr_print_uint32(ndr, "level", r->in.level);
1319                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
1320                 ndr->depth++;
1321                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
1322                 ndr->depth--;
1323                 ndr->depth--;
1324         }
1325         if (flags & NDR_OUT) {
1326                 ndr_print_struct(ndr, "out", "NetServerSetInfo");
1327                 ndr->depth++;
1328                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
1329                 ndr->depth++;
1330                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
1331                 ndr->depth--;
1332                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1333                 ndr->depth--;
1334         }
1335         ndr->depth--;
1336 }
1337
1338 _PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r)
1339 {
1340         ndr_print_struct(ndr, name, "NetGetDCName");
1341         ndr->depth++;
1342         if (flags & NDR_SET_VALUES) {
1343                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1344         }
1345         if (flags & NDR_IN) {
1346                 ndr_print_struct(ndr, "in", "NetGetDCName");
1347                 ndr->depth++;
1348                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1349                 ndr->depth++;
1350                 if (r->in.server_name) {
1351                         ndr_print_string(ndr, "server_name", r->in.server_name);
1352                 }
1353                 ndr->depth--;
1354                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
1355                 ndr->depth++;
1356                 if (r->in.domain_name) {
1357                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
1358                 }
1359                 ndr->depth--;
1360                 ndr->depth--;
1361         }
1362         if (flags & NDR_OUT) {
1363                 ndr_print_struct(ndr, "out", "NetGetDCName");
1364                 ndr->depth++;
1365                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
1366                 ndr->depth++;
1367                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
1368                 ndr->depth++;
1369                 if (*r->out.buffer) {
1370                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
1371                 }
1372                 ndr->depth--;
1373                 ndr->depth--;
1374                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1375                 ndr->depth--;
1376         }
1377         ndr->depth--;
1378 }
1379
1380 _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r)
1381 {
1382         ndr_print_struct(ndr, name, "NetGetAnyDCName");
1383         ndr->depth++;
1384         if (flags & NDR_SET_VALUES) {
1385                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1386         }
1387         if (flags & NDR_IN) {
1388                 ndr_print_struct(ndr, "in", "NetGetAnyDCName");
1389                 ndr->depth++;
1390                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1391                 ndr->depth++;
1392                 if (r->in.server_name) {
1393                         ndr_print_string(ndr, "server_name", r->in.server_name);
1394                 }
1395                 ndr->depth--;
1396                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
1397                 ndr->depth++;
1398                 if (r->in.domain_name) {
1399                         ndr_print_string(ndr, "domain_name", r->in.domain_name);
1400                 }
1401                 ndr->depth--;
1402                 ndr->depth--;
1403         }
1404         if (flags & NDR_OUT) {
1405                 ndr_print_struct(ndr, "out", "NetGetAnyDCName");
1406                 ndr->depth++;
1407                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
1408                 ndr->depth++;
1409                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
1410                 ndr->depth++;
1411                 if (*r->out.buffer) {
1412                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
1413                 }
1414                 ndr->depth--;
1415                 ndr->depth--;
1416                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1417                 ndr->depth--;
1418         }
1419         ndr->depth--;
1420 }
1421
1422 _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r)
1423 {
1424         ndr_print_struct(ndr, name, "DsGetDcName");
1425         ndr->depth++;
1426         if (flags & NDR_SET_VALUES) {
1427                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1428         }
1429         if (flags & NDR_IN) {
1430                 ndr_print_struct(ndr, "in", "DsGetDcName");
1431                 ndr->depth++;
1432                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1433                 ndr->depth++;
1434                 if (r->in.server_name) {
1435                         ndr_print_string(ndr, "server_name", r->in.server_name);
1436                 }
1437                 ndr->depth--;
1438                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
1439                 ndr->depth++;
1440                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
1441                 ndr->depth--;
1442                 ndr_print_ptr(ndr, "domain_guid", r->in.domain_guid);
1443                 ndr->depth++;
1444                 if (r->in.domain_guid) {
1445                         ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid);
1446                 }
1447                 ndr->depth--;
1448                 ndr_print_ptr(ndr, "site_name", r->in.site_name);
1449                 ndr->depth++;
1450                 if (r->in.site_name) {
1451                         ndr_print_string(ndr, "site_name", r->in.site_name);
1452                 }
1453                 ndr->depth--;
1454                 ndr_print_uint32(ndr, "flags", r->in.flags);
1455                 ndr->depth--;
1456         }
1457         if (flags & NDR_OUT) {
1458                 ndr_print_struct(ndr, "out", "DsGetDcName");
1459                 ndr->depth++;
1460                 ndr_print_ptr(ndr, "dc_info", r->out.dc_info);
1461                 ndr->depth++;
1462                 ndr_print_ptr(ndr, "dc_info", *r->out.dc_info);
1463                 ndr->depth++;
1464                 if (*r->out.dc_info) {
1465                         ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info);
1466                 }
1467                 ndr->depth--;
1468                 ndr->depth--;
1469                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1470                 ndr->depth--;
1471         }
1472         ndr->depth--;
1473 }
1474
1475 _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r)
1476 {
1477         ndr_print_struct(ndr, name, "NetUserAdd");
1478         ndr->depth++;
1479         if (flags & NDR_SET_VALUES) {
1480                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1481         }
1482         if (flags & NDR_IN) {
1483                 ndr_print_struct(ndr, "in", "NetUserAdd");
1484                 ndr->depth++;
1485                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1486                 ndr->depth++;
1487                 if (r->in.server_name) {
1488                         ndr_print_string(ndr, "server_name", r->in.server_name);
1489                 }
1490                 ndr->depth--;
1491                 ndr_print_uint32(ndr, "level", r->in.level);
1492                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
1493                 ndr->depth++;
1494                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
1495                 ndr->depth--;
1496                 ndr->depth--;
1497         }
1498         if (flags & NDR_OUT) {
1499                 ndr_print_struct(ndr, "out", "NetUserAdd");
1500                 ndr->depth++;
1501                 ndr_print_ptr(ndr, "parm_error", r->out.parm_error);
1502                 ndr->depth++;
1503                 ndr_print_uint32(ndr, "parm_error", *r->out.parm_error);
1504                 ndr->depth--;
1505                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1506                 ndr->depth--;
1507         }
1508         ndr->depth--;
1509 }
1510
1511 _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r)
1512 {
1513         ndr_print_struct(ndr, name, "NetUserDel");
1514         ndr->depth++;
1515         if (flags & NDR_SET_VALUES) {
1516                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1517         }
1518         if (flags & NDR_IN) {
1519                 ndr_print_struct(ndr, "in", "NetUserDel");
1520                 ndr->depth++;
1521                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1522                 ndr->depth++;
1523                 if (r->in.server_name) {
1524                         ndr_print_string(ndr, "server_name", r->in.server_name);
1525                 }
1526                 ndr->depth--;
1527                 ndr_print_ptr(ndr, "user_name", r->in.user_name);
1528                 ndr->depth++;
1529                 ndr_print_string(ndr, "user_name", r->in.user_name);
1530                 ndr->depth--;
1531                 ndr->depth--;
1532         }
1533         if (flags & NDR_OUT) {
1534                 ndr_print_struct(ndr, "out", "NetUserDel");
1535                 ndr->depth++;
1536                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1537                 ndr->depth--;
1538         }
1539         ndr->depth--;
1540 }
1541
1542 _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r)
1543 {
1544         ndr_print_struct(ndr, name, "NetUserEnum");
1545         ndr->depth++;
1546         if (flags & NDR_SET_VALUES) {
1547                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1548         }
1549         if (flags & NDR_IN) {
1550                 ndr_print_struct(ndr, "in", "NetUserEnum");
1551                 ndr->depth++;
1552                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1553                 ndr->depth++;
1554                 if (r->in.server_name) {
1555                         ndr_print_string(ndr, "server_name", r->in.server_name);
1556                 }
1557                 ndr->depth--;
1558                 ndr_print_uint32(ndr, "level", r->in.level);
1559                 ndr_print_uint32(ndr, "filter", r->in.filter);
1560                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
1561                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
1562                 ndr->depth++;
1563                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
1564                 ndr->depth--;
1565                 ndr->depth--;
1566         }
1567         if (flags & NDR_OUT) {
1568                 ndr_print_struct(ndr, "out", "NetUserEnum");
1569                 ndr->depth++;
1570                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
1571                 ndr->depth++;
1572                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
1573                 ndr->depth++;
1574                 if (*r->out.buffer) {
1575                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
1576                 }
1577                 ndr->depth--;
1578                 ndr->depth--;
1579                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
1580                 ndr->depth++;
1581                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
1582                 ndr->depth--;
1583                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
1584                 ndr->depth++;
1585                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
1586                 ndr->depth--;
1587                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
1588                 ndr->depth++;
1589                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
1590                 ndr->depth--;
1591                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1592                 ndr->depth--;
1593         }
1594         ndr->depth--;
1595 }
1596
1597 _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r)
1598 {
1599         ndr_print_struct(ndr, name, "NetUserChangePassword");
1600         ndr->depth++;
1601         if (flags & NDR_SET_VALUES) {
1602                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1603         }
1604         if (flags & NDR_IN) {
1605                 ndr_print_struct(ndr, "in", "NetUserChangePassword");
1606                 ndr->depth++;
1607                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
1608                 ndr_print_string(ndr, "user_name", r->in.user_name);
1609                 ndr_print_string(ndr, "old_password", r->in.old_password);
1610                 ndr_print_string(ndr, "new_password", r->in.new_password);
1611                 ndr->depth--;
1612         }
1613         if (flags & NDR_OUT) {
1614                 ndr_print_struct(ndr, "out", "NetUserChangePassword");
1615                 ndr->depth++;
1616                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1617                 ndr->depth--;
1618         }
1619         ndr->depth--;
1620 }
1621
1622 _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r)
1623 {
1624         ndr_print_struct(ndr, name, "NetUserGetInfo");
1625         ndr->depth++;
1626         if (flags & NDR_SET_VALUES) {
1627                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1628         }
1629         if (flags & NDR_IN) {
1630                 ndr_print_struct(ndr, "in", "NetUserGetInfo");
1631                 ndr->depth++;
1632                 ndr_print_string(ndr, "server_name", r->in.server_name);
1633                 ndr_print_string(ndr, "user_name", r->in.user_name);
1634                 ndr_print_uint32(ndr, "level", r->in.level);
1635                 ndr->depth--;
1636         }
1637         if (flags & NDR_OUT) {
1638                 ndr_print_struct(ndr, "out", "NetUserGetInfo");
1639                 ndr->depth++;
1640                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
1641                 ndr->depth++;
1642                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
1643                 ndr->depth++;
1644                 if (*r->out.buffer) {
1645                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
1646                 }
1647                 ndr->depth--;
1648                 ndr->depth--;
1649                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1650                 ndr->depth--;
1651         }
1652         ndr->depth--;
1653 }
1654
1655 _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r)
1656 {
1657         ndr_print_struct(ndr, name, "NetUserSetInfo");
1658         ndr->depth++;
1659         if (flags & NDR_SET_VALUES) {
1660                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1661         }
1662         if (flags & NDR_IN) {
1663                 ndr_print_struct(ndr, "in", "NetUserSetInfo");
1664                 ndr->depth++;
1665                 ndr_print_string(ndr, "server_name", r->in.server_name);
1666                 ndr_print_string(ndr, "user_name", r->in.user_name);
1667                 ndr_print_uint32(ndr, "level", r->in.level);
1668                 ndr_print_ptr(ndr, "buffer", r->in.buffer);
1669                 ndr->depth++;
1670                 ndr_print_uint8(ndr, "buffer", *r->in.buffer);
1671                 ndr->depth--;
1672                 ndr->depth--;
1673         }
1674         if (flags & NDR_OUT) {
1675                 ndr_print_struct(ndr, "out", "NetUserSetInfo");
1676                 ndr->depth++;
1677                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
1678                 ndr->depth++;
1679                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
1680                 ndr->depth--;
1681                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1682                 ndr->depth--;
1683         }
1684         ndr->depth--;
1685 }
1686
1687 _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r)
1688 {
1689         ndr_print_struct(ndr, name, "NetQueryDisplayInformation");
1690         ndr->depth++;
1691         if (flags & NDR_SET_VALUES) {
1692                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1693         }
1694         if (flags & NDR_IN) {
1695                 ndr_print_struct(ndr, "in", "NetQueryDisplayInformation");
1696                 ndr->depth++;
1697                 ndr_print_ptr(ndr, "server_name", r->in.server_name);
1698                 ndr->depth++;
1699                 if (r->in.server_name) {
1700                         ndr_print_string(ndr, "server_name", r->in.server_name);
1701                 }
1702                 ndr->depth--;
1703                 ndr_print_uint32(ndr, "level", r->in.level);
1704                 ndr_print_uint32(ndr, "idx", r->in.idx);
1705                 ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested);
1706                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
1707                 ndr->depth--;
1708         }
1709         if (flags & NDR_OUT) {
1710                 ndr_print_struct(ndr, "out", "NetQueryDisplayInformation");
1711                 ndr->depth++;
1712                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
1713                 ndr->depth++;
1714                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
1715                 ndr->depth--;
1716                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1717                 ndr->depth--;
1718         }
1719         ndr->depth--;
1720 }
1721
1722 _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r)
1723 {
1724         ndr_print_struct(ndr, name, "NetGroupAdd");
1725         ndr->depth++;
1726         if (flags & NDR_SET_VALUES) {
1727                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1728         }
1729         if (flags & NDR_IN) {
1730                 ndr_print_struct(ndr, "in", "NetGroupAdd");
1731                 ndr->depth++;
1732                 ndr_print_string(ndr, "server_name", r->in.server_name);
1733                 ndr_print_uint32(ndr, "level", r->in.level);
1734                 ndr_print_ptr(ndr, "buf", r->in.buf);
1735                 ndr->depth++;
1736                 ndr_print_uint8(ndr, "buf", *r->in.buf);
1737                 ndr->depth--;
1738                 ndr->depth--;
1739         }
1740         if (flags & NDR_OUT) {
1741                 ndr_print_struct(ndr, "out", "NetGroupAdd");
1742                 ndr->depth++;
1743                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
1744                 ndr->depth++;
1745                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
1746                 ndr->depth--;
1747                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1748                 ndr->depth--;
1749         }
1750         ndr->depth--;
1751 }
1752
1753 _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r)
1754 {
1755         ndr_print_struct(ndr, name, "NetGroupDel");
1756         ndr->depth++;
1757         if (flags & NDR_SET_VALUES) {
1758                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1759         }
1760         if (flags & NDR_IN) {
1761                 ndr_print_struct(ndr, "in", "NetGroupDel");
1762                 ndr->depth++;
1763                 ndr_print_string(ndr, "server_name", r->in.server_name);
1764                 ndr_print_string(ndr, "group_name", r->in.group_name);
1765                 ndr->depth--;
1766         }
1767         if (flags & NDR_OUT) {
1768                 ndr_print_struct(ndr, "out", "NetGroupDel");
1769                 ndr->depth++;
1770                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1771                 ndr->depth--;
1772         }
1773         ndr->depth--;
1774 }
1775
1776 _PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r)
1777 {
1778         ndr_print_struct(ndr, name, "NetGroupEnum");
1779         ndr->depth++;
1780         if (flags & NDR_SET_VALUES) {
1781                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1782         }
1783         if (flags & NDR_IN) {
1784                 ndr_print_struct(ndr, "in", "NetGroupEnum");
1785                 ndr->depth++;
1786                 ndr_print_string(ndr, "server_name", r->in.server_name);
1787                 ndr_print_uint32(ndr, "level", r->in.level);
1788                 ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen);
1789                 ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle);
1790                 ndr->depth++;
1791                 ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle);
1792                 ndr->depth--;
1793                 ndr->depth--;
1794         }
1795         if (flags & NDR_OUT) {
1796                 ndr_print_struct(ndr, "out", "NetGroupEnum");
1797                 ndr->depth++;
1798                 ndr_print_ptr(ndr, "buffer", r->out.buffer);
1799                 ndr->depth++;
1800                 ndr_print_ptr(ndr, "buffer", *r->out.buffer);
1801                 ndr->depth++;
1802                 if (*r->out.buffer) {
1803                         ndr_print_uint8(ndr, "buffer", **r->out.buffer);
1804                 }
1805                 ndr->depth--;
1806                 ndr->depth--;
1807                 ndr_print_ptr(ndr, "entries_read", r->out.entries_read);
1808                 ndr->depth++;
1809                 ndr_print_uint32(ndr, "entries_read", *r->out.entries_read);
1810                 ndr->depth--;
1811                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
1812                 ndr->depth++;
1813                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
1814                 ndr->depth--;
1815                 ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle);
1816                 ndr->depth++;
1817                 ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle);
1818                 ndr->depth--;
1819                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1820                 ndr->depth--;
1821         }
1822         ndr->depth--;
1823 }
1824
1825 _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r)
1826 {
1827         ndr_print_struct(ndr, name, "NetGroupSetInfo");
1828         ndr->depth++;
1829         if (flags & NDR_SET_VALUES) {
1830                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1831         }
1832         if (flags & NDR_IN) {
1833                 ndr_print_struct(ndr, "in", "NetGroupSetInfo");
1834                 ndr->depth++;
1835                 ndr_print_string(ndr, "server_name", r->in.server_name);
1836                 ndr_print_string(ndr, "group_name", r->in.group_name);
1837                 ndr_print_uint32(ndr, "level", r->in.level);
1838                 ndr_print_ptr(ndr, "buf", r->in.buf);
1839                 ndr->depth++;
1840                 ndr_print_uint8(ndr, "buf", *r->in.buf);
1841                 ndr->depth--;
1842                 ndr->depth--;
1843         }
1844         if (flags & NDR_OUT) {
1845                 ndr_print_struct(ndr, "out", "NetGroupSetInfo");
1846                 ndr->depth++;
1847                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
1848                 ndr->depth++;
1849                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
1850                 ndr->depth--;
1851                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1852                 ndr->depth--;
1853         }
1854         ndr->depth--;
1855 }
1856
1857 _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r)
1858 {
1859         ndr_print_struct(ndr, name, "NetGroupGetInfo");
1860         ndr->depth++;
1861         if (flags & NDR_SET_VALUES) {
1862                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1863         }
1864         if (flags & NDR_IN) {
1865                 ndr_print_struct(ndr, "in", "NetGroupGetInfo");
1866                 ndr->depth++;
1867                 ndr_print_string(ndr, "server_name", r->in.server_name);
1868                 ndr_print_string(ndr, "group_name", r->in.group_name);
1869                 ndr_print_uint32(ndr, "level", r->in.level);
1870                 ndr->depth--;
1871         }
1872         if (flags & NDR_OUT) {
1873                 ndr_print_struct(ndr, "out", "NetGroupGetInfo");
1874                 ndr->depth++;
1875                 ndr_print_ptr(ndr, "buf", r->out.buf);
1876                 ndr->depth++;
1877                 ndr_print_ptr(ndr, "buf", *r->out.buf);
1878                 ndr->depth++;
1879                 if (*r->out.buf) {
1880                         ndr_print_uint8(ndr, "buf", **r->out.buf);
1881                 }
1882                 ndr->depth--;
1883                 ndr->depth--;
1884                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1885                 ndr->depth--;
1886         }
1887         ndr->depth--;
1888 }
1889
1890 _PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r)
1891 {
1892         ndr_print_struct(ndr, name, "NetGroupAddUser");
1893         ndr->depth++;
1894         if (flags & NDR_SET_VALUES) {
1895                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1896         }
1897         if (flags & NDR_IN) {
1898                 ndr_print_struct(ndr, "in", "NetGroupAddUser");
1899                 ndr->depth++;
1900                 ndr_print_string(ndr, "server_name", r->in.server_name);
1901                 ndr_print_string(ndr, "group_name", r->in.group_name);
1902                 ndr_print_string(ndr, "user_name", r->in.user_name);
1903                 ndr->depth--;
1904         }
1905         if (flags & NDR_OUT) {
1906                 ndr_print_struct(ndr, "out", "NetGroupAddUser");
1907                 ndr->depth++;
1908                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1909                 ndr->depth--;
1910         }
1911         ndr->depth--;
1912 }
1913
1914 _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r)
1915 {
1916         ndr_print_struct(ndr, name, "NetGroupDelUser");
1917         ndr->depth++;
1918         if (flags & NDR_SET_VALUES) {
1919                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1920         }
1921         if (flags & NDR_IN) {
1922                 ndr_print_struct(ndr, "in", "NetGroupDelUser");
1923                 ndr->depth++;
1924                 ndr_print_string(ndr, "server_name", r->in.server_name);
1925                 ndr_print_string(ndr, "group_name", r->in.group_name);
1926                 ndr_print_string(ndr, "user_name", r->in.user_name);
1927                 ndr->depth--;
1928         }
1929         if (flags & NDR_OUT) {
1930                 ndr_print_struct(ndr, "out", "NetGroupDelUser");
1931                 ndr->depth++;
1932                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1933                 ndr->depth--;
1934         }
1935         ndr->depth--;
1936 }
1937
1938 _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r)
1939 {
1940         ndr_print_struct(ndr, name, "NetLocalGroupAdd");
1941         ndr->depth++;
1942         if (flags & NDR_SET_VALUES) {
1943                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1944         }
1945         if (flags & NDR_IN) {
1946                 ndr_print_struct(ndr, "in", "NetLocalGroupAdd");
1947                 ndr->depth++;
1948                 ndr_print_string(ndr, "server_name", r->in.server_name);
1949                 ndr_print_uint32(ndr, "level", r->in.level);
1950                 ndr_print_ptr(ndr, "buf", r->in.buf);
1951                 ndr->depth++;
1952                 ndr_print_uint8(ndr, "buf", *r->in.buf);
1953                 ndr->depth--;
1954                 ndr->depth--;
1955         }
1956         if (flags & NDR_OUT) {
1957                 ndr_print_struct(ndr, "out", "NetLocalGroupAdd");
1958                 ndr->depth++;
1959                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
1960                 ndr->depth++;
1961                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
1962                 ndr->depth--;
1963                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1964                 ndr->depth--;
1965         }
1966         ndr->depth--;
1967 }
1968
1969 _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r)
1970 {
1971         ndr_print_struct(ndr, name, "NetLocalGroupDel");
1972         ndr->depth++;
1973         if (flags & NDR_SET_VALUES) {
1974                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1975         }
1976         if (flags & NDR_IN) {
1977                 ndr_print_struct(ndr, "in", "NetLocalGroupDel");
1978                 ndr->depth++;
1979                 ndr_print_string(ndr, "server_name", r->in.server_name);
1980                 ndr_print_string(ndr, "group_name", r->in.group_name);
1981                 ndr->depth--;
1982         }
1983         if (flags & NDR_OUT) {
1984                 ndr_print_struct(ndr, "out", "NetLocalGroupDel");
1985                 ndr->depth++;
1986                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
1987                 ndr->depth--;
1988         }
1989         ndr->depth--;
1990 }
1991
1992 _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r)
1993 {
1994         ndr_print_struct(ndr, name, "NetLocalGroupGetInfo");
1995         ndr->depth++;
1996         if (flags & NDR_SET_VALUES) {
1997                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1998         }
1999         if (flags & NDR_IN) {
2000                 ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo");
2001                 ndr->depth++;
2002                 ndr_print_string(ndr, "server_name", r->in.server_name);
2003                 ndr_print_string(ndr, "group_name", r->in.group_name);
2004                 ndr_print_uint32(ndr, "level", r->in.level);
2005                 ndr->depth--;
2006         }
2007         if (flags & NDR_OUT) {
2008                 ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo");
2009                 ndr->depth++;
2010                 ndr_print_ptr(ndr, "buf", r->out.buf);
2011                 ndr->depth++;
2012                 ndr_print_ptr(ndr, "buf", *r->out.buf);
2013                 ndr->depth++;
2014                 if (*r->out.buf) {
2015                         ndr_print_uint8(ndr, "buf", **r->out.buf);
2016                 }
2017                 ndr->depth--;
2018                 ndr->depth--;
2019                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2020                 ndr->depth--;
2021         }
2022         ndr->depth--;
2023 }
2024
2025 _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r)
2026 {
2027         ndr_print_struct(ndr, name, "NetLocalGroupSetInfo");
2028         ndr->depth++;
2029         if (flags & NDR_SET_VALUES) {
2030                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2031         }
2032         if (flags & NDR_IN) {
2033                 ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo");
2034                 ndr->depth++;
2035                 ndr_print_string(ndr, "server_name", r->in.server_name);
2036                 ndr_print_string(ndr, "group_name", r->in.group_name);
2037                 ndr_print_uint32(ndr, "level", r->in.level);
2038                 ndr_print_ptr(ndr, "buf", r->in.buf);
2039                 ndr->depth++;
2040                 ndr_print_uint8(ndr, "buf", *r->in.buf);
2041                 ndr->depth--;
2042                 ndr->depth--;
2043         }
2044         if (flags & NDR_OUT) {
2045                 ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo");
2046                 ndr->depth++;
2047                 ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
2048                 ndr->depth++;
2049                 ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
2050                 ndr->depth--;
2051                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2052                 ndr->depth--;
2053         }
2054         ndr->depth--;
2055 }
2056
2057 _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r)
2058 {
2059         ndr_print_struct(ndr, name, "NetRemoteTOD");
2060         ndr->depth++;
2061         if (flags & NDR_SET_VALUES) {
2062                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2063         }
2064         if (flags & NDR_IN) {
2065                 ndr_print_struct(ndr, "in", "NetRemoteTOD");
2066                 ndr->depth++;
2067                 ndr_print_string(ndr, "server_name", r->in.server_name);
2068                 ndr->depth--;
2069         }
2070         if (flags & NDR_OUT) {
2071                 ndr_print_struct(ndr, "out", "NetRemoteTOD");
2072                 ndr->depth++;
2073                 ndr_print_ptr(ndr, "buf", r->out.buf);
2074                 ndr->depth++;
2075                 ndr_print_ptr(ndr, "buf", *r->out.buf);
2076                 ndr->depth++;
2077                 if (*r->out.buf) {
2078                         ndr_print_uint8(ndr, "buf", **r->out.buf);
2079                 }
2080                 ndr->depth--;
2081                 ndr->depth--;
2082                 ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
2083                 ndr->depth--;
2084         }
2085         ndr->depth--;
2086 }
2087