diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-04-01 11:00:59 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-01 14:04:20 +0200 |
commit | a5f3911d70ed1401f24914090246d14e40d798d8 (patch) | |
tree | 8b9f2d2921a3e458eaeb70395b34874889a3d439 /source3 | |
parent | b8dcade819efc10857cd412a3302bb4bdef110b0 (diff) | |
download | samba-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')
-rw-r--r-- | source3/passdb/secrets.c | 9 |
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 */ |