1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

103 Commits

Author SHA1 Message Date
Matthieu Patou
56b1cff70e s4 torture: add new rpc torture tests for backup key remote protocol
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Feb  5 13:01:42 CET 2011 on sn-devel-104
2011-02-05 13:01:42 +01:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
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-12-11 04:16:13 +01:00
Andrew Bartlett
41999761f1 s4-torture Add tests for DES-only accounts PAC behaviour/validation.
Previously we didn't support DES-only in a Samba4 domain.  This is
important for some legacy systems that have not yet migrated from this
weak crypto.

Andrew Bartlett
2010-11-02 22:00:54 +11:00
Sumit Bose
896f3c8a49 s4-smbtorture: Added a torture test for forest trusts
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-25 13:48:22 +02:00
James Peach
21fe753303 smbtorture: Ensure that the RPC setup returns correct status. 2010-08-17 20:19:17 -07:00
Kamen Mazdrashki
c30f9bd734 s4-test: Move RPC-DSSYNC test in DRS-RPC test suite 2010-08-11 00:18:14 +03: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
e89502e0f5 s4-smbtorture: add RPC-SPOOLSS-ACCESS.
This test creates

- a user
- a user with BUILTIN\Administrators membership
- a user with BUILTIN\Print Operators membership
- a user with SePrintOperatorPrivilege (if available)
- a user with full access in security descriptor

and checks what access rights are granted in spoolss_OpenPrinterEx.

Guenther
2010-06-05 00:35:09 +02:00
Günther Deschner
bb4693d15e s4-smbtorture: completely rework RPC-SPOOLSS-PRINTER.
This is now a child testsuite to RPC-SPOOLSS. You can call simple tests via
RPC-SPOOLSS-{addprinter,addprinterex}-testname.

Guenther
2010-06-04 14:24:24 +02:00
Günther Deschner
e65164ff48 s4-smbtorture: convert RPC-SPOOLSS into a torture suite.
Guenther
2010-06-03 18:31:23 +02:00
Günther Deschner
29775e39b1 s4-smbtorture: add RPC-SPOOLSS-DRIVER test.
Guenther
2010-04-23 02:16:09 +02:00
Stefan Metzmacher
e1e2195a4a s4:torture/rpc: rename rpc.h => torture_rpc.h
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-14 20:27:11 +02:00
Günther Deschner
3cb56942ed s4-smbtorture: rework RPC-DFS test a bit.
Guenther
2010-03-19 22:46:16 +01:00
Günther Deschner
f5ab6fd788 s4-smbtorture: put all RPC-SAMB3-X torture tests into their own torture_suite.
Guenther
2010-03-19 20:23:33 +01:00
Michael Adam
9764db806f torture: add new test RPC-SAMR-PASSWORDS-LOCKOUT
This tests account lockout features.
Windows 2003r2 and Windows 2008r2 survice this test.

Note: Windows does not set the ACB_AUTOLOCK account flag when it
locks out an account.
One thing that could/should be added to this test is a check of
the lockout time property.

Michael
2010-01-20 17:32:58 +01:00
Erick Nogueira do Nascimento
48bdf3e608 s4-drs: torture test for DsGetReplInfo() (RPC-DSGETINFO test).
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-16 14:10:41 +11:00
Günther Deschner
a744dbcf2b s4-smbtorture: add RPC-SAMR-PASSWORDS-BADPWDCOUNT torture test.
This test checks the behavior (since w2k3 sp1) of the badPwdCount samr attribute
in relation to password history and successfull and unsucessful netlogon
samlogons.

Michael, please check. This should help verifiying Bug #4347.

Guenther
2010-01-12 12:09:47 +01:00
Volker Lendecke
4a19adadcc smbtorture4: Add rpc-samba3-getaliasmembership-0 2009-12-15 12:28:16 -08:00
Kamen Mazdrashki
b9e262c512 s4/drs(tort): Convert DSSYNC test to a test case fixture
Now it should be much more clear why and where a test
in DSSYNC test case has failed.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:47:16 +11:00
Günther Deschner
e9c6984cb6 s4-smbtorture: re-arrange netlogon LogonControl test.
The LogonControl tests now are split out to a new RPC-NETLOGON-ADMIN test that
tests the behaviour of that call when called by user, dc or workstation.

Guenther
2009-11-09 17:36:53 +01:00
Andrew Tridgell
84d0047377 s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Kamen Mazdrashki
bb6fda8a9a s4/tort: RPC-DRSUAPI test case refactored to match torture architecture 2009-09-11 11:53:18 +10:00
Kamen Mazdrashki
2904034410 tort: RPC-CRACKNAMES test case refactored 2009-09-08 22:44:50 +10:00
Günther Deschner
46184692ad s4-smbtorture: add RPC-NETLOGON-S3 to test samba3 netlogon server.
Guenther
2009-08-26 23:04:18 +02:00
Günther Deschner
47eb061b53 s4-smbtorture: move all privilege tests to RPC-LSA-PRIVILEGES.
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
29c3a277e1 s4-smbtorture: move all trusted domain tests to RPC-LSA-TRUSTED-DOMAINS.
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
b6fb8cf5f3 s4-smbtorture: add RPC-SPOOLSS-PRINTER test.
Guenther
2009-07-14 23:03:58 +02:00
Günther Deschner
50bb4bcc5b s4-smbtorture: add RPC-SAMR-MACHINE-AUTH test.
This test talks to a DC as a joined workstation member - in the same way
winbindd does, in particular the calls used in this test's query pattern
will all request for SEC_FLAG_MAXIMUM_ALLOWED access_mask
(which pretty much all of samba's client code does as well).

In fact this test verifies that winbind can correctly talk to a samba dc using
samr dcerpc calls.

Guenther
2009-06-29 14:40:08 +02:00
Günther Deschner
ec5c83c0db s4-smbtorture: add torture_suite_add_machine_workstation_rpc_iface_tcase.
Unlike torture_suite_add_machine_bdc_rpc_iface_tcase() which joins as a BDC
(ACB_SRVTRUST) this joins as a member workstation (ACB_WSTRUST).

Guenther
2009-06-29 12:43:32 +02:00
Günther Deschner
eb5e8dc82e s4-smbtorture: add RPC-SAMR-LARGE-DC test.
This rather simple test creates 4500 objects on a domain controller and checks
the enum calls for the correct number of results.

Guenther
2009-05-25 13:56:54 +02:00
Günther Deschner
0a9049be87 s4-smbtorture: add RPC-SAMR-USERS-PRIVILEGES test.
This test demonstrates the independence of the lsa and samr accounts while
remove a samr users that still has privileges granted.

Guenther
2009-05-18 22:54:14 +02:00
Günther Deschner
5f015920a8 s4-smbtorture: add very basic RPC-LSA-LOOKUPNAMES test.
Guenther
2009-05-11 16:44:39 +02:00
Günther Deschner
c794ba71b7 s4-smbtorture: add LSA-LOOKUPSIDS to verify bug #6263.
Guenther
2009-04-17 01:32:45 +02:00
Günther Deschner
10d72781fd s4-smbtorture: verify each password change via samlogon in SAMR-PASSWORDS-PWDLASTSET test.
Guenther
2009-01-06 16:03:54 +01:00
Stefan Metzmacher
2c31b7975d s4:torture: add simple RPC-BROWSER test
metze
2008-12-06 14:56:51 +01:00
Günther Deschner
465466e1af s4-smbtorture: move test to SAMR-PASSWORDS-PWDLASTSET.
Guenther
2008-11-28 14:09:18 +01:00
Günther Deschner
67018ed8bd s4-smbtorture: add very basic RPC-NTSVCS test.
Guenther
2008-11-12 10:19:53 +01:00
Jelmer Vernooij
a1cc278142 Remove use of global_loadparm during initialization of gensec. 2008-11-02 17:04:22 +01:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Stefan Metzmacher
40e7769959 s4:torture/rpc: add RPC-OBJECTUUID
This test shows that object uuids should be ignored
if they're present in a dcerpc request.

metze
2008-09-30 06:47:25 +02:00
Andrew Bartlett
960bd9df1f Add a test to explore Netlogon PAC validation
However, I have still not figured out this protocol yet, and the docs
are rather unclear... :-(

Andrew Bartlett
(This used to be commit d878643071a1477435a267e2944461d367cdfa79)
2008-08-27 21:36:27 +10:00
Simo Sorce
929adc9efa Make up the right dependencies now that ldb depends on libevents
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-06-14 11:59:19 -04:00
Stefan Metzmacher
7350ddeabf torture: add RPC-BENCH-SCHANNEL1 test
This tests SamLogonEx() calls on multiple (smb) connections
in parallel. Sadly the smb connect needs to be serialized
because of the reset on zero VC style behavior of windows.

Call it like this:
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 RPC-BENCH-SCHANNEL
or
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 -k no RPC-BENCH-SCHANNEL \
	--option="torture:nprocs=4" --option="torture:timelimit=1" \
	--extra-user SUB1\\sub1user%testsecret --extra-user SUB1\\sub1user%testsecret
or ...

Later we should add more tests, maybe using only one smb connection
and different netlogon pipes.

We should also test using the DCERPC_PFC_FLAG_CONC_MPX flag and just one
rpc connection.

DCERPC_PFC_FLAG_CONC_MPX /* supports concurrent multiplexing of a single connection.*/

metze
(This used to be commit 901426c24c74390f7b1c78bb7a07c020b6ef73eb)
2008-05-16 15:53:49 +02:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-27 14:02:46 +01:00
Simo Sorce
4e83011f72 Remove more event_context_init() uses from function calls within deep down the code.
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-21 18:12:33 -04:00
Kai Blin
a6b4d4fe81 r26395: spoolss: Add WinXP-like printer browsing test.
(This used to be commit 2ccc4d2af58b49ab1319ce87e0f15591b40db06f)
2007-12-21 05:49:24 +01:00
Jelmer Vernooij
4c4323009f r26327: Explicit loadparm_context for RPC client functions.
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
43696d2752 r26252: Specify loadparm_context explicitly when creating sessions.
(This used to be commit 7280c1e9415daabb2712db1372e23f9846272ede)
2007-12-21 05:47:29 +01:00
Volker Lendecke
f5556c7232 r25827: Start of samba3-regconfig test
(This used to be commit 59371e8f2d0abb2e63b0452cd0d3fe49107560a1)
2007-12-21 05:44:15 +01:00
Volker Lendecke
4e5e316022 r25688: Add a simple test for a samba3 regression
When trying an reqchal/auth2 for an unknown workstation account, we have
to return NT_STATUS_NO_TRUST_SAM_ACCOUNT to the auth2. v3-2-test right
now returns NT_STATUS_ACCESS_DENIED, which seems to prevent XP from
joining a Samba3 PDC.
(This used to be commit 99cc861238a33d43ccc4e97cb5ab756c0a097e1d)
2007-12-21 05:43:14 +01:00