summaryrefslogtreecommitdiff
path: root/source4/torture/local
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r12804: This patch reworks the Samba4 sockets layer to use a socket_addressAndrew Bartlett2-48/+70
structure that is more generic than just 'IP/port'. It now passes make test, and has been reviewed and updated by metze. (Thankyou *very* much). This passes 'make test' as well as kerberos use (not currently in the testsuite). The original purpose of this patch was to have Samba able to pass a socket address stucture from the BSD layer into the kerberos routines and back again. It also removes nbt_peer_addr, which was being used for a similar purpose. It is a large change, but worthwhile I feel. Andrew Bartlett (This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
2007-10-10r12791: fix compiler warningStefan Metzmacher1-1/+0
metze (This used to be commit 6647feb761a272b687d12685bc096e4ebdd02abe)
2007-10-10r12782: Don't segfault if we cannot setup messaging.Andrew Bartlett1-0/+10
Andrew Bartlett (This used to be commit 59c380e048423d706ab65513c09dbefecb5819ae)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij2-0/+2
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij4-5/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12584: Move NDR tests from rpc/ to local/, add to list of testsJelmer Vernooij2-1/+99
to run for 'make all' (This used to be commit e71cd4778b9a872642619452e574f510e2491052)
2007-10-10r12523: Convert the registry subsystem to use a seperate prototype headerJelmer Vernooij1-0/+1
(note that this doesn't use the distinction between private and public prototypes yet) (This used to be commit 60e11f575821c1762b25ad66441b6e69ad1167ef)
2007-10-10r12500: Use init functions explicitly in a few more places. 'gensec' and ↵Jelmer Vernooij1-0/+2
'librpc' are the only two subsystems left to convert. (This used to be commit f6bbc72996aeee8607fc583140fd60be0e06e969)
2007-10-10r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not usingJelmer Vernooij1-1/+1
the difference between these at all, and in the future the fact that INIT_OBJ_FILES include smb_build.h will be sufficient to have recompiles at the right time. (This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
2007-10-10r12158: added ldif handlers for the ntSecurityDescriptor attribute, so whenAndrew Tridgell1-0/+7
displaying security descriptors in ldbsearch or ldbedit you can see the SDDL version. This also allows us to specify security descriptors in our setup/*.ldif files in SDDL format, which is much more convenient than the NDR binary format! (This used to be commit 8185731c1846412c1b3366824cdb3d05b2d50b73)
2007-10-10r12137: added sddl_encode(), the reverse of the sddl_decode() function added aAndrew Tridgell1-1/+21
couple of days ago. Doesn't yet encode using the shorthand for well known SIDs. (This used to be commit 655a4ebe8e0ee18133103bfba0ca6d14cbf81d56)
2007-10-10r12014: free the irpc_request structure with the irpc_call_recv functions,Stefan Metzmacher1-1/+0
to match all other _recv functions we have metze (This used to be commit bd4f85ab5f60c7430ac88062fa6a9f6cffa9596f)
2007-10-10r12010: - added support for domain specific SID codes in SDDL stringsAndrew Tridgell1-2/+21
- added a bunch more tests to LOCAL-SDDL (all the ones from our schema) - fixed 'mixed coded declarations' bug (This used to be commit c30e7698e8e1d9991d35bf86c0d4041a1814ad92)
2007-10-10r12009: made the LOCAL-SDDL test less verbose by default, and add it to theAndrew Tridgell1-1/+3
standard tests for the build farm (This used to be commit 9d6d9b6e50dfe5513f332668b860e6a55af3a39c)
2007-10-10r12008: added a simple LOCAL-SDDL test suite. Only one example so far. Will beAndrew Tridgell2-0/+83
filled in with more examples as I expand the sddl parsing code. (This used to be commit 8f80e483a3aa07bb5a16eeccde5af5cd7fb5a975)
2007-10-10r11625: NULL terminate list of strings. For some reason this wasn't causing aTim Potter1-0/+1
crash on i386 but was on ia64. (This used to be commit 12c77bb2e17ef3cb3264da86852832dffb5474c1)
2007-10-10r11554: make us able to run without depending on 127.0.0.1Stefan Metzmacher1-6/+8
metze (This used to be commit 6bae17d279205a0d75f609f6a026b5c99d73cea5)
2007-10-10r10594: Add initial framework for lib/registry torture testsJelmer Vernooij1-0/+96
(This used to be commit 985c6a8fcc9977553d714a7d5e272b0791d45d1e)
2007-10-10r10592: Add "adfgets()" function, which allocates and reads a line from a fd.Jelmer Vernooij1-0/+101
Also add torture tests for this function and file_{load,save}. I've hardcoded a file name here.. should I handle that neater somehow? (This used to be commit 8fa383f182f1c4479979455968dd690edc0117ea)
2007-10-10r10516: Add seperator argument to str_list_{make,join}_shell()Jelmer Vernooij1-3/+3
(This used to be commit 0a5c9197f28e5451406d422e0a8ff84c1b20faae)
2007-10-10r10514: Add str_list_make_shell() and str_list_join_shell()Jelmer Vernooij1-0/+80
(This used to be commit 8b86a5da73d38764deb8c1f639322b2911736f97)
2007-10-10r10490: - allow deferred irpc replies to set the statusAndrew Tridgell1-4/+21
- add an example of deferred reply for echodata in LOCAL-IRPC (This used to be commit 858a757a6d0a614b8f13bfb6217034e8a8b69554)
2007-10-10r10370: only validate the re-generated binding string for hostnames with IPsAndrew Tridgell1-1/+1
Jelmer, can you see a better approach to this? As far as I am aware protocol towers don't use hostnames, they always use IP addresses (This used to be commit 7a3ec95d9911e8c0a278f5a94513e4fd61979eab)
2007-10-10r10199: added a LOCAL-RESOLVE torture test, useful for measuring the overhead ofAndrew Tridgell1-0/+87
the async name resolution mechanisms (This used to be commit b3a9d759bb7c6ca892f9810389292e79d963ca61)
2007-10-10r8887: fixed the irpc error that caused ia64 to fail the LOCAL-IRPC testAndrew Tridgell1-3/+3
(This used to be commit ce9a262d379b946717d0d4be4731c837e6f7373d)
2007-10-10r8879: more expansion of the irpc test to try to uncover the ia64 mysteryAndrew Tridgell1-0/+50
(This used to be commit ff03b8148bdf7798af4e1704aba22635bb67cbe4)
2007-10-10r8874: test some more combinationsStefan Metzmacher1-3/+8
metze (This used to be commit 32c64e5bc2610d319b4e2e433e149cdd4bc538c9)
2007-10-10r8873: add more checksStefan Metzmacher1-0/+5
metze (This used to be commit bfc855d78f4ffb6e0f30a2bb02d8b388abaa971b)
2007-10-10r8871: add some debugging code to findout why LOCAL-IRPC fails on 64bit hostsStefan Metzmacher1-2/+10
metze (This used to be commit 2c36b64dccb30609fbc9ed68b7ab090bcbf44633)
2007-10-10r8867: try to fix the LOCAL-IRPC test on 64bit platformsStefan Metzmacher1-1/+1
metze (This used to be commit b7401c142a53696eb74af4fc4bc992728846d20e)
2007-10-10r8818: - fix LOCAL-IRPC test for new ref-alloc semantics of irpcAndrew Tridgell1-9/+7
- fixed return result from LOCAL-IRPC test - added timelimit support - ensure we free messages as they complete (This used to be commit ab9a5fd84b3832e752024b92d5d7e2d89b9a1df8)
2007-10-10r8817: - fixed return result from LOCAL-MESSAGING testAndrew Tridgell1-3/+4
- added timelimit support (This used to be commit dbac93e313a149bc4c0053f6962289e71b168fb3)
2007-10-10r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell3-11/+11
S390. This is an attempt to avoid the panic we're seeing in the automatic builds. The main fixes are: - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats - use of NULL format statements to perform dn searches. - assumption that sizeof() returns an int (This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
2007-10-10r8412: cope with some lost messages in the ping test (netbsd gets this)Andrew Tridgell1-2/+4
(This used to be commit fcf60823c6171ec109195cb8d61de5b0e02fd005)
2007-10-10r7901: check if system supports UTF-16LE at all in LOCAL-ICONV testAndrew Tridgell1-1/+9
(This used to be commit aa9e7cf63a0e5ce7c9b7d121a4df064cd6fae90f)
2007-10-10r7898: don't die on bad iconv libs in LOCAL-ICONV testAndrew Tridgell1-0/+8
(This used to be commit fe7055df94ecc81d6758ee7ff82534451d620d6a)
2007-10-10r7655: test the evnt friendly socket_connect() in the LOCAL-SOCKET testAndrew Tridgell1-1/+3
(This used to be commit b9ed92d550f1b821c5402a516eb2dfc2c8d69f0a)
2007-10-10r7426: add an option to disable progress outputStefan Metzmacher1-2/+6
torture:progress=no metze (This used to be commit 820e5a1270d8bd308f03fc96161396fb4b95da61)
2007-10-10r7358: make the irpc test use two messaging contexts, not one, so it betterAndrew Tridgell1-10/+15
matches the LOCAL-MESSAGING test (This used to be commit 5883ce16d0b98c9c23ee60fe6089e0adf2ce8d15)
2007-10-10r7321: add nbtd statistics serving over irpcAndrew Tridgell1-1/+1
(This used to be commit 4c0ed7328b14969ea34790b0e80fa714c44ccc5f)
2007-10-10r7295: added an irpc benchmark. It gets about 16k messages/sec on my laptop,Andrew Tridgell1-3/+73
compared to about 20k messages/sec for the raw messaging layer. I think that is quite acceptable given the extra functionality. (This used to be commit a05d38d1d91f1f54d3e3794a596b468992594852)
2007-10-10r7294: implemented the irpc messaging system. This is the core of theAndrew Tridgell2-0/+92
management system I proposed on samba-technical a couple of days ago. Essentially it is a very lightweight way for any code in Samba to make IDL based rpc calls to anywhere else in the code, without the client or server having to go to the trouble of setting up a full rpc service. It can be used with any of our existing IDL, but I expect it will mostly be used for a new set of Samba specific management calls. The LOCAL-IRPC torture test demonstrates how it can be used by calling the echo_AddOne() call over this transport. (This used to be commit 3d589a09954eb8b318f567e1150b0c27412fb942)
2007-10-10r6563: - fixed the local messaging torture test not to fork, as this causesAndrew Tridgell1-14/+15
trouble with the epoll() based event handling - changes the test to use a local directory instead of the prefix lock directory, so the LOCAL-MESSAGING test can run as non-root even when the lock directory is not writeable (This used to be commit 079e1f4e85832f8d14ac385511ff67473e139ca1)
2007-10-10r5902: A rather large change...Andrew Bartlett1-7/+7
I wanted to add a simple 'workstation' argument to the DCERPC authenticated binding calls, but this patch kind of grew from there. With SCHANNEL, the 'workstation' name (the netbios name of the client) matters, as this is what ties the session between the NETLOGON ops and the SCHANNEL bind. This changes a lot of files, and these will again be changed when jelmer does the credentials work. I also correct some schannel IDL to distinguish between workstation names and account names. The distinction matters for domain trust accounts. Issues in handling this (issues with lifetime of talloc pointers) caused me to change the 'creds_CredentialsState' and 'struct dcerpc_binding' pointers to always be talloc()ed pointers. In the schannel DB, we now store both the domain and computername, and query on both. This should ensure we fault correctly when the domain is specified incorrectly in the SCHANNEL bind. In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out, where the comment claimed we re-used a connection, but in fact we made a new connection. This was achived by breaking apart some of the dcerpc_secondary_connection() logic. The addition of workstation handling was also propogated to NTLMSSP and GENSEC, for completeness. The RPC-SAMSYNC test has been cleaned up a little, using a loop over usernames/passwords rather than manually expanded tests. This will be expanded further (the code in #if 0 in this patch) to use a newly created user account for testing. In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO server, caused by the removal of [ref] and the assoicated pointer from the IDL. This has been re-added, until the underlying pidl issues are solved. (This used to be commit 824289dcc20908ddec957a4a892a103eec2da9b9)
2007-10-10r5304: removed lib/socket/socket.h from includes.hAndrew Tridgell1-0/+1
(This used to be commit b902ea546d2d1327b23f40ddaeeaa8e7e3662454)
2007-10-10r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell1-0/+1
less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
2007-10-10r5197: moved events code to lib/events/ (suggestion from metze)Andrew Tridgell1-1/+1
(This used to be commit 7f54c8a339f36aa43c9340be70ab7f0067593ef2)
2007-10-10r5185: make all the events data structures private to events.c. This willAndrew Tridgell1-1/+2
make it possible to add optimisations to the events code such as keeping the next timed event in a sorted list, and using epoll for file descriptor events. I also removed the loop events code, as it wasn't being used anywhere, and changed timed events to always be one-shot (as adding a new timed event in the event handler is so easy to do if needed) (This used to be commit d7b4b6de51342a65bf46fce772d313f92f8d73d3)
2007-10-10r5102: This is a major simplification of the logic for controlling top levelAndrew Tridgell1-3/+3
servers in smbd. The old code still contained a fairly bit of legacy from the time when smbd was only handling SMB connection. The new code gets rid of all of the smb_server specific code in smbd/, and creates a much simpler infrastructures for new server code. Major changes include: - simplified the process model code a lot. - got rid of the top level server and service structures completely. The top level context is now the event_context. This got rid of service.h and server.h completely (they were the most confusing parts of the old code) - added service_stream.[ch] for the helper functions that are specific to stream type services (services that handle streams, and use a logically separate process per connection) - got rid of the builtin idle_handler code in the service logic, as none of the servers were using it, and it can easily be handled by a server in future by adding its own timed_event to the event context. - fixed some major memory leaks in the rpc server code. - added registration of servers, rather than hard coding our list of possible servers. This allows for servers as modules in the future. - temporarily disabled the winbind code until I add the helper functions for that type of server - added error checking on service startup. If a configured server fails to startup then smbd doesn't startup. - cleaned up the command line handling in smbd, removing unused options (This used to be commit cf6a46c3cbde7b1eb1b86bd3882b953a2de3a42e)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-1/+1
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)