The code has not been used ever. If you want to use kerberos then us PAM... Signed-off-by: Karel Zak <kzak@xxxxxxxxxx> --- login-utils/login.c | 24 ------------------------ 1 files changed, 0 insertions(+), 24 deletions(-) diff --git a/login-utils/login.c b/login-utils/login.c index 9662336..c02ce3b 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)) -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html