summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-23 14:55:48 +0100
committerAndreas Schneider <asn@samba.org>2012-12-03 14:35:10 +0100
commitce29ecfd44613e4f3bae98418add1cc4d0ed59ab (patch)
tree25d74435aa4467b96350fc87f7281e21e78b6c82 /source4/utils
parent7cc108c93cd10ac592c28605f2c1e366a7e507b2 (diff)
downloadsamba-ce29ecfd44613e4f3bae98418add1cc4d0ed59ab.tar.gz
ntlm_auth4: Use new samba_getpass() function.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/ntlm_auth.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/utils/ntlm_auth.c b/source4/utils/ntlm_auth.c
index cc92c170b65..c363c9d5b65 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);
+ }
}
{