Renew a Kerberos TGT or a TS from the local CCache using a TGS-REQ :param i: the ticket/sessionkey to renew.
(self, i, ip=None, additional_tickets=[], **kwargs)
| 2568 | ) |
| 2569 | |
| 2570 | def renew(self, i, ip=None, additional_tickets=[], **kwargs): |
| 2571 | """ |
| 2572 | Renew a Kerberos TGT or a TS from the local CCache using a TGS-REQ |
| 2573 | |
| 2574 | :param i: the ticket/sessionkey to renew. |
| 2575 | """ |
| 2576 | ticket, sessionkey, upn, spn = self.export_krb(i) |
| 2577 | |
| 2578 | res = krb_tgs_req( |
| 2579 | upn, |
| 2580 | spn, |
| 2581 | sessionkey=sessionkey, |
| 2582 | ticket=ticket, |
| 2583 | ip=ip, |
| 2584 | renew=True, |
| 2585 | additional_tickets=additional_tickets, |
| 2586 | **kwargs, |
| 2587 | ) |
| 2588 | if not res: |
| 2589 | return |
| 2590 | |
| 2591 | self.import_krb(res, _inplace=i) |
| 2592 | |
| 2593 | def iter_tickets(self): |
| 2594 | """ |
nothing calls this directly
no test coverage detected