]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix login so that it will properly handle forwarded creds;
authorSam Hartman <hartmans@mit.edu>
Mon, 27 Jul 1998 05:36:33 +0000 (05:36 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 27 Jul 1998 05:36:33 +0000 (05:36 +0000)
it didn't destroy the ccache, so that copying into the new ccache failed.  Also,
it didn't try to convert forwarded creds.
Remove marc's debugging printf in krlogin.c

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10751 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krlogin.c
src/appl/bsd/login.c

index 1ccedefd456485e146d5645a3ab1f33ca62981be..e25c6652a61824563eefd952f97232502e01f1fd 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul 26 23:46:36 1998  Sam Hartman  <hartmans@utwig.mesas.com>
+
+       * login.c (main): Allow krb524 conversion for forwarded tickets
+       (try_convert524): Don't check to see if we have tickets here; caller  does that and actually gets it right.
+
 1998-05-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * login.c (dolastlog): BSD 4.4 systems don't have lastlog.h, but
index 7c78032f22f56d210c46019f71121af175fe44a4..ae875f15cdece0833d34daef4cf9e664a0f1cb11 100644 (file)
@@ -1207,7 +1207,6 @@ void oob()
     
     recv(rem, &mark, 1, MSG_OOB);
 
-    printf("oob mark = %ux\n", mark);
 
     if (mark & TIOCPKT_WINDOW) {
        /*
@@ -1361,8 +1360,8 @@ fd_set readset, excset, writeset;
                {
                    int x;
                    
-                   if (!ioctl(rem, FIONREAD, &x))
-                       printf("ioctl(rem, FIONREAD) == %d\n", x);
+                   if (!ioctl(rem, FIONREAD, &x));
+
                }
 
                rcvcnt = rcmd_stream_read(rem, rcvbuf, sizeof (rcvbuf));
index d8b80bce581b4b8de7f78ed6697c44574ae5017d..c8017cc77b4028a905d02ffccfc7e1d99df09b31 100644 (file)
@@ -630,8 +630,6 @@ try_convert524 (kcontext, me)
     krb5_creds increds, *v5creds;
     CREDENTIALS v4creds;
 
-    if (!got_v5_tickets)
-       return 0;
 
     /* or do this directly with krb524_convert_creds_kdc */
     krb524_init_ets(kcontext);
@@ -849,7 +847,7 @@ void destroy_tickets()
 
     if (login_krb5_get_tickets) {
        if(!krb5_cc_default(kcontext, &cache))
-           krb5_cc_destroy (kcontext, cache);
+         krb5_cc_destroy (kcontext, cache);
     }
 #endif
 #ifdef KRB4_GET_TICKETS
@@ -1450,7 +1448,7 @@ int main(argc, argv)
 
 #if defined(KRB5_GET_TICKETS) && defined(KRB4_CONVERT)
     if (login_krb4_convert && !got_v4_tickets) {
-       if (got_v5_tickets)
+       if (got_v5_tickets||forwarded_v5_tickets)
            try_convert524 (kcontext, me);
     }
 #endif
@@ -1588,7 +1586,7 @@ int main(argc, argv)
 #endif /* KRB4_GET_TICKETS */
 
 #ifdef KRB5_GET_TICKETS
-    if (got_v5_tickets)
+    if (forwarded_v5_tickets)
        destroy_tickets();
     else
 #endif