From e88fdea199c65958473659a8c5ebebb98bbeb33b Mon Sep 17 00:00:00 2001 From: tw1sm Date: Sat, 11 May 2024 15:24:47 -0400 Subject: [PATCH] remove unneeded code --- examples/renewTGT.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/examples/renewTGT.py b/examples/renewTGT.py index 47645225a1..546497b4c6 100644 --- a/examples/renewTGT.py +++ b/examples/renewTGT.py @@ -157,18 +157,6 @@ def saveTicket(self, ticket, sessionKey): ccache = CCache() ccache.fromTGS(ticket, sessionKey, sessionKey) - creds = ccache.credentials[0] - service_realm = creds['server'].realm['data'] - service_class = '' - if len(creds['server'].components) == 2: - service_class = creds['server'].components[0]['data'] - service_hostname = creds['server'].components[1]['data'] - else: - service_hostname = creds['server'].components[0]['data'] - if len(service_class) == 0: - service = "%s@%s" % (service_hostname, service_realm) - else: - service = "%s/%s@%s" % (service_class, service_hostname, service_realm) logging.info('Saving ticket in %s' % self.__saveFileName) ccache.saveFile(self.__saveFileName)