2 Unix SMB/CIFS implementation.
4 Copyright (C) Stefan Metzmacher 2004
5 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include "librpc/gen_ndr/ndr_netlogon.h"
24 /* struct and enum for doing a remote domain join */
25 enum libnet_JoinDomain_level {
26 LIBNET_JOIN_DOMAIN_GENERIC,
27 LIBNET_JOIN_DOMAIN_SAMR,
30 union libnet_JoinDomain {
32 enum libnet_JoinDomain_level level;
34 struct _libnet_JoinDomain_in {
35 const char *domain_name;
36 const char *account_name;
40 struct _libnet_JoinDomain_out {
41 const char *error_string;
42 const char *join_password;
47 enum libnet_JoinDomain_level level;
48 struct _libnet_JoinDomain_in in;
49 struct _libnet_JoinDomain_out out;
54 /* struct and enum for doing a remote domain join */
55 enum libnet_Join_level {
62 enum libnet_Join_level level;
64 struct _libnet_Join_in {
65 const char *domain_name;
66 enum netr_SchannelType secure_channel_type;
69 struct _libnet_Join_out {
70 const char *error_string;
75 enum libnet_Join_level level;
76 struct _libnet_Join_in in;
77 struct _libnet_Join_out out;