]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: system-heimdal: workaround upstream "host" canon bug
authorIsaac Boukris <iboukris@samba.org>
Sat, 9 Nov 2019 15:36:32 +0000 (15:36 +0000)
committerChristof Schmitt <cs@samba.org>
Wed, 13 Nov 2019 17:49:38 +0000 (17:49 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14179

Signed-off-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/Samba.pm

index d933faba1d5a45650c44a47e0002fd4c60dd0418..c3a3a68b7b6396a2c7098d15440f26dfdd2a08ad 100644 (file)
@@ -252,6 +252,7 @@ sub mk_krb5_conf($$)
                                                 $ctx->{dnsname},
                                                 $ctx->{domain},
                                                 $ctx->{kdc_ipv4});
+       my $lc_domain = lc($ctx->{domain});
        print KRB5CONF "
 #Generated krb5.conf for $ctx->{realm}
 
@@ -263,6 +264,11 @@ sub mk_krb5_conf($$)
  forwardable = yes
  allow_weak_crypto = yes
 
+ name_canon_rules=as-is:realm=$ctx->{realm}
+ name_canon_rules=as-is:realm=$ctx->{dnsname}
+ name_canon_rules=as-is:realm=$ctx->{domain}
+ name_canon_rules=as-is:realm=$lc_domain
+
  # We are running on the same machine, do not correct
  # system clock differences
  kdc_timesync = 0