summaryrefslogtreecommitdiff
path: root/source4/torture/libnet
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-10-10r6674: Fix some compiler warnings.Tim Potter1-4/+1
(This used to be commit c2c563bf985a8fdd28beacb3dbdf650c11af2fa7)
2007-10-10r6637: Test for asynchronous function and monitor messages.Rafal Szczesniak1-2/+81
rafal (This used to be commit 4ac3c145fccc203323e3bf8772bccd290a82cf63)
2007-10-10r6432: Restorin previous construction of conditions after a little discussionRafal Szczesniak2-3/+9
with Richard and Andrew. rafal (This used to be commit 400f6d5f87c7a0b49bfd289521a3cf4af2586235)
2007-10-10r6430: Delete existing test account if, for some reason, it hasn't beenRafal Szczesniak1-3/+19
deleted last time running the test. rafal (This used to be commit 91df25a795b3754c9445af6ade53cbc89ec4a545)
2007-10-10r6426: DCE/RPC bind string parsing is not needed anymore, as we useRafal Szczesniak2-33/+4
lp_workgroup parameter as domain name to operate on. rafal (This used to be commit ea251d4f79c96145b4c14074d258aeb07c742f41)
2007-10-10r6420: Close user account handle before calling tested function to betterRafal Szczesniak1-7/+19
simulate real conditions of calling the function. rafal (This used to be commit 2518122c9e230639db253ff02de1843cb3448198)
2007-10-10r6415: Added NET-USERDEL torture test which proves something's wrongRafal Szczesniak1-0/+104
with user del function. rafal (This used to be commit a6b191188294c447fc4942c632fe905984048834)
2007-10-10r6405: Complete NET-USERADD torture test for user add composite function.Rafal Szczesniak1-0/+60
rafal (This used to be commit 76fb84c1ee2896f762278b0c5592ab418d6cf87c)
2007-10-10r6389: Incomplete test of composite useradd function.Rafal Szczesniak1-0/+148
rafal (This used to be commit 7539397240414a736bd581b85821635837d16a2e)
2007-10-10r6165: fixed up the userinfo composite code. Fixes include:Andrew Tridgell1-5/+4
- talloc should always be done in the right context. For example, when creating the userinfo_state structure, place it inside the composite structure, not directly on the pipe. If this isn't done then correct cleanup can't happen on errors (as cleanup destroys the top level composite context only) - define private structures like userinfo_state in the userinfo.c code, not in the public header - only keep the parameters we need in the state structure. For example, the domain_handle is only needed in the first call, so we don't need to keep it around in the state structure, but the level is needed in later calls, so we need to keep it - always initialise [out,ref] parameters in RPC calls. The [ref] part means that the call assumes the pointer it has been given is valid. If you don't initialise it then you will get a segv on recv. This is why the code was dying. - don't use internal strucrure elements like the pipe pipe->conn->pending outside of the internal rpc implementation. That is an internal list, trying to use it from external code will cause crashes. - rpc calls assume that rpc call strucrures remain valid for the duration of the call. This means you need to keep the structures (such as "struct samr_Close") in the userinfo_state strucrure, otherwise it will go out of scope during the async processing - need to remember to change c->state to SMBCLI_REQUEST_DONE when the request has finished in the close handler, otherwise it will loop forever trying to close Mimir, please look at the diff carefully for more detailed info on the fixes (This used to be commit 01ea1e7762e214e87e74d6f28d6efeb6cdea9736)
2007-10-10r5941: Commit this patch much earlier than I would normally prefer, but ↵Andrew Bartlett1-2/+2
metze needs a working tree... The main volume of this patch was what I started working on today: - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context. - Uses sepereate inner loops for some of the DCE/RPC tests The other and more important part of this patch fixes issues surrounding the new credentials framwork: This makes the struct cli_credentials always a talloc() structure, rather than on the stack. Parts of the cli_credentials code already assumed this. There were other issues, particularly in the DCERPC over SMB handling, as well as little things that had to be tidied up before test_w2k3.sh would start to pass. Andrew Bartlett (This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
2007-10-10r5902: A rather large change...Andrew Bartlett1-2/+2
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-10r5681: fix the build and compiler waningsStefan Metzmacher1-4/+3
metze (This used to be commit bb2622a0c94127a31855adc41d90289219a1ddd7)
2007-10-10r5679: Complete basic test of rpc_composite_userinfo function (whichRafal Szczesniak1-3/+151
btw proves the function is completely broken but that's what tests are for) rafal (This used to be commit 7278c7d8370d52fed1e6a7dfc848a3efa06ccd61)
2007-10-10r5661: Be a little stricter on syntax regarding arrays. A pointer to anJelmer Vernooij1-0/+2
array can now only be : type *name[]; rather then : type *name; which was supported in the past. Warnings will be given when the first syntax is used. Reasons for this change in behaviour include improved readability and the fact that the second format makes dealing with multiple levels of pointers harder. (This used to be commit a416de5825c540fd3741731c4be05e9a659a6fdb)
2007-10-10r5651: A bit more code in userinfo test and hook up test function toRafal Szczesniak1-3/+19
main torture binary. rafal (This used to be commit 94955e5325ceddd35673da74afb19d1676b5b23c)
2007-10-10r5610: Starting libnet test of userinfo call. Unfinished yet, thoughRafal Szczesniak1-0/+100
doesn't break anything at the moment. rafal (This used to be commit eb13c1bcfc330b046b76563c4eeb9d1ae438d37b)