]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: samba-ktest-mit also needs $ENV{KRB5RCACHETYPE} = "none"
authorStefan Metzmacher <metze@samba.org>
Fri, 4 Nov 2022 10:23:07 +0000 (10:23 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Nov 2022 11:01:37 +0000 (11:01 +0000)
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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/wscript

index dd25f595a1d16204103209123a1b52478dcdd13d..435f19ccc11cb4dd97220c78888bd255250a10bc 100644 (file)
@@ -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"