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

2939 Commits

Author SHA1 Message Date
Jelmer Vernooij
72251a1b7a Include test case name when reporting with subunit. This should make it possible to having a test fail against some test cases and success against other ones.
(This used to be commit 0af138a85b)
2008-05-23 16:19:00 +02:00
Stefan Metzmacher
2f653e814a RAW-STREAMS: better test the bahavior of streams on directories
Note: this has a samba3 specific code path, which we should fixed.

metze
(This used to be commit 5c5c866838)
2008-05-23 09:55:16 +02:00
Andrew Tridgell
1ea0466289 added a --noeas option to gentest_smb2
(This used to be commit 9d523debb7)
2008-05-22 22:46:43 +10:00
Andrew Tridgell
af82204f43 added testing of SMB2 setfileinfo in gentest_smb2
(This used to be commit c38658c6c0)
2008-05-22 15:44:13 +10:00
Andrew Tridgell
80527a0c68 added EAs in the generated SMB2 create operation
(This used to be commit 607bf6a946)
2008-05-22 15:35:52 +10:00
Andrew Tridgell
ae629621da added --maskindexing and qfileinfo testing
- added --maskindexing to mask the 0x2000 noindex bit in file
   attributes
 - added testing of qfileinfo in gentest_smb2
(This used to be commit 3883a7286f)
2008-05-22 14:51:32 +10:00
Andrew Tridgell
61e78a2c61 minor cleanup in SMB2 getinfo test
(This used to be commit b139b47107)
2008-05-22 14:50:36 +10:00
Andrew Tridgell
8f599b3781 added SMB2 gentest generation of SMB2 echo packets
(This used to be commit 8f7cfa5d2e)
2008-05-22 13:43:04 +10:00
Andrew Tridgell
7ba8dca590 fixes to the SMB2 lock test after recent SMB2 locking changes
(This used to be commit de7626e1c2)
2008-05-22 13:14:36 +10:00
Andrew Tridgell
aed93a238e fixed SMB2 flush call, and added flush to gentest_smb2
(This used to be commit c52fe1fe1c)
2008-05-21 22:51:21 +10:00
Andrew Tridgell
4d39976ddd fixed SMB2 locking
- SMB2 locking is different in several ways from SMB locking. To fix
  it properly we will need a new generic mapping structure for
  locking, but for now do a best effort mapping

- added locking to gentest_smb2
(This used to be commit ea6d9cf602)
2008-05-21 22:12:20 +10:00
Andrew Bartlett
59105620dc Correct an assertion in the testsuite.
Andrew Bartlett
(This used to be commit c3eeae2ea6)
2008-05-21 14:49:47 +10:00
Andrew Bartlett
52a3c96a89 Extend the NBT-DGRAM torture test again.
Andrew Bartlett
(This used to be commit f415484640)
2008-05-21 14:28:17 +10:00
Andrew Bartlett
f67156fc92 Extend the 'netlogon' CLDAP and NBT implementation.
This now handles checking if the user exists, including validating the
ACB mask on the user.

This would be a nasty security hole, if Kerberos did not already
expose this information anonymously...

Andrew Bartlett
(This used to be commit 441b286c00)
2008-05-21 12:37:36 +10:00
James Peach
9a975a868e smbtorture: Add RAW-BENCH-TCON benchmark.
Add a simple test to benchmark the rate at which a server can accept
new tree connections. You can tune the length of time to run the
benchmark for and the number of parallel connections to make.
(This used to be commit ea3f4b9305)
2008-05-20 11:35:32 -07:00
Volker Lendecke
276fa76fa9 Change wks password in rpc-bench-schannel1
Prove that a workstation password change does not affect existing schannel
connections
(This used to be commit f72dc52ccc)
2008-05-20 13:06:05 +02:00
Andrew Tridgell
cd167fd44b Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit e360be0b99)
2008-05-20 15:35:49 +10:00
Andrew Tridgell
5ca6f42510 added read and write handlers. Fixed --analyse
(This used to be commit c05ed7bb9a)
2008-05-20 15:16:53 +10:00
Andrew Tridgell
430f4ef666 specify which server failed to deltree
(This used to be commit aa9108374f)
2008-05-20 13:37:40 +10:00
Andrew Tridgell
fc267b0510 first version of gentest_smb2. Only generates create and close so far.
(This used to be commit 634a4bbd98)
2008-05-20 11:59:43 +10:00
Andrew Tridgell
f8f0cc985b moved these util functions into libcli
(This used to be commit b2f1154bc3)
2008-05-20 11:59:18 +10:00
Andrew Bartlett
aa90730e0c Revert addition of 'mailslot' parameter.
It turns out that the mailslot name (and a useful private prointer) is
provided in the struct dgram_mailslot_handler.

Andrew Bartlett
(This used to be commit e17804b885)
2008-05-20 11:54:50 +10:00
Andrew Tridgell
9551d4027d Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit ffbd222d65)
2008-05-20 11:37:23 +10:00
Andrew Bartlett
343fea32cc Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Fix config.mk due to changing syntax.

Conflicts:

	source/libcli/config.mk
	source/nbt_server/config.mk
(This used to be commit 6a1c76f29f)
2008-05-20 08:03:35 +10:00
Andrew Tridgell
03eb236f20 Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit 733937e87a)
2008-05-19 11:40:25 +10:00
Andrew Tridgell
66cbf7eb59 added mkdir to SMB2 proxy
(This used to be commit 1323aab11f)
2008-05-19 11:39:16 +10:00
Jelmer Vernooij
32dfdae009 Move IDL build script to rpc directory, make various bits and pieces easier to use externally.
(This used to be commit 8328ff7641)
2008-05-19 02:03:00 +02:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b5211994)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f)
2008-05-18 19:54:27 +02:00
Andrew Bartlett
d975cd9d8c Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 60579269d1)
2008-05-17 21:16:22 +10:00
Andrew Bartlett
24264e9acb Modify the LDAP-CLDAP test for better coverage.
This fixes up some compiled in constants and checks a couple more NT
versions.

Andrew Bartlett
(This used to be commit ca1b3fe3ad)
2008-05-17 20:52:23 +10:00
Andrew Bartlett
4f557d7954 Show that the NTLOGON and NETLOGON mailslots are *very* similar.
Rework the mailslot infrustructure to cope, passing down the mailslot
name so that we can implement both in the same callback function.

Andrew Bartlett
(This used to be commit 89fdd77891)
2008-05-17 13:24:29 +10:00
Andrew Bartlett
ceb2e20f7d Test the use of the domain SID on the NETLOGON mailslot
Interestingly, despite these packets being very similar, this fails on
NTLOGON - no reply is received.

Andrew Bartlett
(This used to be commit 25ab0ad0a0)
2008-05-17 12:39:38 +10:00
Volker Lendecke
54e4fa66d4 Make rpc-bench-schannel1 use two wks accounts if --option=torture:multijoin=true
(This used to be commit fc3bc3c4a8)
2008-05-16 15:54:10 +02:00
Volker Lendecke
12df140671 Fix two C++ warnings
(This used to be commit f75f95931c)
2008-05-16 15:54:04 +02:00
Stefan Metzmacher
7350ddeabf torture: add RPC-BENCH-SCHANNEL1 test
This tests SamLogonEx() calls on multiple (smb) connections
in parallel. Sadly the smb connect needs to be serialized
because of the reset on zero VC style behavior of windows.

Call it like this:
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 RPC-BENCH-SCHANNEL
or
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 -k no RPC-BENCH-SCHANNEL \
	--option="torture:nprocs=4" --option="torture:timelimit=1" \
	--extra-user SUB1\\sub1user%testsecret --extra-user SUB1\\sub1user%testsecret
or ...

Later we should add more tests, maybe using only one smb connection
and different netlogon pipes.

We should also test using the DCERPC_PFC_FLAG_CONC_MPX flag and just one
rpc connection.

DCERPC_PFC_FLAG_CONC_MPX /* supports concurrent multiplexing of a single connection.*/

metze
(This used to be commit 901426c24c)
2008-05-16 15:53:49 +02:00
Volker Lendecke
ef6fd2d46d In torture_leave_domain, say what account was deleted
(This used to be commit a9a0f24f72)
2008-05-16 15:40:29 +02:00
Andrew Tridgell
c7d7577fb9 private -> private_data for struct smb2_request
(This used to be commit 67290e0ad6)
2008-05-16 15:03:58 +10:00
Andrew Bartlett
58e7f253ea Rework the CLDAP and NBT netlogon requests and responses.
This now matches section 7.3.3 of the MS-ATDS specification, and all
our current tests pass against windows.  There is still more testing
to do, and the server implementation to complete.

Andrew Bartlett
(This used to be commit 431d0c0396)
2008-05-16 13:03:01 +10:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065)
2008-05-10 23:46:51 +02:00
Jelmer Vernooij
08ad86ad3d Revert "Remove copy of torture file."
This reverts commit 89bfca2da2.
(This used to be commit c6c4349c44)
2008-05-10 23:38:56 +02:00
Jelmer Vernooij
d1183291d3 Remove copy of torture file.
(This used to be commit 89bfca2da2)
2008-05-10 22:26:14 +02:00
Jelmer Vernooij
7b45a4d7fa Merge branch 'v4-0-test' into v4-0-gmake3
Conflicts:

	source/auth/config.mk
	source/auth/gensec/config.mk
	source/torture/smbtorture.c
(This used to be commit edfd02e59b)
2008-05-10 18:08:00 +02:00
Jelmer Vernooij
d0096e90ba Fix installation of pidl perl files, torture pc file.
(This used to be commit 32da606e37)
2008-05-10 00:46:25 +02:00
Michael Adam
42059c7e76 torture: use dom_idx after determining it in samba3rpc.c:get_usr_handle()
Michael
(This used to be commit 334d76c355)
2008-05-06 15:27:33 +02:00
Tiago Batista
674d089bea Tiago Batista posted a patch to fix the build:
Trying to compile the latest git tree, I got some errors
"auth/pam_error.h not found" errors, it looks like it moved to
auth/ntlm/pam_errors.h.

Andrew Bartlett
(This used to be commit 95831a015a)
2008-05-06 08:12:03 +10:00
Jelmer Vernooij
aedaba990f Split up lcov target.
(This used to be commit 38f455e005)
2008-04-27 23:29:50 +01:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
2008-04-27 14:02:46 +01:00