[28954] in Kerberos
Tickets Longer Than Wanted?
daemon@ATHENA.MIT.EDU (John Hascall)
Sat Dec 29 20:41:44 2007
To: kerberos@mit.edu
Date: Sat, 29 Dec 2007 19:40:50 CST
Message-ID: <3040.1198978850@malison.ait.iastate.edu>
From: John Hascall <john@iastate.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu
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
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos