summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/param/secrets.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/param/secrets.c b/source4/param/secrets.c
index 6c6f7c28f0..f21be822a2 100644
--- a/source4/param/secrets.c
+++ b/source4/param/secrets.c
@@ -119,6 +119,13 @@ struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx,
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;