1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4: the secrets.ldb module needs the loadparm opaque setup

This commit is contained in:
Andrew Tridgell 2009-09-07 10:33:02 +10:00
parent 04ea250aeb
commit 8ce73c6c50

View File

@ -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;