git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f7771
)
HACK force toggle in pdb_get_trust_credentials_cb
author
Stefan Metzmacher
<metze@samba.org>
Sat, 10 Aug 2013 07:30:30 +0000
(09:30 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 11 Apr 2018 06:50:13 +0000
(08:50 +0200)
source3/passdb/passdb.c
patch
|
blob
|
history
diff --git
a/source3/passdb/passdb.c
b/source3/passdb/passdb.c
index 34b1c95291de9825ed5e5ec255a08248499f9bc3..76f9bc1891c977172817ba9c946a1cb20b1dfbe7 100644
(file)
--- a/
source3/passdb/passdb.c
+++ b/
source3/passdb/passdb.c
@@
-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) {