connect to the secrets ldb
*/
struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx,
- struct event_context *ev_ctx,
+ struct tevent_context *ev_ctx,
struct loadparm_context *lp_ctx)
{
char *path;
return NULL;
}
+ /* the update_keytab module relies on this being setup */
+ if (ldb_set_opaque(ldb, "loadparm", lp_ctx) != LDB_SUCCESS) {
+ talloc_free(path);
+ talloc_free(ldb);
+ return NULL;
+ }
+
talloc_free(path);
return ldb;
* @return pointer to a SID object if the SID could be obtained, NULL otherwise
*/
struct dom_sid *secrets_get_domain_sid(TALLOC_CTX *mem_ctx,
- struct event_context *ev_ctx,
+ struct tevent_context *ev_ctx,
struct loadparm_context *lp_ctx,
const char *domain)
{