1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

4389 Commits

Author SHA1 Message Date
Günther Deschner
a2e65a2add s3-selftest: add RAP-RPC testsuite for crosschecking RAP and DCERPC calls.
Guenther
2010-03-25 14:43:38 +01:00
Günther Deschner
45f6eae4c4 s4-smbtorture: fix drsblobs ndr torture test.
Guenther
2010-03-25 11:04:52 +01:00
Günther Deschner
2e20cdaeeb s4-smbtorture: activate job control tests against s3 in spoolss tests.
Spoolss job control commands work for cups in s3 now but not for other
backends. We need to investigate why.

Guenther
2010-03-25 11:04:52 +01:00
Günther Deschner
426cb9be1c s4-smbtorture: add print test to RPC-SPOOLSS-PRINTER as well.
Guenther
2010-03-25 00:50:44 +01:00
Günther Deschner
6913c57b2f s4-smbtorture: create several printjobs during print test in RPC-SPOOLSS.
Guenther
2010-03-25 00:50:44 +01:00
Günther Deschner
27c50255f6 s4-smbtorture: mention job id in GetJob test output in RPC-SPOOLSS.
Guenther
2010-03-25 00:50:30 +01:00
Günther Deschner
1bb8341871 s4-smbtorture: mention job id in SetJob test output in RPC-SPOOLSS.
Guenther
2010-03-25 00:50:18 +01:00
Günther Deschner
bb47e5b617 s4-smbtorture: add drsblobs ndr torture test.
Guenther
2010-03-24 18:30:38 +01:00
Günther Deschner
fb70368a97 s4-smbtorture: move up torture_assert_sid_equal at least to the torture/ndr level.
Guenther
2010-03-24 18:30:18 +01:00
Stefan Metzmacher
d3e7266676 s4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_state
Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:51 +01:00
Stefan Metzmacher
ee240799b6 s4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_data
Inspired by the NTLMSSP merge work by Andrew Bartlett.

metze

Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-24 17:34:50 +01:00
Günther Deschner
fcad13500b s4-smbtorture: add missing checks for WERROR results in RPC-SAMBA3 tests.
Guenther
2010-03-24 13:34:01 +01:00
Günther Deschner
8cd63a854e s4-smbtorture: fix some invalid parameters in RPC-SAMSYNC test.
Guenther
2010-03-24 13:18:33 +01:00
Günther Deschner
9fd24eb9c5 s4-smbtorture: cleanup some of the RPC-SAMBA3 tests.
This avoids printf, uses simplication functions where appropriate, etc.

Guenther
2010-03-24 12:48:29 +01:00
Günther Deschner
5e87e8576c s4-smbtorture: add rap_get_servername to RPC-SAMBA3 family of tests.
Guenther
2010-03-24 12:48:29 +01:00
Günther Deschner
247c6f53f9 s4-smbtorture: remove tailing whitespace in samba3rpc testsuite.
Guenther
2010-03-23 19:05:25 +01:00
Günther Deschner
bf9f24f571 s4-smbtorture: use torture_context in samsync test.
Guenther
2010-03-23 17:28:55 +01:00
Günther Deschner
9c586e6b1b s4-smbtorture: remove trailing whitespace from samsync torture test.
Guenther
2010-03-23 17:16:23 +01:00
Günther Deschner
3e04bf4fbc s4-smbtorture: use torture_context in libnet domain tests as well.
Guenther
2010-03-23 16:57:30 +01:00
Matthias Dieter Wallnöfer
bebb17ad0e s4:WINREG torture - fix an error (missing "break" in a "switch")
Sorry my fault - I didn't discover that earlier since we had binary data types
support activated in s4.
2010-03-23 16:46:17 +01:00
Günther Deschner
97a974e5b7 s4-smbtorture: use torture_context for debugging output everywhere in libnet torture tests.
Mimir, please check.

Guenther
2010-03-23 16:13:54 +01:00
Günther Deschner
f5eb8eb97f s4-smbtorture: remove trailing whitespace in libnet torture tests.
Guenther
2010-03-23 16:13:54 +01:00
Matthias Dieter Wallnöfer
f39ef98668 Revert "s4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4"
This reverts commit 0f2cf82e5e.

Naturally we have to revert this for s4 until a new storage mechanism for binary
REG_SZ and REG_*WORD values has been found.
2010-03-23 00:16:19 +01:00
Matthias Dieter Wallnöfer
0f2cf82e5e s4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4
Should be definitely fixed now.
2010-03-21 14:30:53 +01:00
Matthias Dieter Wallnöfer
d82b325bc3 s4:torture WINREG - enhance test for "QWORD" type
We need to know how this behaves.
2010-03-21 14:03:56 +01:00
Matthias Dieter Wallnöfer
66f94ca3ec s4:torture WINREG - enhance test for "DWORD_BIG_ENDIAN" type
We need to know how this behaves.
2010-03-21 14:03:56 +01: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
Günther Deschner
3144a988e5 s4-smbtorture: skip RAP netservergetinfo level 1 test against s3.
Guenther
2010-03-19 10:56:03 +01:00
Günther Deschner
dd4e2ebda5 s4-smbtorture: use torture_context in policy function in RPC-LSA-LOOKUP test.
Guenther
2010-03-19 09:21:15 +01:00
Stefan Metzmacher
95cefcfa4a s4:torture/rpc/browser.c: make use of dcerpc_binding_handle stubs
metze
2010-03-18 12:39:43 +01:00
Stefan Metzmacher
18fa68f259 s4:torture/rpc/ntsvcs.c: make use of dcerpc_binding_handle stubs
metze
2010-03-18 12:39:43 +01:00
Stefan Metzmacher
7456df5e75 s4:torture/rpc/frsapi.c: make use of dcerpc_binding_handle stubs
metze
2010-03-18 12:39:43 +01:00
Stefan Metzmacher
61c62a7fd1 s4:torture/rpc/handles.c: make use of dcerpc_binding_handle stubs
metze
2010-03-18 12:39:42 +01:00
Stefan Metzmacher
cef46436fc s4:torture/rpc/handles: check the correct last_fault_code
metze
2010-03-18 12:39:42 +01:00
Günther Deschner
b05f0db957 s4-smbtorture: fix typo in RPC-SAMR-PASSWORDS-LOCKOUT test.
Guenther
2010-03-17 23:58:56 +01:00
Günther Deschner
453fed4efd s4-smbtorture: skip BackupLog test against samba in RPC-EVENTLOG.
Guenther
2010-03-17 22:59:12 +01:00
Stefan Metzmacher
4b80e145b4 s4:torture/rpc/samba3rpc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:24 +01:00
Stefan Metzmacher
2d897beb7a s4:torture/rpc/samsync.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:23 +01:00
Stefan Metzmacher
532e034e28 s4:torture/rpc/samr_accessmask.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:22 +01:00
Stefan Metzmacher
f400fc54bc s4:torture/rpc/dssetup.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:22 +01:00
Stefan Metzmacher
6e8fd4df60 s4:torture/rpc/bench.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:21 +01:00
Stefan Metzmacher
aecd9dd195 s4:torture/rpc/samlogon.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:20 +01:00
Stefan Metzmacher
9639afae69 s4:torture/rpc/netlogon.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:19 +01:00
Stefan Metzmacher
c05a0f7823 s4:torture/rpc/schannel.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:19 +01:00
Stefan Metzmacher
2d31379853 s4:torture/rpc/testjoin.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:18 +01:00
Stefan Metzmacher
a91647d494 s4:torture/rpc/samr.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 18:26:17 +01:00
Günther Deschner
4ca2cc348e s4-smbtorture: workaround broken REG_MULTI_SZ from winreg in s3
during SetPrinterDataEx SPOOLSS test.

Guenther
2010-03-17 15:55:23 +01:00
Günther Deschner
481402bae5 s4-smbtorture: workaround the fact that you cannot fully rename a printer in samba.
Guenther
2010-03-17 15:54:58 +01:00
Günther Deschner
c05a06187d s4-smbtorture: only use "friendly" data in extended SetPrinterDataEx test.
Passes against windows but not against samba yet :-(

Guenther
2010-03-17 15:43:06 +01:00
Günther Deschner
d41b8c3053 s4-smbtorture: skip security descriptor tests against Samba in RPC-WINREG.
Guenther
2010-03-17 11:48:52 +01:00
Günther Deschner
3db9729240 s4-smbtorture: re-arrange tests in RPC-WINREG.
Mostly choping test_Open() into smaller parts.

Guenther
2010-03-17 11:48:52 +01:00
Günther Deschner
75a4dffac1 s4-smbtorture: add test to check different keytypes.
This test will be skipped for samba.

Guenther
2010-03-17 11:48:52 +01:00
Günther Deschner
89eaa9ed8e s4-smbtorture: add test_DeleteKey_opts to RPC-WINREG.
Guenther
2010-03-17 11:48:52 +01:00
Günther Deschner
80ba1295ec s4-smbtorture: add test_OpenKey_opts() to RPC-WINREG.
Guenther
2010-03-17 11:48:52 +01:00
Günther Deschner
c33a7ca84c s4-smbtorture: add test_CreateKey_opts() to RPC-WINREG test.
Guenther
2010-03-17 11:48:51 +01:00
Günther Deschner
f07572063d s4-smbtorture: put HKLM current_version test into an own function.
Guenther
2010-03-17 11:48:51 +01:00
Günther Deschner
8fd4375803 s4-smbtorture: use binding handle for simple SetValue winreg test.
Guenther
2010-03-17 11:48:51 +01:00
Stefan Metzmacher
50cc29b3cb s4:torture/rpc/lsa*: make use of dcerpc_binding_handle stubs
metze
2010-03-17 09:53:13 +01:00
Stefan Metzmacher
ba3b9fa36b s4:torture/rpc/remote_pac.c: make use of dcerpc_binding_handle stubs
metze
2010-03-17 09:53:11 +01:00
Günther Deschner
2070c04230 s4-smbtorture: add lsa_SetTrustedDomainInfoByName NDR test.
Thanks Simo for providing the data and pointing out the IDL failure.

Guenther
2010-03-16 21:52:36 +01:00
Günther Deschner
c323629a1a s4-smbtorture: use random buffer for extended SetValue test in RPC-WINREG.
Guenther
2010-03-16 16:08:49 +01:00
Stefan Metzmacher
cb5805d789 s4:torture/rpc/winreg.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:32 +01:00
Stefan Metzmacher
bffe222230 s4:torture/rpc/spoolss_win.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:31 +01:00
Stefan Metzmacher
b01cd7864d s4:torture/rpc/spoolss_notify.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:31 +01:00
Stefan Metzmacher
97d74a4407 s4:torture/rpc/spoolss_notify.c: fix compiler warnings
metze
2010-03-16 15:35:31 +01:00
Stefan Metzmacher
c1bf3244df s4:torture/rpc/spoolss.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:31 +01:00
Stefan Metzmacher
28a6e5398d s4:tortore/rpc/spoolss.c: fix compiler warning
metze
2010-03-16 15:35:30 +01:00
Stefan Metzmacher
d7699cb24a s4:torture/rpc/autoidl.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:30 +01:00
Stefan Metzmacher
d03286e078 s4:torture/rpc/mgmt.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:30 +01:00
Stefan Metzmacher
87a5596d46 s4:torture/rpc/remact.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:29 +01:00
Stefan Metzmacher
54ab68f043 s4:torture/rpc/oxidresolve.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:29 +01:00
Stefan Metzmacher
8bc8e6ca03 s4:torture/rpc/initshutdown.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:29 +01:00
Stefan Metzmacher
004a841317 s4:torture/rpc/epmapper.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:29 +01:00
Stefan Metzmacher
8c9b9d3336 s4:torture/rpc/eventlog.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
bdb8f91314 s4:tortore/rpc/eventlog.c: rename variable 'b' => 'br'
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
dfa92d445f s4:torture/rpc/svcctl.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
b0ea3248a4 s4:torture/rpc/atsvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:28 +01:00
Stefan Metzmacher
b8605cdd4e s4:torture/rpc/wkssvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Stefan Metzmacher
119f151321 s4:torture/rpc/srvsvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Stefan Metzmacher
88ab666f19 s4:torture/rpc/dsgetinfo.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Stefan Metzmacher
4434b3972d s4:torture/rpc/dssync.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:26 +01:00
Stefan Metzmacher
369def8a33 s4:torture/rpc/drsuapi*: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:26 +01:00
Stefan Metzmacher
6591713d26 s4:torture/rpc/unixinfo.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:26 +01:00
Günther Deschner
e55a975860 s4-smbtorture: remove NotifyChangeKeyValue s3 skip in RPC-WINREG:
Guenther
2010-03-16 15:30:13 +01:00
Günther Deschner
27d46ba266 s4-smbtorture: make it a bit easier to track failures in RPC-SPOOLSS-PRINTER.
Guenther
2010-03-16 15:13:52 +01:00
Simo Sorce
38cba5e930 s4:torture-ndr add lsarSetForestTrustInformation ndr test
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-16 15:12:19 +01:00
Stefan Metzmacher
8c5df22ffa Revert "Revert "s4-smbtorture: skip extended SetValue test against Samba (both dont survive).""
This reverts commit 508c218eb2.

This lets make test fail.

Matthias: please make sure make test still passes when you change things like
this...(maybe add something to knownfail or so)

metze
2010-03-16 15:09:41 +01:00
Stefan Metzmacher
7e859be26a s4:torture/rpc/dsgetinfo.c: fix name resolving for ldap_url
metze
2010-03-16 15:09:41 +01:00
Günther Deschner
745f6f2574 s4-smbtorture: avoid printf calls in RPC-WINREG test.
Guenther
2010-03-16 13:11:14 +01:00
Günther Deschner
4379b082b8 s3-spoolss: be very strict on OpenPrinter{Ex} failures for bad names.
Guenther
2010-03-16 10:43:57 +01:00
Andrew Bartlett
2de07761e0 s4:dsdb Change dsdb_get_schema() callers to use new talloc argument
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-16 19:26:03 +11:00
Erick Nogueira do Nascimento
2a04aa08c6 s4-drs: Torture testcase for DS_REPL_INFO_METADATA_2_FOR_OBJ infoType of DsGetReplInfo()
This torture testcase considers both cases for this infoType: when the flag
DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE is enabled and when not.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-03-16 13:31:08 +11:00
Günther Deschner
83b9e12513 s4-smbtorture: add simple printer rename test to RPC-SPOOLSS-PRINTER.
Guenther
2010-03-15 18:35:19 +01:00
Günther Deschner
08ec9b7e73 s4-smbtorture: fill PrinterDriverData with more values for consistency test.
Guenther
2010-03-15 17:27:12 +01:00
Günther Deschner
1eb0fbe68d s4-smbtorture: cleanup data after enumdata{ex} consistency test.
Guenther
2010-03-15 14:55:25 +01:00
Günther Deschner
06cbf05e8b s4-smbtorture: when cross checking enumdata{ex} make sure to have at least one entry.
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
6bfde084e6 s4-smbtorture: add PrinterInfo_to_SetPrinterInfo helper to RPC-SPOOLSS.
Guenther
2010-03-15 14:16:03 +01:00
Günther Deschner
c3eb509dea s4-smbtorture: fix torture_comment in RPC-SPOOLSS.
Guenther
2010-03-15 10:20:27 +01:00
Stefan Metzmacher
f49d5e3288 s4:tortore/libnet: fix crash bugs because of incorrect function prototypes
metze
2010-03-15 09:40:28 +01:00
Matthias Dieter Wallnöfer
508c218eb2 Revert "s4-smbtorture: skip extended SetValue test against Samba (both dont survive)."
This reverts commit 40e2c04f8a.

s4 should support now also the extended "SetValue" tests.
2010-03-14 18:46:23 +01:00
Stefan Metzmacher
b52b357ede s4:torture/rpc/spoolss.c: fix compiler warnings
metze
2010-03-13 08:20:24 +01:00
Günther Deschner
8f07737714 s4-smbtorture: warn on unexpected devicenames in spoolss devicemode test.
Guenther
2010-03-13 02:26:59 +01:00
Günther Deschner
6833094d6b s4-smbtorture: send even more random data in extended winreg SetValue test.
Guenther
2010-03-13 01:38:57 +01:00
Günther Deschner
33d9901ecb s4-smbtorture: fix build and handle in spoolss test.
it's friday night...

Guenther
2010-03-13 01:34:31 +01:00
Günther Deschner
d39ece17e0 s4-smbtorture: add spoolss EnumPrinterData vs EnumPrinterDataEx consistency test.
Guenther
2010-03-13 01:12:22 +01:00
Günther Deschner
ab33b991de s4-smbtorture: refactor spoolss EnumPrinterData test.
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
1d9d617d97 s4-smbtorture: refactor SetPrinterData() calls a little more.
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
3de2f0475d s4-smbtorture: re-arrange spoolss_SetPrinterData() tests.
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
f064a182eb s4-smbtorture: make sure RPC-SPOOLSS passes against 64bit archs (w2k8r2).
Guenther
2010-03-13 01:12:21 +01:00
Stefan Metzmacher
0f210749a7 s4:torture/rpc/dfs.c: make use of dcerpc_binding_handle stubs
metze
2010-03-12 15:25:53 +01:00
Stefan Metzmacher
81ac17d12d s4:torture/rpc/echo.c: make use of dcerpc_binding_handle stubs
metze
2010-03-12 15:25:53 +01:00
Stefan Metzmacher
f1633934cd s4:torture/libnet: make use of dcerpc_binding_handle stubs
metze
2010-03-12 15:25:52 +01:00
Stefan Metzmacher
7be154a616 s4:torture/ntp: make use of dcerpc_binding_handle stubs
metze
2010-03-12 15:25:52 +01:00
Stefan Metzmacher
ff54cbe3d4 s4:torture/rpc: make use of use tevent_req based dcerpc_binding_handle stubs
metze
2010-03-12 15:25:48 +01:00
Günther Deschner
98ba174fa2 s4-smbtorture: add netr_SamLogon test with NULL domain to RPC-NETLOGON-S3.
This is to demonstrate how a "Windows 2002 Service Pack 3 2600" box constantly
crashes smbd (in preparation of fixing bug #7237).

Guenther
2010-03-11 23:25:04 +01:00
Günther Deschner
40e2c04f8a s4-smbtorture: skip extended SetValue test against Samba (both dont survive).
Guenther
2010-03-11 20:48:05 +01:00
Günther Deschner
2324b07726 s4-smbtorture: test NULL and "" valuenames as well in query for wellknown winreg key.
Guenther
2010-03-11 20:42:49 +01:00
Günther Deschner
e0d85f87b7 winreg: add winreg_KeyType enum.
Guenther
2010-03-11 20:23:47 +01:00
Günther Deschner
09ea04a7f8 s4-smbtorture: add extended SetValue test to RPC-WINREG.
Really looks like a blob based database frontend.

As it seems, we can set *any* type of data with *any* content on Windows and get
the exact same data back.

Guenther
2010-03-11 19:03:21 +01:00
Günther Deschner
3a8d85da68 s4-smbtorture: more work on test_key_value() RPC-WINREG test.
Guenther
2010-03-11 19:01:07 +01:00
Stefan Metzmacher
0d6c19b976 RPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()
metze
2010-03-11 15:13:52 +01:00
Stefan Metzmacher
4585ea06a5 s4:torture/libnet/libnet_user.c: fix double free in error path
metze
2010-03-11 15:13:52 +01:00
Stefan Metzmacher
dd934472e8 NET-API-BECOME-DC: convert to torture api
metze
2010-03-11 13:31:40 +01:00
Stefan Metzmacher
4398871d1f RPC-DSSYNC: fix the build after idl changes
metze
2010-03-11 13:31:39 +01:00
Günther Deschner
3fd5ac6344 s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.
Guenther
2010-03-11 00:09:04 +01:00
Günther Deschner
01801f3f94 s4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.
Guenther
2010-03-10 23:10:44 +01:00
Günther Deschner
25d27ff576 Revert "s4-smbtorture: disable winreg QueryValue test for today."
This reverts commit 420e3b8553.
2010-03-10 22:04:02 +01:00
Kamen Mazdrashki
28cb274220 s4/drs: DsWriteAccountSpn - Propagating IDL changes to source code
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-10 17:12:04 +01:00
Kamen Mazdrashki
2483ed362b s4/drs: DsCrackNames - Propagating IDL changes to source code
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-10 17:12:02 +01:00
Kamen Mazdrashki
9f21787131 s4/drs: DsGetNCChanges - Propagating IDL changes to source code
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-10 17:11:57 +01:00
Günther Deschner
52ca26a820 s4-smbtorture: do full winreg QueryValue test for values we created.
Guenther
2010-03-10 16:12:22 +01:00
Günther Deschner
420aac7538 s4-smbtorture: check for non existing value under version key in RPC-WINREG.
Guenther
2010-03-10 16:12:22 +01:00
Günther Deschner
420e3b8553 s4-smbtorture: disable winreg QueryValue test for today.
wow, both s3 and s4 crash on full coverage winreg QueryValue testing.

Guenther
2010-03-10 02:54:27 +01:00
Günther Deschner
0a253e6b72 s4-smbtorture: fix some build warnings in RPC-SPOOLSS test.
Guenther
2010-03-10 02:54:26 +01:00
Günther Deschner
ae79d8ce02 s4-smbtorture: on HKLM hive test the well known CurrentVersion value.
Guenther
2010-03-10 00:46:23 +01:00
Günther Deschner
722daf43d0 s4-smbtorture: add full coverage test for winreg QueryValue calls.
Guenther
2010-03-10 00:46:23 +01:00
Günther Deschner
62b41e6842 s4-smbtorture: rework test_winreg_QueryValue in RPC-SPOOLSS-PRINTER once again.
Guenther
2010-03-10 00:46:23 +01:00
Günther Deschner
6d10645bca s4-smbtorture: add tests for set and delete value in RPC-WINREG.
Guenther
2010-03-10 00:46:23 +01:00
Matthias Dieter Wallnöfer
74166c380c s4:torture/rpc/netlogon.c - "LogonGetDomainInfo" test - make it compatible against Windows Server 2008
This is a reworked version of the mentioned test which passes against Windows
Server 2008. The previous version, also mainly written by me passed only against
Windows Server <= 2003.
2010-03-09 17:19:04 +01:00
Günther Deschner
48cdca0d47 s4-smbtorture: fix uninitialized variable in winreg QueryValue call.
Guenther
2010-03-09 16:14:39 +01:00
Stefan Metzmacher
2450fc1c27 s4:libcli/wrepl: implement wrepl_request_send as a tevent_req based wrapper
metze
2010-03-07 16:52:36 +01:00
Stefan Metzmacher
fc41e4791f s4:torture/nbt: use wrepl_associate_stop() instead of build the request by hand
metze
2010-03-07 16:52:34 +01:00
Stefan Metzmacher
6dfc96c329 s4:torture/nbt: use wrepl_request() instead of wrepl_request_send() followed by wrepl_request_recv()
metze
2010-03-07 16:52:34 +01:00
Kamen Mazdrashki
95f2226265 s4/tort: fix annoying "union spoolss_PrinterInfo" undefined warnings
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-06 00:07:32 +01:00
Günther Deschner
58c9070746 s4-smbtorture: fix RPC-SPOOLSS-WIN after PrinterData IDL changes.
Guenther
2010-03-05 20:35:50 +01:00
Günther Deschner
6cbb8fdc48 s4-smbtorture: fix test_SetPrinterDataEx_matrix() call. sorry...
Guenther
2010-03-05 16:01:33 +01:00
Günther Deschner
d4db966c06 s4-smbtorture: when checking PrinterData matrix, include winreg cross reference checks.
Guenther
2010-03-05 15:19:50 +01:00
Günther Deschner
f385f4aeb0 s4-smbtorture: hand down printername to test_SetPrinterDataEx_matrix.
Guenther
2010-03-05 15:18:30 +01:00
Günther Deschner
c5fb6551d9 s4-smbtorture: add more paranoid checks for REG_DWORD SetPrinterDataEx tests.
Guenther
2010-03-05 15:18:17 +01:00
Günther Deschner
65f453ce71 s4-smbtorture: remove check for selfmade parsing artefact.
We were checking against a phenomenon that we created ourselves at the pidl
layer...

Guenther
2010-03-05 15:18:01 +01:00
Günther Deschner
f797ec9d81 s4-smbtorture: fix smbtorture after GetPrinterData{Ex} after IDL changes.
Guenther
2010-03-05 15:18:00 +01:00
Günther Deschner
ca319bfff2 s4-smbtorture: fix smbtorture after SetPrinterData{Ex} IDL changes.
Guenther
2010-03-05 15:17:59 +01:00
Stefan Metzmacher
4c51c07380 s4:torture/nbt: avoid the usage of wrepl_pull_table_send()
metze
2010-03-05 14:09:00 +01:00
Günther Deschner
b3765afd38 s4-smbtorture: skip NotifyChangeKeyValue test against s3 for now.
Guenther
2010-03-05 11:09:05 +01:00
Matthias Dieter Wallnöfer
12ae05939f s4:torture/rpc/samr.c - add some decision possibility constants to some switch
At the moment nothing is done when the enumeration variable is set to one of
those constants as before. This is only to quite nasty warnings.
2010-03-05 08:55:47 +01:00
Matthias Dieter Wallnöfer
ce82f91614 s4:torture/rpc/samr.c - make some argument of function "test_SamLogon_with_creds" constant
This to quiet warnings.
2010-03-05 08:55:47 +01:00
Matthias Dieter Wallnöfer
bfd31db9a9 s4:torture/winbind/struct_based.c - fix up (un)signedness of a function argument
Otherwise always a warning is generated.
2010-03-05 08:55:47 +01:00
Andrew Tridgell
2e1e446ba3 s4-torture: fixed commas separating C statements 2010-03-05 16:12:05 +11:00
Matthias Dieter Wallnöfer
a21b49bb38 s4:torture/rpc/samr - Fix up SAMR-USERS test
"QueryDomainInfo" returns only global groups, "QueryDisplayInfo" also universal
ones. Consider MS-SAMR 3.1.5.5.1.1 and 3.1.5.3.1.
2010-03-03 17:45:58 +01:00
Matthias Dieter Wallnöfer
051eb0b575 s4:torture/rpc/samr - enhance the "EnumDomainGroups" test regarding universal groups
Find the "Enterprise Admins" group which does exist on s4 and Windows
directories and is always per default universal. Test this only when the target
is set to s4 (s3 deployments don't contain this group). If the number of
returned objects is "0" (count) then we are likely testing the builtin domain of
an AD deployment.Then we ignore the inexistent "Enterprise Admins" group.

I didn't enhance the test for "QueryDomainInfo" since this does itself a
comparison of all returned objects with the "EnumDomainGroups" call. Therefore
if the latter passes, and the "QueryDomainInfo" test passes also the
"QueryDomainInfo" call is okay regarding groups.
2010-03-03 17:20:01 +01:00
Günther Deschner
f36dafd852 s4-smbtorture: fix WINBIND-STRUCT assumptions about getpwent() for s3.
In samba3 it is not an error when no users are returned in getpwent() calls
(e.g. on a DC w/o interdomain trusts).

Kai, please check.

Guenther
2010-03-02 19:03:17 +01:00
Stefan Metzmacher
522e4f3d2b s4:RPC-ECHO: don't ignore errors in the Sleep test now that we support async rpc over ncacn_np
metze
2010-03-01 18:45:21 +01:00
Stefan Metzmacher
719cecba84 s4:RPC-NETLOGON: remove useless rpc callback
If we got a failure from one request we bail out early.

metze
2010-03-01 16:11:58 +01:00
Stefan Metzmacher
22b1e0bf32 s4:RPC-ECHO: don't look at the internals of 'struct rpc_request'
metze
2010-03-01 16:11:57 +01:00
Stefan Metzmacher
c84b4b23c8 s4:torture/rpc: make use of explicit dcerpc_*_recv functions
metze
2010-03-01 16:11:55 +01:00
Günther Deschner
1a64d3cbc6 s4-smbtorture: add stricter SetPrinterDataEx tests to spoolss tests.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
4f6634e56d s4-smbtorture: add test_SetPrinterDataEx to RPC-SPOOLSS-PRINTER.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
74c7c1cc7f s4-smbtorture: return needed size pointer from test_GetPrinterDataEx.
Guenther
2010-03-01 15:22:29 +01:00
Günther Deschner
e76b8a0700 s4-smbtorture: test at least three different regtypes in test_SetPrinterDataEx.
Guenther
2010-03-01 15:22:29 +01:00
Stefan Metzmacher
9ada48ffdb s4:torture/rpc: use generate_random_password()
metze
2010-02-26 08:57:29 +01:00
Stefan Metzmacher
525a1fe775 s4:RPC-DSSYNC: pass the ip address to the cldap code instead of a name
metze
2010-02-26 13:22:12 +11:00
Stefan Metzmacher
3751485c84 s4:torture: use a connected CLDAP socket.
This is needed because we don't (want) to specify an explicit
local address. And the socket family (ipv4 vs. ipv6) needs to
be autodetected based on the remote address before the
socket() syscall.

Otherwise we would try to connect to a ipv4 address through an
ipv6only socket.

metze
2010-02-26 13:22:12 +11:00
Günther Deschner
8ee516eb9e s4-smbtorture: define environment in one place in RPC-SPOOLSS test.
Guenther
2010-02-25 19:10:43 +01:00
Günther Deschner
d6cb1cc85f s4-smbtorture: try to set every single devicemode component in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-25 13:13:57 +01:00
Günther Deschner
bbdd1412b2 s4-smbtorture: move ChangeID test to the list of tests we run against created printers.
Guenther
2010-02-25 13:13:33 +01:00
Matthias Dieter Wallnöfer
68caf90606 s4:torture/ldap/basic.c - add a basic test for referral return
I implemented this referral test in C since the LDB python API isn't capable
to extract referrals from search result sets (there the result sets are simple
lists which contain only the matching entries).

First I enhanced the RootDSE test to return all partition base DNs in a new
null-terminated list "partitions". Then I used this in my referrals test which
I've implemented in the LDB api since I needed some certain DN functions.
2010-02-25 08:17:11 +11:00
Kamen Mazdrashki
83007e06c1 s4/drs: Propagate drsuapi_DsReplicaGetInfoRequest2 changes in source code 2010-02-24 14:14:09 +02:00
Kamen Mazdrashki
30ac3caade s4/drs: Propagate drsuapi_DsReplicaGetInfoRequest... changes into source code 2010-02-24 14:14:08 +02:00
Kamen Mazdrashki
99db858b15 s4/drs: Propagate drsuapi_DsReplicaSync changes in source base 2010-02-24 14:14:07 +02:00
Kamen Mazdrashki
8747e695fe s4/drs: Propagate drsuapi_DsReplicaSyncRequest1 changes in source base 2010-02-24 14:14:07 +02:00
Günther Deschner
1b78573c2d s4-smbtorture: verify that the client cpu architecture has no influence on the
calculated buffer size in RPC-SPOOLSS.

Guenther
2010-02-24 11:43:20 +01:00
Steven Danneman
2523b20349 s4/torture/smb2: Add two new SMB2 compound tests
These tests server behavior when a client compounds both synchronous
and asynchronous requests.
2010-02-23 13:15:45 -08:00
Simo Sorce
1203de99b1 s4:schannel merge code with s3
After looking at the s4 side of the (s)channel :) I found out that it makes
more sense to simply make it use the tdb based code than redo the same changes
done to s3 to simplify the interface.

Ldb is slow, to the point it needs haks to pre-open the db to speed it up, yet
that does not solve the lookup speed, with ldb it is always going to be slower.

Looking through the history it is evident that the schannel database doesn't
really need greate expanadability. And lookups are always done with a single
Key. This seem a perfet fit for tdb while ldb looks unnecessarily complicated.

The schannel database is not really a persistent one. It can be discared during
an upgrade without causing any real issue. all it contains is temproary session
data.
2010-02-23 12:46:50 -05:00
Matthias Dieter Wallnöfer
6de98ba10b s4:torture/ldap/basic.c - add some "const"
In addition I removed a "talloc_free(req)" since we never free elsewhere the
requests explicitly and do it only indirectly with freeing the "conn" object
when the testsuite terminates.
2010-02-22 21:19:27 +01:00
Günther Deschner
ec0aa8a5c9 s4-smbtorture: more work on devicemode tests.
Guenther
2010-02-19 15:25:42 +01:00
Günther Deschner
0e95a6a09c s4-smbtorture: explain failure conditions in printer device mode tests a little more.
Guenther
2010-02-19 14:27:31 +01:00
Günther Deschner
f2ecec3dcd s4-smbtorture: add --option=torture:spoolss_check_size=yes.
This disables the size calculation comparison by default.

Guenther
2010-02-19 14:25:19 +01:00
Günther Deschner
299e5bc2ba s4-smbtorture: print more comments while running SD and DM tests in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-19 14:24:18 +01:00
Günther Deschner
998a7b4e3f s4-smbtorture: skip printer info cross tests against samba 3 for now.
Not even w2k8r2 passes them atm.

Guenther
2010-02-18 01:49:02 +01:00
Günther Deschner
97d36377d3 s4-smbtorture: try more combinations to find printers in test_EnumPrinters_findname().
Also take a note of servers returning full UNC printer paths although we did not
set the servername.

Guenther
2010-02-18 01:48:52 +01:00
Günther Deschner
a1ba72f84c s4-smbtorture: simplify test_PrinterInfo_DevMode a bit.
Guenther
2010-02-18 01:48:45 +01:00
Günther Deschner
57847c2fee s4-smbtorture: avoid potential loop while adding a new printer in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-18 01:48:36 +01:00
Anatoliy Atanasov
0e8fe821c9 s4/drs:kccdrs_replica_get_info_obj_metadata implementation
Fix the names of the drsuapi_DsReplicaInfoType enum and rebuild the .idl
The get_info_obj_metadata implementation is ported from implementation
i developed and tested at the samba io lab 2009
2010-02-17 18:03:31 +02:00
Günther Deschner
3a9dc490b4 s4-smbtorture: unify test list to run against single created printers in RPC-SPOOLSS-PRINTER.
This is to make sure we run the same tests for printers created via AddPrinter
and via AddPrinterEx.

Guenther
2010-02-17 11:29:37 +01:00
Günther Deschner
b32c1e2975 s4-smbtorture: also test level 2 sets for devicemodes and see if they persist.
Guenther
2010-02-17 11:29:37 +01:00
Günther Deschner
ff5bfb9708 s4-smbtorture: refactor setprinter devicemode calls in RPC-SPOOLSS-PRINTER.
Guenther
2010-02-17 11:29:36 +01:00
Günther Deschner
020c8df281 s4-smbtorture: fix spoolss SD test against w2k8r2.
Guenther
2010-02-16 10:47:05 +01:00
Günther Deschner
41bb8767a2 s4-smbtorture: more work on test_PrinterInfo_DevMode RPC-SPOOLSS-PRINTER.
Guenther
2010-02-16 09:22:35 +01:00
Günther Deschner
1e59e5d8c9 s4-smbtorture: allow to call OpenPrinterEx with devicemode.
Guenther
2010-02-16 09:20:25 +01:00
Erick Nogueira do Nascimento
23d1dd5189 s4-drs: DsGetReplInfo() refactoring 2010-02-16 08:34:28 +11:00
Günther Deschner
bb05595b0a s4-smbtorture: more work on SD tests for RPC-SPOOLSS.
Guenther
2010-02-15 22:17:01 +01:00
Günther Deschner
71cfcee6ba s4-smbtorture: add rather simple spoolss device mode test.
Guenther
2010-02-15 22:16:25 +01:00
Günther Deschner
a6192d766f s4-smbtorture: use test_SetPrinter call in spoolss security descriptor tests.
Guenther
2010-02-15 22:15:33 +01:00
Günther Deschner
cdf2f6b672 s4-smbtorture: w2k8r2 allows to add printers w/o defining printprocessor.
Guenther
2010-02-15 22:12:55 +01:00
Günther Deschner
72f250ac16 s4-smbtorture: add some security descriptor tests to RPC-SPOOLSS and RPC-SPOOLSS-PRINTER.
Guenther
2010-02-15 11:08:16 +01:00
Kai Blin
b99d9f86e4 libwbclient: Separate out the async functions 2010-02-13 14:30:36 +01:00
Andrew Tridgell
700f464951 s4-torture: use TYPESAFE_QSORT() in smbtorture 2010-02-13 22:36:12 +11:00
Andrew Tridgell
91cb7b7c60 test:local added LOCAL-DLINKLIST testsuite
(cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702)
2010-02-10 15:55:34 -08:00
Günther Deschner
f8778ba8f4 s4-smbtorture: use test_GetPrinter_level in RPC-SPOOLSS-NOTIFY.
Guenther
2010-02-10 01:00:25 +01:00
Andrew Tridgell
580f955664 s4-torture: allow host-only in unc lists in smbtorture
Allow UNC lists like this:

 192.168.2.1
 192.168.2.2
 192.168.2.3

the share name will be taken from the command line
2010-02-09 14:46:09 +11:00
Günther Deschner
aa72950b3d s4-smbtorture: skip over ValidatePassword if DCERPC error is returned.
Guenther
2010-02-08 14:31:16 +01:00
Andrew Tridgell
f692c6dbc4 s4-torture: more useful error message in SMB2-DIR 2010-02-08 11:05:00 +11:00
Andrew Tridgell
6cf5bdd3d3 s4-torture: handle NT_STATUS_CONNECTION_RESET
a CONNECTION_RESET is now the normal "client disconnect" status code
2010-02-04 21:22:43 +11:00
Matt Kraai
d8071e7ed7 Change uint_t to unsigned int in source4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:18 +01:00
Stefan Metzmacher
e3aeea29a4 s4:NBT-WINSREPLICATION: don't mark a local variable as static
This was somehow introduced in commit 8773e743c5.

metze
2010-02-02 07:18:15 +01:00
Stefan Metzmacher
431d75fc9c s4:NBT-WINS: test large scopes
metze
2010-02-01 15:32:38 +01:00
Stefan Metzmacher
70779a46a7 s4:NBT-WINS: pass the expected rcode of the name registration to the test code
metze
2010-02-01 15:32:36 +01:00
Stefan Metzmacher
c1d8dc01fc s4:NBT-WINSREPLICATION: test replication with names including scopes
metze
2010-02-01 15:23:35 +01:00
Stefan Metzmacher
331505f09d s4:NBT-WINSREPLICATION: fix compiler warnings
metze
2010-02-01 15:23:34 +01:00
Stefan Metzmacher
07b06e51bb s4:NBT-WINSREPLICATION: use an array of nbt_names to loop over different names
metze
2010-02-01 15:23:33 +01:00
Günther Deschner
42f5125521 s4-smbtorture: check for RouterReplyPrinterEx packets inside backchannel in RPC-SPOOLSS-NOTIFY.
Guenther
2010-01-31 21:00:00 +01:00
Günther Deschner
0c6aae4d53 s4-smbtorture: also test RouterRefreshPrinterChangeNotify call in RPC-SPOOLSS-NOTIFY.
Guenther
2010-01-31 20:59:56 +01:00
Günther Deschner
377abba0e9 s4-smbtorture: rework spoolss_NotifyOption handling in RPC-SPOOLSS-NOTIFY.
Guenther
2010-01-31 20:49:53 +01:00
Kamen Mazdrashki
2dc56d68fa s4/ldap: Test to expoit ldb_ildap bug in case of nested search requests
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-29 14:09:53 +01:00
Günther Deschner
0e2d1cf9c4 s4-smbtorture: pick correct last packet while checking backchannel replies in RPC-SPOOLSS-NOTIFY.
Guenther
2010-01-27 15:04:00 +01:00
Michael Adam
098fc8c09c s4:torture: refactor querying of domain info out into test_QueryDomainInfo2_level()
Used in several places.

(Note: The _level suffix in the function name is just because
test_QueryDomainInfo2() already exists as an overall test for all levels.)

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
0a33b20f70 s4:torture: create new test_SetDomainInfo_ntstatus()
for checking for SetDomainInfo giving a desired return code.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
c1d157a481 s4:torture: refactor setting of domain inf out into test_SetDomainInfo()
and use it in several places.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Michael Adam
50a46cff76 s4:torture: refactor setting account flags out into test_SetUserInfo_acct_flags()
and use this in four places (enabling/disabling accounts).

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27 11:24:42 +01:00
Stefan Metzmacher
601642d923 s4:smbtorture: add BASE-BENCH-HOLDOPEN
This is useful for manual performance testing with a large
number of share mode entries.

metze
2010-01-26 15:23:24 +01:00
Günther Deschner
7148eff0b7 s4-smbtorture: also test smbc_getOptionUseCCache 2010-01-26 12:11:28 +01:00
Günther Deschner
5dfec4f36b s4-smbtorture: split spoolss_RemoteFindFirstPrinterChangeNotifyEx test into smaller parts.
Guenther
2010-01-25 11:20:06 +01:00
Jelmer Vernooij
f679def4f2 s4: Fix a few warnings. 2010-01-21 16:15:11 +13: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
Günther Deschner
f8314c27b3 s4-smbtorture: remove unneeded ncaclrpc dir setup from RPC-SPOOLSS-NOTIFY.
Guenther
2010-01-19 17:17:29 +01:00
Günther Deschner
40d3408dd3 s4-smbtorture: also configure check smbc_setOptionCaseSensitive for LIBSMBCLIENT testsuite.
Guenther
2010-01-19 16:24:35 +01:00
Günther Deschner
f5bba4034b s4-smbtorture: support spoolss_ReplyClosePrinter server call in RPC-SPOOLSS-NOTIFY.
A handle obtained with spoolss_ReplyOpenPrinter will be closed with
spoolss_ReplyClosePrinter when we call spoolss_ClosePrinter on the remote side.

Guenther
2010-01-19 14:14:30 +01:00
Günther Deschner
2b68215a22 s4-smbtorture: restructure spoolss server implementations in RPC-SPOOLSS-NOTIFY.
Guenther
2010-01-19 14:14:30 +01:00
Günther Deschner
e0660ed1bc s4-smbtorture: skip ReplyOpenPrinter test in RPC-SPOOLSS-NOTIFY while testing s3.
Guenther
2010-01-19 14:14:30 +01:00
Günther Deschner
7d1c1e0083 s4-smbtorture: strip trailing whitespace.
Guenther
2010-01-19 14:14:30 +01:00
Andrew Tridgell
f461a72ec3 idl: switched to using the WSPP names for the 'neighbour' DRS options
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.
2010-01-18 07:25:18 +11:00
Kai Blin
791a2df656 s4 selftest: Fix and reenable WINBIND-STRUCT.NETBIOS_NAME test 2010-01-16 12:38:12 +01:00
Andrew Tridgell
4e0090c917 s4-torture: fixed DsReplicaGetInfo elements 2010-01-16 14:45:33 +11:00
Andrew Tridgell
93531a52f0 s4-idl: in DsReplicaGetInfo unknown2 is actually an enumeration_context 2010-01-16 14:10:44 +11: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
9d881f4cfb s4-smbtorture: add setup_schannel_netlogon_pipe() function.
Guenther
2010-01-15 00:53:16 +01:00
Andreas Schneider
33a4739090 s4-torture: Migrate ntp_signd test to tsocket.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-14 21:37:48 +01:00
Günther Deschner
d95ad11bc5 s4-smbtorture: add rather simple libsmbclient torture testsuite.
Guenther
2010-01-14 19:48:29 +01:00
Kai Blin
cf38a1f850 s3 test: Fix WINBINDD-STRUCT tests
The struct-based tests are working in make selftest, make them work in plain
"make test" as well.
2010-01-14 15:18:35 +01:00
Kai Blin
89e6eac290 s3 selftest: Fix LOOKUP_SID test.
WINBINDD_LIST_USERS does not give a domain name if we're a DC and the user is
from our domain.
2010-01-14 15:18:35 +01:00
Kai Blin
e95c04f0f1 s3 selftest: Fix WINBINDD_LIST_GROUPS test
If there's no groups in the database, there are no entries in extra_data. This
caused WINBINDD_LIST_GROUPS test to fail. Use the fact that
WINBINDD_LIST_GROUPS now reports the number of groups in data.num_entries to
identify the "no groups" case.
2010-01-14 15:18:35 +01:00
Kai Blin
a4f21d5dc8 s3 selftest: Allow the enumeration of users and groups
This fixes the WINBINDD_GETPWENT test.
2010-01-14 15:18:34 +01:00
Kai Blin
a6015a858d s3 selftest: Fix the WINBINDD_GETDCNAMEe test.
The WINBINDD_GETDCNAME test expected an NSS_STATUS_SUCCESS return from all
calls. However, this does not apply for BUILTIN and the DC's own domain.
Make the test work again by skipping those two.
2010-01-14 15:18:34 +01:00
Andrew Tridgell
74a5719614 s4-torture: switch smbtorture to the generic DRS options 2010-01-14 15:37:59 +11:00
Günther Deschner
13dad38930 s4-smbtorture: fix GetAliasMembership test in RPC-SAMR.
Guenther
2010-01-12 12:12:05 +01: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
Günther Deschner
c9e84ad397 s4-smbtorture: allow test_SamLogon to test interactive samlogon in RPC-SAMR family of tests.
Guenther
2010-01-12 12:09:25 +01:00
Steven Danneman
5323fe99c3 s4/torture: Parameterize output in LOCK tests based off server support
Two new torture parameters:

* smbexit_pdu_support: if the Server supports the Exit command

* range_not_locked_on_file_close: whether the server returns the
  NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a
  pending lock request.  Windows returns this error, though per the
  spec, this error should only be returned to an unlock request.
2010-01-10 16:12:44 -08:00
Tim Prouty
57be1d07af s4 torture: Add RAW-OPEN-NTCREATEDIR to test error checking for open directories as files 2010-01-07 15:32:27 -08:00
Steven Danneman
71a40d7e2c s4/torture: fix small bug in lock test
Cleanup path should unlock, not cancel existing locked range.
2010-01-06 18:48:10 -08:00
Steven Danneman
655bdb19bd s4/torture: add more lock cancellation tests
* Test the SMB1 behavior when multiple lock ranges are requested, pend,
  and then are cancelled.  The entire LockingAndX request fails.
2010-01-06 18:48:10 -08:00
Günther Deschner
3dbe8603d9 s4-smbtorture: add test_ChangeID to RPC-SPOOLSS.
This tests ChangeID consistency between spoolss_GetPrinterData,
spoolss_GetPrinterDataEx and spoolss_GetPrinter (level 0).

Guenther
2010-01-06 22:09:37 +01:00
Günther Deschner
7568f49134 s4-smbtorture: add test_SetPrinter to RPC-SPOOLSS.
Guenther
2010-01-06 22:09:36 +01:00
Günther Deschner
0457cf915b s4-smbtorture: refactor test_GetPrinter in RPC-SPOOLSS.
Guenther
2010-01-06 22:09:36 +01:00
Kamen Mazdrashki
33699bb1be s4-libnet: Simple test for net.SetPassword() python binding
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-12-25 14:15:53 +01:00
Tim Prouty
fd5350de1f s4 torture: Add RAW-OPLOCK-EXCLUSIVE7 which is similar to BATCH19 2009-12-21 17:27:37 -08:00
Tim Prouty
43a8b49f83 s4 torture: Update raw oplock to use win7 as the baseline for rename oplock break behavior 2009-12-21 17:27:36 -08:00
Tim Prouty
c33988c040 s4 torture: Be more permissive with share modes for oplock testing
Share modes are tested elsewhere, and there is currently an outstanding
issue about share mode contention for nt-passthrough levels:

http://lists.samba.org/archive/cifs-protocol/2009-December/001227.html
2009-12-21 17:27:36 -08:00
Tim Prouty
fd0c3a2264 s4 torture: Do a better job of closing open files in RAW-OPLOCK. 2009-12-21 17:27:36 -08:00
Andrew Tridgell
ec7dc6a619 s4-torture: update uuid_compare test for new behaviour 2009-12-21 23:45:22 +11:00
Kamen Mazdrashki
911cefd48b s4-tort: Test handling of different ATTID values in prefixMap interface.
It turns out ATTID values are separated in ranges.
Ref: MS-ADTS, 3.1.1.2.6 ATTRTYP

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:45:12 +11:00
Kamen Mazdrashki
03a1451bbc s4-drstest: Don't remove temp LDB so it can be reviewed if necessary
This test makes temp directory which is not removed
so why not just leave LDB also.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:43:17 +11:00
Andrew Tridgell
87f28cc267 s4-torture: another unsigned comparison bug 2009-12-21 23:41:08 +11:00
Zachary Loafman
daa561d75b s4 torture: Add test to show archive bit behavior with directories
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-18 10:52:45 -08:00
Tim Prouty
9b869230a7 s4 torture: Fix RAW-STREAMS-DELETE to pass against samba3 2009-12-18 10:52:45 -08:00
Tim Prouty
cfbf62dbfd s4 torture: RAW-STREAMS-NAMES Make sure the create time of the streams are different from the base file 2009-12-17 18:13:54 -08:00
Tim Prouty
c3582f923e s4 torture: Add RAW-STREAMS-RENAME3 to show error when trying to overwrite a stream with an open handle
A normal file overwrite in this case would return NT_STATUS_ACCESS_DENIED,
but if a stream is the target NT_STATUS_INVALID_PARAMETER is returned.
2009-12-17 18:13:48 -08:00
Tim Prouty
f8bb5a60e7 s4 torture: Parameterize streams delete behavior rather than commenting out the check. 2009-12-17 17:58:35 -08:00
Tim Prouty
f02206d933 s4 torture: RAW-STREAMS-CREATEDISP Use a normal deny mode 2009-12-17 17:58:35 -08:00
Tim Prouty
5c13a90abe s4 torture: close handle instead of using exit 2009-12-17 17:58:34 -08:00
Günther Deschner
dc4c411242 s4-smbtorture: skip GetAliasMembership against s4.
It returns NT_STATUS_INTERNAL_DB_CORRUPTION for unknown sids and I could not
figure out why.

Guenther
2009-12-17 18:05:36 +01:00
Günther Deschner
619ad0c6ec s4-smbtorture: add a samr_GetAliasMembership test to RPC-SAMR.
Guenther
2009-12-17 15:40:42 +01:00
Günther Deschner
a9689bb755 s4-smbtorture: fix smbtorture after setprinter IDL fixes.
Guenther
2009-12-17 10:43:32 +01:00
Günther Deschner
308b50a7bb s4-smbtorture: run GetPrinterDriver2 tests against each printer's driver.
Guenther
2009-12-16 01:13:43 +01:00
Volker Lendecke
4a19adadcc smbtorture4: Add rpc-samba3-getaliasmembership-0 2009-12-15 12:28:16 -08:00
Aravind Srinivasan
b85f6f63e6 s4 torture: Add new RAW-SEARCH test to explore strange max count behavior
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-15 09:51:36 -08:00
Aravind Srinivasan
8ba02d9ed9 s4 torture: Update RAW-QFILEINFO to only test info levels that are supported by the server
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-15 09:40:05 -08:00
Zach Loafman
5930f770d2 s4 torture: Convert RAW-OPEN to suite form 2009-12-15 09:13:24 -08:00
Tim Prouty
d732fb43a6 s4 torture: Add SHARE_DELETE to create_directory_handle
Tests explicitly checking share modes should open the dir/file
with the share mode they want to test.
2009-12-15 09:13:24 -08:00
Matthieu Patou
155bdea7b2 torture: add new tests for dfsblobs
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-14 10:58:32 +01:00
Günther Deschner
801fbd0569 s4-smbtorture: check whether a returned buffer size is a multiple of 4 in RPC-SPOOLSS.
This gives a good indication where our IDL (and the s3 spoolss implementation) is still wrong.

Guenther
2009-12-14 10:37:41 +01:00
Günther Deschner
dc71d1c29d s4-smbtorture: add more spoolss_EnumPrinterKey tests for local NDR test.
Guenther
2009-12-10 22:49:15 +01:00
Günther Deschner
ce33967f4a s4-smbtorture: fix and extend enum printerkey test.
Guenther
2009-12-10 17:48:50 +01:00
Günther Deschner
d2f13dd688 s4-smbtorture: enhance spoolss_EnumPrinterKey torture test.
This demonstrates that s3 still does not have that call implemented correctly.

Guenther
2009-12-09 15:34:45 +01:00
Stefan Metzmacher
d3d2e3988f RAW-STREAMS: convert failing tests to torture api
This is needed as we want to mark failing tests as
known failures.

metze
2009-12-08 13:50:15 +01:00
Günther Deschner
5e8e5dfe88 s4-smbtorture: make level 8 the reference for PrinterDriverEnum test.
Guenther
2009-12-08 11:51:09 +01:00
Günther Deschner
35c067782b s4-smbtorture: fill in COMPARE_STRING_ARRAY macro in spoolss driver test.
Guenther
2009-12-08 10:37:13 +01:00
Tim Prouty
1bf825b6f8 s4 torture: Cleanup RAW-ACLS a bit
Don't check SEC_DESC_DACL_AUTO_INHERITED right now
Disable RAW-ACLS-INHERITFLAGS for the short term
Update samba4's knownfail accordingly
2009-12-07 17:59:28 -08:00
Tim Prouty
f717a79eff s4 torture: Add a new torture:hide_on_access_denied parameter
It appears some newer versions of windows return
NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied
rather than NT_STATUS_ACCESS_DENIED.  I'm not sure how this translates
to directory enumeration yet, but for now make this a parameter that
can be checked in the various torture tests.

This also gets RAW-ACLS and SMB2-CREATE passing against win7.
2009-12-07 16:54:17 -08:00