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

59 Commits

Author SHA1 Message Date
Andrew Bartlett
1862e904a8 s3-selftest Fix use of the 'fake DNS' file
This ensures we don't use netbios before the hosts file and that we do
fill in the fake DNS zone correctly for the way we invoke smbtorture4.
Currently this works because the realm in client.conf is "", if this
changes then this will need to change too (perhaps an additional
entry).

Andrew Bartlett
2011-04-07 14:35:36 +10:00
Andrew Bartlett
d84a8d5343 s3-selftest Add tests to show kerberos works across a password change
It is important that a machine account password change does not
invalidate existing tickets.

This is only for the default kerberos method with a password in
secrets.tdb.  The keytab based methods are still not tested.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr  6 05:24:48 CEST 2011 on sn-devel-104
2011-04-06 05:24:48 +02:00
Andrew Bartlett
747ebc118a s3-selftest names into DNS hosts file to avoid NBT lookups
NBT lookups cause trouble and variablity in 'make test', so it's much
better if we just use the fake DNS code.  This code is only used by
smbtorture4 at this time, but the other client tools are generally
told to contact by IP address.

We need to contact by name to test Kerberos, and this should make the
kerberos tests much more reliable.

Andrew Bartlett
2011-04-06 12:34:58 +10:00
Andrew Bartlett
6351dee4d8 s3-selftest Add testing of kerberos login
This uses a pre-calculated credentials cache, that should be valid
until 2036.

Andrew Bartlett
2011-04-04 19:48:57 +10:00
Andrew Bartlett
ffb6003302 s3-selftest Disable log rotation in 'make test' 2011-04-04 19:48:43 +10:00
Andrew Bartlett
c8bc7089f5 s3-selftest Add tests for security=server
Andrew Bartlett
2011-03-29 00:00:23 +02:00
Björn Baumbach
2bfe9d1772 s3:selftest: fix Samba3.pm deprecated idmap config
Replace deprecated idmap uid and gid option with new
idmap config * : range
2011-03-22 22:49:58 +01:00
Stefan Metzmacher
ce45027816 selftest/Samba3: use 'debug pid=yes'
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Mar 19 10:55:34 CET 2011 on sn-devel-104
2011-03-19 10:55:34 +01:00
Andreas Schneider
0a2251da54 selftest: Added ncalrpc dir to config.
Signed-off-by: Günther Deschner <gd@samba.org>
2011-03-08 11:41:29 +01:00
Andrew Bartlett
6c1ce36ec9 selftest pass in srcdir into Samba3 target module 2011-02-22 16:20:10 +11:00
Andrew Bartlett
a82d9e4e72 s3-selftest convert tests.sh to python
This should allow us a much better chance of invoking the subunit
wrappers in the right way, at the right level.

Andrew Bartlett
2011-02-22 16:20:10 +11:00
Andrew Bartlett
1650da8a99 Add tests for various s3 auth modes 2011-02-22 14:50:14 +11:00
Andreas Schneider
d0d5d59943 s3-smbd: Disable the endpoint mapper by default. 2011-02-02 12:44:20 +01:00
Jeremy Allison
86d06ad103 Fix "make test" - ensure nmbd runs with -S (log to stdout).
Also ensure nmbd socket directory isn't created (nmbd will create it).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 11 00:30:52 CET 2011 on sn-devel-104
2011-01-11 00:30:52 +01:00
Jeremy Allison
04987bd843 Explicitly set "nmbd: socket dir" in the test environment.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan  8 07:17:22 CET 2011 on sn-devel-104
2011-01-08 07:17:22 +01:00
Günther Deschner
a43a1d9226 s3-selftest: support differing VFSLIBDIR in autoconf and waf build.
With this change make test in the s3 waf build (w/o s4 smbtorture yet) works!

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Dec 13 13:06:05 CET 2010 on sn-devel-104
2010-12-13 13:06:05 +01:00
Günther Deschner
6a93be43dc s3-selftest: add WIN40 directory to print$ share.
Guenther
2010-11-29 15:35:19 +01:00
Jeremy Allison
ac0ffba004 Add test that detects problems in the SMB signing code when run through cli_write() (which doesn't use the new async methods).
Unfortunately, and I think due to the socket wrapper code, this doesn't
detect the failure on the build farm, but running the RW-SIGNING test
separately against a Samba or Windows server using signing does.

Jeremy.
2010-11-10 18:07:51 -08:00
Jeremy Allison
092507c65a Ensure we always have a mapped group for "Domain Users".
Needed for DC tests to pass with bugfix for bug #7777.

Jeremy.
2010-11-08 13:39:51 -08:00
Günther Deschner
9dd467b2d5 s3-selftest: add vfs_modulesdir variable for both test systems.
Guenther
2010-10-28 14:33:19 +00:00
Günther Deschner
505eaa9493 s3-selftest: enable smb2 torture tests against samba3.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Oct  5 14:38:07 UTC 2010 on sn-devel-104
2010-10-05 14:38:07 +00:00
Günther Deschner
9962462278 s3-selftest: rename printer "print4" to "lp".
This should trigger a false error condition in our code.

Guenther
2010-09-10 00:26:26 +02:00
Jelmer Vernooij
3c2b733698 selftest: Remove stop() method, not used anywhere. 2010-09-04 18:24:02 +02:00
Günther Deschner
433c08045e s3-selftest: do not remove nsswrapper environment when running smbtorture4.
Guenther
2010-08-26 18:36:41 +02:00
Stefan Metzmacher
1e8d025a3c selftest/Samba3: remove unused create_clientconf() function
metze
2010-06-17 09:11:58 +02:00
Günther Deschner
3854f0708e s3-selftest: Fix blackbox smbclient s3 tests during make selftest.
Guenther
2010-06-02 15:37:50 +02:00
Günther Deschner
a8d308faff s3-selftest: fix chmod commands in provisioning.
Guenther
2010-05-29 00:38:21 +02:00
Günther Deschner
5232ce56cd s3-selftest: make sure provisioned s3 looks the same in make selftest as in make test.
This fixes some tests that were previously failing.

Guenther
2010-05-29 00:12:15 +02:00
Günther Deschner
2a2de10ac6 s3-selftest: add print$ share with two arch dirs.
Guenther
2010-04-23 13:51:02 +02:00
Andreas Schneider
61106c0568 s3-selftest: Don't log to stdout, use logfiles instead.
The logging to the logfiles is more verbose and they can be found in
./st/dc/logs. If you still want to log to stdout start selftest with:

SMBD_OPTIONS="-S -d10" make selftest
2010-03-29 11:35:07 +02:00
Günther Deschner
d3a22fc62b s3-selftest: set "lpq cache time = 0" in server configuration.
This fixes currently broken spoolss tests.

Guenther
2010-03-26 23:01:19 +01:00
Günther Deschner
f84f653066 s3-selftest: move printing config to global section.
Guenther
2010-03-25 00:55:13 +01:00
Günther Deschner
20d73f768d s3-selftest: rearrange uid/gid calculation to achieve correct membership.
Guenther
2010-03-19 10:23:39 +01:00
Günther Deschner
a949c70ed8 s3-selftest: fix Samba3.pm provisioning after uid/gid changes.
Guenther
2010-03-18 15:12:07 +01:00
Günther Deschner
05cad2ea2f s3-selftest: make sure we do not have duplicate uids/gids in nsswrapper.
Also make sure we only add root user when needed, Jeremy please check.

Guenther
2010-03-18 15:08:27 +01:00
Günther Deschner
3efaf5e6ba s3-selftest: setup initial eventlog infrastructure.
Guenther
2010-03-17 22:59:20 +01:00
Günther Deschner
34ad5da5cd s3-selftest: include addprinter/deleteprinter command.
Guenther
2010-02-18 02:27:04 +01:00
Kai Blin
a4f21d5dc8 s3 selftest: Allow the enumeration of users and groups
This fixes the WINBINDD_GETPWENT test.
2010-01-14 15:18:34 +01:00
Günther Deschner
9ac7e78041 s3-selftest: forward NSS_WRAPPER_WINBIND_SO_PATH env to tests.
Guenther
2009-06-08 11:03:07 +02:00
Günther Deschner
df167ee771 s3-selftest: Fix invalid /etc/group file used with nss_wrapper.
Found by torture test.

Guenther
2009-05-30 09:43:28 +02:00
Günther Deschner
7a5475f098 s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group" script.
Guenther
2009-05-28 10:40:22 +02:00
Günther Deschner
e11f9b46c6 s3-selftest: add add and delete group scripts using nss_wrapper.
Guenther
2009-05-20 12:37:44 +02:00
Günther Deschner
94665adb48 s3-printing: Fix vlp testprinter application.
Jeremy, we cannot just access cache_path() here without calling lp_load and
friends as well as parsing configfile from the commandline in order to make
"make test/selftest" find the correct conffile with path, etc.

I just changed it to pass the target tdbfilename as an argument, ok ?

Guenther
2009-05-12 11:41:14 +02:00
Günther Deschner
6f4b5798c9 s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.
Guenther
2009-05-08 00:46:54 +02:00
Jelmer Vernooij
79177c1d36 Specify explicit path to vlp, for those not having vlp in $PATH. 2009-04-22 23:56:35 +02:00
Günther Deschner
18d475cea9 selftest: add a fake root user to nss_wrapper_passwd in s3.
Needed to make some server calls to get_root_nt_token() succeed.
make selftest/make test gurus, please check.

Guenther
2009-04-08 11:48:13 +02:00
Stefan Metzmacher
97a086d5c4 selftest/Samba3: Test smb signing against the member server
metze
2009-03-23 12:21:14 +01:00
Stefan Metzmacher
431fc718c1 selftest/Samba3: always use the same timeout for all servers
metze
2009-03-21 10:44:41 +01:00
Stefan Metzmacher
1ef206524d selftest/Samba3: use the same sequence of signals to shutdown samba3 as with the shell scripts
When we kill the timelimit process with SIGKILL, it can't kill its
children...

metze
2009-03-20 14:41:11 +01:00
Stefan Metzmacher
76a2d068f5 selftest: allow "skip" as max runtime for smbd, nmbd and winbindd
metze
2009-02-10 11:47:02 +01:00