1 /* parser auto-generated by pidl */
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");
12 if (flags
& NDR_SET_VALUES
) {
13 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
16 ndr_print_struct(ndr
, "in", "libnet_JoinCtx");
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
);
22 ndr_print_string(ndr
, "domain_name", r
->in
.domain_name
);
24 ndr_print_string(ndr
, "account_ou", r
->in
.account_ou
);
25 ndr_print_string(ndr
, "admin_account", r
->in
.admin_account
);
27 ndr_print_string(ndr
, "admin_password", r
->in
.admin_password
);
28 ndr_print_string(ndr
, "machine_password", r
->in
.machine_password
);
30 ndr_print_ptr(ndr
, "admin_password", r
->in
.admin_password
);
31 ndr_print_ptr(ndr
, "machine_password", r
->in
.machine_password
);
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
);
41 ndr_print_ads_struct(ndr
, "ads", r
->in
.ads
);
43 ndr_print_uint8(ndr
, "debug", r
->in
.debug
);
44 ndr_print_netr_SchannelType(ndr
, "secure_channel_type", r
->in
.secure_channel_type
);
47 if (flags
& NDR_OUT
) {
48 ndr_print_struct(ndr
, "out", "libnet_JoinCtx");
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
);
56 ndr_print_dom_sid(ndr
, "domain_sid", r
->out
.domain_sid
);
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
);
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");
71 if (flags
& NDR_SET_VALUES
) {
72 ndr
->flags
|= LIBNDR_PRINT_SET_VALUES
;
75 ndr_print_struct(ndr
, "in", "libnet_UnjoinCtx");
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
);
83 ndr_print_string(ndr
, "admin_password", r
->in
.admin_password
);
84 ndr_print_string(ndr
, "machine_password", r
->in
.machine_password
);
86 ndr_print_ptr(ndr
, "admin_password", r
->in
.admin_password
);
87 ndr_print_ptr(ndr
, "machine_password", r
->in
.machine_password
);
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
);
93 ndr_print_dom_sid(ndr
, "domain_sid", r
->in
.domain_sid
);
95 ndr_print_ptr(ndr
, "ads", r
->in
.ads
);
97 ndr_print_ads_struct(ndr
, "ads", r
->in
.ads
);
99 ndr_print_uint8(ndr
, "debug", r
->in
.debug
);
102 if (flags
& NDR_OUT
) {
103 ndr_print_struct(ndr
, "out", "libnet_UnjoinCtx");
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
);