s4: the secrets.ldb module needs the loadparm opaque setup
authorAndrew Tridgell <tridge@samba.org>
Mon, 7 Sep 2009 00:33:02 +0000 (10:33 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 7 Sep 2009 00:33:02 +0000 (10:33 +1000)
source4/param/secrets.c

index 6c6f7c28f0a5cc2ac929929d3e0f980f592e9d32..f21be822a27d75ca28a083f6883ece1f2200d5e2 100644 (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;