summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-02-13 14:17:24 -0500
committerSimo Sorce <idra@samba.org>2009-02-13 14:17:24 -0500
commit224a0dfad69c2e056f19e2b4865d592f495fb944 (patch)
tree7a3e266a11ad9f8f6279592dad1d5ee8b901bd0b /server/db/sysdb.h
parentb794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776 (diff)
downloadsssd-224a0dfad69c2e056f19e2b4865d592f495fb944.tar.gz
sssd-224a0dfad69c2e056f19e2b4865d592f495fb944.tar.xz
sssd-224a0dfad69c2e056f19e2b4865d592f495fb944.zip
Always pass teh database path explicitly, so that test cases can use
throw away databases Check version and init main db if empty
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r--server/db/sysdb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h
index d571f6769..7b2857219 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 <ssorce@redhat.com> 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,