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