Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/source3/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 : #include "librpc/gen_ndr/ndr_misc.h"
9 : #include "librpc/gen_ndr/ndr_netlogon.h"
10 : #include "librpc/gen_ndr/ndr_ODJ.h"
11 0 : _PUBLIC_ enum ndr_err_code ndr_push_libnetjoin_JoinDomNameType(struct ndr_push *ndr, int ndr_flags, enum libnetjoin_JoinDomNameType r)
12 : {
13 0 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
14 0 : return NDR_ERR_SUCCESS;
15 : }
16 :
17 0 : _PUBLIC_ enum ndr_err_code ndr_pull_libnetjoin_JoinDomNameType(struct ndr_pull *ndr, int ndr_flags, enum libnetjoin_JoinDomNameType *r)
18 : {
19 : uint16_t v;
20 0 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
21 0 : *r = v;
22 0 : return NDR_ERR_SUCCESS;
23 : }
24 :
25 23 : _PUBLIC_ void ndr_print_libnetjoin_JoinDomNameType(struct ndr_print *ndr, const char *name, enum libnetjoin_JoinDomNameType r)
26 : {
27 23 : const char *val = NULL;
28 :
29 23 : switch (r) {
30 2 : case JoinDomNameTypeUnknown: val = "JoinDomNameTypeUnknown"; break;
31 20 : case JoinDomNameTypeDNS: val = "JoinDomNameTypeDNS"; break;
32 1 : case JoinDomNameTypeNBT: val = "JoinDomNameTypeNBT"; break;
33 : }
34 23 : ndr_print_enum(ndr, name, "ENUM", val, r);
35 23 : }
36 :
37 46 : _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_JoinCtx *r)
38 : {
39 46 : ndr_print_struct(ndr, name, "libnet_JoinCtx");
40 46 : if (r == NULL) { ndr_print_null(ndr); return; }
41 46 : ndr->depth++;
42 46 : if (flags & NDR_SET_VALUES) {
43 23 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
44 : }
45 46 : if (flags & NDR_IN) {
46 23 : ndr_print_struct(ndr, "in", "libnet_JoinCtx");
47 23 : ndr->depth++;
48 23 : ndr_print_string(ndr, "dc_name", r->in.dc_name);
49 23 : ndr_print_string(ndr, "machine_name", r->in.machine_name);
50 23 : ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
51 23 : ndr->depth++;
52 23 : ndr_print_string(ndr, "domain_name", r->in.domain_name);
53 23 : ndr->depth--;
54 23 : ndr_print_libnetjoin_JoinDomNameType(ndr, "domain_name_type", r->in.domain_name_type);
55 23 : ndr_print_string(ndr, "account_ou", r->in.account_ou);
56 23 : ndr_print_string(ndr, "admin_account", r->in.admin_account);
57 23 : ndr_print_string(ndr, "admin_domain", r->in.admin_domain);
58 23 : ndr_print_string(ndr, "machine_password", r->in.machine_password);
59 23 : ndr_print_wkssvc_joinflags(ndr, "join_flags", r->in.join_flags);
60 23 : ndr_print_string(ndr, "os_version", r->in.os_version);
61 23 : ndr_print_string(ndr, "os_name", r->in.os_name);
62 23 : ndr_print_string(ndr, "os_servicepack", r->in.os_servicepack);
63 23 : ndr_print_uint8(ndr, "create_upn", r->in.create_upn);
64 23 : ndr_print_string(ndr, "upn", r->in.upn);
65 23 : ndr_print_string(ndr, "dnshostname", r->in.dnshostname);
66 23 : ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
67 23 : ndr_print_ptr(ndr, "ads", r->in.ads);
68 23 : ndr->depth++;
69 23 : if (r->in.ads) {
70 0 : ndr_print_ads_struct(ndr, "ads", r->in.ads);
71 : }
72 23 : ndr->depth--;
73 23 : ndr_print_uint8(ndr, "debug", r->in.debug);
74 23 : ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos);
75 23 : ndr_print_netr_SchannelType(ndr, "secure_channel_type", r->in.secure_channel_type);
76 23 : ndr_print_uint32(ndr, "desired_encryption_types", r->in.desired_encryption_types);
77 23 : ndr_print_uint8(ndr, "provision_computer_account_only", r->in.provision_computer_account_only);
78 23 : ndr_print_ptr(ndr, "odj_provision_data", r->in.odj_provision_data);
79 23 : ndr->depth++;
80 23 : if (r->in.odj_provision_data) {
81 0 : ndr_print_ODJ_PROVISION_DATA(ndr, "odj_provision_data", r->in.odj_provision_data);
82 : }
83 23 : ndr->depth--;
84 23 : ndr_print_uint8(ndr, "request_offline_join", r->in.request_offline_join);
85 23 : ndr->depth--;
86 : }
87 46 : if (flags & NDR_OUT) {
88 23 : ndr_print_struct(ndr, "out", "libnet_JoinCtx");
89 23 : ndr->depth++;
90 23 : ndr_print_ptr(ndr, "odj_provision_data", r->out.odj_provision_data);
91 23 : ndr->depth++;
92 23 : if (r->out.odj_provision_data) {
93 0 : ndr_print_ODJ_PROVISION_DATA(ndr, "odj_provision_data", r->out.odj_provision_data);
94 : }
95 23 : ndr->depth--;
96 23 : ndr_print_string(ndr, "account_name", r->out.account_name);
97 23 : ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
98 23 : ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
99 23 : ndr_print_string(ndr, "forest_name", r->out.forest_name);
100 23 : ndr_print_string(ndr, "dn", r->out.dn);
101 23 : ndr_print_GUID(ndr, "domain_guid", &r->out.domain_guid);
102 23 : ndr_print_ptr(ndr, "domain_sid", r->out.domain_sid);
103 23 : ndr->depth++;
104 23 : ndr_print_dom_sid(ndr, "domain_sid", r->out.domain_sid);
105 23 : ndr->depth--;
106 23 : ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
107 23 : ndr_print_string(ndr, "error_string", r->out.error_string);
108 23 : ndr_print_uint8(ndr, "domain_is_ad", r->out.domain_is_ad);
109 23 : ndr_print_uint32(ndr, "set_encryption_types", r->out.set_encryption_types);
110 23 : ndr_print_string(ndr, "krb5_salt", r->out.krb5_salt);
111 23 : ndr_print_ptr(ndr, "dcinfo", r->out.dcinfo);
112 23 : ndr->depth++;
113 23 : if (r->out.dcinfo) {
114 22 : ndr_print_netr_DsRGetDCNameInfo(ndr, "dcinfo", r->out.dcinfo);
115 : }
116 23 : ndr->depth--;
117 23 : ndr_print_uint32(ndr, "account_rid", r->out.account_rid);
118 23 : ndr_print_WERROR(ndr, "result", r->out.result);
119 23 : ndr->depth--;
120 : }
121 46 : ndr->depth--;
122 : }
123 :
124 0 : _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_UnjoinCtx *r)
125 : {
126 0 : ndr_print_struct(ndr, name, "libnet_UnjoinCtx");
127 0 : if (r == NULL) { ndr_print_null(ndr); return; }
128 0 : ndr->depth++;
129 0 : if (flags & NDR_SET_VALUES) {
130 0 : ndr->flags |= LIBNDR_PRINT_SET_VALUES;
131 : }
132 0 : if (flags & NDR_IN) {
133 0 : ndr_print_struct(ndr, "in", "libnet_UnjoinCtx");
134 0 : ndr->depth++;
135 0 : ndr_print_string(ndr, "dc_name", r->in.dc_name);
136 0 : ndr_print_string(ndr, "machine_name", r->in.machine_name);
137 0 : ndr_print_string(ndr, "domain_name", r->in.domain_name);
138 0 : ndr_print_string(ndr, "account_ou", r->in.account_ou);
139 0 : ndr_print_string(ndr, "admin_account", r->in.admin_account);
140 0 : ndr_print_string(ndr, "admin_domain", r->in.admin_domain);
141 0 : ndr_print_string(ndr, "machine_password", r->in.machine_password);
142 0 : ndr_print_wkssvc_joinflags(ndr, "unjoin_flags", r->in.unjoin_flags);
143 0 : ndr_print_uint8(ndr, "delete_machine_account", r->in.delete_machine_account);
144 0 : ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
145 0 : ndr_print_ptr(ndr, "domain_sid", r->in.domain_sid);
146 0 : ndr->depth++;
147 0 : ndr_print_dom_sid(ndr, "domain_sid", r->in.domain_sid);
148 0 : ndr->depth--;
149 0 : ndr_print_ptr(ndr, "ads", r->in.ads);
150 0 : ndr->depth++;
151 0 : if (r->in.ads) {
152 0 : ndr_print_ads_struct(ndr, "ads", r->in.ads);
153 : }
154 0 : ndr->depth--;
155 0 : ndr_print_uint8(ndr, "debug", r->in.debug);
156 0 : ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos);
157 0 : ndr->depth--;
158 : }
159 0 : if (flags & NDR_OUT) {
160 0 : ndr_print_struct(ndr, "out", "libnet_UnjoinCtx");
161 0 : ndr->depth++;
162 0 : ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
163 0 : ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
164 0 : ndr_print_string(ndr, "forest_name", r->out.forest_name);
165 0 : ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
166 0 : ndr_print_string(ndr, "error_string", r->out.error_string);
167 0 : ndr_print_uint8(ndr, "disabled_machine_account", r->out.disabled_machine_account);
168 0 : ndr_print_uint8(ndr, "deleted_machine_account", r->out.deleted_machine_account);
169 0 : ndr_print_WERROR(ndr, "result", r->out.result);
170 0 : ndr->depth--;
171 : }
172 0 : ndr->depth--;
173 : }
174 :
175 : #ifndef SKIP_NDR_TABLE_libnetjoin
176 : static const struct ndr_interface_public_struct libnetjoin_public_structs[] = {
177 : { .name = NULL }
178 : };
179 :
180 : static const struct ndr_interface_call libnetjoin_calls[] = {
181 : { .name = NULL }
182 : };
183 :
184 : static const char * const libnetjoin_endpoint_strings[] = {
185 : "ncacn_np:[\\pipe\\libnetjoin]",
186 : };
187 :
188 : static const struct ndr_interface_string_array libnetjoin_endpoints = {
189 : .count = 1,
190 : .names = libnetjoin_endpoint_strings
191 : };
192 :
193 : static const char * const libnetjoin_authservice_strings[] = {
194 : "host",
195 : };
196 :
197 : static const struct ndr_interface_string_array libnetjoin_authservices = {
198 : .count = 1,
199 : .names = libnetjoin_authservice_strings
200 : };
201 :
202 :
203 : const struct ndr_interface_table ndr_table_libnetjoin = {
204 : .name = "libnetjoin",
205 : .num_calls = 0,
206 : .calls = libnetjoin_calls,
207 : .num_public_structs = 0,
208 : .public_structs = libnetjoin_public_structs,
209 : .endpoints = &libnetjoin_endpoints,
210 : .authservices = &libnetjoin_authservices
211 : };
212 :
213 : #endif /* SKIP_NDR_TABLE_libnetjoin */
|