I am using Python to connect to a SQL server database using pypyodbc and Microsoft ODBC provide for SQl server driver. It was looking for Kerberos ticket which I created by using following command:
$kinit [email protected]
But it gets expired everyday, how can I make it not to expire?
[sinXXXX4@uXXXXXXXd102 HealthCheck]$ klist
Ticket cache: FILE:/tmp/krb5cc_134202
Default principal: [email protected]
Valid starting Expires Service principal
03/09/2018 10:09:46 03/09/2018 20:09:46
krbtgt/[email protected]
renew until 03/10/2018 10:09:40
kinit -l
or look at thek5start
tool.kinit -R
. In your case, it looks like that buys you some extra time before having to re-authenticate.