auth: Remove support for plaintext auth on systems that use getprpwnam()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Jan 2014 02:42:33 +0000 (15:42 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Apr 2014 08:13:12 +0000 (10:13 +0200)
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>
source3/auth/pass_check.c
source4/auth/ntlm/auth_unix.c

index 5f134feb3ba5a5e8abb048f17fa26895a13da992..a5e03202b88b7d5db2aadef42a5158915827e3c3 100644 (file)
@@ -261,16 +261,6 @@ NTSTATUS pass_check(const struct passwd *pass,
        }
 #endif
 
        }
 #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
        {
 
 #ifdef HAVE_GETPWANAM
        {
index 4cff61b60a9bdef782055efebdb5433f4cf7c1f9..169e9abf8b130354757b865cd09f1b1dd5575dac 100644 (file)
@@ -650,15 +650,6 @@ static NTSTATUS check_unix_password(TALLOC_CTX *ctx, struct loadparm_context *lp
        }
 #endif
 
        }
 #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
        {
 
 #ifdef HAVE_GETPWANAM
        {