mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
tests/krb5: Don't include empty AD-IF-RELEVANT
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:
committed by
Andrew Bartlett
parent
56ccdba54e
commit
1a08399cd8
@@ -3424,13 +3424,18 @@ class RawKerberosTest(TestCaseInTempDir):
|
|||||||
if expect_pac:
|
if expect_pac:
|
||||||
self.assertIsNotNone(old_pac, 'Expected PAC')
|
self.assertIsNotNone(old_pac, 'Expected PAC')
|
||||||
|
|
||||||
|
if relevant_elems:
|
||||||
ad_relevant = self.der_encode(
|
ad_relevant = self.der_encode(
|
||||||
relevant_elems,
|
relevant_elems,
|
||||||
asn1Spec=krb5_asn1.AD_IF_RELEVANT())
|
asn1Spec=krb5_asn1.AD_IF_RELEVANT())
|
||||||
|
|
||||||
authdata_elem = self.AuthorizationData_create(AD_IF_RELEVANT,
|
authdata_elem = self.AuthorizationData_create(
|
||||||
|
AD_IF_RELEVANT,
|
||||||
ad_relevant)
|
ad_relevant)
|
||||||
|
else:
|
||||||
|
authdata_elem = None
|
||||||
|
|
||||||
|
if authdata_elem is not None:
|
||||||
new_auth_data.append(authdata_elem)
|
new_auth_data.append(authdata_elem)
|
||||||
|
|
||||||
if expect_pac:
|
if expect_pac:
|
||||||
|
|||||||
Reference in New Issue
Block a user