ac0a35005b7e203091ba8a035fa82f96e306418a
[samba.git] / source3 / librpc / idl / libnet_join.idl
1 #include "idl_types.h"
2
3 import "wkssvc.idl", "security.idl", "misc.idl";
4
5 /*
6   libnetjoin interface definition
7 */
8
9 [
10         pointer_default(unique),
11         helper("ads.h")
12 ]
13 interface libnetjoin
14 {
15         typedef bitmap wkssvc_joinflags wkssvc_joinflags;
16         typedef enum netr_SchannelType netr_SchannelType;
17
18         [nopush,nopull,noopnum] WERROR libnet_JoinCtx(
19                 [in] string dc_name,
20                 [in] string machine_name,
21                 [in,ref] string *domain_name,
22                 [in] string account_ou,
23                 [in] string admin_account,
24                 [in] string admin_domain,
25                 [in,noprint] string admin_password,
26                 [in] string machine_password,
27                 [in] wkssvc_joinflags join_flags,
28                 [in] string os_version,
29                 [in] string os_name,
30                 [in] boolean8 create_upn,
31                 [in] string upn,
32                 [in] boolean8 modify_config,
33                 [in,unique] ads_struct *ads,
34                 [in] boolean8 debug,
35                 [in] boolean8 use_kerberos,
36                 [in] netr_SchannelType secure_channel_type,
37                 [in,noprint] messaging_context *msg_ctx,
38                 [out] string account_name,
39                 [out] string netbios_domain_name,
40                 [out] string dns_domain_name,
41                 [out] string forest_name,
42                 [out] string dn,
43                 [out] dom_sid *domain_sid,
44                 [out] boolean8 modified_config,
45                 [out] string error_string,
46                 [out] boolean8 domain_is_ad
47                 );
48
49         [nopush,nopull,noopnum] WERROR libnet_UnjoinCtx(
50                 [in] string dc_name,
51                 [in] string machine_name,
52                 [in] string domain_name,
53                 [in] string account_ou,
54                 [in] string admin_account,
55                 [in] string admin_domain,
56                 [in,noprint] string admin_password,
57                 [in] string machine_password,
58                 [in] wkssvc_joinflags unjoin_flags,
59                 [in] boolean8 delete_machine_account,
60                 [in] boolean8 modify_config,
61                 [in] dom_sid *domain_sid,
62                 [in,unique] ads_struct *ads,
63                 [in] boolean8 debug,
64                 [in] boolean8 use_kerberos,
65                 [in,noprint] messaging_context *msg_ctx,
66                 [out] string netbios_domain_name,
67                 [out] string dns_domain_name,
68                 [out] string forest_name,
69                 [out] boolean8 modified_config,
70                 [out] string error_string,
71                 [out] boolean8 disabled_machine_account,
72                 [out] boolean8 deleted_machine_account
73                 );
74 }