s4:param: make use of secrets_db_create() in provision_store_self_join()
authorStefan Metzmacher <metze@samba.org>
Tue, 4 Feb 2020 15:15:53 +0000 (16:15 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 5 Feb 2020 08:46:39 +0000 (08:46 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/param/provision.c

index 395516dc3ae2361a98705d8102cb5963f673ec17..ad972bbc2dc26c83fb89704f3ef43f9392f0852d 100644 (file)
@@ -345,8 +345,8 @@ NTSTATUS provision_store_self_join(TALLOC_CTX *mem_ctx, struct loadparm_context
                goto out;
        }
 
-       /* Open the secrets database */
-       ldb = secrets_db_connect(tmp_mem, lp_ctx);
+       /* Create/Open the secrets database */
+       ldb = secrets_db_create(tmp_mem, lp_ctx);
        if (!ldb) {
                *error_string
                        = talloc_asprintf(mem_ctx,