]> 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)
committerJule Anger <janger@samba.org>
Thu, 11 Sep 2025 11:19:11 +0000 (11:19 +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>
(cherry picked from commit 5d2f60ae5aa96751b74901ae5384291ef338b152)

selftest/target/Samba4.pm

index e917f65fc36ae24447ea62bfbecaae5d2ae40056..1a86f7a07d511cfca968489be763c155c68bb482 100755 (executable)
@@ -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 {