mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
passdb/secrets: add secrets_db_ctx() to get the db_context
metze
This commit is contained in:
parent
983fd58805
commit
986bc7e8b2
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user