HACK force toggle in pdb_get_trust_credentials_cb
authorStefan Metzmacher <metze@samba.org>
Sat, 10 Aug 2013 07:30:30 +0000 (09:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Apr 2018 06:50:13 +0000 (08:50 +0200)
source3/passdb/passdb.c

index 34b1c95291de9825ed5e5ec255a08248499f9bc3..76f9bc1891c977172817ba9c946a1cb20b1dfbe7 100644 (file)
@@ -2689,6 +2689,12 @@ NTSTATUS pdb_get_trust_credentials(const char *netbios_domain,
                goto done;
        }
 
+       // HACK...
+       if (prev_pw == NULL) {
+               prev_pw = cur_pw;
+               cur_pw = strdup("__cur_pw_invalid__");
+       }
+
        if (prev_pw == NULL) {
                ok = cli_credentials_set_password(creds, cur_pw, CRED_SPECIFIED);
                if (!ok) {