diff options
author | Andreas Schneider <asn@samba.org> | 2012-11-23 14:55:48 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2012-12-03 14:35:10 +0100 |
commit | ce29ecfd44613e4f3bae98418add1cc4d0ed59ab (patch) | |
tree | 25d74435aa4467b96350fc87f7281e21e78b6c82 /source4/utils/ntlm_auth.c | |
parent | 7cc108c93cd10ac592c28605f2c1e366a7e507b2 (diff) | |
download | samba-ce29ecfd44613e4f3bae98418add1cc4d0ed59ab.tar.gz samba-ce29ecfd44613e4f3bae98418add1cc4d0ed59ab.tar.bz2 samba-ce29ecfd44613e4f3bae98418add1cc4d0ed59ab.zip |
ntlm_auth4: Use new samba_getpass() function.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/utils/ntlm_auth.c')
-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); + } } { |