From: Andrew Bartlett Date: Wed, 22 Jan 2014 02:16:52 +0000 (+1300) Subject: auth: Remove afs_auth() from pass_check.c and s4's auth_unix X-Git-Tag: ldb-1.1.17~153 X-Git-Url: http://git.samba.org/samba.git/?p=nivanova%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=3fa67e634696ac5b01a3de34892f4c0f978ff9e3 auth: Remove afs_auth() from pass_check.c and s4's auth_unix The waf build does not have code to detect support for AFS plaintext authentication, so this is dead code. Signed-off-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index 27e1c20cc9d..66cf8b8873a 100644 --- a/source3/auth/pass_check.c +++ b/source3/auth/pass_check.c @@ -64,37 +64,6 @@ static const char *set_this_crypted(const char *newcrypted) } #endif -#ifdef WITH_AFS - -#include -#include - -/******************************************************************* -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 diff --git a/source4/auth/ntlm/auth_unix.c b/source4/auth/ntlm/auth_unix.c index 86139b4409b..4cff61b60a9 100644 --- a/source4/auth/ntlm/auth_unix.c +++ b/source4/auth/ntlm/auth_unix.c @@ -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