auth: Remove afs_auth() from pass_check.c and s4's auth_unix
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Jan 2014 02:16:52 +0000 (15:16 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Apr 2014 08:13:12 +0000 (10:13 +0200)
The waf build does not have code to detect support for AFS plaintext
authentication, 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 27e1c20cc9ddccf511369eb5c55afaf807a10c13..66cf8b8873ab3ede83f6dbb8e6dc3d6eeabccab8 100644 (file)
@@ -64,37 +64,6 @@ static const char *set_this_crypted(const char *newcrypted)
 }
 #endif
 
-#ifdef WITH_AFS
-
-#include <afs/stds.h>
-#include <afs/kautils.h>
-
-/*******************************************************************
-check on AFS authentication
-********************************************************************/
-static bool afs_auth(char *user, char *password)
-{
-       long password_expires = 0;
-       char *reason;
-
-       /* For versions of AFS prior to 3.3, this routine has few arguments, */
-       /* but since I can't find the old documentation... :-)               */
-       setpag();
-       if (ka_UserAuthenticateGeneral
-           (KA_USERAUTH_VERSION + KA_USERAUTH_DOSETPAG, user, (char *)0,       /* instance */
-            (char *)0,         /* cell */
-            password, 0,       /* lifetime, default */
-            &password_expires, /*days 'til it expires */
-            0,                 /* spare 2 */
-            &reason) == 0)
-       {
-               return (True);
-       }
-       DEBUG(1,
-             ("AFS authentication for \"%s\" failed (%s)\n", user, reason));
-       return (False);
-}
-#endif
 
 
 
@@ -167,10 +136,6 @@ static NTSTATUS password_check(const char *user, const char *password, const voi
 
        bool ret;
 
-#ifdef WITH_AFS
-       if (afs_auth(user, password))
-               return NT_STATUS_OK;
-#endif /* WITH_AFS */
 
 
 #ifdef OSF1_ENH_SEC
index 86139b4409b414ac12c440d68cea82b80afb0dbf..4cff61b60a9bdef782055efebdb5433f4cf7c1f9 100644 (file)
@@ -513,10 +513,6 @@ static NTSTATUS password_check(const char *username, const char *password,
 {
        bool ret;
 
-#ifdef WITH_AFS
-       if (afs_auth(username, password))
-               return NT_STATUS_OK;
-#endif /* WITH_AFS */
 
 
 #ifdef OSF1_ENH_SEC