diff options
author | Karel Zak | 2011-08-12 11:18:03 +0200 |
---|---|---|
committer | Karel Zak | 2011-10-26 23:17:15 +0200 |
commit | 9677febc182dddf3e91104126132449d7ae542fb (patch) | |
tree | 788f24176e5fa334ee3bd2bda529dc325451b467 /login-utils/login.c | |
parent | agetty: pass hostname to login(1) (diff) | |
download | kernel-qcow2-util-linux-9677febc182dddf3e91104126132449d7ae542fb.tar.gz kernel-qcow2-util-linux-9677febc182dddf3e91104126132449d7ae542fb.tar.xz kernel-qcow2-util-linux-9677febc182dddf3e91104126132449d7ae542fb.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'login-utils/login.c')
-rw-r--r-- | 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 966233669..c02ce3b4f 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)) |