2005-01-13 10:50:09 +03:00
/*
Unix SMB / CIFS implementation .
Copyright ( C ) Stefan Metzmacher 2004
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2005
2005-09-25 16:26:07 +04:00
Copyright ( C ) Brad Henry 2005
2005-01-13 10:50:09 +03:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
2005-01-16 01:13:18 +03:00
# include "librpc/gen_ndr/ndr_netlogon.h"
2005-09-25 16:26:07 +04:00
enum libnet_Join_level {
LIBNET_JOIN_AUTOMATIC ,
LIBNET_JOIN_SPECIFIED ,
} ;
enum libnet_JoinDomain_level {
LIBNET_JOINDOMAIN_AUTOMATIC ,
LIBNET_JOINDOMAIN_SPECIFIED ,
} ;
2005-07-29 14:58:05 +04:00
struct libnet_JoinDomain {
2005-01-13 10:50:09 +03:00
struct {
2005-07-29 14:58:05 +04:00
const char * domain_name ;
const char * account_name ;
2005-09-25 16:26:07 +04:00
const char * netbios_name ;
const char * binding ;
enum libnet_JoinDomain_level level ;
2005-07-29 14:58:05 +04:00
uint32_t acct_type ;
2005-10-31 06:03:32 +03:00
BOOL recreate_account ;
2005-07-29 14:58:05 +04:00
} in ;
2005-01-13 10:50:09 +03:00
struct {
2005-07-29 14:58:05 +04:00
const char * error_string ;
const char * join_password ;
struct dom_sid * domain_sid ;
const char * domain_name ;
const char * realm ;
2005-09-25 16:26:07 +04:00
const char * domain_dn_str ;
const char * account_dn_str ;
const char * server_dn_str ;
uint32_t kvno ; /* msDS-KeyVersionNumber */
struct dcerpc_pipe * lsa_pipe ;
struct dcerpc_pipe * samr_pipe ;
struct dcerpc_binding * samr_binding ;
struct policy_handle * user_handle ;
struct dom_sid * account_sid ;
2005-07-29 14:58:05 +04:00
} out ;
2005-01-13 10:50:09 +03:00
} ;
2005-07-29 14:58:05 +04:00
struct libnet_Join {
2005-01-16 01:13:18 +03:00
struct {
2005-07-29 14:58:05 +04:00
const char * domain_name ;
2005-09-25 16:26:07 +04:00
const char * netbios_name ;
2005-07-29 14:58:05 +04:00
enum netr_SchannelType secure_channel_type ;
2005-09-25 16:26:07 +04:00
enum libnet_Join_level level ;
2005-07-29 14:58:05 +04:00
} in ;
2005-01-16 01:13:18 +03:00
struct {
2005-07-29 14:58:05 +04:00
const char * error_string ;
2005-09-25 16:26:07 +04:00
const char * join_password ;
struct dom_sid * domain_sid ;
2005-07-29 14:58:05 +04:00
} out ;
2005-01-16 01:13:18 +03:00
} ;