Line data Source code
1 : /* parser auto-generated by pidl */
2 :
3 : #include "includes.h"
4 : #include "bin/default/source3/librpc/gen_ndr/ndr_ads.h"
5 :
6 : #include "librpc/gen_ndr/ndr_nbt.h"
7 0 : _PUBLIC_ enum ndr_err_code ndr_push_ads_saslwrap_type(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum ads_saslwrap_type r)
8 : {
9 0 : NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
10 0 : return NDR_ERR_SUCCESS;
11 : }
12 :
13 0 : _PUBLIC_ enum ndr_err_code ndr_pull_ads_saslwrap_type(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum ads_saslwrap_type *r)
14 : {
15 0 : uint16_t v;
16 0 : NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
17 0 : *r = v;
18 0 : return NDR_ERR_SUCCESS;
19 : }
20 :
21 0 : _PUBLIC_ void ndr_print_ads_saslwrap_type(struct ndr_print *ndr, const char *name, enum ads_saslwrap_type r)
22 : {
23 0 : const char *val = NULL;
24 :
25 0 : switch (r) {
26 0 : case ADS_SASLWRAP_TYPE_PLAIN: val = "ADS_SASLWRAP_TYPE_PLAIN"; break;
27 0 : case ADS_SASLWRAP_TYPE_SIGN: val = "ADS_SASLWRAP_TYPE_SIGN"; break;
28 0 : case ADS_SASLWRAP_TYPE_SEAL: val = "ADS_SASLWRAP_TYPE_SEAL"; break;
29 : }
30 0 : ndr_print_enum(ndr, name, "ENUM", val, r);
31 0 : }
32 :
33 0 : _PUBLIC_ enum ndr_err_code ndr_push_ads_auth_flags(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
34 : {
35 0 : NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
36 0 : return NDR_ERR_SUCCESS;
37 : }
38 :
39 0 : _PUBLIC_ enum ndr_err_code ndr_pull_ads_auth_flags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
40 : {
41 0 : uint32_t v;
42 0 : NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
43 0 : *r = v;
44 0 : return NDR_ERR_SUCCESS;
45 : }
46 :
47 0 : _PUBLIC_ void ndr_print_ads_auth_flags(struct ndr_print *ndr, const char *name, uint32_t r)
48 : {
49 0 : ndr_print_uint32(ndr, name, r);
50 0 : ndr->depth++;
51 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_NO_BIND", ADS_AUTH_NO_BIND, r);
52 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_ANON_BIND", ADS_AUTH_ANON_BIND, r);
53 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_SIGN", ADS_AUTH_SASL_SIGN, r);
54 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_SEAL", ADS_AUTH_SASL_SEAL, r);
55 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_FORCE", ADS_AUTH_SASL_FORCE, r);
56 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_STARTTLS", ADS_AUTH_SASL_STARTTLS, r);
57 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_LDAPS", ADS_AUTH_SASL_LDAPS, r);
58 0 : ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_GENERATE_KRB5_CONFIG", ADS_AUTH_GENERATE_KRB5_CONFIG, r);
59 0 : ndr->depth--;
60 0 : }
61 :
62 0 : _PUBLIC_ void ndr_print_ads_server(struct ndr_print *ndr, const char *name, const struct ads_server *r)
63 : {
64 0 : ndr_print_struct(ndr, name, "ads_server");
65 0 : if (r == NULL) { ndr_print_null(ndr); return; }
66 0 : ndr->depth++;
67 0 : ndr_print_string(ndr, "realm", r->realm);
68 0 : ndr_print_string(ndr, "workgroup", r->workgroup);
69 0 : ndr_print_string(ndr, "ldap_server", r->ldap_server);
70 0 : ndr_print_uint8(ndr, "gc", r->gc);
71 0 : ndr_print_uint8(ndr, "no_fallback", r->no_fallback);
72 0 : ndr->depth--;
73 : }
74 :
75 0 : _PUBLIC_ void ndr_print_ads_auth(struct ndr_print *ndr, const char *name, const struct ads_auth *r)
76 : {
77 0 : ndr_print_struct(ndr, name, "ads_auth");
78 0 : if (r == NULL) { ndr_print_null(ndr); return; }
79 0 : ndr->depth++;
80 0 : ndr_print_string(ndr, "kdc_server", r->kdc_server);
81 0 : ndr_print_ads_auth_flags(ndr, "flags", r->flags);
82 0 : ndr_print_NTTIME(ndr, "expire_time", r->expire_time);
83 0 : ndr_print_ptr(ndr, "reconnect_state", r->reconnect_state);
84 : /* [ignore] 'reconnect_state' */
85 0 : ndr->depth--;
86 : }
87 :
88 0 : _PUBLIC_ void ndr_print_ads_config(struct ndr_print *ndr, const char *name, const struct ads_config *r)
89 : {
90 0 : ndr_print_struct(ndr, name, "ads_config");
91 0 : if (r == NULL) { ndr_print_null(ndr); return; }
92 0 : ndr->depth++;
93 0 : ndr_print_nbt_server_type(ndr, "flags", r->flags);
94 0 : ndr_print_string(ndr, "workgroup", r->workgroup);
95 0 : ndr_print_string(ndr, "realm", r->realm);
96 0 : ndr_print_string(ndr, "bind_path", r->bind_path);
97 0 : ndr_print_string(ndr, "ldap_server_name", r->ldap_server_name);
98 0 : ndr_print_string(ndr, "server_site_name", r->server_site_name);
99 0 : ndr_print_string(ndr, "client_site_name", r->client_site_name);
100 0 : ndr_print_time_t(ndr, "current_time", r->current_time);
101 0 : ndr_print_int32(ndr, "time_offset", r->time_offset);
102 0 : ndr_print_string(ndr, "schema_path", r->schema_path);
103 0 : ndr_print_string(ndr, "config_path", r->config_path);
104 0 : ndr_print_int32(ndr, "ldap_page_size", r->ldap_page_size);
105 0 : ndr->depth--;
106 : }
107 :
108 0 : _PUBLIC_ void ndr_print_ads_ldap_buf_in(struct ndr_print *ndr, const char *name, const struct ads_ldap_buf_in *r)
109 : {
110 0 : ndr_print_struct(ndr, name, "ads_ldap_buf_in");
111 0 : if (r == NULL) { ndr_print_null(ndr); return; }
112 0 : ndr->depth++;
113 0 : ndr_print_uint32(ndr, "ofs", r->ofs);
114 0 : ndr_print_uint32(ndr, "needed", r->needed);
115 0 : ndr_print_uint32(ndr, "left", r->left);
116 0 : ndr_print_uint32(ndr, "max_wrapped", r->max_wrapped);
117 0 : ndr_print_uint32(ndr, "min_wrapped", r->min_wrapped);
118 0 : ndr_print_uint32(ndr, "size", r->size);
119 0 : ndr_print_ptr(ndr, "buf", r->buf);
120 0 : ndr->depth++;
121 0 : if (r->buf) {
122 0 : ndr_print_uint8(ndr, "buf", *r->buf);
123 : }
124 0 : ndr->depth--;
125 0 : ndr->depth--;
126 : }
127 :
128 0 : _PUBLIC_ void ndr_print_ads_ldap_buf_out(struct ndr_print *ndr, const char *name, const struct ads_ldap_buf_out *r)
129 : {
130 0 : ndr_print_struct(ndr, name, "ads_ldap_buf_out");
131 0 : if (r == NULL) { ndr_print_null(ndr); return; }
132 0 : ndr->depth++;
133 0 : ndr_print_uint32(ndr, "ofs", r->ofs);
134 0 : ndr_print_uint32(ndr, "left", r->left);
135 0 : ndr_print_uint32(ndr, "max_unwrapped", r->max_unwrapped);
136 0 : ndr_print_uint32(ndr, "sig_size", r->sig_size);
137 0 : ndr_print_uint32(ndr, "size", r->size);
138 0 : ndr_print_ptr(ndr, "buf", r->buf);
139 0 : ndr->depth++;
140 0 : if (r->buf) {
141 0 : ndr_print_uint8(ndr, "buf", *r->buf);
142 : }
143 0 : ndr->depth--;
144 0 : ndr->depth--;
145 : }
146 :
147 0 : _PUBLIC_ void ndr_print_ads_saslwrap(struct ndr_print *ndr, const char *name, const struct ads_saslwrap *r)
148 : {
149 0 : ndr_print_struct(ndr, name, "ads_saslwrap");
150 0 : if (r == NULL) { ndr_print_null(ndr); return; }
151 0 : ndr->depth++;
152 0 : ndr_print_ads_saslwrap_type(ndr, "wrap_type", r->wrap_type);
153 0 : ndr_print_ptr(ndr, "wrap_ops", r->wrap_ops);
154 : /* [ignore] 'wrap_ops' */
155 0 : ndr_print_ptr(ndr, "sbiod", r->sbiod);
156 : /* [ignore] 'sbiod' */
157 0 : ndr_print_ptr(ndr, "mem_ctx", r->mem_ctx);
158 : /* [ignore] 'mem_ctx' */
159 0 : ndr_print_ptr(ndr, "wrap_private_data", r->wrap_private_data);
160 : /* [ignore] 'wrap_private_data' */
161 0 : ndr_print_ads_ldap_buf_in(ndr, "in", &r->in);
162 0 : ndr_print_ads_ldap_buf_out(ndr, "out", &r->out);
163 0 : ndr->depth--;
164 : }
165 :
166 0 : _PUBLIC_ void ndr_print_ads_tlswrap(struct ndr_print *ndr, const char *name, const struct ads_tlswrap *r)
167 : {
168 0 : ndr_print_struct(ndr, name, "ads_tlswrap");
169 0 : if (r == NULL) { ndr_print_null(ndr); return; }
170 0 : ndr->depth++;
171 0 : ndr_print_ptr(ndr, "mem_ctx", r->mem_ctx);
172 : /* [ignore] 'mem_ctx' */
173 0 : ndr_print_timeval(ndr, "endtime", &r->endtime);
174 0 : ndr_print_ptr(ndr, "sbiod", r->sbiod);
175 : /* [ignore] 'sbiod' */
176 0 : ndr_print_ptr(ndr, "tls_params", r->tls_params);
177 : /* [ignore] 'tls_params' */
178 0 : ndr_print_ptr(ndr, "tls_sync", r->tls_sync);
179 : /* [ignore] 'tls_sync' */
180 0 : ndr->depth--;
181 : }
182 :
183 0 : _PUBLIC_ void ndr_print_ads_ldap(struct ndr_print *ndr, const char *name, const struct ads_ldap *r)
184 : {
185 0 : ndr_print_struct(ndr, name, "ads_ldap");
186 0 : if (r == NULL) { ndr_print_null(ndr); return; }
187 0 : ndr->depth++;
188 0 : ndr_print_ptr(ndr, "ld", r->ld);
189 : /* [ignore] 'ld' */
190 0 : ndr_print_sockaddr_storage(ndr, "ss", &r->ss);
191 0 : ndr_print_time_t(ndr, "last_attempt", r->last_attempt);
192 0 : ndr_print_int32(ndr, "port", r->port);
193 0 : ndr->depth--;
194 : }
195 :
196 0 : static void ndr_print_flags_ads_struct(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ads_struct *r)
197 : {
198 0 : ndr_print_ads_struct(ndr, name, r);
199 0 : }
200 :
201 0 : _PUBLIC_ void ndr_print_ads_struct(struct ndr_print *ndr, const char *name, const struct ads_struct *r)
202 : {
203 0 : ndr_print_struct(ndr, name, "ads_struct");
204 0 : if (r == NULL) { ndr_print_null(ndr); return; }
205 0 : ndr->depth++;
206 0 : ndr_print_ads_server(ndr, "server", &r->server);
207 0 : ndr_print_ads_auth(ndr, "auth", &r->auth);
208 0 : ndr_print_ads_config(ndr, "config", &r->config);
209 0 : ndr_print_ads_saslwrap(ndr, "ldap_wrap_data", &r->ldap_wrap_data);
210 0 : ndr_print_ads_tlswrap(ndr, "ldap_tls_data", &r->ldap_tls_data);
211 0 : ndr_print_ads_ldap(ndr, "ldap", &r->ldap);
212 0 : ndr->depth--;
213 : }
214 :
215 : #ifndef SKIP_NDR_TABLE_ads
216 : static const struct ndr_interface_public_struct ads_public_structs[] = {
217 : {
218 : .name = "ads_struct",
219 : .struct_size = sizeof(struct ads_struct ),
220 : .ndr_push = (ndr_push_flags_fn_t) ndr_push_ads_struct,
221 : .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ads_struct,
222 : .ndr_print = (ndr_print_function_t) ndr_print_flags_ads_struct,
223 : },
224 : { .name = NULL }
225 : };
226 :
227 : static const struct ndr_interface_call ads_calls[] = {
228 : { .name = NULL }
229 : };
230 :
231 : static const char * const ads_endpoint_strings[] = {
232 : "ncacn_np:[\\pipe\\ads]",
233 : };
234 :
235 : static const struct ndr_interface_string_array ads_endpoints = {
236 : .count = 1,
237 : .names = ads_endpoint_strings
238 : };
239 :
240 : static const char * const ads_authservice_strings[] = {
241 : "host",
242 : };
243 :
244 : static const struct ndr_interface_string_array ads_authservices = {
245 : .count = 1,
246 : .names = ads_authservice_strings
247 : };
248 :
249 :
250 : const struct ndr_interface_table ndr_table_ads = {
251 : .name = "ads",
252 : .num_calls = 0,
253 : .calls = ads_calls,
254 : .num_public_structs = 1,
255 : .public_structs = ads_public_structs,
256 : .endpoints = &ads_endpoints,
257 : .authservices = &ads_authservices
258 : };
259 :
260 : #endif /* SKIP_NDR_TABLE_ads */
|