summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-01 11:00:59 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:20 +0200
commita5f3911d70ed1401f24914090246d14e40d798d8 (patch)
tree8b9f2d2921a3e458eaeb70395b34874889a3d439 /source3/passdb
parentb8dcade819efc10857cd412a3302bb4bdef110b0 (diff)
downloadsamba-a5f3911d70ed1401f24914090246d14e40d798d8.tar.gz
samba-a5f3911d70ed1401f24914090246d14e40d798d8.tar.bz2
samba-a5f3911d70ed1401f24914090246d14e40d798d8.zip
passdb/secrets: add secrets_db_ctx() to get the db_context
metze (This used to be commit 986bc7e8b260265da019b67ec751509eb589d24b)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/secrets.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 06bbd96353..8d08d90dcf 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -89,6 +89,15 @@ bool secrets_init(void)
return True;
}
+struct db_context *secrets_db_ctx(void)
+{
+ if (!secrets_init()) {
+ return NULL;
+ }
+
+ return db_ctx;
+}
+
/*
* close secrets.tdb
*/