From 8ce73c6c50ef36b413a40640c04180a614cc2f68 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Sep 2009 10:33:02 +1000 Subject: s4: the secrets.ldb module needs the loadparm opaque setup --- source4/param/secrets.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit