diff options
Diffstat (limited to 'source3/passdb')
-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 */ |