mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +03:00
This is triggered by setting the new "single" flag in the dssync_context and filling the "object_dn" member with the dn of the object to be fetched. This call is accomplished by specifying the DRSUAPI_EXOP_REPL_OBJ extended operation in the DsGetNCCHanges request. This variant does honor an up-to-date-ness vectore passed in, but the answer does not return a new up-to-dateness vector. Call this operation as "net rpc vampire keytab /path/keytab object_dn" . Michael (This used to be commit f4a01178a3d8d71f416a3b67ce6b872420f211c0)
54 lines
1.7 KiB
C
54 lines
1.7 KiB
C
/*
|
|
* Unix SMB/CIFS implementation.
|
|
* libnet Support
|
|
* Copyright (C) Guenther Deschner 2008
|
|
*
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
struct dssync_context;
|
|
|
|
struct dssync_ops {
|
|
NTSTATUS (*startup)(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
|
|
struct replUpToDateVectorBlob **pold_utdv);
|
|
NTSTATUS (*process_objects)(struct dssync_context *ctx,
|
|
TALLOC_CTX *mem_ctx,
|
|
struct drsuapi_DsReplicaObjectListItemEx *objects,
|
|
struct drsuapi_DsReplicaOIDMapping_Ctr *mappings);
|
|
NTSTATUS (*finish)(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
|
|
struct replUpToDateVectorBlob *new_utdv);
|
|
};
|
|
|
|
struct dssync_context {
|
|
const char *domain_name;
|
|
const char *dns_domain_name;
|
|
struct rpc_pipe_client *cli;
|
|
const char *nc_dn;
|
|
bool single;
|
|
const char *object_dn;
|
|
struct policy_handle bind_handle;
|
|
DATA_BLOB session_key;
|
|
const char *output_filename;
|
|
struct drsuapi_DsBindInfo28 remote_info28;
|
|
|
|
void *private_data;
|
|
|
|
const struct dssync_ops *ops;
|
|
|
|
char *result_message;
|
|
char *error_message;
|
|
};
|
|
|
|
extern const struct dssync_ops libnet_dssync_keytab_ops;
|