summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-21 23:58:42 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-02 15:45:20 +0100
commit1f884cfbcb126c8f8bfeeabd349e082ae8fae3b6 (patch)
tree35a5c6e9763eb349f4fd799a41081a96d052997b /source3
parent91e6dad7494421c764c2fd701931f7053f15bda1 (diff)
downloadsamba-1f884cfbcb126c8f8bfeeabd349e082ae8fae3b6.tar.gz
samba-1f884cfbcb126c8f8bfeeabd349e082ae8fae3b6.tar.bz2
samba-1f884cfbcb126c8f8bfeeabd349e082ae8fae3b6.zip
s3-dssync-passdb: fill in passdb_startup.
Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_dssync_passdb.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/libnet/libnet_dssync_passdb.c b/source3/libnet/libnet_dssync_passdb.c
index 7e7e14b49c..c6feb26fa6 100644
--- a/source3/libnet/libnet_dssync_passdb.c
+++ b/source3/libnet/libnet_dssync_passdb.c
@@ -26,7 +26,22 @@
static NTSTATUS passdb_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx,
struct replUpToDateVectorBlob **pold_utdv)
{
- return NT_STATUS_NOT_SUPPORTED;
+ NTSTATUS status;
+ struct pdb_methods *methods = NULL;
+
+ if (ctx->output_filename) {
+ status = make_pdb_method_name(&methods, ctx->output_filename);
+ } else {
+ status = make_pdb_method_name(&methods, lp_passdb_backend());
+ }
+
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ ctx->private_data = methods;
+
+ return status;
}
/****************************************************************