1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

115 Commits

Author SHA1 Message Date
Andrew Tridgell
1252d6bdf4 wintest: remove reliance on hostname in /etc/hosts
- don't setwinvars() in test code
- use fully qualified names where possible
- don't delete named and rndc config
2010-11-24 16:42:52 +11:00
Andrew Tridgell
f207cc185f wintest: fixed interface handling and DNS forwarding
- allow for _IP vars on VMs
- resolve IPs using nmblookup
- forward DNS requests for windows domains
2010-11-24 16:42:52 +11:00
Andrew Tridgell
f6adad4d25 wintest: tidyups and new conf variables
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Nov 23 13:01:10 CET 2010 on sn-devel-104
2010-11-23 13:01:10 +01:00
Andrew Bartlett
95edbc382d wintest Evolve wintest to handle it's own BIND nameserver
The changes here start our own copy of BIND, listening on a new
interface that we create at the start of the script.  The user must
specify the IP address etc that this interface will have, and BIND and
Samba will bind to that interface only.

This means that we won't conflict with an existing BIND on the system,
so long as it isn't configured to listen on all interfaces.

We also auto-create the /etc/resolv.conf and restore it at the end of
the script, using the existing server value from the script as a
forwarder.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov 23 08:30:34 CET 2010 on sn-devel-104
2010-11-23 08:30:34 +01:00
Andrew Bartlett
be0f4129a1 wintest Improve wintest's handling of IP addresses and add more auto-setup
- Don't change the IP address if DHCP is not in use

   The main reason to 'fix' the IP is to get around Dynamic DNS issues caused
   by the DHCP server, if the VM is already on a fixed IP, it does not matter.

 - Set the maximum telnet connection limit to 1024

   This ensures that we can always make a new connection, regardless
   of the existing configuration.  We also catch more conditions when
   the server has restricted the number of connections, and try again.

 - Set the route after the connection drops out

   My WinXP box always wants to drop the default route

 - Set the DNS as a distinct step

   My WinXP box drops the connection when we set DNS servers

Andrew Bartlett
2010-11-23 07:46:07 +01:00
Andrew Bartlett
39c2fd1c64 wintest Explian that this is my KVM/libvirt configuration 2010-11-23 07:46:07 +01:00
Andrew Bartlett
41f1e3242c wintest example configuration file for a KVM based wintest
Andrew Bartlett
2010-11-23 07:46:07 +01:00
Andrew Bartlett
e77ea04872 wintest Allow substitute to cope with objects like pexpect.EOF
These are not strings, but may get passed into this function on the
way to pexpect.

Andrew Bartlett
2010-11-23 07:46:07 +01:00
Andrew Bartlett
5767ee9663 wintest Set the virtual machine IP to match it's dynamic IP, but don't use DHCP
The idea here is that the virtual machine stays on the address
allocated by DHCP, but is configured statically.  This avoids the need
to manually set the address on the host, but avoids the host being
instructed by DHCP not to do Dynamic DNS.

Andrew Bartlett
2010-11-23 07:46:07 +01:00
Andrew Bartlett
c251c45e7f wintest Force krb5.conf for BIND so we use the one generated for this test
This avoids needing to set the krb5.conf for the whole host to match
the test environment.

Andrew Bartlett
2010-11-23 07:46:07 +01:00
Andrew Tridgell
fcb7729c6c wintest: the start of a S3 testing script for wintest
this is just a skeleton at this stage.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Nov 19 06:03:55 CET 2010 on sn-devel-104
2010-11-19 06:03:55 +01:00
Andrew Tridgell
7bfc60e40c wintest: added del_files, write_file and casefold 2010-11-19 15:17:44 +11:00
Andrew Tridgell
8f1df57265 wintest: move conf files to conf/ 2010-11-19 15:17:44 +11:00
Andrew Tridgell
10c246567c wintest: rename test-howto.py to test-s4-howto.py
ready for test-s3.py
2010-11-19 15:17:43 +11:00
Andrew Tridgell
24e8bc5441 wintest: moved to top level
the plan is to expand wintest to test a lot more of Samba against
windows, including testing the Samba3 file server, winbind, nmbd etc
2010-11-19 15:17:43 +11:00