Tickets Longer Than Wanted?

John Hascall john at iastate.edu
Sat Dec 29 20:40:50 EST 2007


Given the following code snippet:

                krb5_creds rq;
                time_t now = time(NULL);
                memset(&rq, 0, sizeof(rq));
                rq.times.starttime = now;
                rq.times.endtime = now + 1024;
                rq.client = iasc->sc_k5_me;
                rq.server = server;
                k5_err = krb5_get_in_tkt_with_keytab(iasc->sc_k5_context, 0,
                                                     NULL, NULL, NULL,
                                                     iasc->sc_k5_keytab,
                                                     NULL, &rq, NULL);

Why am I getting tickets with a 1 day (86400 second) lifetime?
(I was trying to test with a short lifetime to see if some
ticket-renewing code was working correctly and waiting a day
to do each test is hopeless).


Thanks,
John



More information about the Kerberos mailing list