summaryrefslogtreecommitdiff
path: root/source4/torture/libnet
AgeCommit message (Collapse)AuthorFilesLines
2012-09-10Force cast to long as on some platform tv_usec is 32bit longMatthieu Patou1-2/+2
Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104
2012-04-30s4-libnet: Add mem_ctx to libnet_rpc_useradd calls (bug #8889)Andrew Bartlett1-1/+1
2012-04-24s4:libnet: pass an explicit mem_ctx to libnet_rpc_userinfo_send() (bug #8889)Stefan Metzmacher1-2/+2
This hopefully fixes the flakey autobuild. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Apr 24 16:43:03 CEST 2012 on sn-devel-104
2012-02-07torture/libnet: Include prototype headers.Jelmer Vernooij1-0/+1
2011-06-06s4-param Remove 'sam database' parameterAndrew Bartlett1-5/+5
This now just relies on the private dir parameter, which remains. Andrew Bartlett
2011-05-03s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett1-2/+3
This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
2011-01-03Use TestCase.get_credentials() where possible.Jelmer Vernooij1-4/+3
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-33/+34
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-10-12torture/becomedc: Add test for global schema, use samdb_connect().Jelmer Vernooij1-6/+8
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Oct 12 18:35:33 UTC 2010 on sn-devel-104
2010-09-15s4-libnet: print the domain name on domain open failureAndrew Tridgell2-2/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
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-08-31s4: use GetTimeOfDay macro instead of gettimeofdayBjörn Jacke1-1/+1
2010-08-02s4:torture/libnet: avoid dereferencing dcerpc_binding_handle internalsStefan Metzmacher1-4/+5
metze
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell11-30/+30
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-24s4-python: python is not always in /usr/binAndrew Tridgell1-1/+1
Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-19python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij1-3/+1
setUp methods are called, fix formatting.
2010-06-16s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher2-2/+2
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-15s4:torture Rework NET-API-BECOMEDC test to use libnet_vampire callbacks.Andrew Bartlett1-582/+59
The libnet_vampire code was derived from this code in the first place, but has continued to evolve, while this code has often bitrotted. This avoids the needless duplication of the callbacks, while keeping the toture wrapper. Andrew Bartlett Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
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.