selftest: Only set clockskew to 5 seconds for MIT Kerberos
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Feb 2019 20:34:54 +0000 (09:34 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 13 Feb 2019 04:49:43 +0000 (05:49 +0100)
This was added in ac5427c6eba09134411f76a5e6f7e2643fa74eed as part of the MIT KDC
effort, but makes some tests much less reliable under high load.

As the Heimdal build does not need this, only specify for the MIT build.

Tested with an MIT AD DC build with:
 make test TESTS="samba3.raw.session samba3.smb2.session"

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Feb 13 05:49:43 CET 2019 on sn-devel-144

selftest/target/Samba.pm

index 3fe53f94a2c64f9c2d02eaa5882de52806e278fb..d74a4438ba48fba9379a232a0fc8c529a2a97d9c 100644 (file)
@@ -250,16 +250,22 @@ sub mk_krb5_conf($$)
  ticket_lifetime = 24h
  forwardable = yes
  allow_weak_crypto = yes
- # Set the grace clocskew to 5 seconds
- # This is especially required by samba3.raw.session krb5 and
- # reauth tests
- clockskew = 5
+
  # We are running on the same machine, do not correct
  # system clock differences
  kdc_timesync = 0
 
 ";
 
+       if (defined($ENV{MITKRB5})) {
+               print KRB5CONF "
+ # Set the grace clocskew to 5 seconds
+ # This is especially required by samba3.raw.session krb5 and
+ # reauth tests when not using Heimdal
+ clockskew = 5
+    ";
+       }
+
        if (defined($ctx->{krb5_ccname})) {
                print KRB5CONF "
  default_ccache_name = $ctx->{krb5_ccname}