]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Set the ‘report_canonical_client_name’ option in krb5.conf
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Tue, 20 Jan 2026 03:53:30 +0000 (16:53 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 21 Jan 2026 04:46:43 +0000 (04:46 +0000)
This will do something later when MIT Kerberos supports this option. For Heimdal
it shouldn’t make a difference.

Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Wed Jan 21 04:46:43 UTC 2026 on atb-devel-224

selftest/target/Samba.pm
selftest/target/Samba4.pm

index 075609c61f6db2d60d3ee565fdae53093a8f7ea2..338bf6bdee0973baf91f81ee89bbd2d77559908f 100644 (file)
@@ -370,6 +370,9 @@ $ctx->{krb5_conf_extra_options}
  clockskew = 5
  # To allow the FL 2000 DC to still work for now
  allow_rc4 = yes
+
+ # Report the canonical client name by default
+ report_canonical_client_name = yes
     ";
        }
 
index b0e9e3a0ef6f41a0f80aea333e6411cec6b87fbd..546c9c70db7595a5c9e20c6418601f5f2c5fd584 100755 (executable)
@@ -1895,6 +1895,9 @@ sub provision_fl2008r2dc($$$)
        krb5 acceptor report canonical client name = no
 ";
        my $extra_provision_options = ["--base-schema=2008_R2"];
+       my $extra_krb5_conf_options = "
+ report_canonical_client_name = no
+";
        my $ret = $self->provision($prefix,
                                   "domain controller",
                                   "dc7",
@@ -1907,7 +1910,8 @@ sub provision_fl2008r2dc($$$)
                                   undef,
                                   $extra_conf_options,
                                   "",
-                                  $extra_provision_options);
+                                  $extra_provision_options,
+                                  $extra_krb5_conf_options);
        unless (defined $ret) {
                return undef;
        }