summaryrefslogtreecommitdiff
path: root/source4/torture/libnet
AgeCommit message (Collapse)AuthorFilesLines
2010-06-11s4/test-libnet: Re-align code a bit - more readable this way IMOKamen Mazdrashki3-24/+28
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 Mazdrashki3-40/+26
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-libnet: Fix compile-time warningKamen Mazdrashki1-1/+1
2010-06-11s4/test: use test_libnet_context_init() function to create libnet_contextKamen Mazdrashki2-24/+23
This way we ensure that LIBNET call will be issued against the DC we are testing against
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: Call test_user_cleanup with original RDN for the userKamen Mazdrashki1-1/+1
'name' var is changed during the test execution and should contain samAccountName for the user, while test_user_cleanup() expects account RDN to be passed
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: remove create/delete group implementation in API-CREATEGROUP testKamen Mazdrashki1-110/+3
We already have common implementation for create/delete group in libnet/utils.c
2010-06-11s4/test: Remove duplicated test_opendomain() functionalityKamen Mazdrashki1-54/+1
We already have a nice common test_domain_open() function in libnet/util.c
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-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: Remove multiple test_samr_close() impelementationsKamen Mazdrashki2-45/+15
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-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 Mazdrashki2-57/+5
2010-05-28s4/test: remove torture/libnet/utils.h as we are using proto.h nowKamen Mazdrashki5-61/+4
2010-05-28s4/test: change prototype for test_opendomain()Kamen Mazdrashki6-13/+14
- 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 Mazdrashki2-0/+26
It is to be used further for closing opened handles when testing using SAMR interface
2010-05-28s4/test: refactor NET-USERINFO test to be more 'torture' friendlyKamen Mazdrashki1-24/+6
Test may be further refactored to be converted as a test case (what it is actually)
2010-05-28s4/test: test_userinfo/_async tests should use passed user_name param valueKamen Mazdrashki1-2/+2
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 Mazdrashki3-28/+29
2010-05-26s4/test: Replace hand-made field count to testKamen Mazdrashki3-8/+11
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-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-1/+1
2010-04-14s4:torture/rpc: rename rpc.h => torture_rpc.hStefan Metzmacher13-13/+13
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-04-11subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij1-1/+1
Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
2010-03-29s4:torture/libnet:add explicit check for NTSTATUS r.out.resultGünther Deschner5-207/+223
Guenther Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-23s4-smbtorture: use torture_context in libnet domain tests as well.Günther Deschner1-8/+10
Guenther
2010-03-23s4-smbtorture: use torture_context for debugging output everywhere in libnet ↵Günther Deschner12-245/+271
torture tests. Mimir, please check. Guenther
2010-03-23s4-smbtorture: remove trailing whitespace in libnet torture tests.Günther Deschner14-185/+185
Guenther
2010-03-16s4:dsdb Change dsdb_get_schema() callers to use new talloc argumentAndrew Bartlett1-3/+3
This choses an appropriate talloc context to attach the schema too, long enough lived to ensure it does not go away before the operation compleates. Andrew Bartlett
2010-03-15s4:tortore/libnet: fix crash bugs because of incorrect function prototypesStefan Metzmacher6-26/+43
metze
2010-03-12s4:torture/libnet: make use of dcerpc_binding_handle stubsStefan Metzmacher6-91/+97
metze
2010-03-11s4:torture/libnet/libnet_user.c: fix double free in error pathStefan Metzmacher1-1/+0
metze
2010-03-11NET-API-BECOME-DC: convert to torture apiStefan Metzmacher1-54/+28
metze
2010-01-18idl: switched to using the WSPP names for the 'neighbour' DRS optionsAndrew Tridgell1-6/+6
The documentation shows that all these functions in fact use the same flags variable type. To be consistent between functions, and to allow easy reference to the WSPP docs, it is better for us to also use this generic DrsOptions bitfield rather than one per operations.
2009-12-25s4-libnet: Simple test for net.SetPassword() python bindingKamen Mazdrashki1-0/+62
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-11-17s4:dsdb Load objectGUID and extended DN defaultObjectCategory into the schemaAndrew Bartlett1-1/+1
The load of defaultObjectCategory as an extended DN means we need to use the common parsing functions I just split out, rather than the GET_DS_DN macro. The objectGUIDs are loaded so that we can create the extended DN when we load from LDIF (and are loaded for the other cases for consistency). Also adapt callers to API changes needed for common parsing code Andrew Bartlett
2009-11-12NET-API-BECOME-DC: resolve the host name to an address before callingStefan Metzmacher1-2/+16
libnet_BecomeDC and libnet_UnbecomeDC() We're supposed to pass in source_dsa_address... metze
2009-11-12s4:dsdb/repl Split the 'convert' or 'commit' stages in the DRS importAndrew Bartlett1-26/+38
This will allow us in future to do tests on the LDB values we generate from the DRS replication. Andrew Bartlett
2009-11-06s4/drs: dsdb_map_int2oid() replaced by dsdb_schema_pfm_oid_from_attid()Kamen Mazdrashki1-1/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>