mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
tests/krb5: Provide ticket enc-part key to tgs_req()
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
f9284d8517
commit
f2f1f3a1e9
@ -1215,7 +1215,8 @@ class KDCBaseTest(RawKerberosTest):
|
||||
names=[service, target_name])
|
||||
|
||||
rep, enc_part = self.tgs_req(cname, sname, realm, ticket, key, etype,
|
||||
to_rodc=to_rodc)
|
||||
to_rodc=to_rodc,
|
||||
service_creds=target_creds)
|
||||
|
||||
service_ticket = rep['ticket']
|
||||
|
||||
|
@ -132,7 +132,8 @@ class KdcTgsTests(KDCBaseTest):
|
||||
names=["ldap", samdb.host_dns_name()])
|
||||
|
||||
(rep, _) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=self.get_dc_creds())
|
||||
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
@ -175,7 +176,8 @@ class KdcTgsTests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the service ticket
|
||||
|
@ -126,7 +126,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
@ -185,7 +186,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, mc.get_realm(), ticket, key, etype)
|
||||
cname, sname, mc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
@ -247,7 +249,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the service ticket
|
||||
@ -322,7 +325,7 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
expect_pac=False)
|
||||
service_creds=mc, expect_pac=False)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the service ticket
|
||||
@ -390,7 +393,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
@ -492,7 +496,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
@ -555,7 +560,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
@ -619,7 +625,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
@ -697,7 +704,7 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
expect_pac=False)
|
||||
service_creds=mc, expect_pac=False)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the service ticket
|
||||
@ -767,7 +774,8 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
|
||||
names=[mc.get_username()])
|
||||
|
||||
(rep, enc_part) = self.tgs_req(
|
||||
cname, sname, uc.get_realm(), ticket, key, etype)
|
||||
cname, sname, uc.get_realm(), ticket, key, etype,
|
||||
service_creds=mc)
|
||||
self.check_tgs_reply(rep)
|
||||
|
||||
# Check the contents of the pac, and the ticket
|
||||
|
Loading…
Reference in New Issue
Block a user