git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04ea250
)
s4: the secrets.ldb module needs the loadparm opaque setup
author
Andrew Tridgell
<tridge@samba.org>
Mon, 7 Sep 2009 00:33:02 +0000
(10:33 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 7 Sep 2009 00:33:02 +0000
(10:33 +1000)
source4/param/secrets.c
patch
|
blob
|
history
diff --git
a/source4/param/secrets.c
b/source4/param/secrets.c
index 6c6f7c28f0a5cc2ac929929d3e0f980f592e9d32..f21be822a27d75ca28a083f6883ece1f2200d5e2 100644
(file)
--- 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;