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

99 Commits

Author SHA1 Message Date
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
Kai Blin
1f2518df5a s4 libcli: Add libcli_echo lib and torture test
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Dec  9 23:57:03 CET 2010 on sn-devel-104
2010-12-09 23:57:03 +01:00
Matthieu Patou
e5eaed0180 remove useless debug message :-) 2010-11-27 17:18:19 +01:00
Jelmer Vernooij
3483adaf0a selftest: Allow using ldb* utilities from system. 2010-11-27 03:48:20 +01:00
Matthieu Patou
90aa16122e Make log level of the server configurable in make test
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Nov 23 22:36:37 CET 2010 on sn-devel-104
2010-11-23 22:36:37 +01:00
Andrew Bartlett
e77e162b97 s4-selftest fix indentation 2010-11-08 18:15:23 +11:00
Andrew Tridgell
a162b1a2d8 s4-join: switch over to the new DC join in make test 2010-11-06 14:36:26 +11:00
Andrew Bartlett
b8a0eb749f s4-selftest Allow weak crypto so we can test DES-only behaviour.
Andrew Bartlett
2010-11-02 22:00:54 +11:00
Matthieu Patou
3cef97ad0e unit tests: remove trailling white spaces
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Oct 31 23:10:55 UTC 2010 on sn-devel-104
2010-10-31 23:10:55 +00:00
Matthieu Patou
fda0f614d5 unit tests: allow make test to correctly and quickly exit in case of problem while provisionning a test environment 2010-10-31 22:28:15 +00:00
Andrew Tridgell
a00657db75 s4-test: don't override modules dir
it is set correctly during the build
2010-10-30 23:49:02 +11:00
Kai Blin
b73a05e4e1 s4 net: rename to samba-tool in order to not clash with s3 net
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Oct 28 07:25:16 UTC 2010 on sn-devel-104
2010-10-28 07:25:16 +00:00
Andrew Bartlett
f4c82c621d s4-selftest Make GDB_PROVISION work again
gdb --args won't run the #!/usr/bin/evn python

Andrew Bartlett
2010-10-18 11:13:04 +00:00
Matthieu Patou
9d958ce582 build: make make tests SCREEN=1 work on freebsd 2010-10-10 16:03:35 +04:00
Andrew Tridgell
dfb664a182 s4-selftest: support 'make testenv SCREEN=1'
this can be used to start a test envioronment in screen windows.

Use:

  make testenv SCREEN=1 SELFTEST_TESTENV=dc

to launch just one environment (in this case, "dc")
2010-10-02 21:11:53 -07:00
Andrew Tridgell
507c413e48 s4-selftest: fixed up exit codes on signals for make test
also set $ENVNAME in launched servers
2010-10-02 21:11:52 -07:00
Andrew Tridgell
99f514f233 s4-selftest: use the full domain name in joins
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15 15:39:36 +10:00
Jelmer Vernooij
d286b1755c selftest: Error out rather than die() when setting up an environment
fails.
2010-09-14 17:24:04 +02:00
Andrew Tridgell
6bfe8b74aa s4-test: added a RODC to our testing
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-09 21:39:24 +10:00
Jelmer Vernooij
bde18c6218 selftest: Don't make printing the log output a side-effect of check_env(), do it manually. 2010-09-04 21:08:35 +02:00
Jelmer Vernooij
3c2b733698 selftest: Remove stop() method, not used anywhere. 2010-09-04 18:24:02 +02:00
Jelmer Vernooij
7154e93b21 selftest/samba4: Remove references to Samba34.pm, which no longer
exists.
2010-09-04 18:18:55 +02:00
Andrew Tridgell
b7060c7c5c s4-selftest: try DNS before bcast in selftest
this better reflects real usage
2010-09-02 13:37:08 +10:00
Kamen Mazdrashki
d15a7d9099 s4-testenv: Synchronize DCs after 'net vampire'
During 'net vampire', vampired DC adds information in its own
database, se we need to force replicate vampired_dc to the
first DC to be sure everything is in sync prior starting tests
2010-08-28 23:38:58 +03:00
Stefan Metzmacher
de632de6ef selftest/Samba4: set dreplsrv:periodic_startup_interval = 0
metze
2010-07-09 09:27:16 +02:00
Matthias Dieter Wallnöfer
b200d8a5ca s4:selftest - activate the lanman password changes
This is needed for a working "OemChangePasswordUser2" operation.
2010-06-28 14:51:05 +02:00
Andrew Bartlett
ff5ace20a2 s4:selftest Fix up netbios names for rpc_echo test 2010-06-23 20:10:12 +10:00
Andrew Bartlett
aba99e4464 s4:selftest For the moment the server role '2008_R2' is case sensitive 2010-06-23 20:10:11 +10:00
Andrew Bartlett
58a7b9af3f s4:selftest Change netbios aliases to shorter names.
This makes the netbios names more sensible, and the aliases shorter.

(the name localfl2008rc2dc7 was too long...)

Andrew Bartlett
2010-06-23 20:10:10 +10:00
Andrew Bartlett
1acd49c524 s4:selftest Add 2003 and 2008R2 test environments and tests
These tests were chosen particularly because they are known to test things
that vary across the functional levels.

Andrew Bartlett
2010-06-23 20:10:08 +10:00
Jelmer Vernooij
237ab66f6c selftest: Use scripted testparm. 2010-06-20 14:14:47 +02:00
Stefan Metzmacher
22eb6d7b6b selftest/Samba4: make the naming of passwords more consistent
metze
2010-06-17 09:12:00 +02:00
Stefan Metzmacher
f26c0e5456 selftest/Samba4: let localfl2000dc use 127.0.0.5
Now we have 127.0.0.6-10 available for more servers.

metze
2010-06-17 09:11:59 +02:00
Stefan Metzmacher
8aed54adbf selftest/Samba4: let localvampiredc use 127.0.0.2
metze
2010-06-17 09:11:59 +02:00