From: Isaac Boukris Date: Sat, 9 Nov 2019 15:36:32 +0000 (+0000) Subject: selftest: system-heimdal: workaround upstream "host" canon bug X-Git-Tag: talloc-2.3.1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15ddd95d94688ed742a2965c4b269d7c84e2d858;p=thirdparty%2Fsamba.git selftest: system-heimdal: workaround upstream "host" canon bug BUG: https://bugzilla.samba.org/show_bug.cgi?id=14179 Signed-off-by: Isaac Boukris Reviewed-by: Christof Schmitt Reviewed-by: Andrew Bartlett --- diff --git a/selftest/target/Samba.pm b/selftest/target/Samba.pm index d933faba1d5..c3a3a68b7b6 100644 --- a/selftest/target/Samba.pm +++ b/selftest/target/Samba.pm @@ -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