diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2014-01-22 15:16:52 +1300 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2014-04-15 10:13:12 +0200 |
| commit | 3fa67e634696ac5b01a3de34892f4c0f978ff9e3 (patch) | |
| tree | d3e6c77e59635c26cc1affca9a3bdd9c5fc5afb5 /source3/auth | |
| parent | 94f0716fffdd4a29055ff47943cae85106e42847 (diff) | |
| download | samba-3fa67e634696ac5b01a3de34892f4c0f978ff9e3.tar.gz samba-3fa67e634696ac5b01a3de34892f4c0f978ff9e3.tar.xz samba-3fa67e634696ac5b01a3de34892f4c0f978ff9e3.zip | |
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 <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/auth')
| -rw-r--r-- | source3/auth/pass_check.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index 27e1c20cc9..66cf8b8873 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 <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 |
