From: Karel Zak Date: Fri, 12 Aug 2011 09:18:03 +0000 (+0200) Subject: login: remove kerberos specific code X-Git-Tag: v2.21-rc1~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9677febc182dddf3e91104126132449d7ae542fb;p=thirdparty%2Futil-linux.git login: remove kerberos specific code The code has not been used ever. If you want to use kerberos then us PAM... Signed-off-by: Karel Zak --- diff --git a/login-utils/login.c b/login-utils/login.c index 966233669a..c02ce3b4f7 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -842,30 +842,6 @@ main(int argc, char **argv) p = crypt(pp, salt); setpriority(PRIO_PROCESS, 0, 0); -# ifdef KERBEROS - /* - * If not present in pw file, act as we normally would. - * If we aren't Kerberos-authenticated, try the normal - * pw file for a password. If that's ok, log the user - * in without issueing any tickets. - */ - - if (pwd && !krb_get_lrealm(realm,1)) { - /* - * get TGT for local realm; be careful about uid's - * here for ticket file ownership - */ - setreuid(geteuid(),pwd->pw_uid); - kerror = krb_get_pw_in_tkt(pwd->pw_name, "", realm, - "krbtgt", realm, DEFAULT_TKT_LIFE, pp); - setuid(0); - if (kerror == INTK_OK) { - memset(pp, 0, strlen(pp)); - notickets = 0; /* user got ticket */ - break; - } - } -# endif /* KERBEROS */ memset(pp, 0, strlen(pp)); if (pwd && !strcmp(p, pwd->pw_passwd))