From 224a0dfad69c2e056f19e2b4865d592f495fb944 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 13 Feb 2009 14:17:24 -0500 Subject: Always pass teh database path explicitly, so that test cases can use throw away databases Check version and init main db if empty --- server/db/sysdb.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/db/sysdb.h') diff --git a/server/db/sysdb.h b/server/db/sysdb.h index d571f676..7b285721 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -1,7 +1,7 @@ /* SSSD - System Databse Header + System Database Header Copyright (C) Simo Sorce 2008 @@ -75,7 +75,7 @@ struct sysdb_ctx { struct ldb_context *ldb; - const char *ldb_file; + char *ldb_file; }; struct confdb_ctx; @@ -85,7 +85,8 @@ typedef void (*sysdb_callback_t)(void *, int, struct ldb_result *); int sysdb_init(TALLOC_CTX *mem_ctx, struct event_context *ev, struct confdb_ctx *cdb, - struct sysdb_ctx **nlctx); + const char *alt_db_path, + struct sysdb_ctx **dbctx); int sysdb_getpwnam(TALLOC_CTX *mem_ctx, struct event_context *ev, -- cgit