summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/selftest/target/Samba.pm b/selftest/target/Samba.pm
index c30f6fe33ce..2d0378d1b92 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