summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-02s4:torture/libnet: avoid dereferencing dcerpc_binding_handle internalsStefan Metzmacher1-4/+5
metze
2010-06-16s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher1-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>
2010-06-11s4/test-libnet: Re-align code a bit - more readable this way IMOKamen Mazdrashki1-19/+21
2010-06-11s4/test-libnet: Refactor test_group_create() a little to:Kamen Mazdrashki1-11/+22
- Close unused policy handle for created group - re-align code - it is more readable this way IMHO
2010-06-11s4/test-libnet: Refactor test_user_create() little bit to:Kamen Mazdrashki1-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
2010-06-11s4/test-libnet: add few comments for utility functionsKamen Mazdrashki1-3/+11
2010-06-11s4/test-libnet: Move LSA close handle function to a common locationKamen Mazdrashki1-0/+22
2010-06-11s4/test: fix SEGFAULT in test_group_create when rid is NULLKamen Mazdrashki1-1/+4
Caller of this function may not need group RID and in such case it passes NULL for rid parameter
2010-06-11s4/test-libnet: Helper func to initialize libnet_contextKamen Mazdrashki1-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.
2010-06-11s4/test: Fix incorrect NTSTATUS comparisonKamen Mazdrashki1-2/+2
In case group already exists, we should get NT_STATUS_GROUP_EXISTS.
2010-06-11s4/test: Refactor test_user_cleanup to be more robustKamen Mazdrashki1-12/+84
We always call this function with user's account RDN while samr_LookupNames() searches for samAccountName.
2010-06-11s4/test: remove duplicated commentKamen Mazdrashki1-3/+0
2010-05-28s4/test-libnet-utils: refactor test_user_create()Kamen Mazdrashki1-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)
2010-05-28s4/test: remove local impl for open_domain and use common oneKamen Mazdrashki1-1/+1
2010-05-28s4/test: change prototype for test_opendomain()Kamen Mazdrashki1-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
2010-05-28s4/test: Refactor test_opendomain to address followingKamen Mazdrashki1-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
2010-05-28s4/test: make samr_close handle functio publicKamen Mazdrashki1-0/+22
It is to be used further for closing opened handles when testing using SAMR interface
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-48/+69
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-15/+17
torture tests. Mimir, please check. Guenther
2010-03-23s4-smbtorture: remove trailing whitespace in libnet torture tests.Günther Deschner1-24/+24
Guenther
2010-03-15s4:tortore/libnet: fix crash bugs because of incorrect function prototypesStefan Metzmacher1-1/+1
metze
2010-03-12s4:torture/libnet: make use of dcerpc_binding_handle stubsStefan Metzmacher1-20/+22
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-3/+5
Guenther
2008-11-10s4-samr: merge samr_LookupNames from s3 idl. (fixme: python)Günther Deschner1-2/+8
Guenther
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-0/+1
remove some unused functions.
2008-02-29Convert to new torture API.Jelmer Vernooij1-44/+24
(This used to be commit 40dffc177babec01c63fb717506fa86ff70a5b28)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-27/+27
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25375: Put commonly used functions in one place.Rafal Szczesniak1-0/+313
rafal (This used to be commit 6e9708eba8236f16eed4b83909b6aebcf7001f5c)