summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/libnet_user.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-05s4-test: refactor API-DELETEUSER test a little to:Kamen Mazdrashki1-29/+23
- fail torture_context in case libnet_DeleteUser() has failed - make use of torture_assert_* macros to track down where failur occured - use only one memory context internally
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-8/+8
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-11s4/test-libnet: Re-align code a bit - more readable this way IMOKamen Mazdrashki1-2/+2
2010-06-11s4/test-libnet: Move LSA close handle function to a common locationKamen Mazdrashki1-20/+2
2010-06-11s4/test-libnet: remove unused codeKamen Mazdrashki1-25/+0
Pre-connecting SAMR and LSA pipes is implemented in test_libnet_context_init() function
2010-06-11s4/test: use test_libnet_context_init() function to create libnet_contextKamen Mazdrashki1-18/+17
This way we ensure that LIBNET call will be issued against the DC we are testing against
2010-06-11s4/test: libnet_user tests should use common test_user_cleanupKamen Mazdrashki1-129/+5
implementation instead of not-so-informative test_cleanup()
2010-05-28s4/test-libnet: Remove multiple test_samr_close() impelementationsKamen Mazdrashki1-23/+8
We now have a nice common test_samr_close_handle() function to use
2010-05-28s4/test-libnet-user: Remove test_createuser()Kamen Mazdrashki1-63/+3
We have same functionality already implemented by test_user_create() in libnet/utils.c
2010-05-28s4/test: remove local impl for open_domain and use common oneKamen Mazdrashki1-56/+4
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)