summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/libnet_user.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-26s4/test: Connect SAMR and LDARPC pipes before calling libnet_ functionsKamen Mazdrashki1-7/+29
In multi-DC environment, NBT name resolution may resolv domain name to any of DCs. This make this test to fail, as we are modifying the user account on one DC and query user info immediately after that on another DC.
2010-05-26s4/test: remove unused codeKamen Mazdrashki1-18/+0
There is no need anymore to modify samAccountName of the testing user to original value as test_cleanup() will spot the right samAccountName to delete
2010-05-26s4/test: make test_cleanup() in libnet_user library more robustKamen Mazdrashki1-4/+74
test_cleanup() is called always with RDN name of the user to be deleted. When modify-user test fails however, we end up with a user with RDN = libnetusertest and samAccountName = random_name. This way we can not delete the user and the error message is quite misleading (I've spent a *lot* of time trying to figure out if the database is corrupted because of this error).
2010-05-26s4/test: rename enum test_fields{} member names to be more descriptiveKamen Mazdrashki1-17/+17
2010-05-26s4/test: Replace hand-made field count to testKamen Mazdrashki1-3/+3
This patch replaces hand-make count of fields to be tested with defines for FIRST-LAST value for corresponding fields to test with. As a side-effect, 'acct_flags' is now included in tests.
2010-04-14s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher1-1/+1
The reason for this is that some systems include <rpc/rpc.h> from within system headers. HP-UX 11.00 does so somewhere deep inside of <shadow.h>. For torture/winbind/struct_based.c <rpc/rpc.h> resolves to torture/rpc/rpc.h and breaks the build. metze
2010-03-29s4:torture/libnet:add explicit check for NTSTATUS r.out.resultGünther Deschner1-61/+59
Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-23s4-smbtorture: use torture_context for debugging output everywhere in libnet ↵Günther Deschner1-67/+73
torture tests. Mimir, please check. Guenther
2010-03-23s4-smbtorture: remove trailing whitespace in libnet torture tests.Günther Deschner1-27/+27
Guenther
2010-03-12s4:torture/libnet: make use of dcerpc_binding_handle stubsStefan Metzmacher1-31/+35
metze
2010-03-11s4:torture/libnet/libnet_user.c: fix double free in error pathStefan Metzmacher1-1/+0
metze
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-1/+0
This reduces compile time somewhat.
2008-11-10s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)Günther Deschner1-1/+3
Guenther
2008-11-10s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)Günther Deschner1-1/+4
Guenther
2008-04-24libnet: Make UserInfo accept a SID as input as well, fix wb_cmd_getpwuidKai Blin1-2/+4
(This used to be commit 5f3a70f285ad8a412105c0e498e486f93fc279bc)
2008-04-14Fix problems with event context not being the parent.Simo Sorce1-5/+5
(This used to be commit 957c4d893acf9e6db06a3fc3a4687ab6bb238635)
2008-03-07Fixup the NET-API-USERMOD test.Andrew Bartlett1-2/+2
This test needed to be updated to handle the fact that you cannot clear the ACB_PW_EXPIRED bit, and to always use the torture comment functions (not printf directly). Andrew Bartlett (This used to be commit 2211476bbb3d8e5bca9659e886e559a36f40aff4)
2008-02-28Fix up the libnet tests.Andrew Bartlett1-3/+12
These tests still do not pass against windows, but at least now it doesn't reset acct_flags to 0. This is enough to have Samba4 pass it's own tests for the moment. Andrew Bartlett (This used to be commit aa3901311eb7ce6f2d2b2413323e31a5b064cfc4)
2008-02-28Do not re-randomise in an individual test.Andrew Bartlett1-2/+0
smbtorture calls srandom() once for the whole suite, with command line override to allow reproduceable random tests. Andrew Bartlett (This used to be commit 68dcd1073cfed830fb6e2013e27d2ebbc443c451)
2008-01-02r26645: Janitorial: Fix a couple of warnings.Jelmer Vernooij1-2/+2
(This used to be commit a2bc97e8b01ecee48be60823cb19b4e794fb8f93)
2007-12-21r26531: Prevent from displaying the results if the functionRafal Szczesniak1-0/+2
call has failed. (This used to be commit ded8a45d79beb0e539c573f67056c8cb4aa62c3f)
2007-12-21r26327: Explicit loadparm_context for RPC client functions.Jelmer Vernooij1-5/+5
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21r26240: We now actually use torture_context pointers for more than just ↵Jelmer Vernooij1-14/+9
allocation. Fix a few places where we were passing talloc contexts that were not torture contexts. (This used to be commit 9d12fc7dc5abc82c8ad189420db1f85a89c71e4f)
2007-12-21r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij1-9/+9
uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-61/+61
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-9/+9
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-1/+1
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r24755: Use common code for finding the RPC binding in the torture tests.Jelmer Vernooij1-12/+1
(This used to be commit e3310e773924ddd2129e8ca1a86e23d0f713c19c)
2007-10-10r24735: Use torture API in more places.Jelmer Vernooij1-3/+3
(This used to be commit 1319d88c099496be29dd9214fa2492c81e848369)
2007-10-10r24557: rename 'dcerpc_table_' -> 'ndr_table_'Stefan Metzmacher1-3/+3
metze (This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r23066: don't ignore errorsStefan Metzmacher1-0/+1
metze (This used to be commit 1a1a339d48af535d60a37b6c646e3e6ca95d41b5)
2007-10-10r19926: display user listing created by the test.Rafal Szczesniak1-0/+8
rafal (This used to be commit a97fb96203dab5de1d04f4c0917446e1d88f0168)
2007-10-10r19925: Close the lsa handle in the end, and test calling libnet_UserListRafal Szczesniak1-7/+18
with non-zero resume index to continue longer enumeration. rafal (This used to be commit efa04d6d0b62ff3c6332db4b31622c0579428a56)
2007-10-10r19923: Update test to match the function changes.Rafal Szczesniak1-2/+2
rafal (This used to be commit e1a20bba9dcc740630c093dcdd1f082e54473e95)
2007-10-10r19592: a simple test for libnet_UserListRafal Szczesniak1-7/+72
rafal (This used to be commit cfcbddfe71ce27bf195a1877f75789ef23bb6b1d)
2007-10-10r19392: Use torture_setting_* rather than lp_parm_* where possible.Jelmer Vernooij1-4/+4
(This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6)
2007-10-10r19187: this function should be static...Stefan Metzmacher1-2/+2
(this also fix compiler warnings) metze (This used to be commit f8afdac4710581db421dc7c558eb8ba57597b056)
2007-10-10r19025: - remove read-only and policy dependent fields and flagsRafal Szczesniak1-41/+64
- do not stop NET-API-USERMODIFY test when a single field fails - add account flags to the fields tested - separate "cleanup" step from closing domain at the end rafal (This used to be commit 16fde3b8e2c93ec10e43bb09334bf460db8ac70b)
2007-10-10r18683: NET-USERMOD test changed to be able to perform multiple simultaneousRafal Szczesniak1-24/+6
changes. Also, some common definitions for user mod tests have been put into a separate file. rafal (This used to be commit 0040c087481be68d44a0b59744be5c5e569fd8a4)
2007-10-10r18658: make the test change fields sequentially each one in turn.Rafal Szczesniak1-16/+39
now to multiple changes... rafal (This used to be commit 6df2c04e03ac6b7d518edfee7fd6a5de299bf9d4)
2007-10-10r18631: correct unintentional commit.Rafal Szczesniak1-1/+1
rafal (This used to be commit c68ec9109e970d899672b8c9db12c181ff6c3b59)
2007-10-10r18626: fix cleanup function to safely recover after interrupted testRafal Szczesniak1-28/+73
and add one requested field in to the function creating testing set of changes for user modify routine. rafal (This used to be commit f6d4f356b3de03baa3d1672730195668bbfdc9c7)
2007-10-10r18325: more warnings and one compile error on aix fixedAndrew Tridgell1-1/+1
(This used to be commit 6e7e151432a31e48a67679df3966d2227d555317)
2007-10-10r17939: Fix compiler warnings spotted on buildfarm.Rafal Szczesniak1-8/+19
rafal (This used to be commit 4803e95c68d8824b5494ee86d626e474d8a0c925)
2007-10-10r17857: A couple of new tests.Rafal Szczesniak1-0/+61
rafal (This used to be commit 6db488cc6e29704ae2ae17b2875a76ded5d86b88)
2007-10-10r17671: Update the tests according to changes in libnet context.Rafal Szczesniak1-5/+6
rafal (This used to be commit 9e7709de62ccb66d312e985fa0846b1004e77d32)
2007-10-10r17538: this function should be static...Stefan Metzmacher1-1/+1
metze (This used to be commit c4387dd3f6d1463d9557ee8923590fa5590b35ff)
2007-10-10r17484: Make last version of the function generating random set of changesRafal Szczesniak1-97/+124
more fair to each of the fields (ie. don't create new code at midnight after a long day...). This will be useful for testing multiple changes at once and verifying correctness. A few testing runs already demostrated some missing pieces. rafal (This used to be commit 809c9cca965841e8bce84f4b4ecf804ce793d807)