summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r1654: rename cli_ -> smbcli_Stefan Metzmacher1-756/+756
rename CLI_ -> SMBCLI_ metze (This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)
2007-10-10r1636: improved the negnowait test so it is standalone (taking advantage of ↵Andrew Tridgell1-4/+36
the async APIs) (This used to be commit 19c22760c699aa2b000f023ff6083055a27a83cb)
2007-10-10r1628: - fixed the comment on run_deferopen. (I also think that theAndrew Tridgell1-102/+65
deferopen test should probably be ripped out and redone, as it tests the wrong thing.) - removed some unused code - add progress printing to the pipe_number test - fixed the dir1 test to use deltree rather than trying to re-invent it itself (in a broken manner) - renamed all of the tests into catagories, so you can now run BASE-* for the base tests, and BENCH-* for the benchmarks. (This used to be commit 2e297be5c34086a42396acc3abf965f8dbd665cd)
2007-10-10r1617: Start working on the svcctl pipeJelmer Vernooij1-0/+1
(This used to be commit 518ff5f505446fee623365fd5bdfc75c0cb93d2a)
2007-10-10r1498: (merge from 3.0)Andrew Bartlett1-1/+1
Rework our random number generation system. On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork(). For other systems, we now only re-seed after a fork, and on startup. No need to do it per-operation. This removes the 'need_reseed' parameter from generate_random_buffer(). This also requires that we start the secrets subsystem, as that is where the reseed value is stored, for systems without /dev/urandom. In order to aviod identical streams in forked children, the random state is re-initialised after the fork(), at the same point were we do that to the tdbs. Andrew Bartlett (This used to be commit b97d3cb2efd68310b1aea8a3ac40a64979c8cdae)
2007-10-10r1481: add idl file and torture test dummiesStefan Metzmacher1-1/+1
for DRSUapi (the Active Directory Replication Protocol) I'll try to fill the idl file as part of a study project together with some other students... metze (This used to be commit 3fc9abcad712c4cc5c9879df0acaa5a19a3d8718)
2007-10-10r1470: Get the smb_trans2 structure out of the rap_cli_call struct.Volker Lendecke1-0/+1
Initial attempt at RAP server infrastructure. Look at rap_server.c for the dummy functions that are supposed to implement the core functionality. ipc_rap.c contains all the data shuffling. _rap_shareenum and _rap_serverenum2 in ipc_rap.c are (I think) regular enough to be auto-generated. I did not test all the corner cases yet, but nevertheless I would like some comments on the general style. Volker P.S: samba-3 smbclient now doesn't freak out anymore, although the results are not entirely correct :-) (This used to be commit 08140cc1a838b4eaa23c897b280a46c95b7ef3e0)
2007-10-10r1403: commit volkers initial RAP torture testStefan Metzmacher1-1/+2
we'll try to autogenerate the specific calls in future by pidl and create a new subsystem for the rap lib after that the server side will be added metze (This used to be commit f1bbde6bb4790f915c1fdbb53f6452c5ea454936)
2007-10-10r1402: we should prompt for a password if it's not given by -UStefan Metzmacher1-1/+0
metze (This used to be commit acde1358c940ed159a67e433e662c255103a1a02)
2007-10-10r1228: use int64_t instead of long longStefan Metzmacher1-3/+3
(jra: please use: void, char int, uint_t, [u]int<8|16|32|64>_t types in new code) metze (This used to be commit 626bb153c45405f93a96bc5019241af506fac163)
2007-10-10r1173: A quick little test to show that we cannot bind twice to a single ↵Andrew Bartlett1-0/+1
endpoint. Andrew Bartlett (This used to be commit e12ad47c69098b6865f5b10527aa44ff322e4b18)
2007-10-10r1123: Make all lp_ string functions return 'const char *'.Andrew Bartlett1-16/+16
Fix other 'const' warnings in the torture code. Andrew Bartlett (This used to be commit 5d39d7497f189da15d659b3f83b7314026040a15)
2007-10-10r1091: Added in timing tests for deferred opens. Added extra debug info to ↵Jeremy Allison1-0/+13
signing mistakes. Jeremy. (This used to be commit 5c3a2417cfe1bdbdfb35d933d49f77f6696790b3)
2007-10-10r1086: Add defer open test to check timeout on sharing violation open.Jeremy Allison1-0/+61
This has found some signing errors in the Samba3.0 implementation of the deferred open code. Still working on these... Jeremy (This used to be commit 0068cb12ef91515a95f17a1be7dfbc83fbb89eba)
2007-10-10r1041: - pulled the domain join code out of the netlogon test and made it a ↵Andrew Tridgell1-1/+2
separate utility function, to allow multiple torture tests to temporarily join a domain - fixed a session key size problem - added a schannel test suite - allow schannel to work with ncacn_ip_tcp (This used to be commit 36f05e4d575099fcb957b8a55781c38dcd2e1177)
2007-10-10r1039: Remove description of unexisting option.Jelmer Vernooij1-1/+0
(This used to be commit c085b1f94e42f6fc11e72344652019dde5036e60)
2007-10-10r962: convert 'unsigned' and 'unsigned int' to uint_tStefan Metzmacher1-7/+7
metze (This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
2007-10-10r961: convert 'uchar' to 'uint8_t'Stefan Metzmacher1-2/+2
metze (This used to be commit 9f914e4af99e18b469d4cf9d8b1514a2bd28ddec)
2007-10-10r960: convert 'unsigned int' to uint_t in the most placesStefan Metzmacher1-5/+5
metze (This used to be commit 18062d2ed9fc9224c43143c10efbf2f6f1f5bbe0)
2007-10-10r892: Actually add the NTLMSSP self-check torture code this time...Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 9df5cbbd7694202c17a7c47ed0469d6f80412c54)
2007-10-10r890: convert samba4 to use [u]int8_t instead of [u]int8Stefan Metzmacher1-2/+2
metze (This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
2007-10-10r889: convert samba4 to use [u]int16_t instead of [u]int16Stefan Metzmacher1-5/+5
metze (This used to be commit af6f1f8a01bebbecd99bc8c066519e89966e65e3)
2007-10-10r884: convert samba4 to use [u]int32_t instead of [u]int32Stefan Metzmacher1-12/+12
metze (This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2007-10-10r882: - create TORTURE_AUTH SUBSYSTEMStefan Metzmacher1-1/+1
- fix the build because of the missing torture/ntlmssp.c - this file should go into torture/auth/ ! metze (This used to be commit ad662fddcd1082d040b7c06ce809e0b4c441c1df)
2007-10-10r874: This patch is a pile of work on NTLMSSP:Andrew Bartlett1-0/+1
Samba's NTLMSSP code is now fully talloc based, which should go a long way to cleaning up the memory leaks in this code. This also avoids a lot of extra copies of data, as we now allocate the 'return' blobs on a caller-supplied context. I have also been doing a lot of work towards NTLM2 signing and sealing. I have this working for sealing, but not for the verifier (MD5 integrity check on the stream) which is still incorrect. (I can aim a rpcecho sinkdata from a Win2k3 box to my server, and the data arrives intact, but the signature check fails. It does however match the test values I have...). The new torture test is cludged in - when we get a unit test suite back, I'll happliy put it in the 'right' place.... Andrew Bartlett (This used to be commit 399e2e2b1149b8d1c070aa7f0d5131c0b577d2b9)
2007-10-10r863: Added test to ensure an open and locked file can be truncated by a ↵Jeremy Allison1-0/+72
second open. This was something the Samba3 server previously got wrong. Jeremy. (This used to be commit 2cb4ed271b87a5c145a5f3f64c7f82c9e73753a1)
2007-10-10r821: prompt user for password if not given by -U user%passStefan Metzmacher1-3/+15
and not as torture:password in smb.conf metze (This used to be commit 9de377a914292be19cdffd1020d613d50df7f4e6)
2007-10-10r741: Test from Volker in RAW-OPEN for truncating a file containing locks.Jeremy Allison1-1/+32
Also added the same ad-hoc test is LOCK7. Jeremy. (This used to be commit 6cb21ccda3cb420171e2d5afb3842a6be4bd4d18)
2007-10-10r386: Another torture test to survive.Volker Lendecke1-0/+66
Believe it or not, w2k3 returns ERRSRV:ERRbaduid DOS error code if you pass in a wrong vuid. We (Samba 3) currently return NT_STATUS_NETWORK_ACCESS_DENIED. Volker (This used to be commit 37221b81f124887ab3cb652f237067ff4b56151e)
2007-10-10r336: added a -X command line option to smbtorture to enable dangerous orAndrew Tridgell1-1/+6
possibly destructive tests. Use with care! Added IDL and test code for samr_Shutdown() and samr_SetDsrmPassword() (This used to be commit 84de0b7e58c69e0817b9d475de0895a54cc95927)
2004-03-26- moved some of the base tests into torture/basic/Andrew Tridgell1-0/+1
- added a CHARSET set of tests, which determines how the server deals with some specific charset issues related to UTF-16 support. Interestingly, Samba3 already passes all but one of these tests, because our incorrect UCS-2 and UTF-8 implementations where we don't check the validity of characters actually matches what Windows does! This means that adding UTF-16 support to Samba is going to be _much_ easier than we expected. (This used to be commit c8497a42364d186f08102224d5062d176ee81f5b)
2004-03-09added the -C option to smbtortureAndrew Tridgell1-16/+79
this option takes a filename containing a list of UNC names. When supplied to a torture test that uses multiple client connections the test will distribute the load across the listed UNC names. This allows you to use NBENCH effectively against a server that has multiple IP addresses, and spread the load among them. (This used to be commit e0d9502aa20e2e9a343274cd7f12e6ef2f49c104)
2004-03-09greatly improved NBENCH netbench simulatorAndrew Tridgell1-159/+29
- more accurate request simulation using Samba4 raw client library - now checks for correct status on all requests - timelimit based benchmarking, default of 600 seconds (This used to be commit a46c009c0459658784d7d7b3b0502dc20958043a)
2004-02-21added the simple HOLDCON torture test. This is used to establishAndrew Tridgell1-0/+56
hundreds of idle connections to the server, which can be used to simulate environments with large numbers of idle connections. (This used to be commit cfce9458a22e8b6da1a10bb338b287c3eab9a1fc)
2004-02-10Convert libcli routines to return NTSTATUS instead of BOOL. Again, theTim Potter1-191/+187
only users are smbclient and smbtorture. (This used to be commit 54cb508c78e5c1faa3ade46b46b165983c880d10)
2004-02-08Convert libcli routines to use cli_tree instead of cli_state. PortTim Potter1-657/+657
smbtorture to use the new interface. Part 2 will be to eliminate cli_state from smbtorture as this is now the only place where it is used. (This used to be commit db1cc96af62ea42837d60592877fc3f93cef143b)
2004-02-03This would appear to restore smbtorture to be able to use the syntaxAndrew Bartlett1-1/+3
documented in it's self-help for RPC tests. Andrew Bartlett (This used to be commit 49b52cdbfe26dd7afe74aeb4596a4fd34806dabe)
2003-12-15allow the specification of full dcerpc endpoint binding strings on theAndrew Tridgell1-125/+10
command line. This allows you to (for example) control signing/sealing of smbtorture RPC sessions (This used to be commit a73825eb496d5924012ea926fcbac8c956fe081e)
2003-12-15switch off the default of ntlmssp on rpc on smb as some windows pipesAndrew Tridgell1-1/+1
can't handle it (I'd switched it on while experimenting, and forgot to switch it off before committing) (This used to be commit 837d8f73a9601329cec0f885df84648a2a3c196d)
2003-12-14added auto-generation of the server side boilerplate code for eachAndrew Tridgell1-0/+11
pipe. The server side code gets generated as librpc/gen_ndr/ndr_NAME_s.c and gets included in the pipe module (This used to be commit bd3dcfe5820489a838e19b244266bd9126af5eb4)
2003-12-13add the ntlmssp calls back into smbtorture on rpc over tcp. The samba4Andrew Tridgell1-1/+1
rpc server doesn't do ntlmssp yet, so this breaks the tests, but that is the next step. (This used to be commit ebe29305af82553ef0197d1950b57f8ff8efa78b)
2003-12-13completed the linkage between the endpoint mapper and the dcerpcAndrew Tridgell1-1/+1
server endpoints. We can now successfully setup listening endpoints on high ports, then use our endpoint mapper redirect incoming clients to the right port. also greatly cleanup the rpc over tcp session handling. (This used to be commit 593bc29bbe0e46d356d001160e8a3332a88f2fa8)
2003-12-04* patch based on work by Jim Myers to unify the ioctl handling to beAndrew Tridgell1-6/+5
more like the other major SMB functions * added SMBntrename code (This used to be commit f2d3dc9893fa0e089c407fa16ce9ff13587e70cd)
2003-12-01started adding netlogon IDL and test suiteAndrew Tridgell1-0/+1
(This used to be commit 3d64eefb464d09fb6e84d6139f801887a278cf86)
2003-11-28the beginnings of an automated tool for working out IDL properties ofAndrew Tridgell1-0/+1
a pipe. I'm not sure how possible this will be without lots of human intervention, but its an interesting thing to try. (This used to be commit d5afe7c6a8651457da9438fcf0035c792701ac86)
2003-11-28added auto-generation of the IDL interface tables. This makes two lessAndrew Tridgell1-0/+4
places that need to be edited when someone adds a new IDL file. (This used to be commit ccd9ddeed679baa6cbb05ac728b381b50420e00f)
2003-11-27added an rpc scanner. This prints messages like this:Andrew Tridgell1-0/+5
uuid 82273fdc-e32a-18c3-3f78-827929dc23ea version 0x0000:0x0000 'eventlog' 24 calls available WARNING: local IDL defines 4 calls when all the WARNINGs are gone then we know we have all the calls :) (This used to be commit f5821b2468a0c46d0e5590de59562926d746c349)
2003-11-26by default sign RPC over TCP but not RPC over SMB. I will add command line ↵Andrew Tridgell1-4/+5
control soon (This used to be commit 215852116c1fb8c0d8ef559155a3dd55346f0c31)
2003-11-26show an error when the epmapper fails to find an interfaceAndrew Tridgell1-0/+2
(This used to be commit 448dead14dc9db2c429c78f0eed303c4513f5a47)
2003-11-26added auto-determination of the DCERPC over TCP port number by askingAndrew Tridgell1-7/+13
the servers endpoint mapper (This used to be commit 4abf5376b00f580eb69196e55a792cc7eb4c9880)