CVE-2022-37966 selftest: Allow krb5 tests to run against an IP by using the target_ho...
authorAndrew Bartlett <abartlet@samba.org>
Mon, 31 Oct 2022 23:34:57 +0000 (12:34 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2022 23:48:48 +0000 (00:48 +0100)
commite24512a20ae479ee1dce33d9e3587cc1e58ff4c2
tree35fd332cc0d130e7393dcff96ae3081d36e69aad
parente2ac180984e36f54999e970eafb0f05ed90b0fd4
CVE-2022-37966 selftest: Allow krb5 tests to run against an IP by using the target_hostname binding string

This makes it easier to test against a server that is not accessible via DNS.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit c7cd6889177e8c705bb637172a60a5cf26734a3f)
python/samba/drs_utils.py
python/samba/tests/krb5/kdc_base_test.py