Revert "HACK force toggle in pdb_get_trust_credentials_cb"
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Apr 2018 06:50:27 +0000 (08:50 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 11 Apr 2018 06:50:27 +0000 (08:50 +0200)
This reverts commit 8990fb72a4a968d1b490762726e84f23339a056e.

source3/passdb/passdb.c

index 76f9bc1891c977172817ba9c946a1cb20b1dfbe7..34b1c95291de9825ed5e5ec255a08248499f9bc3 100644 (file)
@@ -2689,12 +2689,6 @@ 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) {