summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-11-23 14:29:38 +0100
committerAndreas Schneider <asn@samba.org>2012-12-03 14:35:09 +0100
commit7f4af3d1fb0827714c8637ecc780ef9d88604bc4 (patch)
tree50cf7347ff5de9ebe3df49ed2c1735a5b35d1be1 /source3/utils
parent270d721d36890a13ec9a393a09925d1ca27a337f (diff)
downloadsamba-7f4af3d1fb0827714c8637ecc780ef9d88604bc4.tar.gz
samba-7f4af3d1fb0827714c8637ecc780ef9d88604bc4.tar.bz2
samba-7f4af3d1fb0827714c8637ecc780ef9d88604bc4.zip
ntlm_auth: Use new samba_getpass() function.
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 2bf9747b2f..6b45354b51 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -2899,7 +2899,13 @@ enum {
}
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_STRDUP(pwd);
+ }
}
if (diagnostics) {