summaryrefslogtreecommitdiff
path: root/source4/torture/libnet
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij7-12/+15
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij2-0/+2
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r14524: Make TORTURE_NET a separate moduleJelmer Vernooij1-0/+41
Add new header for torture utility functions, so torture.h doesn't need to depend on the SMB libraries (This used to be commit ab162bcafc666f226332d4678b0875139a0d65c2)
2007-10-10r14470: Remove some unnecessary headers.Jelmer Vernooij4-4/+0
(This used to be commit f7312dab3b9aba2b2b82e8a6e0c483a32a03a63a)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij5-0/+7
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r14402: Generate seperate headers for RPC client functions.Jelmer Vernooij5-0/+5
(This used to be commit 7054ebf0249930843a2baf4d023ae8f62cedb109)
2007-10-10r14379: Build torture/rpc/ as a seperate smbtorture module. Move helperJelmer Vernooij4-4/+4
functions for rpc out of torture/torture.c (This used to be commit 1d2d970f3b8aef3f36c2befb94b5dd72c0086639)
2007-10-10r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij1-0/+1
file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10r12864: Fix valgrind errors in NET-API-LOOKUP* tests.Andrew Bartlett1-0/+2
Andrew Bartlett (This used to be commit 21f87f87a9b79da4463bddc993df502beae50a16)
2007-10-10r12858: This moves the libnet_LookupPdc code to use a GetDC request to findAndrew Bartlett3-86/+27
the remote server's name, or in the absence of a local nbt_server to communicate with (or without root access), a node status request. The result is that we are in a better position to use kerberos, as well as to remove the 'password server' mandatory parameter for the samsync and samdump commands. (I need this to put these into SWAT). The only problem I have is that I must create a messaging context, which requires a server ID. As a client process, I don't expect to get messages, but it is currently required for replies, so I generate a random() number. We probably need the servers to accept connections on streamed sockets too, for client-only tasks that want IRPC. Because I wanted to test this code, I have put the NET-API-* tests into our test scripts, to ensure they pass and keep passing. They are good frontends onto the libnet system, and I see no reason not to test them. In doing so the NET-API-RPCCONNECT test was simplified to take a binding string on the command line, removing duplicate code, and testing the combinations in the scripts instead. (I have done a bit of work on the list shares code in libnet_share.c to make it pass 'make test') In the future, I would like to extend the libcli/findds.c code (based off volker's winbind/wb_async_helpers.c, which is why it shows up a bit odd in the patch) to handle getting multiple name replies, sending a getdc request to each in turn. (posted to samba-technical for review, and I'll happily update with any comments) Andrew Bartlett (This used to be commit 7ccddfd3515fc2c0d6f447c768ccbf7a220c3380)
2007-10-10r12835: RpcConnect test expansion to test connecting using ncacp_ip_tcpRafal Szczesniak1-12/+74
as well as ncacn_np. rafal (This used to be commit 70cf8a4b67657f7c51e95ae5321e5a2e7f52832d)
2007-10-10r12696: Reduce the size of include/structs.hJelmer Vernooij3-3/+0
(This used to be commit 63917616016133c623fc6ff59454bc313ee7dd8f)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij4-0/+4
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij6-8/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12542: Move some more prototypes out to seperate headersJelmer Vernooij3-0/+3
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10r12510: Change the DCE/RPC interfaces to take a pointer to aJelmer Vernooij5-26/+10
dcerpc_interface_table struct rather then a tuple of interface name, UUID and version. This removes the requirement for having a global list of DCE/RPC interfaces, except for these parts of the code that use that list explicitly (ndrdump and the scanner torture test). This should also allow us to remove the hack that put the authservice parameter in the dcerpc_binding struct as it can now be read directly from dcerpc_interface_table. I will now modify some of these functions to take a dcerpc_syntax_id structure rather then a full dcerpc_interface_table. (This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
2007-10-10r11527: Has this ever been run?Volker Lendecke1-0/+1
(This used to be commit 419b28d02d6c5a03bd33eaeabf1b42bfab9155dd)
2007-10-10r10504: - seperate implementation specific stuff, from the generic compositeStefan Metzmacher6-7/+1
stuff. - don't use SMBCLI_REQUEST_* state's in the genreic composite stuff - move monitor_fn to libnet. NOTE: I have maybe found some bugs, in code that is dirrectly in DONE or ERROR state in the _send() function. I haven't fixed this bugs in this commit! We may need some composite_trigger_*() functions or so. And maybe some other generic helper functions... metze (This used to be commit 4527815a0a9b96e460f301cb1f0c0b3964c166fc)
2007-10-10r9884: Fix compiler warning.Tim Potter1-1/+1
(This used to be commit 6e30dd8a50e9afc4942cd925e6e0266d960923dd)
2007-10-10r9090: Another field in usermod function - account flags.Rafal Szczesniak1-9/+9
rafal (This used to be commit f0d51b78c040937bd27857c063fae215a3f0f465)
2007-10-10r9037: New fields in usermod function - allow_password_change andRafal Szczesniak1-7/+11
force_password_change datetime. rafal (This used to be commit dfa2cc6c4ed8273b1d3ee604954c81c75f0890bd)
2007-10-10r9028: make some function staticStefan Metzmacher1-3/+3
metze (This used to be commit 72643ac4c4724bdd3e73b5d10ff9bdf21eb46345)
2007-10-10r8977: Put my copyright in share torture test.Rafal Szczesniak1-0/+1
rafal (This used to be commit 186bcabaa6e4989e2b46b99a46221fe6fc79b365)
2007-10-10r8975: Very basic test for delshare function based on code submittedRafal Szczesniak1-4/+55
by Gregory LEOCADIE <gleocadie@idealx.com>. rafal (This used to be commit 4d4d1ab37d68b6054b7b0459e2e7e86141f9b462)
2007-10-10r8954: Use binding string to specify host rather than share path, as we useRafal Szczesniak1-3/+19
rpc call here after all. Also, safely exit (freeing memory context) in case of any error. rafal (This used to be commit be2584df1d167f3e8ef600a926979f081e72c6a9)
2007-10-10r8944: Get more verbose output from NET-API-LISTSHARE test.Rafal Szczesniak1-0/+82
rafal (This used to be commit b1ff59d80f942b679ae3c8dcb08361cf8a25a457)
2007-10-10r8930: Add the libnet share tests based on code submitted byRafal Szczesniak1-0/+92
Gregory Leocadie <gleocadie@idealx.com>. Listing shares passes, deleting not yet - it's a work in progress. rafal (This used to be commit 5c53498a4a3e84d5b55c233da01e96fdd4f0e0dd)
2007-10-10r8897: Add test for the comment field.Rafal Szczesniak1-6/+7
rafal (This used to be commit 3cb517f7c134ee18eb9af79c486c85bed0ef4f81)
2007-10-10r8807: Modifying datetime field using struct timeval argument rather thanRafal Szczesniak1-5/+8
text-based, after recent discussion with both Andrews :) Basic test seems to work (at least it doesn't fail now). rafal (This used to be commit 1bc3162e9441aeae1d8c4b4f03b5b75eb848f4bf)
2007-10-10r8761: Propagate changes in monitor messaging code.Rafal Szczesniak2-4/+16
rafal (This used to be commit 5be8479d5cf119bcda4046bf1c5d7c3b876e718d)
2007-10-10r8759: Another couple of fields in usermod routine.Rafal Szczesniak1-2/+5
rafal (This used to be commit 266aaacf0be955096d53e2a967bdaa5d0c5558ed)
2007-10-10r8721: Further work on libnet_rpc_usermod function. Now it can changeRafal Szczesniak1-5/+21
both account name and full name. rafal (This used to be commit 1a779f8643c43677c62fed6ec4bfb54b08647f5b)
2007-10-10r8693: Test code for usermod routine.Rafal Szczesniak1-0/+71
rafal (This used to be commit 19f5ea9c9c2a46c110e5946605432116cb2ad7b3)
2007-10-10r8232: remove samr_String and netr_String as they are the same as lsa_StringStefan Metzmacher4-12/+12
metze (This used to be commit e601042c07d7b6eed0dc34e5b136d9266b8a0f81)
2007-10-10r8094: Fix compiler warnings.Rafal Szczesniak1-9/+33
rafal (This used to be commit cca6d792945477b86b2dd91f3c90152b69ee2a15)
2007-10-10r8081: Add simple test for RpcConnect function.Rafal Szczesniak1-0/+95
rafal (This used to be commit 0209fc67adae9d2003f06c826557306c2141a6a8)
2007-10-10r8080: Use libnet_context where using libnet_Lookup functions now.Rafal Szczesniak1-6/+19
rafal (This used to be commit 1815a6af06aa791bfecb4aee8742701975d35318)
2007-10-10r8079: Dcerpc pipe in libnet_context is just pipe now, instead of explicit samr.Rafal Szczesniak1-1/+1
rafal (This used to be commit e7870156dacb2e0346e24f8490bfd90e8b21ea96)
2007-10-10r7864: fixed some const bugsAndrew Tridgell1-2/+2
(This used to be commit 616f54015ff8c7b25fa500cb03d025a9950ed6cf)
2007-10-10r7858: removed some unused variablesAndrew Tridgell1-3/+0
(This used to be commit 8d43eb5b9790a6b24c792919386cac5c0b8ea7ac)
2007-10-10r7816: Implementation of "shortcut" function for those (probably many) whoRafal Szczesniak1-4/+54
don't like to bother with netbios type names when looking for common types: hosts (servers) and domain controllers. Also, apropriate tests rafal (This used to be commit 50cd94be0f876a3463aa58b7e0898e6b3340c4c2)
2007-10-10r7737: Test for libnet_Lookup function.Rafal Szczesniak1-0/+52
rafal (This used to be commit 4655881fac37dbf26a5d60385e5f0a70b8c1c775)
2007-10-10r7633: this patch started as an attempt to make the dcerpc code use a givenAndrew Tridgell1-1/+1
event_context for the socket_connect() call, so that when things that use dcerpc are running alongside anything else it doesn't block the whole process during a connect. Then of course I needed to change any code that created a dcerpc connection (such as the auth code) to also take an event context, and anything that called that and so on .... thus the size of the patch. There were 3 places where I punted: - abartlet wanted me to add a gensec_set_event_context() call instead of adding it to the gensec init calls. Andrew, my apologies for not doing this. I didn't do it as adding a new parameter allowed me to catch all the callers with the compiler. Now that its done, we could go back and use gensec_set_event_context() - the ejs code calls auth initialisation, which means it should pass in the event context from the web server. I punted on that. Needs fixing. - I used a NULL event context in dcom_get_pipe(). This is equivalent to what we did already, but should be fixed to use a callers event context. Jelmer, can you think of a clean way to do that? I also cleaned up a couple of things: - libnet_context_destroy() makes no sense. I removed it. - removed some unused vars in various places (This used to be commit 3a3025485bdb8f600ab528c0b4b4eef0c65e3fc9)
2007-10-10r7628: Unused variables.Tim Potter1-4/+0
(This used to be commit b2529307aaf1e47ce74632b4e516494ac71fe8d1)
2007-10-10r7491: libnet functions used in tests have different names now.Rafal Szczesniak3-24/+24
rafal (This used to be commit d54bf09701b1085451479a32569849998c53c811)
2007-10-10r7384: I've forgotten to commit test source.Rafal Szczesniak1-0/+131
Fix the build and get some sleep... rafal (This used to be commit 966d148ecaa66987832df6dc8da4c53bfb04d18d)
2007-10-10r7365: Remove unused variables.Tim Potter1-2/+0
(This used to be commit aa3dd5e8cf21d3502e10686ce94c802ebaa41ee8)
2007-10-10r7324: Torture test for composite domain open function.Rafal Szczesniak1-0/+116
rafal (This used to be commit 482ff6a78078b62041ba69947048ed96dee13144)
2007-10-10r6847: Fix some unused variable warnings in the libnet torture test.Tim Potter2-2/+0
(This used to be commit 448795607f271bb00d5f9e1c5a6cad8df75c8b6a)
2007-10-10r6717: - torture test of async useradd function and monitor messages.Rafal Szczesniak2-1/+59
- make message handling functions static. rafal (This used to be commit 96446e5e1e53eb519cbfeb64d0dd2f4052d75b0f)