2 Unix SMB/CIFS implementation.
4 Copyright (C) Guenther Deschner <gd@samba.org> 2008
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "libnet/libnet_dssync.h"
23 /****************************************************************
24 ****************************************************************/
26 static NTSTATUS passdb_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
27 struct replUpToDateVectorBlob **pold_utdv)
30 struct pdb_methods *methods = NULL;
32 if (ctx->output_filename) {
33 status = make_pdb_method_name(&methods, ctx->output_filename);
35 status = make_pdb_method_name(&methods, lp_passdb_backend());
38 if (!NT_STATUS_IS_OK(status)) {
42 ctx->private_data = methods;
47 /****************************************************************
48 ****************************************************************/
50 static NTSTATUS passdb_finish(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
51 struct replUpToDateVectorBlob *new_utdv)
53 struct pdb_methods *methods =
54 (struct pdb_methods *)ctx->private_data;
61 /****************************************************************
62 ****************************************************************/
64 static NTSTATUS passdb_process_objects(struct dssync_context *ctx,
66 struct drsuapi_DsReplicaObjectListItemEx *cur,
67 struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr)
69 return NT_STATUS_NOT_SUPPORTED;
72 /****************************************************************
73 ****************************************************************/
75 const struct dssync_ops libnet_dssync_passdb_ops = {
76 .startup = passdb_startup,
77 .process_objects = passdb_process_objects,
78 .finish = passdb_finish,