r12886: Rename 'secure_channel_type' parameter to domain join as 'join_type'.
[ira/wip.git] / source / libnet / libnet_join.h
1 /* 
2    Unix SMB/CIFS implementation.
3    
4    Copyright (C) Stefan Metzmacher      2004
5    Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
6    Copyright (C) Brad Henry 2005
7    
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12    
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17    
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #include "librpc/gen_ndr/ndr_netlogon.h"
24
25 enum libnet_Join_level {
26         LIBNET_JOIN_AUTOMATIC,
27         LIBNET_JOIN_SPECIFIED,
28 };
29
30 enum libnet_JoinDomain_level {
31         LIBNET_JOINDOMAIN_AUTOMATIC,
32         LIBNET_JOINDOMAIN_SPECIFIED,
33 };
34
35 struct libnet_JoinDomain {
36         struct {
37                 const char *domain_name;
38                 const char *account_name;
39                 const char *netbios_name;
40                 const char *binding;
41                 enum libnet_JoinDomain_level level;
42                 uint32_t  acct_type;
43                 BOOL recreate_account;
44         } in;
45
46         struct {
47                 const char *error_string;
48                 const char *join_password;
49                 struct dom_sid *domain_sid;
50                 const char *domain_name;
51                 const char *realm;
52                 const char *domain_dn_str;
53                 const char *account_dn_str;
54                 const char *server_dn_str;
55                 uint32_t kvno; /* msDS-KeyVersionNumber */
56                 struct dcerpc_pipe *lsa_pipe;
57                 struct dcerpc_pipe *samr_pipe;
58                 struct dcerpc_binding *samr_binding;
59                 struct policy_handle *user_handle;
60                 struct dom_sid *account_sid;
61         } out;
62 };
63
64 struct libnet_Join {
65         struct {
66                 const char *domain_name;
67                 const char *netbios_name;
68                 enum netr_SchannelType join_type;
69                 enum libnet_Join_level level;
70         } in;
71         
72         struct {
73                 const char *error_string;
74                 const char *join_password;
75                 struct dom_sid *domain_sid;
76                 const char *domain_name;
77         } out;
78 };
79