Günther Deschner
13ede2bf7a
s4-smbtorture: also test keynames with '/' in it in SetPrinterDataEx keyname tests.
...
Guenther
2010-06-22 15:57:12 +02:00
Günther Deschner
e439b6cb8c
s4-smbtorture: activate all keys in SetPrinterData keys test.
...
(just skip some of them still against s3).
Guenther
2010-06-22 15:57:06 +02:00
Günther Deschner
c31ffaf587
s4-smbtorture: split out a "printerdata_keys" test for RPC-SPOOLSS-PRINTER.
...
This separates key and value tests for SetPrinterDataEx and GetPrinterDataEx
(and also speeds up the whole testsuite).
Guenther
2010-06-22 15:57:00 +02:00
Aravind Srinivasan
c668b21cd6
s4 torture: RAW-SFILEINFO display warning instead of error on unsupported info level
...
Also add a test to make sure setting the directory attribute is
disallowed.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-21 17:08:41 -07:00
James Peach
f5709975c1
smbtorture: Fix missing includes.
2010-06-21 14:12:58 -07:00
James Peach
6227eac607
smbtorture: Fixx off-by-one command line parsing.
...
If we are not in shell mode we require both the target and test name
arguments. Make sure we process these from the correct index.
2010-06-21 11:09:45 -07:00
James Peach
0fc18ead76
smbtorture: Add "target" command to interactive shell.
...
Add a "target" command to set the target server to test. Refactor
the command line argument processing a little so that you can run
--shell without any additional arguments.
2010-06-21 08:58:10 -07:00
James Peach
7a25e2efe9
smbtorture: Enhance shell "help" command.
...
Sort the command list alphabetically. Let the help command print
usage info for other commands.
2010-06-21 08:58:10 -07:00
James Peach
bf35aa8603
smbtorture: Add "auth" command to the shell.
...
Add a new "auth" command to set the cmdline credentials from withing
the smbtorture shell.
2010-06-21 08:58:10 -07:00
James Peach
3f398ec36d
smbtorture: Refactor interactive shell into independent commands.
...
Refactor the smbtorture interactive shell into a set of independent
command callbacks to make it easier to add more independent commands.
2010-06-21 08:58:10 -07:00
James Peach
9f69790355
smbtorture: Move interactive shell into a separate file.
2010-06-21 08:58:10 -07:00
James Peach
a5e14bded4
smbtorture: Print global options for interactive "list" command.
2010-06-21 08:58:10 -07:00
James Peach
12e15b0ac8
smbtorture: Add history support to shell mode.
2010-06-21 08:58:10 -07:00
James Peach
6f96293406
smbtorture: Add list command to smbtorture shell.
2010-06-21 08:58:10 -07:00
Jelmer Vernooij
c92db7b6dc
python: Use samba.tests.TestCase, make sure base class tearDown and
...
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Matthias Dieter Wallnöfer
3055ead4cf
s4:torture/ldap/basic.c - add more error code/messages tests
...
And now we do match at least the LDAP error code (the WERROR one does still
differ from Windows - we will see how to change that).
2010-06-19 17:53:24 +02:00
Matthias Dieter Wallnöfer
01e9d090f1
s4:torture/rpc/netlogon.c - make sure that the address family is set in little endian in the "AddressToSitenames" tests
2010-06-18 10:03:07 +02:00
Matthias Dieter Wallnöfer
917f6015a6
s4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run against s4
2010-06-18 10:03:07 +02:00
Stefan Metzmacher
d823e529b8
s4:torture/rpc/remote_pac: use dcerpc_netr_LogonSamLogon_r() instead of dcerpc_netr_LogonSamLogon()
...
metze
2010-06-17 10:17:33 +02:00
Günther Deschner
a6f1c111ff
s4-smbtorture: Remind myself we need to add a test for SMBsplretq in RAP-PRINTING.
...
Guenther
2010-06-16 17:10:15 +02:00
Stefan Metzmacher
6dbcffb51d
s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
...
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-16 14:07:28 +02:00
Günther Deschner
8843eea2e0
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
...
Guenther
2010-06-16 12:20:05 +02:00
Günther Deschner
185adc4c81
Revert "s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo()."
...
This reverts commit 1f1c04010a55e67d8dc2110276eed4cf2a8a0afa.
2010-06-16 12:18:32 +02:00
Günther Deschner
1a86532fce
s4-smbtorture: test smbcli_rap_netprintqgetinfo() with "" printqname.
...
Guenther
2010-06-16 12:15:24 +02:00
Günther Deschner
1f1c04010a
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
...
Guenther
2010-06-16 12:15:24 +02:00
Aravind Srinivasan
6da487580e
s4 torture: RAW-SEARCH: break out some of the old search levels
...
* Added two new parameters: raw_search_search and raw_ea_size which
can be enabled/disabled based on whether the server supports
RAW_SEARCH_SEARCH and/or RAW_SEARCH_EA_SIZE levels
* Skip unsupported levels from the server and give a warning rather
than failing.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-15 13:48:15 -07:00
Tim Prouty
2170a59215
s4 torture: RAW-SEARCH: Only test supported info levels
2010-06-15 13:48:15 -07:00
Andrew Bartlett
ecf782da87
s4:torture Rework NET-API-BECOMEDC test to use libnet_vampire callbacks.
...
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-15 10:51:34 +10:00
Zachary Loafman
2977c659ea
s4 torture: RAW-WRITE should check lockread_supported
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-14 17:13:44 -07:00
Matthias Dieter Wallnöfer
4d68147160
s4:torture - SAMR testsuite - now we do support "GetAliasMembership" as expected
2010-06-12 16:45:49 +02:00
Kamen Mazdrashki
c65eb4852c
s4/test-libnet: Re-align code a bit - more readable this way IMO
2010-06-11 17:46:36 +03:00
Kamen Mazdrashki
9baa73053e
s4/test-libnet: Refactor test_group_create() a little to:
...
- Close unused policy handle for created group
- re-align code - it is more readable this way IMHO
2010-06-11 17:46:35 +03:00
Kamen Mazdrashki
6eecb968cb
s4/test-libnet: Refactor test_user_create() little bit to:
...
- 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-11 17:46:35 +03:00
Kamen Mazdrashki
a735c1ade2
s4/test-libnet: add few comments for utility functions
2010-06-11 17:46:35 +03:00
Kamen Mazdrashki
84fb3ed8a5
s4/test-libnet: Move LSA close handle function to a common location
2010-06-11 17:46:34 +03:00
Kamen Mazdrashki
8714f130e5
s4/test-libnet: remove unused code
...
Pre-connecting SAMR and LSA pipes is implemented in
test_libnet_context_init() function
2010-06-11 17:46:34 +03:00
Kamen Mazdrashki
7168b1c99f
s4/test-libnet: Fix compile-time warning
2010-06-11 17:46:34 +03:00
Günther Deschner
bcc4383ef2
s4-smbtorture: rework internals of RPC-SPOOLSS-ACCESS testsuite.
...
Guenther
2010-06-11 00:31:17 +02:00
Kamen Mazdrashki
1ceb0dd92f
s4/test: use test_libnet_context_init() function to create libnet_context
...
This way we ensure that LIBNET call will be issued against
the DC we are testing against
2010-06-11 01:20:10 +03:00
Kamen Mazdrashki
d6d8ec80f9
s4/test: fix SEGFAULT in test_group_create when rid is NULL
...
Caller of this function may not need group RID and
in such case it passes NULL for rid parameter
2010-06-11 01:20:09 +03:00
Kamen Mazdrashki
eda4926120
s4/test-libnet: Helper func to initialize libnet_context
...
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-11 01:20:09 +03:00
Kamen Mazdrashki
85d7863b2c
s4/test: Call test_user_cleanup with original RDN for the user
...
'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-11 01:20:09 +03:00
Kamen Mazdrashki
61e5ac4a5a
s4/test: Fix incorrect NTSTATUS comparison
...
In case group already exists, we should get NT_STATUS_GROUP_EXISTS.
2010-06-11 01:20:09 +03:00
Kamen Mazdrashki
64a71d380c
s4/test: remove create/delete group implementation in API-CREATEGROUP test
...
We already have common implementation for create/delete
group in libnet/utils.c
2010-06-11 01:20:09 +03:00
Kamen Mazdrashki
d02c395abd
s4/test: Remove duplicated test_opendomain() functionality
...
We already have a nice common test_domain_open()
function in libnet/util.c
2010-06-11 01:20:09 +03:00
Kamen Mazdrashki
7135abcd8d
s4/test: libnet_user tests should use common test_user_cleanup
...
implementation instead of not-so-informative test_cleanup()
2010-06-11 01:20:08 +03:00
Kamen Mazdrashki
d1bcc23b2c
s4/test: Refactor test_user_cleanup to be more robust
...
We always call this function with user's account RDN
while samr_LookupNames() searches for samAccountName.
2010-06-11 01:20:08 +03:00
Kamen Mazdrashki
1b8a8ddfe0
s4/test: remove duplicated comment
2010-06-11 01:20:08 +03:00
Günther Deschner
5def19e4dc
s4-smbtorture: test workstation auth as well in RPC-SPOOLSS-ACCESS.
...
Guenther
2010-06-07 12:58:46 +02:00
Günther Deschner
e271a2b861
s4-smbtorture: handle printservers w/o printers in RPC-SPOOLSS-ACCESS.
...
Guenther
2010-06-07 11:21:26 +02:00