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

3568 Commits

Author SHA1 Message Date
Günther Deschner
f729abaa94 s4-smbtorture: fix getjob test in RPC-SPOOLSS.
Guenther
2009-07-02 22:00:41 +02:00
Günther Deschner
e7d72b585a s4-smbtorture: Test for newly added form with enum call in RPC-SPOOLSS.
Guenther
2009-06-30 13:34:41 +02:00
Günther Deschner
66780e016b s4-smbtorture: remove trailing whitespace from RPC-SPOOLSS.
Guenther
2009-06-30 11:38:41 +02:00
Günther Deschner
0b2b9fdeda s4-smbtorture: use torture_comment & torture_warning in RPC samr tests.
Guenther
2009-06-29 23:47:47 +02:00
Günther Deschner
772d5dea30 s4-smbtorture: correctly test comment behaviour in RPC-SAMR-USERS against s3.
Guenther
2009-06-29 22:36:12 +02:00
Günther Deschner
50bb4bcc5b s4-smbtorture: add RPC-SAMR-MACHINE-AUTH test.
This test talks to a DC as a joined workstation member - in the same way
winbindd does, in particular the calls used in this test's query pattern
will all request for SEC_FLAG_MAXIMUM_ALLOWED access_mask
(which pretty much all of samba's client code does as well).

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

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

Guenther
2009-06-29 12:43:32 +02:00
Matthias Dieter Wallnöfer
15013090df Adds the impersonation level in ntcreatex requests to SAMBA 3 misc torture test
Specifies the impersonation level according to the reporter commit in bug #6283
2009-06-29 18:04:24 +10:00
Matthias Dieter Wallnöfer
bc7b608625 Fixes for SAMBA3RPC torture test
On calls where both NT_STATUS and WERROR results are returned and consulted
we have to make sure to form function results considering both.
This errors have been found through a run against SAMBA 4.
2009-06-29 13:39:33 +10:00
Günther Deschner
46167c1d1b s4-smbtorture: more paranoid checks while testing group membership in RPC-SAMR.
Guenther
2009-06-24 00:37:51 +02:00
Günther Deschner
e6cb82a7da s4-smbtorture: fix test_GetInfoLevel crash bug in RPC-DFS.
Guenther
2009-06-19 11:14:51 +02:00
Andrew Bartlett
58e8db912d s4:libnet Allow 'net password change' to work on expired passwords
We need to pass down flags to the DCE/RPC layer to allow fallback to
anonymous connections, as we can't log in with an expired password.

The anonymous connection can then change the password with SAMR.

Andrew Bartlett
2009-06-18 13:49:30 +10:00
Matthias Dieter Wallnöfer
b250c8de39 Fixes for the "cldap" tests
- Insert a check after the "tsocket" library call to make sure that the call
  terminated correctly
- Add a comment to explain why on further calls of "cldap_socket_init" the
  destination address hasn't to be specified
2009-06-18 13:49:26 +10:00
Matthias Dieter Wallnöfer
efe6552f0c NETLOGON pipe improvements
Patch for bug #4939

This refactors the NETLOGON code related to this bug:

- Introduces a new "SYNCSTATE" enum required by the "DatabaseSync2" call (acc.
to WSPP)
- Make "DatabaseSync" dependant from "DatabaseSync2" (acc. to WSPP)
- Let "DatabaseSync2" return NT_STATUS_NOT_IMPLEMENTED (I'm not sure if this is
also true when a domain is running in mixed mode)
- Make "LogonControl" and "LogonControl2" dependant form "LogonControl2Ex"
(acc. to WSPP)
- Let "LogonControl2Ex" return WERR_NOT_SUPPORTED for now
2009-06-18 13:49:25 +10:00
Jelmer Vernooij
4657f52c06 Fix build with system LDB. 2009-06-18 01:21:35 +02:00
Günther Deschner
fbe85c70ef s4-smbtorture: add test for NetUserSetInfo level 0 (user rename).
Guenther
2009-06-17 01:30:22 +02:00
Günther Deschner
bdd214b38c s4-smbtorture: use torture_comment in RPC-SAMR-USERS-PRIVILEGES test.
Guenther
2009-06-17 01:29:22 +02:00
Günther Deschner
823681bc99 s4-smbtorture: use TORTURE_TEST_USER define in libnetapi user test.
Guenther
2009-06-17 01:29:19 +02:00
Volker Lendecke
3014753ebe Fix the posixtimedlock test
The previous version depended on the fact that smb_raw_lock_send just queued
stuff. This changed with ebf5523b6e.
2009-06-15 17:26:56 +02:00
Jelmer Vernooij
478503694a smbtorture: Output subunit by default. 2009-06-13 16:16:01 +02:00
Jelmer Vernooij
afe7949313 smbtorture: Remove unused 'quiet' output format. 2009-06-13 16:16:01 +02:00
Stefan Metzmacher
7c58a2f237 SMB2-COMPOUND: add some tests for invalid requests
TODO: check why the INVALID1 tests fails with --signing=required.

metze
2009-06-09 19:33:47 +02:00
Stefan Metzmacher
ba42cccf00 s4:torture: add SMB2-COMPOUND test
metze
2009-06-09 16:49:33 +02:00
Günther Deschner
b5ca5412d8 s4-smbtorture: rename SECRETS to LSA-SECRETS.
Guenther
2009-06-09 14:09:23 +02:00
Günther Deschner
bf7c814694 s4-smbtorture: when testing RPC-SAMR-LARGE-DC its fine to just close the objects.
Guenther
2009-06-08 22:45:16 +02:00
Günther Deschner
80d0a12fb7 s4-smbtorture: add test_QueryDisplayInfo_level to RPC-SAMR-LARGE-DC.
Guenther
2009-06-08 22:45:16 +02:00
Günther Deschner
d11d4382b9 s4-smbtorture: also test for "all" architecture in enum driver tests in RPC-SPOOLSS.
Guenther
2009-06-08 21:24:31 +02:00
Günther Deschner
963efb5542 s4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.
Guenther
2009-06-08 19:56:59 +02:00
Günther Deschner
9e4b510504 s4-smbtorture: exclude oem_information checking for s3 in RPC-SAMR.
Guenther
2009-06-08 10:45:11 +02:00
Günther Deschner
0845db66e0 s4-smbtorture: skip samr MultipleMember alias tests for 3 as well as we do already for s4.
Guenther
2009-06-07 00:54:57 +02:00
Günther Deschner
abbcd574db s4-smbtorture: fix comment in RPC-SAMR-LARGE-DC test.
Andrew, I think you wanted to print this instead.

Guenther
2009-06-04 21:18:14 +02:00
Andrew Bartlett
a12b8571fe s4:torture Cut the RPC-SAMR-LARGE-DC test down to size
This removes the validation of the estimated number of accounts,
because MS-SAMR 3.1.5.5.1.1 makes clear the number returned cannot be
relied apon.

I've also converted a bit more of the test to use torture_assert(),
and where that is impractical, to print error messages when things
fail.

Andrew Bartlett
2009-06-04 18:12:59 +10:00
Andrew Bartlett
44f762c30d s4:torture assert that we get a Mailslot allocated before we dereference 2009-06-04 15:10:36 +10:00
Andrew Bartlett
bef665baad s4:torture Make Samba4 build on hosts with an older libnetapi
For example, Samba4 would not build (for the last week) on Fedora 10,
with samba-common 3.2.11 installed.

Andrew Bartlett
2009-06-04 11:13:05 +10:00
Jeremy Allison
0daf9a042c Note that the delaytime for update has changed betweek w2k3 and w2k8.
We must eventually parameterize this.
Jeremy.
2009-06-03 14:12:18 -07:00
Björn Jacke
b3491df2f9 s3:torture: fix password timestamp checks on NetBSD
The Open Group says:

"The useconds argument [of usleep] must be less than 1,000,000."

NetBSD takes this seriously. usleep of more than 999999 are effectless.
2009-06-03 17:50:01 +02:00
Stefan Metzmacher
089ba385af s4:torture/libnetapi: fix netapi detection
We need to set SMB_ENABLE(TORTURE_LIBNETAPI,NO) first
to overwrite the default of YES for MODULES and
then only set it to YES if netapi was found.

metze
2009-06-03 14:12:36 +02:00
Stefan Metzmacher
edeccf0df0 SMB2-CONNECT: make it possible to specific the max write size via --option=torture:smb2maxwrite=12345
metze
2009-06-03 10:50:52 +02:00
Günther Deschner
f451dd482d s4-smbtorture: fix the build w/o libnetapi.
This is surely the wrong fix, but I could not figure out why the samba4 build
system adds the init function although the m4 macro had switched off the torture
libnetapi subsystem when the headers and libs were not found.

Can one of the samba4 build gurus please have a look ?

Guenther
2009-05-29 19:25:44 +02:00
Günther Deschner
0542fa9e7d s4-smbtorture: add NETAPI-GROUP test.
Guenther
2009-05-29 18:09:59 +02:00
Günther Deschner
3d07a929e6 s4-smbtorture: add NETAPI-USER test.
Guenther
2009-05-29 18:09:48 +02:00
Günther Deschner
fa3a665221 s4-smbtorture: add very basic LIBNETAPI testsuite.
Guenther
2009-05-29 17:59:43 +02:00
Günther Deschner
36fc0b961f s4-smbtorture: add a very basic NSS-WRAPPER testsuite.
Guenther
2009-05-29 13:50:09 +02:00
Günther Deschner
12496ea5ab s4-smbtorture: remove trailing whitespace.
Guenther
2009-05-29 13:18:23 +02:00
Günther Deschner
059401e457 s4-smbtorture: Fix test_SamLogon() for netlogon servers not yet supporting
validation level 6.

Guenther
2009-05-29 13:17:53 +02:00
Andrew Bartlett
227553f904 Win2k3 don't allow creating of domain trust accounts over SAMR 2009-05-29 17:12:06 +10:00
Andrew Bartlett
b83f84c8c3 s4:torture Don't try to Close a Deleted handle 2009-05-29 17:02:19 +10:00
Andrew Bartlett
a2e72ac556 s4:torture Don't run QueryDisplayInfo test for SAMR-USERS-PRIVILEGES 2009-05-29 11:56:29 +10:00
Andrew Bartlett
a3f619f9d9 s4:torture Clean up users and groups added in RPC-SAMR-LARGE-DC 2009-05-29 11:56:27 +10:00
Andrew Bartlett
98ff29291b s4:torture Half the repeditive tests run by RPC-SAMR-PASSWORDS-PWDLASTSET 2009-05-29 11:56:27 +10:00