diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-02-24 15:09:28 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-03-12 13:22:21 +1100 |
commit | ca67768b66758cadcc0e5e2f7544698b41c8f8ba (patch) | |
tree | 48b1c20e67834b87d745876ef95c45e2fa0a04f2 /selftest | |
parent | 8529b0afc1f56ba29ddcb5a4fdc62790868cfbe6 (diff) | |
download | samba-ca67768b66758cadcc0e5e2f7544698b41c8f8ba.tar.gz samba-ca67768b66758cadcc0e5e2f7544698b41c8f8ba.tar.bz2 samba-ca67768b66758cadcc0e5e2f7544698b41c8f8ba.zip |
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.
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/target/Samba4.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index 7a65847e21..9370a17838 100644 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -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") { |