2 Unix SMB/CIFS implementation.
4 Copyright (C) Stefan Metzmacher 2004
5 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
6 Copyright (C) Brad Henry 2005
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.
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.
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.
23 #include "librpc/gen_ndr/ndr_netlogon.h"
25 enum libnet_Join_level {
26 LIBNET_JOIN_AUTOMATIC,
27 LIBNET_JOIN_SPECIFIED,
30 enum libnet_JoinDomain_level {
31 LIBNET_JOINDOMAIN_AUTOMATIC,
32 LIBNET_JOINDOMAIN_SPECIFIED,
35 struct libnet_JoinDomain {
37 const char *domain_name;
38 const char *account_name;
39 const char *netbios_name;
41 enum libnet_JoinDomain_level level;
43 BOOL recreate_account;
47 const char *error_string;
48 const char *join_password;
49 struct dom_sid *domain_sid;
50 const char *domain_name;
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;
66 const char *domain_name;
67 const char *netbios_name;
68 enum netr_SchannelType join_type;
69 enum libnet_Join_level level;
73 const char *error_string;
74 const char *join_password;
75 struct dom_sid *domain_sid;
76 const char *domain_name;