2 * Unix SMB/CIFS implementation.
4 * Copyright (C) Guenther Deschner 2007-2008
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.
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.
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/>.
20 #ifndef __LIBNET_JOIN_H__
21 #define __LIBNET_JOIN_H__
23 struct libnet_JoinCtx {
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;
33 const char *os_version;
34 const char *os_string;
41 char *netbios_domain_name;
42 char *dns_domain_name;
44 struct dom_sid *domain_sid;
51 struct libnet_UnjoinCtx {
54 const char *domain_name;
55 const char *admin_account;
56 const char *admin_password;
57 uint32_t unjoin_flags;
59 struct dom_sid *domain_sid;