Don't require "Modify property" perms to unjoin bug #6481)
[ira/wip.git] / source3 / librpc / gen_ndr / ndr_libnet_join.c
1 /* parser auto-generated by pidl */
2
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnet_join.h"
5
6 #include "librpc/gen_ndr/ndr_wkssvc.h"
7 #include "librpc/gen_ndr/ndr_security.h"
8 _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_JoinCtx *r)
9 {
10         ndr_print_struct(ndr, name, "libnet_JoinCtx");
11         ndr->depth++;
12         if (flags & NDR_SET_VALUES) {
13                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
14         }
15         if (flags & NDR_IN) {
16                 ndr_print_struct(ndr, "in", "libnet_JoinCtx");
17                 ndr->depth++;
18                 ndr_print_string(ndr, "dc_name", r->in.dc_name);
19                 ndr_print_string(ndr, "machine_name", r->in.machine_name);
20                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
21                 ndr->depth++;
22                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
23                 ndr->depth--;
24                 ndr_print_string(ndr, "account_ou", r->in.account_ou);
25                 ndr_print_string(ndr, "admin_account", r->in.admin_account);
26 #ifdef DEBUG_PASSWORD
27                 ndr_print_string(ndr, "admin_password", r->in.admin_password);
28                 ndr_print_string(ndr, "machine_password", r->in.machine_password);
29 #else
30                 ndr_print_ptr(ndr, "admin_password", r->in.admin_password);
31                 ndr_print_ptr(ndr, "machine_password", r->in.machine_password);
32 #endif
33                 ndr_print_wkssvc_joinflags(ndr, "join_flags", r->in.join_flags);
34                 ndr_print_string(ndr, "os_version", r->in.os_version);
35                 ndr_print_string(ndr, "os_name", r->in.os_name);
36                 ndr_print_uint8(ndr, "create_upn", r->in.create_upn);
37                 ndr_print_string(ndr, "upn", r->in.upn);
38                 ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
39                 ndr_print_ptr(ndr, "ads", r->in.ads);
40                 ndr->depth++;
41                 ndr_print_ads_struct(ndr, "ads", r->in.ads);
42                 ndr->depth--;
43                 ndr_print_uint8(ndr, "debug", r->in.debug);
44                 ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos);
45                 ndr_print_netr_SchannelType(ndr, "secure_channel_type", r->in.secure_channel_type);
46                 ndr->depth--;
47         }
48         if (flags & NDR_OUT) {
49                 ndr_print_struct(ndr, "out", "libnet_JoinCtx");
50                 ndr->depth++;
51                 ndr_print_string(ndr, "account_name", r->out.account_name);
52                 ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
53                 ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
54                 ndr_print_string(ndr, "forest_name", r->out.forest_name);
55                 ndr_print_string(ndr, "dn", r->out.dn);
56                 ndr_print_ptr(ndr, "domain_sid", r->out.domain_sid);
57                 ndr->depth++;
58                 ndr_print_dom_sid(ndr, "domain_sid", r->out.domain_sid);
59                 ndr->depth--;
60                 ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
61                 ndr_print_string(ndr, "error_string", r->out.error_string);
62                 ndr_print_uint8(ndr, "domain_is_ad", r->out.domain_is_ad);
63                 ndr_print_WERROR(ndr, "result", r->out.result);
64                 ndr->depth--;
65         }
66         ndr->depth--;
67 }
68
69 _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_UnjoinCtx *r)
70 {
71         ndr_print_struct(ndr, name, "libnet_UnjoinCtx");
72         ndr->depth++;
73         if (flags & NDR_SET_VALUES) {
74                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
75         }
76         if (flags & NDR_IN) {
77                 ndr_print_struct(ndr, "in", "libnet_UnjoinCtx");
78                 ndr->depth++;
79                 ndr_print_string(ndr, "dc_name", r->in.dc_name);
80                 ndr_print_string(ndr, "machine_name", r->in.machine_name);
81                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
82                 ndr_print_string(ndr, "account_ou", r->in.account_ou);
83                 ndr_print_string(ndr, "admin_account", r->in.admin_account);
84 #ifdef DEBUG_PASSWORD
85                 ndr_print_string(ndr, "admin_password", r->in.admin_password);
86                 ndr_print_string(ndr, "machine_password", r->in.machine_password);
87 #else
88                 ndr_print_ptr(ndr, "admin_password", r->in.admin_password);
89                 ndr_print_ptr(ndr, "machine_password", r->in.machine_password);
90 #endif
91                 ndr_print_wkssvc_joinflags(ndr, "unjoin_flags", r->in.unjoin_flags);
92                 ndr_print_uint8(ndr, "delete_machine_account", r->in.delete_machine_account);
93                 ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
94                 ndr_print_ptr(ndr, "domain_sid", r->in.domain_sid);
95                 ndr->depth++;
96                 ndr_print_dom_sid(ndr, "domain_sid", r->in.domain_sid);
97                 ndr->depth--;
98                 ndr_print_ptr(ndr, "ads", r->in.ads);
99                 ndr->depth++;
100                 ndr_print_ads_struct(ndr, "ads", r->in.ads);
101                 ndr->depth--;
102                 ndr_print_uint8(ndr, "debug", r->in.debug);
103                 ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos);
104                 ndr->depth--;
105         }
106         if (flags & NDR_OUT) {
107                 ndr_print_struct(ndr, "out", "libnet_UnjoinCtx");
108                 ndr->depth++;
109                 ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
110                 ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
111                 ndr_print_string(ndr, "forest_name", r->out.forest_name);
112                 ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
113                 ndr_print_string(ndr, "error_string", r->out.error_string);
114                 ndr_print_uint8(ndr, "disabled_machine_account", r->out.disabled_machine_account);
115                 ndr_print_uint8(ndr, "deleted_machine_account", r->out.deleted_machine_account);
116                 ndr_print_WERROR(ndr, "result", r->out.result);
117                 ndr->depth--;
118         }
119         ndr->depth--;
120 }
121