libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build
[Samba.git] / source / librpc / gen_ndr / ndr_libnet_join.c
blob753859f0ed7c6793dbe86a95bab9cab06e83b7db
1 /* parser auto-generated by pidl */
3 #include "includes.h"
4 #include "librpc/gen_ndr/ndr_libnet_join.h"
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)
10 ndr_print_struct(ndr, name, "libnet_JoinCtx");
11 ndr->depth++;
12 if (flags & NDR_SET_VALUES) {
13 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
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_netr_SchannelType(ndr, "secure_channel_type", r->in.secure_channel_type);
45 ndr->depth--;
47 if (flags & NDR_OUT) {
48 ndr_print_struct(ndr, "out", "libnet_JoinCtx");
49 ndr->depth++;
50 ndr_print_string(ndr, "account_name", r->out.account_name);
51 ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
52 ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
53 ndr_print_string(ndr, "dn", r->out.dn);
54 ndr_print_ptr(ndr, "domain_sid", r->out.domain_sid);
55 ndr->depth++;
56 ndr_print_dom_sid(ndr, "domain_sid", r->out.domain_sid);
57 ndr->depth--;
58 ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
59 ndr_print_string(ndr, "error_string", r->out.error_string);
60 ndr_print_uint8(ndr, "domain_is_ad", r->out.domain_is_ad);
61 ndr_print_WERROR(ndr, "result", r->out.result);
62 ndr->depth--;
64 ndr->depth--;
67 _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_UnjoinCtx *r)
69 ndr_print_struct(ndr, name, "libnet_UnjoinCtx");
70 ndr->depth++;
71 if (flags & NDR_SET_VALUES) {
72 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
74 if (flags & NDR_IN) {
75 ndr_print_struct(ndr, "in", "libnet_UnjoinCtx");
76 ndr->depth++;
77 ndr_print_string(ndr, "dc_name", r->in.dc_name);
78 ndr_print_string(ndr, "machine_name", r->in.machine_name);
79 ndr_print_string(ndr, "domain_name", r->in.domain_name);
80 ndr_print_string(ndr, "account_ou", r->in.account_ou);
81 ndr_print_string(ndr, "admin_account", r->in.admin_account);
82 #ifdef DEBUG_PASSWORD
83 ndr_print_string(ndr, "admin_password", r->in.admin_password);
84 ndr_print_string(ndr, "machine_password", r->in.machine_password);
85 #else
86 ndr_print_ptr(ndr, "admin_password", r->in.admin_password);
87 ndr_print_ptr(ndr, "machine_password", r->in.machine_password);
88 #endif
89 ndr_print_wkssvc_joinflags(ndr, "unjoin_flags", r->in.unjoin_flags);
90 ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
91 ndr_print_ptr(ndr, "domain_sid", r->in.domain_sid);
92 ndr->depth++;
93 ndr_print_dom_sid(ndr, "domain_sid", r->in.domain_sid);
94 ndr->depth--;
95 ndr_print_ptr(ndr, "ads", r->in.ads);
96 ndr->depth++;
97 ndr_print_ads_struct(ndr, "ads", r->in.ads);
98 ndr->depth--;
99 ndr_print_uint8(ndr, "debug", r->in.debug);
100 ndr->depth--;
102 if (flags & NDR_OUT) {
103 ndr_print_struct(ndr, "out", "libnet_UnjoinCtx");
104 ndr->depth++;
105 ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
106 ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
107 ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
108 ndr_print_string(ndr, "error_string", r->out.error_string);
109 ndr_print_uint8(ndr, "disabled_machine_account", r->out.disabled_machine_account);
110 ndr_print_uint8(ndr, "deleted_machine_account", r->out.deleted_machine_account);
111 ndr_print_WERROR(ndr, "result", r->out.result);
112 ndr->depth--;
114 ndr->depth--;