]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: remove kerberos specific code
authorKarel Zak <kzak@redhat.com>
Fri, 12 Aug 2011 09:18:03 +0000 (11:18 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Oct 2011 21:17:15 +0000 (23:17 +0200)
The code has not been used ever. If you want to use kerberos then us
PAM...

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c

index 966233669a035c68f6a072e1be707518099b2cf1..c02ce3b4f74c78b146aa27b3656183eb2d7dc2d7 100644 (file)
@@ -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))