1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

python:tests/dns_tkey: test TKEY with gss-tsig, gss.microsoft.com and invalid algorithms

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 740bda87a80b97816d892e8f7aae28759f6916ec)
This commit is contained in:
Stefan Metzmacher 2024-05-29 16:41:12 +02:00 committed by Jule Anger
parent c7a936ecd2
commit 501a25a1f0
2 changed files with 22 additions and 2 deletions

View File

@ -55,11 +55,28 @@ class TestDNSUpdates(DNSTKeyTest):
self.server_ip = server_ip
super().setUp()
def test_tkey(self):
"test DNS TKEY handshake"
def test_tkey_gss_tsig(self):
"test DNS TKEY handshake with gss-tsig"
self.tkey_trans()
def test_tkey_gss_microsoft_com(self):
"test DNS TKEY handshake with gss.microsoft.com"
self.tkey_trans(algorithm_name="gss.microsoft.com")
def test_tkey_invalid_gss_TSIG(self):
"test DNS TKEY handshake with invalid gss-TSIG"
self.tkey_trans(algorithm_name="gss-TSIG",
expected_rcode=dns.DNS_RCODE_REFUSED)
def test_tkey_invalid_gss_MICROSOFT_com(self):
"test DNS TKEY handshake with invalid gss.MICROSOFT.com"
self.tkey_trans(algorithm_name="gss.MICROSOFT.com",
expected_rcode=dns.DNS_RCODE_REFUSED)
def test_update_wo_tsig(self):
"test DNS update without TSIG record"

View File

@ -1,2 +1,5 @@
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_update_tsig_bad_keyname.fl2008r2dc
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_update_tsig_bad_mac.fl2008r2dc
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_tkey_gss_microsoft_com.fl2008r2dc
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_tkey_invalid_gss_MICROSOFT_com.fl2008r2dc
^samba.tests.dns_tkey.__main__.TestDNSUpdates.test_tkey_invalid_gss_TSIG.fl2008r2dc