From: Pavel Filipenský Date: Tue, 29 Jul 2025 09:19:07 +0000 (+0200) Subject: selftest: Add the short name for localvampiredc to hosts file X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=393e35dca2bb83492c879c9d044f2505daef377b;p=thirdparty%2Fsamba.git selftest: Add the short name for localvampiredc to hosts file BUG: https://bugzilla.samba.org/show_bug.cgi?id=15905 Signed-off-by: Pavel Filipenský Reviewed-by: Alexander Bokovoy (cherry picked from commit 5d2f60ae5aa96751b74901ae5384291ef338b152) --- diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index e917f65fc36..1a86f7a07d5 100755 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -869,7 +869,7 @@ nogroup:x:65534:nobody my $hostname = lc($ctx->{hostname}); open(HOSTS, ">>$ctx->{nsswrap_hosts}"); - if ($hostname eq "localdc") { + if ($hostname eq "localdc" || $hostname eq "localvampiredc") { print HOSTS "$ctx->{ipv4} ${hostname}.$ctx->{dnsname} $ctx->{dnsname} ${hostname}\n"; print HOSTS "$ctx->{ipv6} ${hostname}.$ctx->{dnsname} $ctx->{dnsname} ${hostname}\n"; } else {