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

73 Commits

Author SHA1 Message Date
Jeremy Allison
3c9d24d7c3 Added final Steve French patch for "required" attributes with old
dir listings. Added regression test in smbtorture (in HEAD) also.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
e9392c4a2e Correct error message.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4e836c4ce2 Better error reporting on OPEN test.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4eeef6ef53 Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2307869798 nicer locking timeout test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
28d325227c make the LOCK1 test randomise the time for the blocking lock test 0001-01-01 00:00:00 +00:00
Jeremy Allison
95d22f18d7 Test how many pipes we can open.
Jeremy.
0001-01-01 00:00:00 +00:00
Richard Sharpe
6d52aa1fc8 Back out the wrong changes I made yesterday ... 0001-01-01 00:00:00 +00:00
Richard Sharpe
ba4d6c76aa Fix smbtorture so it can handle collisions etc ... 0001-01-01 00:00:00 +00:00
Andrew Tridgell
858fa7efc3 - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
0001-01-01 00:00:00 +00:00
Tim Potter
fd8b3009eb Fixed some compile warnings. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
30febde783 a dodgy fix for a dodgy race condition in smbtorture child startup 0001-01-01 00:00:00 +00:00
Jeremy Allison
6d6842abfa Tests for insane open semantics.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
15cb6267e2 Added 5 *NASTY* non-io open tests....
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ba6c3d65a5 Forgot torture hacks...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3b1b8ac435 Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5b04b5f1df Correctly increment offset in cli_smbwrite.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
76fe90343c the beginning of a test to determine and display a servers properties
just shows capabilities at the moment
0001-01-01 00:00:00 +00:00
Tim Potter
1f007d3ed4 Renamed get_nt_error_msg() to nt_errstr(). 0001-01-01 00:00:00 +00:00
Andrew Tridgell
965e23537c only try an ordinary file in lock6 0001-01-01 00:00:00 +00:00
Andrew Tridgell
3e69ea6846 expanded the lock6 test a bit to try lsarpc as well
this allows us to check that we refuse locking on pipes
0001-01-01 00:00:00 +00:00
Andrew Tridgell
568e1d7b43 added a LOCK6 test for weird lockingX lock type bits
warning! this test reboots w2k or wxp
0001-01-01 00:00:00 +00:00
Andrew Tridgell
9c44ad4e42 remove an unused variable 0001-01-01 00:00:00 +00:00
Jeremy Allison
bda1c31da6 Added another 2 delete on close tests. Now 10. Had to fix smbd to match...
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5ba4ba3633 Change xcopy test to use defined constants rather than magic hex
values so we can see what's going on.
Jeremy.
0001-01-01 00:00:00 +00:00
Herb Lewis
d3c593b120 fixed NBENCH test on IRIX (tridge) 0001-01-01 00:00:00 +00:00
Herb Lewis
c644ca6a66 make error codes match W2k advanced server sp2 0001-01-01 00:00:00 +00:00
Jeremy Allison
509ac24525 Found the mp3 problem - it's a generic class bug w.r.t. renaming.
Added a rename torture test to illustrate the problem.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
46b89bc997 added -k options for kerberos to smbtorture and locktest 0001-01-01 00:00:00 +00:00
Andrew Tridgell
64c0a5c4a0 handle clock skew in getatr test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f9e3b91f58 fixed -c option to NBENCH test 0001-01-01 00:00:00 +00:00
Andrew Tridgell
8095375623 added a "XCOPY" test that simulates the open calls made by xcopy /O
we currently fail this test
0001-01-01 00:00:00 +00:00
Andrew Tridgell
81fb8845e5 added a cli_qfilename() test to the trans2 tests 0001-01-01 00:00:00 +00:00
Andrew Tridgell
22be40b6b8 got rid of a silly '*' in printout 0001-01-01 00:00:00 +00:00
Andrew Tridgell
10ee1d22e6 - only show 1 cleanup msg per client
- show client count in progress
0001-01-01 00:00:00 +00:00
Andrew Tridgell
36f816a5e1 rewrote smbtorture to use the new dbench 2 format and methods 0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Tim Potter
1906903f06 Quieten some pointer cast warnings. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
a855dfb2e0 Update the NT_STATUS -> DOS error table.
This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
8f343beae7 Make a couple more of the warnings also be C comments 0001-01-01 00:00:00 +00:00
Andrew Bartlett
d879d2ffff A few changes to always output the erorr mapping even when the error was
'squashed' or the session setup succeeded.  (How the latter occurs I don't know).
0001-01-01 00:00:00 +00:00
Andrew Bartlett
d47e61eb46 Workaround some 'smarts' in Win2k.
Win2k kills off connections that have issued a negprot but havn't yet issued
a session setup when a second connection appears from the same host.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
da9444d98f Re-add bail on failure. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
27143900e7 fixed ERRMAPEXTRACT torture to work with win2k 0001-01-01 00:00:00 +00:00
Andrew Bartlett
95abb2473b Minor update to make the output 'real C'. (The output is intended to be a C
format table for inclusion back into Samba).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
778f5f77a6 Got medieval on another pointless extern. Removed extern struct ipzero
and replaced with two functions:

	void zero_ip(struct in_adder *ip);
	BOOL is_zero_ip(struct in_addr ip);
0001-01-01 00:00:00 +00:00
Andrew Bartlett
adc7a6048c Add a new torture test to extract a NT->DOS error map from an NT member of a
samba domain.

The PDC must be running a special authenticaion module that spits out NT errors
based on username.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e4fb073af0 fix maxfd test to start deleting at right file 0001-01-01 00:00:00 +00:00
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
441f9415b3 the CASETABLE torture target now generates the complete unicode
equivalence table for a server. This was inspired by the chargen win32
code from monyo.

This takes a *long* time to run against a Samba server due to the case
insensitive comparisons in the filesystem. That makes it a N^2
operation, and N is 64k. It is linear on NT.
0001-01-01 00:00:00 +00:00