Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
[samba.git] / source3 / libnet / libnet_join.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *  libnet Join Support
4  *  Copyright (C) Guenther Deschner 2007-2008
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef __LIBNET_JOIN_H__
21 #define __LIBNET_JOIN_H__
22
23 struct libnet_JoinCtx {
24         struct {
25                 const char *dc_name;
26                 const char *machine_name;
27                 const char *domain_name;
28                 const char *account_ou;
29                 const char *admin_account;
30                 const char *admin_password;
31                 const char *machine_password;
32                 uint32_t join_flags;
33                 const char *os_version;
34                 const char *os_name;
35                 bool create_upn;
36                 const char *upn;
37                 bool modify_config;
38                 struct ads_struct *ads;
39                 bool debug;
40         } in;
41
42         struct {
43                 char *account_name;
44                 char *netbios_domain_name;
45                 char *dns_domain_name;
46                 char *dn;
47                 struct dom_sid *domain_sid;
48                 bool modified_config;
49                 WERROR result;
50                 char *error_string;
51                 bool domain_is_ad;
52         } out;
53 };
54
55 struct libnet_UnjoinCtx {
56         struct {
57                 const char *dc_name;
58                 const char *machine_name;
59                 const char *domain_name;
60                 const char *admin_account;
61                 const char *admin_password;
62                 uint32_t unjoin_flags;
63                 bool modify_config;
64                 struct dom_sid *domain_sid;
65                 struct ads_struct *ads;
66         } in;
67
68         struct {
69                 bool modified_config;
70                 WERROR result;
71                 char *error_string;
72         } out;
73 };
74
75 #endif