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,14 +3424,19 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
if expect_pac:
|
||||
self.assertIsNotNone(old_pac, 'Expected PAC')
|
||||
|
||||
ad_relevant = self.der_encode(
|
||||
relevant_elems,
|
||||
asn1Spec=krb5_asn1.AD_IF_RELEVANT())
|
||||
if relevant_elems:
|
||||
ad_relevant = self.der_encode(
|
||||
relevant_elems,
|
||||
asn1Spec=krb5_asn1.AD_IF_RELEVANT())
|
||||
|
||||
authdata_elem = self.AuthorizationData_create(AD_IF_RELEVANT,
|
||||
ad_relevant)
|
||||
authdata_elem = self.AuthorizationData_create(
|
||||
AD_IF_RELEVANT,
|
||||
ad_relevant)
|
||||
else:
|
||||
authdata_elem = None
|
||||
|
||||
new_auth_data.append(authdata_elem)
|
||||
if authdata_elem is not None:
|
||||
new_auth_data.append(authdata_elem)
|
||||
|
||||
if expect_pac:
|
||||
self.assertIsNotNone(ad_relevant, 'Expected AD-RELEVANT')
|
||||
|
||||
Reference in New Issue
Block a user