1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00
Files
samba-mirror/source/libnet/libnet_vampire.h
Andrew Bartlett f0c67a4a24 r6603: More work on the samdump puzzle. This implements a function pointer
callback interface, so we can start dumping into more than just stdout
soon.

Also use the enums instead of uint32 where possible and valid.

Andrew Bartlett
2007-10-10 13:16:29 -05:00

65 lines
1.7 KiB
C

/*
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
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 02139, USA.
*/
#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;
};
enum libnet_SamDump_level {
LIBNET_SAMDUMP_GENERIC,
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;
};