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