2005-05-02 14:17:19 +00:00
/*
Unix SMB / CIFS implementation .
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2005
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
2007-07-10 02:07:03 +00:00
the Free Software Foundation ; either version 3 of the License , or
2005-05-02 14:17:19 +00:00
( 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
2007-07-10 02:07:03 +00:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2005-05-02 14:17:19 +00:00
*/
2006-03-16 00:23:11 +00:00
# include "librpc/gen_ndr/netlogon.h"
2005-05-02 14:17:19 +00:00
2006-01-14 01:29:38 +00:00
struct libnet_SamSync_state {
struct libnet_context * machine_net_ctx ;
struct dcerpc_pipe * netlogon_pipe ;
const char * domain_name ;
const struct dom_sid * domain_sid ;
const char * realm ;
struct GUID * domain_guid ;
} ;
2005-07-25 02:23:41 +00:00
/* struct and enum for doing a remote domain vampire dump */
struct libnet_SamSync {
2006-01-12 09:33:49 +00:00
struct {
const char * binding_string ;
2007-02-12 13:34:04 +00:00
bool rid_crypt ;
2006-01-13 12:52:56 +00:00
NTSTATUS ( * init_fn ) ( TALLOC_CTX * mem_ctx ,
void * private ,
2006-01-14 01:29:38 +00:00
struct libnet_SamSync_state * samsync_state ,
2006-01-13 12:52:56 +00:00
char * * error_string ) ;
2006-01-12 09:33:49 +00:00
NTSTATUS ( * delta_fn ) ( TALLOC_CTX * mem_ctx ,
void * private ,
enum netr_SamDatabaseID database ,
struct netr_DELTA_ENUM * delta ,
char * * error_string ) ;
void * fn_ctx ;
struct cli_credentials * machine_account ;
} in ;
struct {
const char * error_string ;
} out ;
2005-05-02 14:17:19 +00:00
} ;
2005-07-25 02:23:41 +00:00
struct libnet_SamDump {
2006-01-12 09:33:49 +00:00
struct {
const char * binding_string ;
struct cli_credentials * machine_account ;
} in ;
struct {
const char * error_string ;
} out ;
2005-05-02 14:17:19 +00:00
} ;
2005-12-21 22:02:52 +00:00
struct libnet_SamDump_keytab {
2006-01-12 09:33:49 +00:00
struct {
const char * binding_string ;
const char * keytab_name ;
struct cli_credentials * machine_account ;
} in ;
struct {
const char * error_string ;
} out ;
2005-07-25 06:33:51 +00:00
} ;
struct libnet_samsync_ldb {
2006-01-12 09:33:49 +00:00
struct {
const char * binding_string ;
struct cli_credentials * machine_account ;
2006-01-14 06:17:24 +00:00
struct auth_session_info * session_info ;
2006-01-12 09:33:49 +00:00
} in ;
struct {
const char * error_string ;
} out ;
2005-07-25 06:33:51 +00:00
} ;