James Peach
ec25a00031
smbtorture shell: Allow any config option to be set.
...
Not sure what I was thinking by restricting the shell to "torture:"
parametric options. It's really extemely useful to be able to set
arbitrary options.
2010-07-16 11:13:21 -07:00
Andrew Tridgell
6b266b85cf
s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
...
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-07-16 18:24:27 +10:00
Günther Deschner
595c5a2498
s4-smbtorture: add very simple RPC-BIND testsuite.
...
Guenther
2010-07-14 01:34:48 +02:00
Günther Deschner
14cf257969
s4-smbtorture: rename rpc/bind.c to rpc/multi_bind.c.
...
Guenther
2010-07-14 01:34:28 +02:00
Günther Deschner
b0d69a857c
Revert "s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS."
...
This reverts commit 3587bb63e21c3f033a17bb493dceb64b05fe85d6.
2010-07-08 10:59:16 +02:00
Steven Danneman
85504ae6ff
s4:libcli: Modify S4 client library to check for proper CN alignment
...
MS-CIFS 2.2.7.4.2 states that FILE_NOTIFY_INFORMATION structures in
change notify replies must be aligned to 4-byte boundaries.
This updates s4 client to check for this restriction and also adds a
torture test which should tickle a server into giving unaligned
structures if it doesn't follow the spec.
2010-07-06 13:28:02 -07:00
Günther Deschner
d56cc23c6a
s4-smbtorture: add my (C) to rap torture lib.
...
Guenther
2010-07-05 18:06:21 +02:00
Matthias Dieter Wallnöfer
6dc1c70876
s4:torture/rpc/samlogon.c - strip trailing whitespaces
2010-07-03 21:10:18 +02:00
Matthias Dieter Wallnöfer
e2e09f5c45
s4:torture/rpc/samlogon.c - provide a function which sets and afterwards resets the minimum password age
...
This is needed since we on s4 do now use the Windows Server standard of 1 day.
2010-07-03 21:04:47 +02:00
Günther Deschner
6da040261d
s4-smbtorture: enable extended SetValue test against Samba3.
...
Guenther
2010-07-02 10:50:21 +02:00
Günther Deschner
6961048487
s4-smbtorture: in extended setvalue winreg test, reduce max random buffer length to 16 bytes.
...
Guenther
2010-06-30 21:46:09 +02:00
Günther Deschner
e1c185d07d
s4-smbtorture: enable QueryMultipleValues{2} torture tests against samba3.
...
Guenther
2010-06-30 21:46:08 +02:00
Günther Deschner
a329dd0267
s4-smbtorture: add some more multiple_values_tests to RPC-WINREG.
...
Guenther
2010-06-30 21:46:07 +02:00
Günther Deschner
73fbc9c179
s4-smbtorture: remove duplicate torture_assert_sid_equal macro.
...
Guenther
2010-06-29 23:35:45 +02:00
Günther Deschner
1fb8e192ca
s4-smbtorture: add more sophisticated tests for winreg_QueryMultipleValues{2}.
...
Guenther
2010-06-29 23:10:16 +02:00
Günther Deschner
be7bff5eb5
s4-smbtorture: remove some pointless mem_equal tests in LOCAL-NDR-WINREG testsuite.
...
Guenther
2010-06-29 19:57:06 +02:00
Günther Deschner
92f3e143b7
s4-smbtorture: handle NT_STATUS_NOT_IMPLEMENTED in GetForestTrustInformation test.
...
When skipping over it, we can at least verify the credential chain.
Guenther
2010-06-29 17:19:28 +02:00
Günther Deschner
5bc77c8778
s4-smbtorture: use TEST_MACHINE_NAME in test_netr_GetForestTrustInformation().
...
Guenther
2010-06-29 17:16:25 +02:00
Günther Deschner
b31ff0537a
s4-smbtorture: add netr_GetForestTrustInformation test to RPC-NETLOGON.
...
Guenther
2010-06-29 17:13:01 +02:00
Günther Deschner
1662e383dd
s4-smbtorture: add NDR torture test for winreg_QueryMultipleValues2.
...
Guenther
2010-06-29 12:27:08 +02:00
Günther Deschner
7ae7750c40
s4-smbtorture: add RPC torture test for winreg_QueryMultipleValues2.
...
Guenther
2010-06-29 12:27:02 +02:00
Günther Deschner
bf07bf2857
winreg: fix winreg_QueryMultipleValues() IDL and torture tests.
...
Guenther
2010-06-29 11:48:53 +02:00
Kamen Mazdrashki
12bc68d4d0
s4/ndr: Fix tuncating of constant to a 'long' type
2010-06-29 00:35:22 +03:00
Matthias Dieter Wallnöfer
5606173997
s4:torture/rpc/samr.c - test_SetPassword_LastSet - introduce the delays also for s4
2010-06-28 14:51:07 +02:00
Matthias Dieter Wallnöfer
c0160d0614
s4:torture - SAMR password tests - activate support for password sets on level "18" and "21"
2010-06-28 14:51:06 +02:00
Günther Deschner
427c953273
s4-smbtorture: fix typo.
...
Not my day...
Guenther
2010-06-28 14:47:16 +02:00
Matthias Dieter Wallnöfer
f2e0ca2662
s4:torture/rpc/samr.c - test_SetPassword_LastSet - fix "pwdLastSet" test
...
- Remove superflous checks (on level 18, 24, 26 we do always have "pwdLastSet"
resets if "password_expired" > 0)
- Fixed some bugs
Signed-off-by: Günther Deschner <gd@samba.org>
2010-06-28 14:33:17 +02:00
Günther Deschner
c5bab3ea33
s4-smbtorture: add trustDomainPasswords blob test to LOCAL-NDR testsuite.
...
Our parsing of this struct is incorrect atm. and apparently also causes the s4
server to crash.
Thanks to Sumit Bose <sbose@redhat.com> for providing the auth data retrieved
from a w2k3 domain.msc operation.
Guenther
2010-06-28 14:18:04 +02:00
Kamen Mazdrashki
46556432c0
s4/drs-test: Add few comments in DrsDeleteObjectTestCase test
...
Also remove unused code
2010-06-28 04:43:28 +03:00
Kamen Mazdrashki
0c8ffc9f15
s4/drs-test: Fix whitespaces and permissions for delete_object.py test
...
Sorry I've missed to do this before
2010-06-26 01:15:50 +03:00
Jelmer Vernooij
0802f354ea
smbtorture: Fix loading of --load-list.
2010-06-25 11:32:59 +02:00
Kamen Mazdrashki
0dd6a759ed
s4/drs-test: Tests Deleted objects replication
...
Tests how deleted objects are replicated between two DCs.
Currently the test exploits following vulnerabilities:
- DsReplicaSync is not correctly implemented
- a 'deleted object' is restored (kind of) in case DC1 replicates
from DC2 before the 'deleted object' is replicated
2010-06-25 04:51:58 +03:00
Aravind Srinivasan
7e49a58ab9
s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO
...
Signed-off-by: Tim Prouty <tprouty@samba.org>
2010-06-24 08:22:25 -07:00
Andrew Tridgell
4cb423f527
s4-python: python is not always in /usr/bin
...
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-24 18:46:57 +10:00
Günther Deschner
ba40f38281
s4-smbtorture: test more valid key names in RPC-WINREG.
...
Guenther
2010-06-23 15:35:41 +02:00
Günther Deschner
2dc50ec44c
s4-smbtorture: more work on test values WINREG test.
...
Guenther
2010-06-23 15:35:41 +02:00
Günther Deschner
714c926cf0
s4-smbtorture: add test for different winreg SetValue value names.
...
Guenther
2010-06-23 12:16:12 +02:00
Günther Deschner
7f8b3a26ec
s4-smbtorture: Fix test_SetPrinterDataEx_keys and test_SetPrinterDataEx_values.
...
We want to continue, not to skip here.
Guenther
2010-06-23 10:48:18 +02:00
Günther Deschner
1e897f6561
s4-smbtorture: add "printerdata_values" test to RPC-SPOOLSS-PRINTER.
...
Guenther
2010-06-22 15:57:18 +02:00
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