summaryrefslogtreecommitdiffstats
path: root/source4/torture/libnet/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:torture/libnet: avoid dereferencing dcerpc_binding_handle internalsStefan Metzmacher2010-08-021-4/+5
| | | | metze
* s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher2010-06-161-1/+1
| | | | | | | | | This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
* s4/test-libnet: Re-align code a bit - more readable this way IMOKamen Mazdrashki2010-06-111-19/+21
|
* s4/test-libnet: Refactor test_group_create() a little to:Kamen Mazdrashki2010-06-111-11/+22
| | | | | - Close unused policy handle for created group - re-align code - it is more readable this way IMHO
* s4/test-libnet: Refactor test_user_create() little bit to:Kamen Mazdrashki2010-06-111-11/+7
| | | | | | | | - fix a flaw that user RID is not returned in case user is recreated - close unused policy handle to created user - do not take into account the result from test_samr_close_handle - we don't case
* s4/test-libnet: add few comments for utility functionsKamen Mazdrashki2010-06-111-3/+11
|
* s4/test-libnet: Move LSA close handle function to a common locationKamen Mazdrashki2010-06-111-0/+22
|
* s4/test: fix SEGFAULT in test_group_create when rid is NULLKamen Mazdrashki2010-06-111-1/+4
| | | | | Caller of this function may not need group RID and in such case it passes NULL for rid parameter
* s4/test-libnet: Helper func to initialize libnet_contextKamen Mazdrashki2010-06-111-0/+54
| | | | | | | | | | | | | | | | | | and create rpc connections to SAMR and LSA pipes. This function should be used in cases where we need 'deterministic' connection to the DC we are testing against. The problem is that most of the test follow the pattern: 1. Connect to server supplied on command line 2. Create user/group through connection in 1. 3. Use 'fresh' libnet_context to query/alter the object in step 2. In singe-DC environment this work well. But in multiple-DC environment libnet may connect to another DC (step 3), not the one we use in step 1 and 2. This leads to false error - object created in step 2 is not found on DC we are querying in step 3.
* s4/test: Fix incorrect NTSTATUS comparisonKamen Mazdrashki2010-06-111-2/+2
| | | | In case group already exists, we should get NT_STATUS_GROUP_EXISTS.
* s4/test: Refactor test_user_cleanup to be more robustKamen Mazdrashki2010-06-111-12/+84
| | | | | We always call this function with user's account RDN while samr_LookupNames() searches for samAccountName.
* s4/test: remove duplicated commentKamen Mazdrashki2010-06-111-3/+0
|
* s4/test-libnet-utils: refactor test_user_create()Kamen Mazdrashki2010-05-281-13/+39
| | | | | | | | - param names made more clear what they stand for - user RID out param is now optional, so that this function may be used in cases where we don't need user RID - SAMR connection handle is closed as it is not used further (we should play nice with servers)
* s4/test: remove local impl for open_domain and use common oneKamen Mazdrashki2010-05-281-1/+1
|
* s4/test: change prototype for test_opendomain()Kamen Mazdrashki2010-05-281-2/+2
| | | | | | | - name changed to test_domain_open to be more alike athore functions in utils.c file - output parameters moved to the end param list definition just after mem_ctx so it is somehow more clear those params are OUT
* s4/test: Refactor test_opendomain to address followingKamen Mazdrashki2010-05-281-16/+33
| | | | | | | - param names made more clear what they stand for - dom_sid out param is now optional, so that this function may be used in cases where we don't need dom_sid - SAMR connection handle is closed as it is not used further
* s4/test: make samr_close handle functio publicKamen Mazdrashki2010-05-281-0/+22
| | | | | It is to be used further for closing opened handles when testing using SAMR interface
* s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher2010-04-141-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
* s4:torture/libnet:add explicit check for NTSTATUS r.out.resultGünther Deschner2010-03-291-48/+69
| | | | | Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-smbtorture: use torture_context for debugging output everywhere in libnet ↵Günther Deschner2010-03-231-15/+17
| | | | | | | | torture tests. Mimir, please check. Guenther
* s4-smbtorture: remove trailing whitespace in libnet torture tests.Günther Deschner2010-03-231-24/+24
| | | | Guenther
* s4:tortore/libnet: fix crash bugs because of incorrect function prototypesStefan Metzmacher2010-03-151-1/+1
| | | | metze
* s4:torture/libnet: make use of dcerpc_binding_handle stubsStefan Metzmacher2010-03-121-20/+22
| | | | metze
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-1/+0
| | | | This reduces compile time somewhat.
* s4-samr: merge samr_LookupDomain from s3 idl. (fixme: python)Günther Deschner2008-11-101-3/+5
| | | | Guenther
* s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)Günther Deschner2008-11-101-2/+8
| | | | Guenther
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* Convert to new torture API.Jelmer Vernooij2008-02-291-44/+24
| | | | (This used to be commit 40dffc177babec01c63fb717506fa86ff70a5b28)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-27/+27
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25375: Put commonly used functions in one place.Rafal Szczesniak2007-10-101-0/+313
rafal (This used to be commit 6e9708eba8236f16eed4b83909b6aebcf7001f5c)