mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r8744: Split 'net samdump' out into a separate file
Work on the talloc memory tree, as I think talloc_reference and other things were biting me. Crush unions in the name of code reform. ;-) Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
bdca9537a2
commit
2eadcf4669
@@ -20,29 +20,17 @@
|
||||
|
||||
#include "librpc/gen_ndr/ndr_netlogon.h"
|
||||
|
||||
/* struct and enum for doing a remote domain join */
|
||||
enum libnet_SamSync_level {
|
||||
LIBNET_SAMSYNC_GENERIC,
|
||||
LIBNET_SAMSYNC_NETLOGON,
|
||||
};
|
||||
|
||||
union libnet_SamSync {
|
||||
struct {
|
||||
enum libnet_SamSync_level level;
|
||||
char *error_string;
|
||||
} generic;
|
||||
|
||||
struct {
|
||||
enum libnet_SamSync_level level;
|
||||
NTSTATUS (*delta_fn)(TALLOC_CTX *mem_ctx,
|
||||
void *private,
|
||||
struct creds_CredentialState *creds,
|
||||
enum netr_SamDatabaseID database,
|
||||
struct netr_DELTA_ENUM *delta,
|
||||
char **error_string);
|
||||
void *fn_ctx;
|
||||
char *error_string;
|
||||
} netlogon;
|
||||
/* struct and enum for doing a remote domain vampire dump */
|
||||
struct libnet_SamSync {
|
||||
NTSTATUS (*delta_fn)(TALLOC_CTX *mem_ctx,
|
||||
void *private,
|
||||
struct creds_CredentialState *creds,
|
||||
enum netr_SamDatabaseID database,
|
||||
struct netr_DELTA_ENUM *delta,
|
||||
char **error_string);
|
||||
void *fn_ctx;
|
||||
char *error_string;
|
||||
struct cli_credentials *machine_account;
|
||||
};
|
||||
|
||||
enum libnet_SamDump_level {
|
||||
@@ -50,15 +38,8 @@ enum libnet_SamDump_level {
|
||||
LIBNET_SAMDUMP_NETLOGON,
|
||||
};
|
||||
|
||||
union libnet_SamDump {
|
||||
struct {
|
||||
enum libnet_SamDump_level level;
|
||||
char *error_string;
|
||||
} generic;
|
||||
|
||||
struct {
|
||||
enum libnet_SamDump_level level;
|
||||
char *error_string;
|
||||
} netlogon;
|
||||
struct libnet_SamDump {
|
||||
enum libnet_SamDump_level level;
|
||||
char *error_string;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user