1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

4000 Commits

Author SHA1 Message Date
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