summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-07 10:33:02 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-07 10:33:02 +1000
commit8ce73c6c50ef36b413a40640c04180a614cc2f68 (patch)
tree82da6614003cd865f1ac37589ebf65faad11164f /source4
parent04ea250aebe619d7ec25426be9d395f1dd635c90 (diff)
downloadsamba-8ce73c6c50ef36b413a40640c04180a614cc2f68.tar.gz
samba-8ce73c6c50ef36b413a40640c04180a614cc2f68.tar.bz2
samba-8ce73c6c50ef36b413a40640c04180a614cc2f68.zip
s4: the secrets.ldb module needs the loadparm opaque setup
Diffstat (limited to 'source4')
-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;