]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Add the short name for localvampiredc to hosts file
authorPavel Filipenský <pfilipensky@samba.org>
Tue, 29 Jul 2025 09:19:07 +0000 (11:19 +0200)
committerPavel Filipensky <pfilipensky@samba.org>
Fri, 5 Sep 2025 12:38:28 +0000 (12:38 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15905

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
selftest/target/Samba4.pm

index 9635629d291e2936314a8dcb1f8ace0143db3824..8d30fefbab28f95c381b30525568414362990f9e 100755 (executable)
@@ -878,7 +878,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 {