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
+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
recv(rem, &mark, 1, MSG_OOB);
- printf("oob mark = %ux\n", mark);
if (mark & TIOCPKT_WINDOW) {
/*
{
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));
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);
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
#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
#endif /* KRB4_GET_TICKETS */
#ifdef KRB5_GET_TICKETS
- if (got_v5_tickets)
+ if (forwarded_v5_tickets)
destroy_tickets();
else
#endif