1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

132 Commits

Author SHA1 Message Date
Andrew Bartlett
6917575fe3 selftest: skip plugin_s4_dc if we do not have ADS 2012-02-16 15:21:10 +11:00
Andrew Bartlett
22a2c46f84 selftest: Do not start up an already-running test environment
Otherwise we may re-provision the dc just because we started it via s3member or s4member
first.

Andrew Bartlett
2012-02-16 15:21:10 +11:00
Andrew Bartlett
e1f9fb79c7 selftest: Make plugin_s4_dc set the cached environment correctly 2012-02-16 15:21:10 +11:00
Andrew Bartlett
70f4a96c68 selftest: Allow setup_env() to signal that an environment name is unknown
This will allow us to skip samba4 environments that may be mentioned in
the source3/selftest/tests.py file.

Andrew Bartlett
2012-02-13 04:41:05 +01:00
Andrew Bartlett
eecf2ac4c8 selftest: Remove unused support for --exeext 2012-02-01 02:45:07 +01:00
Andrew Bartlett
8a4b5cdfea s4-selftest: Add test of RPC to a netbios alias
This tries to ensure our netbios lookup code is still run.

Andrew Bartlett
2011-12-13 23:42:05 +01:00
Stefan Metzmacher
b94b7a2fe1 selftest/Samba4: pass '--machinepass' to 'samba-tool domain join'
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Nov 29 11:00:42 CET 2011 on sn-devel-104
2011-11-29 11:00:42 +01:00
Kai Blin
ef4bda5c76 s4 dns: Turn on internal DNS server during testing 2011-11-17 08:42:45 +01:00
Stefan Metzmacher
0be0da9650 selftest/Samba4: allow schema updates
metze
2011-11-15 09:46:30 +01:00
Andrew Bartlett
862b81791e selftest: Remove the 'all' environment as it is just too slow to start up
Instead we start the 'dc' environment, and other environments are available as:
make testenv SELFTEST_TESTENV=fl2003dc

Andrew Bartlett
2011-11-08 02:58:06 +01:00
Stefan Metzmacher
aa70b7e0fc selftest/Samba4: use "server signing = on" for now
Otherwise the smb2.compound test fails as it doesn't work
with signing yet.

metze
2011-11-03 16:55:11 +01:00
Jeremy Allison
8c6ff21782 The xcopy test is used in unusual ways (via a different uid). Ensure we can cope with this. 2011-10-28 12:16:43 -07:00
Amitay Isaacs
7ca0bed38d s4-selftest: Add tests for RPC dnsserver
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20 05:53:05 +02:00
Andreas Schneider
031519cec9 selftest: Fix plugin_s4_dc configuration.
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 12 13:50:10 CEST 2011 on sn-devel-104
2011-10-12 13:50:10 +02:00
Andrew Bartlett
8c33036a37 s4-subdomain more work on sub-domain join
we can now create a subdomain of an existing windows domain using:

  samba-tool domain join sub.domain.dns.name subdomain

The ordering of the creation of the key records is quite tricky,
especially for the NTDSDSA object

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2011-09-13 15:38:02 +10:00
Andrew Bartlett
4d74fb7d47 selftest: add test for subdomain support 2011-09-13 15:37:12 +10:00
Andrew Bartlett
1f181476b4 selftest: Allow a krb5.conf to be generated that covers multiple realms 2011-08-26 14:06:07 +02:00
Andrew Bartlett
43c0863333 set passdb backend in Samba4 make test environments too
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Aug 22 03:46:21 CEST 2011 on sn-devel-104
2011-08-22 03:46:21 +02:00
Stefan Metzmacher
81d3f92155 selftest:Samba4: test --domain-critical-only in provision_vampire_dc()
This way only only replicate critical objects during the initial join
as DC, then we'll replicate the whole domain while 'samba' is running.

metze

Signed-off-by: Andrew Tridgell <tridge@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Aug 12 14:07:50 CEST 2011 on sn-devel-104
2011-08-12 14:07:50 +02:00
Stefan Metzmacher
da7d22dade selftest:target/Samba4: use the correct configuration in setup_vampire_dc()
This allows "TDB_NO_FSYNC=1 make -j test TESTS=vampire" to work.

metze

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-12 12:39:05 +02:00
Andrew Tridgell
6b3a12b0f4 s4-test: use standard process model for 'dc' server
this provides us with both 'standard' and 'single' process models in
selftest, ensuring that we test the standard process model in the
build farm

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Aug 12 11:06:50 CEST 2011 on sn-devel-104
2011-08-12 11:06:50 +02:00
Andrew Bartlett
4806eda36c selftest: use the s4 winbindd in plugin_s4_dc test
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:03 +10:00
Björn Baumbach
e3fc1aba86 selftest: use "state directory" and "cache directory" options
instead of "state dir" and "cache dir"

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jul 21 10:06:32 CEST 2011 on sn-devel-104
2011-07-21 10:06:32 +02:00
Andrew Tridgell
e593939da1 samba-tool: fixed some more calls to samba_tool join to be 'domain join' 2011-07-21 11:44:38 +10:00
Andrew Tridgell
18995cde5c s4-fault: changed to use %d for PID, instead of %PID%
this matches the s3 behaviour

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-07-13 12:51:05 +02:00
Stefan Metzmacher
2ba1444fbd selftest/Samba4: use "state dir" for persistent files
metze
2011-07-12 14:58:38 +02:00
Stefan Metzmacher
1c5390e39f selftest/Samba4: setup "state dir" and "cache dir"
metze
2011-07-12 14:58:37 +02:00
Michael Adam
b6f25650f1 selftest: eliminate perl warnings (my $cmd masks earlier definition...) 2011-07-04 20:02:07 +02:00
Stefan Metzmacher
d7cc8571f7 s4:selftest: test ntvfs.cifs with s4u2proxy
Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jun 24 20:35:30 CEST 2011 on sn-devel-104
2011-06-24 20:35:30 +02:00
Stefan Metzmacher
a7d2492cf7 selftest/Samba4: correctly upper case the netbiosname variable
metze
2011-06-24 19:09:28 +02:00
Andrew Bartlett
abb72170e4 selftest: Remove %PROG% argument from 'panic action'
The debugger or script will need to work out the binary from the PID,
as %PROG% support was lost when the setup_fault() code was merged
between Samba3 and Samba4.

Andrew Bartlett
2011-06-24 13:08:04 +10:00
Andrew Tridgell
0e1d7eb429 s4-testparm: testparm is now part of samba_tool 2011-06-06 12:26:11 +10:00
Matthieu Patou
fae229aa3d selftest: Allow to test samba4 with ACL on read set
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-05-21 14:39:12 +04:00
Andrew Bartlett
f4d9b40d7f selftest: Make the ncalrpc dir common between Samba4 and Samba3.
This also avoids creating the directory, as the startup routines will
create it with the correct permissions.

Andrew Bartlett
2011-05-08 19:00:29 +02:00
Andrew Bartlett
eae061293b selftest: Add plugin_s4_dc environment
This environment uses pdb_samba4 and auth_samba4 to plug these
critical subsystems into a mixed Samba3/Samba4 DC, in a similar way to
the 'Franky' proposal.

Andrew Barltett
2011-05-08 19:00:28 +02:00
Andrew Bartlett
1c5cc4a2d1 s4-selftest: Don't use a hardcoded target DC name
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 28 07:34:31 CEST 2011 on sn-devel-104
2011-04-28 07:34:31 +02:00
Andrew Bartlett
fb5e1f4a65 selftest: s3member admember test to confirm s3/s4 interopability
This checks that Samba3 joins Samba4 correctly, and allows NTLM and
Kerberos logons from a live Samba4 DC.

This needs the common krb5.conf generation logic, and because we now
override KRB5_CONFIG we must update ktest to have a valid krb5.conf.

Based on an original patch by metze

Andrew Bartlett
2011-04-28 05:30:21 +02:00
Andrew Bartlett
2a9a9454e8 selftest: Make bindir_path much less complex
There is no need to pass it as a function pointer, just put it in 'Samba.pm'.

Andrew Bartlett
2011-04-27 11:22:07 +10:00
Andrew Bartlett
dfb490d551 selftest Consolidate server wall clock time limits
This helps ensure that we don't have the Samba3 servers stop before
the full make test is finished.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 19 09:03:07 CEST 2011 on sn-devel-104
2011-04-19 09:03:07 +02:00
Andrew Bartlett
5189cfca4e selftest: move warning about invalid environments up to selftest.pl 2011-04-19 16:13:42 +10:00
Andrew Bartlett
790ceec78b s4-selftest Rename Samba4 'member' test environment to s4member
This will avoid a conflict with the s3 'member' environment.

Andrew Bartlett
2011-04-19 14:26:59 +10:00
Andrew Bartlett
55cb125312 s4-selftest: Move Samba4 test interfaces out of the way of the Samba3 tests.
This avoids a conflict when we merge the test suites.
2011-04-19 14:26:59 +10:00
Andrew Bartlett
aed450df0b s4-selftest: Avoid duplicating the servers IP in the provision() sub arguments.
This should make it easier to change the IP address.

Andrew Bartlett
2011-04-19 14:26:58 +10:00
Andrew Bartlett
8f58b13579 s4-selftest: Stop creating netbios aliases everywhere
This reduces some of the clutter when we have quite so many server
configurations starting.

The one case that actually needs an alias (dc environment for the
test_nmblookup.sh test) will still keep it.

Andrew Bartlett
2011-04-19 14:26:58 +10:00
Andrew Bartlett
831955ddf2 selftest: Provide a single bindir_path function across all targets
This will allow a mapping to be made between things like smbtorture4
-> smbtorture that is correct for the different build environments.

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Stefan Metzmacher
02c6f9d0d9 selftest:Samba4: setup DC_* variables in provision_rpc_proxy()
The "rpc_proxy" should behave like "member", just with a different
configuration.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Apr  7 15:52:25 CEST 2011 on sn-devel-104
2011-04-07 15:52:25 +02:00
Stefan Metzmacher
e90d5ab561 selftest/target/Samba4: regenerate the krb5.conf after the rodc join
The RODC should be used as KDC, which will forward requests to the RWDC
if required.

metze
2011-03-04 21:19:05 +01:00
Stefan Metzmacher
a8b3958f38 selftest/target/Samba4: splitout a mk_krb5_conf() function
metze
2011-03-04 21:19:05 +01:00
Andrew Tridgell
b038aca5c8 s4-loadparm: removed "setup directory" option
the correct setup directory is known at both build time and install
time using dyn_SETUPDIR, so we no longer have any need to override it

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
6484da4859 s4-test: allow make test to work from top level directory
this fixes the path assumptions in Samba4 make test to allow it to
work from the top level directory.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00