summaryrefslogtreecommitdiffstats
path: root/source4/auth/ntlm/auth_unix.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-01-22 15:42:33 +1300
committerAndreas Schneider <asn@cryptomilk.org>2014-04-15 10:13:12 +0200
commite731655f09d7b4bb87cac33738a5f286d453610e (patch)
tree3fa617e84a8ec00166b6c2b6d4bd3a2a1eeec1a1 /source4/auth/ntlm/auth_unix.c
parentcec833063e4fa5911ae1cf0c53d38f1d6735ee02 (diff)
downloadsamba-e731655f09d7b4bb87cac33738a5f286d453610e.tar.gz
samba-e731655f09d7b4bb87cac33738a5f286d453610e.tar.xz
samba-e731655f09d7b4bb87cac33738a5f286d453610e.zip
auth: Remove support for plaintext auth on systems that use getprpwnam()
The WAF build does not have the code to detect getprpwnam, so this is dead code. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/auth/ntlm/auth_unix.c')
-rw-r--r--source4/auth/ntlm/auth_unix.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source4/auth/ntlm/auth_unix.c b/source4/auth/ntlm/auth_unix.c
index 4cff61b60a..169e9abf8b 100644
--- a/source4/auth/ntlm/auth_unix.c
+++ b/source4/auth/ntlm/auth_unix.c
@@ -650,15 +650,6 @@ static NTSTATUS check_unix_password(TALLOC_CTX *ctx, struct loadparm_context *lp
}
#endif
-#ifdef HAVE_GETPRPWNAM
- {
- struct pr_passwd *pr_pw = getprpwnam(pws->pw_name);
- if (pr_pw && pr_pw->ufld.fd_encrypt) {
- crypted = talloc_strdup(ctx, pr_pw->ufld.fd_encrypt);
- NT_STATUS_HAVE_NO_MEMORY(crypted);
- }
- }
-#endif
#ifdef HAVE_GETPWANAM
{