diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/utils/ntlm_auth.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c index cc92c170b6..c363c9d5b6 100644 --- a/source4/utils/ntlm_auth.c +++ b/source4/utils/ntlm_auth.c @@ -1137,7 +1137,13 @@ int main(int argc, const char **argv) } if (!opt_password) { - opt_password = getpass("password: "); + char pwd[256] = {0}; + int rc; + + rc = samba_getpass("Password: ", pwd, sizeof(pwd), false, false); + if (rc == 0) { + opt_password = smb_xstrdup(pwd); + } } { |