tests/krb5: Fix including enc-authorization-data
commit254bd5ad6ed30df41a2178a58ff74eacb7491a97
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 26 Jul 2021 05:14:08 +0000 (26 17:14 +1200)
committerJule Anger <janger@samba.org>
Thu, 16 Sep 2021 08:07:12 +0000 (16 08:07 +0000)
tree87d7ea9e50ee707ca1ae7e8d5e67bc8b004a2ce5
parentd4c3e11e247a1e83182fe0689113b3c4294e63b3
tests/krb5: Fix including enc-authorization-data

Remove the EncAuthorizationData parameters from AS_REQ_create(), since
it should only be present in the TGS-REQ form. Also, fix a call to
EncryptedData_create() to supply the key usage when creating
enc-authorization-data.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817
(cherry picked from commit 67ff72395cec2e5170c0ebae8db416a1f226df72)
python/samba/tests/krb5/as_canonicalization_tests.py
python/samba/tests/krb5/compatability_tests.py
python/samba/tests/krb5/kdc_base_test.py
python/samba/tests/krb5/kdc_tests.py
python/samba/tests/krb5/raw_testcase.py
python/samba/tests/krb5/s4u_tests.py
python/samba/tests/krb5/simple_tests.py
python/samba/tests/krb5/xrealm_tests.py