tests/krb5: Request only supported encryption types in get_tgt()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 2 Mar 2023 01:46:27 +0000 (14:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:36 +0000 (01:07 +0000)
commit3b522e2352487cbc42bd77166217a67ba611d697
tree861e7d4ca074d7555156f96b23682b601ee10e00
parentd4d3f93470fa9c26a1ede32a036289731cc932cf
tests/krb5: Request only supported encryption types in get_tgt()

If the domain uses functional level 2003, calling get_tgt() would
request an AES256-encrypted ticket. The KDC would respond to that
request with incorrect etype-info, and were it not for many tests lying
(via client_as_etypes) about what etypes were supported, those tests
would fail pointlessly.

As this behaviour is not what get_tgt() is intended to test, we now only
request etypes that are actually supported.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/kdc_base_test.py