From e731655f09d7b4bb87cac33738a5f286d453610e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 22 Jan 2014 15:42:33 +1300 Subject: [PATCH] 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 Reviewed-by: Andreas Schneider --- source3/auth/pass_check.c | 10 ---------- source4/auth/ntlm/auth_unix.c | 9 --------- 2 files changed, 19 deletions(-) diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index 5f134feb3ba..a5e03202b88 100644 --- a/source3/auth/pass_check.c +++ b/source3/auth/pass_check.c @@ -261,16 +261,6 @@ NTSTATUS pass_check(const struct passwd *pass, } #endif -#ifdef HAVE_GETPRPWNAM - { - struct pr_passwd *pr_pw = getprpwnam(pass->pw_name); - if (pr_pw && pr_pw->ufld.fd_encrypt) { - if (set_this_crypted(pr_pw->ufld.fd_encrypt) == NULL) { - return NT_STATUS_NO_MEMORY; - } - } - } -#endif #ifdef HAVE_GETPWANAM { diff --git a/source4/auth/ntlm/auth_unix.c b/source4/auth/ntlm/auth_unix.c index 4cff61b60a9..169e9abf8b1 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 { -- 2.34.1