1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s4:selftest Add file based DNS resolver to selftest environment

This will in future allow us to test 'net vampire' in the test
environment, using the file based DNS lookups to avoid us hitting real
DNS.
This commit is contained in:
Andrew Bartlett 2010-02-24 15:09:28 +11:00
parent 8529b0afc1
commit ca67768b66

View File

@ -458,6 +458,9 @@ sub provision_raw_prepare($$$$$$$)
$ctx->{prefix} = $prefix;
$ctx->{prefix_abs} = $prefix_abs;
$ctx->{dns_host_file} = "$ENV{SELFTEST_PREFIX}/dns_host_file";
$ctx->{server_role} = $server_role;
$ctx->{netbiosname} = $netbiosname;
$ctx->{netbiosalias} = $netbiosalias;
@ -569,7 +572,7 @@ sub provision_raw_step1($$)
winbindd privileged socket directory = $ctx->{winbindd_privileged_socket_dir}
ntp signd socket directory = $ctx->{ntp_signd_socket_dir}
winbind separator = /
name resolve order = bcast
name resolve order = bcast file
interfaces = $ctx->{interfaces}
tls dh params file = $ctx->{tlsdir}/dhparms.pem
panic action = $RealBin/gdb_backtrace \%PID% \%PROG%
@ -582,7 +585,8 @@ sub provision_raw_step1($$)
log level = $ctx->{server_loglevel}
lanman auth = Yes
rndc command = /bin/true
dns update command = /bin/true
dns update command = $ENV{SRCDIR_ABS}/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces --use-file=$ctx->{dns_host_file}
resolv:host file = $ctx->{dns_host_file}
";
if (defined($ctx->{sid_generator}) && $ctx->{sid_generator} ne "internal") {