]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add tests for the "tkey-gssapi-credential" option
authorPetr Špaček <pspacek@isc.org>
Fri, 16 Apr 2021 16:05:43 +0000 (18:05 +0200)
committerPetr Špaček <pspacek@isc.org>
Fri, 23 Apr 2021 08:24:00 +0000 (10:24 +0200)
commitd0a16000dd4538e20d814e6a8d49fceff1ec1d13
treef27b1e3d1c0cb8b0bc122f29193ffa7c36a190b9
parentc92b2d4b300cdcfab112bd8712b48f8ed6d14da3
Add tests for the "tkey-gssapi-credential" option

Four named instances in the "nsupdate" system test have GSS-TSIG support
enabled.  All of them currently use "tkey-gssapi-keytab".  Configure two
of them with "tkey-gssapi-credential" to test that option.

As "tkey-gssapi-keytab" and "tkey-gssapi-credential" both provide the
same functionality, no test modifications are required.  The difference
between the two options is that the value of "tkey-gssapi-keytab" is an
explicit path to the keytab file to acquire credentials from, while the
value of "tkey-gssapi-credential" is the name of the principal whose
credentials should be used; those credentials are looked up in the
keytab file expected by the Kerberos library, i.e. /etc/krb5.keytab by
default.  The path to the default keytab file can be overridden using by
setting the KRB5_KTNAME environment variable.  Utilize that variable to
use existing keytab files with the "tkey-gssapi-credential" option.

The KRB5_KTNAME environment variable should not interfere with the
"tkey-gssapi-keytab" option.  Nevertheless, rename one of the keytab
files used with "tkey-gssapi-keytab" to something else than the contents
of the KRB5_KTNAME environment variable in order to make sure that both
"tkey-gssapi-keytab" and "tkey-gssapi-credential" are actually tested.

(cherry picked from commit 1746d2e84acee77ec88bf3f61eaa8f11cc1039a5)
bin/tests/system/conf.sh.in
bin/tests/system/conf.sh.win32
bin/tests/system/nsupdate/krb/setup.sh
bin/tests/system/nsupdate/ns10/named.conf.in
bin/tests/system/nsupdate/ns8/dns-other-than-KRB5_KTNAME.keytab [moved from bin/tests/system/nsupdate/ns8/dns.keytab with 100% similarity]
bin/tests/system/nsupdate/ns8/named.conf.in
bin/tests/system/nsupdate/ns9/named.conf.in
util/copyrights