summaryrefslogtreecommitdiff
path: root/source4/torture
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r2676: add a test of the reference counting logic in the SAMR server into theAndrew Tridgell1-86/+31
RPC-SAMR torture test. This closes the samr connection before working on a open domain handle. The server is supposed to know that the open domain handle still holds a reference to the connection, so the connection remains valid even though it has been closed. (This used to be commit f31e5d56e364ce8ab76fdb20b30e179b458b2ffa)
2007-10-10r2671: we're getting too many errors caused by the talloc_realloc() API notAndrew Tridgell2-3/+6
taking a context (so when you pass a NULL pointer you end up with memory in a top level context). Fixed it by changing the API to take a context. The context is only used if the pointer you are reallocing is NULL. (This used to be commit 8dc23821c9f54b2f13049b5e608a0cafb81aa540)
2007-10-10r2660: - converted the libcli/raw/ library to use talloc_increase_ref_count()Andrew Tridgell2-5/+17
rather than manual reference counts - properly support SMBexit in the cifs and posix backends - added a logoff method to all backends With these changes the RAW-CONTEXT test now passes against the posix backend (This used to be commit c315d6ac1cc40546fde1474702a6d66d07ee13c8)
2007-10-10r2659: removed some extraneous debug msgsAndrew Tridgell1-3/+0
(This used to be commit 770aa7e01e68df1fd8538c5b19b63a8545bb0355)
2007-10-10r2649: - used some cpp tricks to make users of talloc() and talloc_realloc()Andrew Tridgell1-0/+3
to get auto-naming of pointers very cheaply. - fixed a couple of memory leaks found with the new tricks A typical exit report for smbd is now: talloc report on 'null_context' (total 811 bytes in 54 blocks) auth/auth_sam.c:334 contains 20 bytes in 1 blocks struct auth_serversupplied_info contains 498 bytes in 33 blocks UNNAMED contains 8 bytes in 1 blocks lib/data_blob.c:40 contains 16 bytes in 1 blocks iconv(CP850,UTF8) contains 61 bytes in 4 blocks iconv(UTF8,CP850) contains 61 bytes in 4 blocks iconv(UTF8,UTF-16LE) contains 67 bytes in 4 blocks iconv(UTF-16LE,UTF8) contains 67 bytes in 4 blocks UNNAMED contains 13 bytes in 1 blocks which is much better than before (This used to be commit 6e721393d03afd3c2f8ced8422533547a9e33342)
2007-10-10r2645: converted the NTLMSSP code to the new style of tallocAndrew Tridgell1-4/+4
(This used to be commit b378aae95d4001c4cf4e6e59ed80ee1bd55382ee)
2007-10-10r2628: got rid of some warnings and converted a few more places to use ↵Andrew Tridgell1-1/+1
hierarchical memory allocation (This used to be commit 26da45a8019a2d6c9ff2ac2a6739c7d0b42b00de)
2007-10-10r2593: don't crash if the server doesn't know that 0 count searches mean 1Andrew Tridgell1-2/+6
(This used to be commit 640ced453092a5c5f3ffe7ee0fe4be804a4ced14)
2007-10-10r2589: a simple test to help find security related memory leaks. Run ↵Andrew Tridgell3-1/+71
valgrind on smbd with --show-leak=yes and --show-reachable=yes to track them down. (This used to be commit 7b23624a0f50c29346e8b1c4057f1c21f3be6d5a)
2007-10-10r2552: Character set conversion and string handling updates.Andrew Bartlett2-11/+9
The intial motivation for this commit was to merge in some of the bugfixes present in Samba3's chrcnv and string handling code into Samba4. However, along the way I found a lot of unused functions, and decided to do a bit more... The strlen_m code now does not use a fixed buffer, but more work is needed to finish off other functions in str_util.c. These fixed length buffers hav caused very nasty, hard to chase down bugs at some sites. The strupper_m() function has a strupper_talloc() to replace it (we need to go around and fix more uses, but it's a start). Use of these new functions will avoid bugs where the upper or lowercase version of a string is a different length. I have removed the push_*_allocate functions, which are replaced by calls to push_*_talloc. Likewise, pstring and other 'fixed length' wrappers are removed, where possible. I have removed the first ('base pointer') argument, used by push_ucs2, as the Samba4 way of doing things ensures that this is always on an even boundary anyway. (It was used in only one place, in any case). (This used to be commit dfecb0150627b500cb026b8a4932fe87902ca392)
2007-10-10r2551: Add const.Andrew Bartlett1-2/+2
Andrew Bartlett (This used to be commit 066789a479ed7b36041e3455caac01e5c9244dc0)
2007-10-10r2547: Another place to use convert_string_talloc().Andrew Bartlett1-7/+5
Andrew Bartlett (This used to be commit 4904d814c0efd870ac42c790028a8448984e4749)
2007-10-10r2536: This is a classic case for the use of our new talloc code, andAndrew Bartlett1-9/+8
convert_string_talloc(). Andrew Bartlett (This used to be commit 79776006b37fa9df0586711edaba5335467461ac)
2007-10-10r2532: Don't run EnumValue torture test for now (idl needs fixing, doesn't ↵Jelmer Vernooij1-1/+2
compile) (This used to be commit c98fbfe2507ef08cfd2ed5486f1122b6010939f9)
2007-10-10r2520: - finished implementing the server side of the old style search requestsAndrew Tridgell1-7/+7
(This used to be commit 4e4859c06b9de5fe60ebd17cfb09eed480b79ec1)
2007-10-10r2501: The AddMemberToAlias test doesn't need a domain_handle.Tim Potter1-5/+2
(This used to be commit 90a9e754db91647607eef3a2ccb08d3651fca9df)
2007-10-10r2500: disable the sleep test in echo until we have a win32 echo server thatAndrew Tridgell1-6/+5
does Microsoft style async rpc serving (This used to be commit 050dcd9b95576e1a9c0cb2144fc01c690853abc0)
2007-10-10r2489: Rename account_flags in EnumDomainAliases() to acct_flags.Tim Potter1-1/+1
(This used to be commit a0e571a9ddc01b8e90a93d591aec4b10c9926818)
2007-10-10r2469: complete overhaul of the old-style RAW_SEARCH_ calls (the OS/2 andAndrew Tridgell1-3/+18
original core level calls). The old code was completely wrong in many respects. also fixed the EA_SIZE level in the server extended the RAW-SEARCH test suite to test the new code properly (This used to be commit 71480271ad84b57fcdde264a54bb2408cf783255)
2007-10-10r2468: print out the names of the fault codes#Stefan Metzmacher1-4/+4
metze (This used to be commit a0c2a3a5d4fba2a6a78cc3d167cbc19941fb43dc)
2007-10-10r2465: modify the autoidl hack to work for DRSUAPIAndrew Tridgell1-3/+27
(This used to be commit 59b3d68bd047231d72fa3299e7289aef25702e9b)
2007-10-10r2462: added a test for the error code for no matching filenameAndrew Tridgell1-0/+18
(This used to be commit 7bfbbc38ed9aac93d288aba183f7a925f170f81e)
2007-10-10r2458: Rename policy handle parameters for the SAMR pipe. Parameters nowTim Potter4-134/+133
have the handle type implied by the parameter name. There are four types of handle: connect, domain, user and group handles. The various samr_Connect functions return a connect handle, and the samr_OpenFoo functions return a foo handle. There is one exception - the samr_{Get,Set}Security function can take any type of handle. Fix up all C callers. (This used to be commit 32f0f3154a8eb63de83145cbc8806b8906ccdc3e)
2007-10-10r2457: expanded the RAW-SEARCH test to test for what happens when a directoryAndrew Tridgell1-6/+233
is modified while being searched, and whether the server always returns sorted directory listings. (This used to be commit e23514c78f1f15a61dadaa5c4de5de7cd0593ea0)
2007-10-10r2443: check return code of event_loop_once() to catch thet cases where the ↵Stefan Metzmacher2-2/+6
server closes the connetion and we got EBADF from select() and event_loop_once() fails metze (This used to be commit 9c0e50a6f3d628156b4543d5ded89e06be696f64)
2007-10-10r2442: remove unused event_loop_once() callStefan Metzmacher1-2/+0
metze (This used to be commit 3cd63030b1433ddc3ae89e2f45c6f7a27b7d1756)
2007-10-10r2387: fix segfaultStefan Metzmacher1-0/+1
seems that [in,out,ref] vars should be initialize the [in] and [out] part metze (This used to be commit 47e613a5a1063d8e93e831252db03f19cdb08590)
2007-10-10r2382: considerably improved the Bind and Unbind IDL and test code. We canAndrew Tridgell1-178/+30
now do these two calls successfully against w2k3. note that you must use ncacn_ip_tcp, and must enable dcerpc sealing, otherwise w2k3 refuses the first DRSUAPI call. (This used to be commit 7d3e34742277f264e41739721dbf08036eebb598)
2007-10-10r2284: Thanks to some great detective work by tridge, NTLM2 signing now works.Andrew Bartlett1-2/+2
This means that 'require NTLMv2 session security' now works for RPC pipe signing. We don't yet have sealing, but it can't be much further. This is almost all tridge's code, munged into a form that can work with the GENSEC API. This commit also includes more lsakey fixes - that key is used for all DCE-RPC level authenticated connections, even over CIFS/ncacn_np. No doubt I missed something, but I'm going to get some sleep :-) Andrew Bartlett (This used to be commit a1fe175eec884280fb7e9ca8f528134cf4600beb)
2007-10-10r2274: fixed some popt option clashes between smbtorture and the standard ↵Andrew Tridgell1-6/+6
options (This used to be commit b7db909e8e8194366ff93f68adbd68a8f1dcbe9a)
2007-10-10r2273: disable the async samr tests unless -X option is used, as windowsAndrew Tridgell1-0/+5
fails this and it kills the pipe, so we can't run the rest of the test (This used to be commit bdb49f01b75aa5b3a458ee4629e867bee1d03358)
2007-10-10r2271: fixed the popt argument array for smbtorture, getting rid of someAndrew Tridgell1-20/+19
clashes metze, please note that the 'val' field in popt is not the default value, its the integer to switch on in the argument loop. (This used to be commit 0f3b01bebadc9f949a663dc40280945536bc86fd)
2007-10-10r2267: we no longer need to force the domain join to happen on NCACN_NP - itAndrew Tridgell1-6/+5
now works on NCACN_IP_TCP as well. (This used to be commit 9cc33d936407255b5c5fb9bde37d918cf268c784)
2007-10-10r2266: yay! LSA session keys on TCP now work!Andrew Tridgell1-150/+0
(This used to be commit f6ea24296acaaadcd2d59740bc88ef1a93fb1c28)
2007-10-10r2220: Updates to the NETLOGON torture test. This copes with 'long'Andrew Bartlett1-125/+146
passwords - where the LM hash is invalid. Also, we now drive all the logon levels and validation levels from the outer loop, so we can check the expected return values (rather than overwriting them). Andrew Bartlett (This used to be commit f7f7c3de23ffb042f7cf7b4fa42b6b18c205719d)
2007-10-10r2217: Ad-hoc tests to allow me to work out the correct error codeJeremy Allison1-2/+128
for the bad path algorithm. Jeremy. (This used to be commit d2d32d8f2b7a4a3e62f505adae787b42f80309bb)
2007-10-10r2209: patch from volker to add EnumPorts spoolss IDL and test codeAndrew Tridgell1-0/+66
the ndr->offset=0; stuff is ugly. We need a better way to handle this. (This used to be commit e909bfa708aeceeaa37faa6f6dff0274f8ac7920)
2007-10-10r2207: this bug caued valgrind to consume infinite memory till the kernel ↵Andrew Tridgell1-0/+1
killed it :( (This used to be commit 60a88595e23eb2953edfacf9dfc9fe3f08ec5eeb)
2007-10-10r2203: delete the key after testing, so as not to clutter the server with ↵Andrew Tridgell1-0/+2
random keys (This used to be commit d98ed1fbe52b547c461f1b6a859504e96e0e3ee7)
2007-10-10r2202: don't close the smb pipe after the puzzle testAndrew Tridgell1-2/+0
(This used to be commit 591ee2308c95982caf5453d35ebf6530208037fd)
2007-10-10r2201: removed an exit I accidentially left inAndrew Tridgell1-1/+0
(This used to be commit e1d13631f0163b69401a07c51e449ea1e32239bf)
2007-10-10r2200: solved another piece of the lsakey puzzle - the session key for lsaAndrew Tridgell3-10/+164
encryption on ncacn_ip_tcp is a fixed buffer! I don't yet know what the buffer is, but this code proves its the same buffer for different w2k3 servers and different user passwords, plus it is independent of the negotiated NTLMSSP session key. (This used to be commit 05fd38f3cfd9476bc1cf7fed838a942a75569c0a)
2007-10-10r2199: the unknown 16 bit number in lsa_LookupPrivDisplayName() is a languageAndrew Tridgell1-1/+8
ID, so the client can choose what language they get the privilege description in. this is the first time I've seen a language ID on the wire in CIFS. (This used to be commit e99d88915fbfcfb50b04330cd1a32b90222fbca3)
2007-10-10r2186: setting [ref] output pointers in dcerpc calls is pointless. Removed itAndrew Tridgell1-4/+0
for test_LookupPrivDisplayName (This used to be commit 2d8f4005926e15dcb56a6501091a56475a99712d)
2007-10-10r2185: add a callback function to the dcerpc async APIAndrew Tridgell1-4/+20
also add a demonstration of its use in the netlogon async example (This used to be commit f2a0438c66b999189c1a2ad726e91efd0748eb90)
2007-10-10r2182: force the torture test domain join to happen on SMB to prevent theAndrew Tridgell2-6/+39
LSAKEY problem holding up other tests (This used to be commit ad8d54fd7dd93cb984d23acecfc1c611b63a5d58)
2007-10-10r2181: an rpc async test on the netlogon pipeAndrew Tridgell1-0/+71
(This used to be commit 4c370c3c917f399497f936a2037ea2868b2196d2)
2007-10-10r2179: two more lsa torture tests from Richard Renard. Thanks!Andrew Tridgell1-1/+70
(This used to be commit 25f85efd75bd54ff142027a8741edaa94725ca9a)
2007-10-10r2170: if we don't have a native iconv library then we can't build this testAndrew Tridgell1-1/+10
(This used to be commit 5cf9333f6021479d62cc99475f4fb9a19588f928)
2007-10-10r2165: generalise the charset torture test to add testing of CP850Andrew Tridgell1-30/+39
potentially we can test any charset (This used to be commit e754d0cbcab7cb5a65322e5bbbd1d2a8bcdf5375)