mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
tests/krb5: Rename modify_requester_sid_time() to modify_lifetime()
...now that the requester SID parameter is optional. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
748fa19a26
commit
9b1bd267f0
@ -644,9 +644,9 @@ class KpasswdTests(KDCBaseTest):
|
||||
|
||||
# Modify the ticket to add a requester SID and give it two minutes to
|
||||
# live.
|
||||
ticket = self.modify_requester_sid_time(ticket,
|
||||
lifetime=2 * 60,
|
||||
requester_sid=user_sid)
|
||||
ticket = self.modify_lifetime(ticket,
|
||||
lifetime=2 * 60,
|
||||
requester_sid=user_sid)
|
||||
|
||||
# Try to use that ticket to get a service ticket.
|
||||
service_creds = self.get_service_creds()
|
||||
@ -678,9 +678,9 @@ class KpasswdTests(KDCBaseTest):
|
||||
|
||||
# Modify the ticket to add a requester SID and give it two minutes and
|
||||
# ten seconds to live.
|
||||
ticket = self.modify_requester_sid_time(ticket,
|
||||
lifetime=2 * 60 + 10,
|
||||
requester_sid=user_sid)
|
||||
ticket = self.modify_lifetime(ticket,
|
||||
lifetime=2 * 60 + 10,
|
||||
requester_sid=user_sid)
|
||||
|
||||
# Try to use that ticket to get a service ticket.
|
||||
service_creds = self.get_service_creds()
|
||||
|
@ -4975,7 +4975,7 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
|
||||
return pac
|
||||
|
||||
def modify_requester_sid_time(self, ticket, lifetime, requester_sid=None):
|
||||
def modify_lifetime(self, ticket, lifetime, requester_sid=None):
|
||||
# Get the krbtgt key.
|
||||
krbtgt_creds = self.get_krbtgt_creds()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user