mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
tests/krb5: Save account SPN
This is useful for testing delegation. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
0e232fa1c9
commit
bb58b4b58c
@ -285,6 +285,7 @@ class KDCBaseTest(RawKerberosTest):
|
||||
else:
|
||||
creds.set_workstation('')
|
||||
creds.set_dn(ldb.Dn(samdb, dn))
|
||||
creds.set_spn(spn)
|
||||
#
|
||||
# Save the account name so it can be deleted in tearDownClass
|
||||
self.accounts.add(dn)
|
||||
|
@ -365,6 +365,7 @@ class KerberosCredentials(Credentials):
|
||||
self.forced_salt = None
|
||||
|
||||
self.dn = None
|
||||
self.spn = None
|
||||
|
||||
def set_as_supported_enctypes(self, value):
|
||||
self.as_supported_enctypes = int(value)
|
||||
@ -467,6 +468,12 @@ class KerberosCredentials(Credentials):
|
||||
def get_dn(self):
|
||||
return self.dn
|
||||
|
||||
def set_spn(self, spn):
|
||||
self.spn = spn
|
||||
|
||||
def get_spn(self):
|
||||
return self.spn
|
||||
|
||||
|
||||
class KerberosTicketCreds:
|
||||
def __init__(self, ticket, session_key,
|
||||
|
Loading…
Reference in New Issue
Block a user