On a cluster we need to use the ctdb controlled database and not
a local secrets.tdb...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15714
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep 20 05:54:43 UTC 2024 on atb-devel-224
+++ /dev/null
-^samba3.blackbox.update_keytab_clustered.net_ads_testjoin_initial.clusteredmember
-^samba3.blackbox.update_keytab_clustered.net_ads_testjoin_after_sync.clusteredmember
-^samba3.blackbox.update_keytab_clustered.wbinfo_change_secret_after_sync.clusteredmember
-^samba3.blackbox.update_keytab_clustered.net_ads_testjoin_final.clusteredmember
int net_use_krb_machine_account(struct net_context *c)
{
+ struct db_context *db_ctx = NULL;
+
if (!secrets_init()) {
d_fprintf(stderr,_("ERROR: Unable to open secrets database\n"));
exit(1);
}
- cli_credentials_set_machine_account(c->creds, c->lp_ctx);
+ db_ctx = secrets_db_ctx();
+
+ cli_credentials_set_machine_account_db_ctx(c->creds, c->lp_ctx, db_ctx);
c->explicit_credentials = true;
return 0;
}