From: Stefan Metzmacher Date: Fri, 4 Nov 2022 10:23:07 +0000 (+0000) Subject: selftest: samba-ktest-mit also needs $ENV{KRB5RCACHETYPE} = "none" X-Git-Tag: talloc-2.4.0~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ba10b97d3aa50f89f01bb038d98a8086d409c3e;p=thirdparty%2Fsamba.git selftest: samba-ktest-mit also needs $ENV{KRB5RCACHETYPE} = "none" We need to pass --mitkrb5 to selftest.pl in all cases we use system mit kerberos not only when we also test the kdc. We can't use a replay cache in selftest verifies the stat.st_uid against getuid(). BTW: while debugging this on ubuntu 22.04 I exported KRB5_TRACE="/dev/stderr", which means we get tracing into the servers log file and into selftest_prefix/subunit for the client... Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/selftest/wscript b/selftest/wscript index dd25f595a1d..435f19ccc11 100644 --- a/selftest/wscript +++ b/selftest/wscript @@ -256,10 +256,13 @@ def cmd_testonly(opt): if not CONFIG_SET(opt, 'HAVE_RESOLV_CONF_SUPPORT'): env.OPTIONS += " --use-dns-faking" + if CONFIG_GET(opt, 'USING_SYSTEM_KRB5'): + env.OPTIONS += " --mitkrb5" + if CONFIG_GET(opt, 'USING_SYSTEM_KRB5') and CONFIG_GET(opt, 'MIT_KDC_PATH'): - env.OPTIONS += " --mitkrb5 --exclude=${srcdir}/selftest/skip_mit_kdc" + env.OPTIONS += " --exclude=${srcdir}/selftest/skip_mit_kdc" if CONFIG_GET(opt, 'HAVE_MIT_KRB5_PRE_1_20'): - env.OPTIONS += " --mitkrb5 --exclude=${srcdir}/selftest/skip_mit_kdc_pre_1_20" + env.OPTIONS += " --exclude=${srcdir}/selftest/skip_mit_kdc_pre_1_20" env.FILTER_XFAIL += " --expected-failures=${srcdir}/selftest/"\ "knownfail_mit_kdc"