1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

4000 Commits

Author SHA1 Message Date
Tim Prouty
66bf780e6e s4 torture: Change RAW-SFILEINFO-END-OF-FILE to check for share modes by default
Since the windows behavior appears to be a bug, only check for
the windows-style share mode bug if target=<windows variant> is
specified
2009-12-01 11:12:51 -08:00
Tim Prouty
2738e31674 s4 torture: Move target macros to a common header instead of redefining them in multiple files 2009-12-01 11:12:51 -08:00
Matthias Dieter Wallnöfer
2d1bd87f73 s4:torture/raw/lock - Fix "discard const" warnings by introducing "discard_const_p"s 2009-12-01 16:48:47 +11:00
Matthias Dieter Wallnöfer
262d26d05a s4:torture/nbt/wins - Add more casts 2009-12-01 16:48:38 +11:00
Matthias Dieter Wallnöfer
58a5e764a9 s4:torture/nbench/nbench - Add a cast before "str_list_make_shell" 2009-12-01 16:48:22 +11:00
Matthias Dieter Wallnöfer
8b4499942e s4:torture/ldap/ldap_sort - Add some casts to suppress warnings 2009-12-01 16:48:14 +11:00
Volker Lendecke
6aef5e591f Fix bug 6546: Avoid accessing buf[-1] if NUL byte comes from fgets 2009-11-30 21:48:59 +01:00
Günther Deschner
8f6df5d3ec s4-smbtorture: more and stricter tests for printer and data keys in RPC-SPOOLSS.
Guenther
2009-11-27 23:16:21 +01:00
Andrew Tridgell
9f3ac810a6 s4-torture: fixed error code for s4 in SMB2-LOCK test
s4 returns NETWORK_NAME_DELETED if you attempt to use an invalid tree connection
for a lock. This test (correctly I think) happens before we validate the file handle.
That implies that when you pass both a closed handle and a invalid tree you
should get NT_STATUS_NETWORK_NAME_DELETED.
2009-11-27 19:42:11 +11:00
Andrew Tridgell
7359a22219 s4-torture: mark s4 as doing valid lock range tests on SMB 2009-11-27 19:42:10 +11:00
Andrew Tridgell
f6ecb4efb0 s4-torture: fixed expected error codes for s4 in SMB2-LOCK
I think the error/success codes returned by windows for these tests
are quite bogus. The ones s4 gives are much more reasonable. The
locking ones returning NT_STATUS_SUCCESS could lead to data loss, as
an application thinks it has a file locked correctly when it fact it
doesn't, so it could do an unsafe modify.
2009-11-27 16:05:06 +11:00
Andrew Tridgell
0920e0b63b s4-drstest: don't use getenv("LDB_URL") in test suites
I was stumped for a while as to why the drs test suite was failing for
me. It turned out that it looked for LDB_URL in the environment, and
used it if set. I had it set in my terminal, and it was happily
munching on my sam.ldb while testing. Quite a cute bug really :-)
2009-11-27 16:05:06 +11:00
Andrew Tridgell
056473d588 torture: fixed SMB2-LOCK valgrind error 2009-11-27 16:05:05 +11:00
Günther Deschner
60419a0eb7 s4-smbtorture: refactor RPC-SAMR-LARGE-DC test a little more.
Guenther
2009-11-26 01:45:35 +01:00
Günther Deschner
d22eb75a13 s4-smbtorture: add torture_samr_context to carry some RPC-SAMR-X specifics.
Guenther
2009-11-26 01:45:35 +01:00
Steven Danneman
f66612f62e s4/torture: port SMBv1 RAW-LOCK tests to SMBv2
RAW-LOCK ported as:

RAW-LOCK-LOCK, RAW-LOCK-LOCKX -> SMB2-LOCK-LOCK
RAW-PIDHIGH -> removed, no longer relevant
RAW-ASYNC -> SMB2-LOCK-ASYNC, SMB2-LOCK-CANCEL, SMB2-LOCK-CANCEL-TDIS, SMB2-LOCK-CANCEL-LOGOFF
RAW-ERRORCODE -> SMB2-LOCK-ERRORCODE
RAW-CHANGETYPE -> removed, no longer relevant
RAW-ZEROBYTELOCKS -> SMB2-LOCK->ZEROBYTELENGTH
RAW-UNLOCK -> SMB2-LOCK-UNLOCK
RAW-MULTIPLE_UNLOCK -> SMB2-LOCK-MULTIPLE-UNLOCK
RAW-STACKING -> SMB2-LOCK-STACKING

BASE-LOCK ported as:

BASE-LOCK-LOCK1 -> SMB2-LOCK-ERRORCODE, timeout is no longer relevant
BASE-LOCK-LOCK2 -> SMB2-LOCK-CONTEND, SMB2-LOCK-LOCK, SMB2-LOCK-CONTEXT
BASE-LOCK-LOCK3 -> SMB2-LOCK-RANGE
BASE-LOCK-LOCK4 -> SMB2-LOCK-OVERLAP
BASE-LOCK-LOCK5 -> SMB2-LOCK-STACKING
BASE-LOCK-LOCK6 -> SMB2-LOCK-CANCEL, change_locktype no longer relevant
BASE-LOCK-LOCK7 -> SMB2-LOCK-RW-SHARED, SMB2-LOCK-RW-EXCLUSIVE
2009-11-25 12:55:48 -08:00
Steven Danneman
7f14388721 s4/libcli: rename previously reserved field in SMB2 LOCK struct
The lock.in.reserved field has been renamed lock_sequence in the
SMB 2.1 dialect.  See MS-SMB 2.2.26.
2009-11-25 12:55:48 -08:00
Tim Prouty
b6f972222f s4 torture: Change RAW-OPLOCK to use the documented version of SET_END_OF_FILE_INFO
The passtrhough version of SET_END_OF_FILE_INFO is tested in
RAW-SFILEINFO-END-OF-FILE.

Additionally, the first opener is changed to use SHARE_WRITE for the
share mode since SET_END_OF_FILE_INFO actually writes data to the file
via truncating/extending.
2009-11-25 08:45:58 -08:00
Tim Prouty
98f595036e s4 torture: Allow onefs to be checked like samba3 and samba4
This is needed for the new RAW-SFILEINFO-END-OF-FILE test to
differentiate what appears to be a windows bug.
2009-11-25 08:45:15 -08:00
Tim Prouty
6074a058df s4 torture: Add two new setfileinfo tests
These tests expose a potential bug in winXP, win7, and likely others.
There is also a bug in samba where share modes aren't being enforced
where they should.

For more details see:
http://lists.samba.org/archive/cifs-protocol/2009-November/001130.html
2009-11-25 08:45:14 -08:00
Tim Prouty
ce9ac3a685 s4 torture: Split up the torture suite setup for RAW-SFILEINFO
A side effect of this change is that RAW-SFILEINFO now runs the whole
suite instead of just the first test.  I changed the name of the first
test to RAW-SFILEINFO-BASE and changed all of the selftest scripts
that call it.
2009-11-25 08:45:14 -08:00
Stefan Metzmacher
23d81904eb RAW-PING-PONG: use timeval_current/timeval_elapsed instead of start_timer/end_timer
metze
2009-11-24 11:47:31 +01:00
Kamen Mazdrashki
65e95b8aa9 s4/drs(tort): DSSYNC test to print what is different in drs_msg also 2009-11-23 14:15:05 +01:00
Günther Deschner
0608d6b125 s4-smbtorture: fix spoolss_EnumPrinterKey client in RPC-SPOOLSS-WIN.
Guenther
2009-11-23 13:35:32 +01:00
Günther Deschner
d66b7d80d5 s4-smbtorture: add tests for spoolss_EnumPrinterKey to RPC-SPOOLSS-PRINTER.
Guenther
2009-11-23 12:17:54 +01:00
Matthias Dieter Wallnöfer
e406c17b2f s4:torture/smb2/oplock - Remove unneeded "status" redeclarations 2009-11-21 17:37:42 +01:00
Matthias Dieter Wallnöfer
ec49360778 s4:torture/smb2/notify - Rename nested "fname" variable to prevent warnings 2009-11-21 17:37:41 +01:00
Matthias Dieter Wallnöfer
5dc478e390 s4:torture/raw/unlink - Remove unused variable and label 2009-11-21 17:37:40 +01:00
Matthias Dieter Wallnöfer
28423114ec s4:torture/rpc/netlogon - Fix uninitialised variable 2009-11-21 17:37:39 +01:00
Stefan Metzmacher
c2a29967ea SMB2-LOCK: make use of torture_assert_*()
This is needed in order to mark tests as known failures.

metze
2009-11-18 08:24:13 +01:00
Stefan Metzmacher
63ff7a8db1 s4:torture/test_gentest.sh: make use of the PREFIX argument
We should not use hardcode pathes!

metze
2009-11-18 06:50:24 +01:00
Aravind Srinivasan
15d93a5d8e s4/torture: Port SMBv1 Change Notify tests to SMBv2
* Ported all tests from raw/notify.c to smb2/notify.c
* Parameterized the max_buffer_size so it can be set on a
  per-target basis.
* Fixed CHECK macros to use torture_result
* Created a SMB2-NOTIFY test suite
2009-11-17 17:06:26 -08:00
Steven Danneman
c14b0cea48 torture/smb2: make SMB2 BRL tests pass against W2K8R2
The BRL tests previously based their results off several bugs in the
W2K8 byte range lock code.  I've fixed up the tests to pass against
Win7 which has fixed these bugs, and assume that the Win7 behavior
is the default.

I have inverted the test behavior for >63-bit lock requests.  The
tests previously expected NT_STATUS_OK as their default in this
case.  I've changed that default to expect STATUS_INVALID_LOCK_RANGE.
This may requires some changing of make test to compensate.

I've also removed a few test scenarios from VALID-REQUEST in preparation
of replacing them with separate tests ported from RAW-LOCK.
2009-11-17 17:06:26 -08:00
Kamen Mazdrashki
b9e262c512 s4/drs(tort): Convert DSSYNC test to a test case fixture
Now it should be much more clear why and where a test
in DSSYNC test case has failed.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:47:16 +11:00
Kamen Mazdrashki
442cded430 s4/drs(tort): replace DEBUG with torture_asert/comment/fail
I left dumping of decrypted attributes values 'as is'
(using DEBUG and DEBUGADD) as it uses dump_data() function.
dump_data() uses DEBUGADD internally, so I have no way
to redirect its output to torture_context at this point.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:47:05 +11:00
Kamen Mazdrashki
aaff29f5b4 s4/drs(tort): use torture_drsuapi_assert_call() macro for error checking
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:59 +11:00
Kamen Mazdrashki
673049142b s4/drs(tort): replace 'printf' with 'torture_...' calls
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:48 +11:00
Kamen Mazdrashki
9e4beef614 s4/drs(tort): 'DsSyncBindInfo.pipe' renamed - 'pipe' is a system call
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:42 +11:00
Kamen Mazdrashki
b0de573629 s4/drs(tort): 'DsPrivate.pipe' renamed - 'pipe' is a system call
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-17 10:46:28 +11:00
Andrew Bartlett
b13518e4e8 s4:dsdb With these workarounds, we now pass the RPC-DSSYNC test 2009-11-17 10:38:09 +11:00
Andrew Bartlett
39b8f31d66 s4:dsdb Load objectGUID and extended DN defaultObjectCategory into the schema
The load of defaultObjectCategory as an extended DN means we need to
use the common parsing functions I just split out, rather than the
GET_DS_DN macro.

The objectGUIDs are loaded so that we can create the extended DN when
we load from LDIF (and are loaded for the other cases for
consistency).

Also adapt callers to API changes needed for common parsing code

Andrew Bartlett
2009-11-17 10:38:02 +11:00
Andrew Tridgell
c8884e1cf2 s4-ldb: changed the DN checks for \n to warnings
a \n is sometimes allowed in AD (eg in deleted DNs). Until we know
when is really is allowed, treat it as a warning only.
2009-11-13 19:32:47 +11:00
Andrew Bartlett
95a12cdf21 s4:torture Use (some) torture_assert() calls in RPC-DSSYNC test 2009-11-12 16:34:23 +11:00
Andrew Bartlett
06b234e811 s4:torture Remove _drs_util_verify_attids() from RPC-DSSYNC
I'm satisfied that the task this test does is already done by the time
we map the incoming schema, and process the objects.  If we have the
OID mapping wrong or incomplete, we will get any errors this test
found errors there.

(And this dramaticly reduces the test time, so we can now add
RPC-DSSYNC to 'make test').

Andrew Bartlett
2009-11-12 16:34:18 +11:00
Andrew Bartlett
6d1e60987b s4:torture/dsdb Add verification of the push-to-LDB functions in RPC-DSSYNC
This is done by comparing the values against the remote host's LDAP
server.

Andrew Bartlett
2009-11-12 16:34:17 +11:00
Andrew Bartlett
30a08005ca s4:torture Add const 2009-11-12 16:34:16 +11:00
Andrew Bartlett
87e984f0bd s4:torture Convert RPC-DSSYNC test to use LDB rather than raw LDAP
(This should make it easier to do more 'compare DRS with LDAP'
operations, as LDB is an easier interface to program.)

Andrew Bartlett
2009-11-12 16:34:13 +11:00
Stefan Metzmacher
1012b806a7 NET-API-BECOME-DC: resolve the host name to an address before calling
libnet_BecomeDC and libnet_UnbecomeDC()

We're supposed to pass in source_dsa_address...

metze
2009-11-12 16:34:12 +11:00
Andrew Bartlett
2a601719f2 s4:dsdb Add expected value tests for most DRS syntax conversions
I've left out those for which I could not find an expected value in my
default Windows 2003 server's database, and the values that rely on
the current prefix map at the time.

Andrew Bartlett
2009-11-12 16:34:12 +11:00
Andrew Bartlett
df7546ac16 s4:dsdb/repl Split the 'convert' or 'commit' stages in the DRS import
This will allow us in future to do tests on the LDB values we generate
from the DRS replication.

Andrew Bartlett
2009-11-12 16:34:10 +11:00
Andrew Bartlett
d6563801d1 s4:dsdb/schema Simplify schema loading from ldb messages
It turns out that we always add the class/attribute to the schema.
2009-11-12 16:34:09 +11:00
Andrew Bartlett
da1ac55bc1 s4:dsdb Add extensive tests for the behaviour of dsdb_dn 2009-11-12 16:34:06 +11:00
Andrew Bartlett
fd5174e88c lib/util Split data_blob_hex_string() into upper and lower
Rather than have a repeat of the bugs we found at the plugfest where
hexidecimal strings must be in upper or lower case in particular
places, ensure that each caller chooses which case they want.

This reverts most of the callers back to upper case, as things were
before tridge's patch.  The critical call in the extended DN code is
of course handled in lower case.

Andrew Bartlett
2009-11-12 16:34:01 +11:00
Günther Deschner
9599d142c0 s4-smbtorture: strip trailing whitespace in RPC-SAMR.
Guenther
2009-11-10 13:08:28 +01:00
Günther Deschner
e9c6984cb6 s4-smbtorture: re-arrange netlogon LogonControl test.
The LogonControl tests now are split out to a new RPC-NETLOGON-ADMIN test that
tests the behaviour of that call when called by user, dc or workstation.

Guenther
2009-11-09 17:36:53 +01:00
Matthias Dieter Wallnöfer
d89b475f84 torture/basic/denytest - makes the code more compatible for TRU64 (consider buildfarm) 2009-11-07 19:54:24 +01:00
Matthias Dieter Wallnöfer
17d6506c9e s4:torture/samr - Add status code on "ValidatePassword" test output 2009-11-06 15:19:39 +01:00
Matthias Dieter Wallnöfer
9f481664fb s4:torture/samr - Activate "ValidatePassword" test per default 2009-11-06 15:19:39 +01:00
Kamen Mazdrashki
2fa4c4dcee s4/drs(tort): _torture_drs_pfm_compare_same() should not fail tctx by itself
The responsibility for failing torture_context sould be for the
caller.
This gives better control in for test case driver function.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
ef959b42ca s4/drs(tort): Test case for dsdb_create_prefix_mapping() implemented
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:49 +01:00
Kamen Mazdrashki
009361e1ff s4/drs(tort): refactor - SCHEMA_INFO_DEFAULT defined on file scope
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:47 +01:00
Kamen Mazdrashki
b50df3bd7f s4/drs(tort): prefixMap read/write in LDB test case
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
6a32200667 s4/drs(tort): Create temporary LDB for testing purposes
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:46 +01:00
Kamen Mazdrashki
20622de49f s4/drs(tort): prefixMap to/from ldb_val serialization test case
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:44 +01:00
Kamen Mazdrashki
fc05386c0d s4/drs: dsdb_schema_pfm_from_drsuapi_pfm() to accept partial drsuapi_prefixMap
"partial drsuapi_prefixMap" is a prefix map without last entry
being special - i.e. map that does not contains schema_info entry.

Test for dsdb_schema_pfm_from_drsuapi_pfm() were also extended to
cover both 'full' and 'partial' map conversion.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:44 +01:00
Kamen Mazdrashki
ba4d87f817 s4/drs: dsdb_map_int2oid() replaced by dsdb_schema_pfm_oid_from_attid()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:43 +01:00
Kamen Mazdrashki
ddab9d1fe7 s4/drs: dsdb_verify_oid_mappings_drsuapi() replaced by dsdb_schema_pfm_contains_drsuapi_pfm()
dsdb_schema_pfm_contains_drsuapi_pfm() is part of reimplemented
prefixMap interface.

This name was choosen to clearly show, that this a week verification
in case we want to determine if remote schema is changed.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:42 +01:00
Kamen Mazdrashki
a83385303b s4/drs: dsdb_load_oid_mappings_drsuapi() -> dsdb_load_prefixmap_from_drsuapi()
Also, dsdb_load_oid_mappings_drsuapi() was reimplemented to use
dsdb_schema_pfm_from_drsuapi_pfm() function to load
drsuapi_prefixMap into schema->prefixmap

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:41 +01:00
Kamen Mazdrashki
5446123190 s4/drs(tort): test for schema_prefixMap to/from drsuapi_prefixMap conversion
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:39 +01:00
Kamen Mazdrashki
3d91c8ef5a s4/drs(tort): implement prefixMap comparison function
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-06 14:05:38 +01:00
Stefan Metzmacher
be06d5ccb4 s4:torture/drs: move intern/ => unit/
metze
2009-11-06 14:05:36 +01:00
Jeremy Allison
c2df97f57c Fix up some of the timing constants for DELAYWRITE. Add some extra tests up test_delayed_write_update6
to investigate what happens to a sticky write handle after a second handle close.
Jeremy.
2009-11-05 15:37:26 -08:00
Matthias Dieter Wallnöfer
1685ee3ee7 s4:torture/rpc/samr - Add a comment for "ValidatePassword" test 2009-11-05 12:43:03 +01:00
Günther Deschner
a8de4f091e s4-smbtorture: skip three info levels while testing s3 with RPC-LSA.
These are only supported by s3 when running pdb_ads atm.

Guenther
2009-11-03 22:18:09 +01:00
Günther Deschner
58d401bb21 s4-smbtorture: skip QueryInfoPolicy2 while running RPC-LSA against s3.
This is only supported by s3 when running pdb_ads atm.

Guenther
2009-11-03 22:17:05 +01:00
Günther Deschner
bff9819521 s4-smbtorture: skip QueryDomainInformationPolicy test against s3 in RPC-LSA.
Guenther
2009-11-03 22:13:28 +01:00
Günther Deschner
074ad24653 s4-smbtorture: simplify some torture_comments in RPC-LSA.
Guenther
2009-11-03 22:10:31 +01:00
Matthias Dieter Wallnöfer
3caaf6a84c s4:torture/raw/samba3misc - Add "discard_const_p" macro before a string 2009-11-02 16:36:51 +11:00
Günther Deschner
3587bb63e2 s4-smbtorture: skip bigendian tests against s3 in RPC-LSA-SECRETS.
Guenther
2009-10-30 12:28:49 +01:00
Günther Deschner
5e8c86c558 s4-smbtorture: fix warning in RPC-WKSSVC torture test.
Guenther
2009-10-30 12:28:47 +01:00
Jeremy Allison
e2c84f67a3 Change RAW-STREAMS for s3 to allow rename over an existing stream,
we need to file a CAR to find out why Windows gives INVALID_PARAMETER
for this.
Jeremy.
2009-10-29 16:38:34 -07:00
Andrew Tridgell
4ad0397d8a s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()
This allows us to reuse a ldb context if it is open twice, instead
of going through the expensive process of a full ldb open. We can
reuse it if all of the parameters are the same.

The change relies on callers using talloc_unlink() or free of a parent
to close a ldb context.
2009-10-23 14:52:17 +11:00
Andrew Tridgell
98e4393df9 s4-dsdb: create a static system_session context
This patch adds a system_session cache, preventing us from having to
recreate it on every ldb open, and allowing us to detect when the same
session is being used in ldb_wrap
2009-10-23 14:52:17 +11:00
Andrew Tridgell
9c9e853c77 s4-torture: fixed double free in libnet_group test 2009-10-22 18:46:27 +11:00
Andrew Bartlett
c9838f0e13 s4:torture Silence const warning by use of data_blob_const()
This was inspired by one of mdw's const patches

Andrew Bartlett
2009-10-22 10:17:35 +11:00
Matthias Dieter Wallnöfer
24bca52c0b s4:smbtorture - Add "const" before "value"
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-10-22 10:02:27 +11:00
Kamen Mazdrashki
4dc90c0851 s4/drs(tort): Unit test for prefixMap implementation.
Currenly those tests cover only the main part of the interface,
i.e. dsdb_schema_pfm_new(), dsdb_schema_pfm_make_attid()
and dsdb_schema_pfm_oid_from_attid()
2009-10-21 11:49:50 +03:00
Kamen Mazdrashki
31168f1fac s4/drs(tort): Comment typos fixed in drs_util.c 2009-10-21 11:49:50 +03:00
Kamen Mazdrashki
1ecca31caa s4/drs(tort): fixed '==' to '>='
ATTID is marked as partial by adding 32768.
Thus the check should be '>= 32768'
2009-10-21 11:49:50 +03:00
Günther Deschner
48520b2274 s4-smbtorture: test whether an lsa_EnumTrustDom implementation would hang up a client.
Guenther
2009-10-21 03:13:24 +02:00
Günther Deschner
a4d5487576 s4-smbtorture: fix RPC-LSA-LSALOOKUP test against w2k3 and w2k8.
Make sure to split out lsa_LookupName NULL name test so that we can better track
results from bogus names and NULL names.

Guenther
2009-10-20 23:57:58 +02:00
Günther Deschner
9ee5d84665 s4-smbtorture: Make it simpler to specify number of trusted domains to create in
RPC-LSA-TRUSTED-DOMAINS.

Guenther
2009-10-20 21:49:38 +02:00
Günther Deschner
7e180101d3 s4-smbtorture: Fix wrong comment in RPC-LSA-TRUSTED-DOMAIN test.
Guenther
2009-10-20 15:30:19 +02:00
Günther Deschner
bf2746b537 s4-smbtorture: split out EnumTrustedDomainsEx test in RPC-LSA-TRUSTED-DOMAINS.
Guenther
2009-10-20 15:30:12 +02:00
Günther Deschner
d76e77ce9a s4-smbtorture: add stricter tests for LSA-LOOKUPNAMES replies.
Guenther
2009-10-20 15:28:30 +02:00
Günther Deschner
80b512fe03 s4-smbtorture: move all LookupNames tests into RPC-LSA-LOOKUPNAMES.
Guenther
2009-10-20 15:28:30 +02:00
Andrew Tridgell
2c34112e58 s4-torture: fixed a pipe leak
The RPC-SAMR-PASSWORDS* tests could leak RPC pipes, causing an
overallocation of fd's on the server
2009-10-20 16:34:42 +11:00
Andrew Tridgell
84d0047377 s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Andrew Tridgell
2ff2c421d0 s4-torture: fixed a fd/mem leak in the RPC-LSA-SECRETS test
This test left a large number of lsa pipes open, which could trigger
the server running out of fds
2009-10-20 14:27:57 +11:00
Matthias Dieter Wallnöfer
abeb794b66 s4:torture "cldap" test - restore the removed constraints and add more
Consider for description the post on the technical mailing list. I hope that this
satisfies abartlet again.
2009-10-19 18:34:29 +02:00
Karolin Seeger
b7b548411c s4:test: Fix typo.
Karolin
2009-10-19 10:40:15 +02:00
Karolin Seeger
fa08d0b44b Fix typo.
privilage -> privilege

Karolin
2009-10-19 09:47:33 +02:00
Matthias Dieter Wallnöfer
77b9d2827b s4:torture "cldap" test - rework and test more results 2009-10-18 14:33:43 +02:00
Andrew Tridgell
9ae4daeb96 s4-torture: fixed the streams tests for Samba4
In some cases we were not doing streams tests on s4 that we should. In
others, we were calling tests that are known to fail on s4. Some of
those are a bit puzzling.
2009-10-18 15:06:13 +11:00
Andrew Tridgell
d1efaf39f5 smb2-torture: samba4 allows SEC_FLAG_SECURITY to be used with privileges 2009-10-18 07:13:47 +11:00
Jeremy Allison
d6351adca9 Fix the smbtorture4 build. root_fid is a "union smb_handle". tridge
please check.
Jeremy.
2009-10-17 12:56:15 -07:00
Jeremy Allison
7c51fa6d69 Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-10-17 10:36:33 -07:00
Andrew Tridgell
dbebe0f621 s4-torture: fixed the default ACL for s4
s4 returns group and world ACEs in the default acl, based on unix
permissions
2009-10-17 13:01:04 +11:00
Andrew Tridgell
05f5f22361 s4-torture: minor debugging enhancements 2009-10-17 13:01:04 +11:00
Andrew Tridgell
533b102493 s4-torture: cleanup after the MAXIMUM_ALLOWED test 2009-10-17 13:01:03 +11:00
Andrew Tridgell
7226ba73a0 s4-torture: add a special check for administrators and privileges
lsa privileges calls don't expand groups. darn.
2009-10-17 13:01:03 +11:00
Andrew Tridgell
f3f695f18f s4-torture: show the sid we are basing privilege tests on 2009-10-17 13:01:02 +11:00
Günther Deschner
22276961c3 s4-smbtorture: extend netr_LogonControl test in RPC-NETLOGON.
Guenther
2009-10-16 14:54:58 +02:00
Kamen Mazdrashki
421191a443 s4/drs(tort): prefixMap unit test initial implementatoin 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
47f30fd3e7 s4/drs(tort): fix compile time warning 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
1d3342e9fa s4/drs(tort): _drs_util_verify_attids() to verify ATTIDs in objects received 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
e3b707da94 s4/drs(tort): drs_util_DsAttributeId_to_string() function 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
8631548f12 s4/drs(tort): _drs_ldap_attr_by_oid() implementation
Utility function to be used to fetch Attribute name and DN
giving attribute OID
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
3c3f66f0df s4/drs(tort): oid_from_attid() reference implementation
Decode Attribute OID using prefixMap and
ATTID received during replication

Based on MS documentation. See MS-DRSR.pdf - 5.16.4
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
6a680cea6a s4/drs(tort): TORTURE_DRS torture module - initial implementation
Drsuapi tests module registers two suites:
 - DRS-RPC - tests to be executed against remote machine
 - DRS-UNIT - unit test for internal testing
2009-10-16 12:54:14 +03:00
Günther Deschner
612deb2699 s4-smbtorture: add very basic libwbclient testsuite.
Guenther
2009-10-16 02:04:29 +02:00
Andrew Tridgell
29929a3c46 s4-torture: take privileges into account in BASE-MAXIMUM_ALLOWED
The correct answer depends on the users privileges.
2009-10-16 10:12:18 +11:00
Andrew Tridgell
ffa8c45372 s4-torture: catch bad command line options
It is annoying when you mistype a command line option and aren't told.
2009-10-15 20:03:00 +11:00
Andrew Tridgell
3c028ff88b s4-smb: declare root_fid as a file handle
In order to implement root_fid in the s4 SMB server we need to declare
it as a handle type, just as for other fnum values in SMB. This
required some extensive (but simple) changes in many bits of code.
2009-10-15 20:03:00 +11:00
Andrew Tridgell
144686a838 s4-ldb: removed incorrect rDN length test
This is a property of AD, not ldb, so should be in our ldb
modules.
2009-10-15 15:53:40 +11:00
Matthias Dieter Wallnöfer
e9f7ef0439 s4:torture cldap test - Add checks for the right forest DNS name 2009-10-14 12:27:06 +02:00
Matthias Dieter Wallnöfer
8a505ec755 s4:torture - fix up "ldap_basic" test 2009-10-14 10:50:57 +02:00
Matthias Dieter Wallnöfer
e9686985cb s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where needed
For KERBEROS applications the realm should be upcase (function "lp_realm") but
for DNS ones it should be used lowcase (function "lp_dnsdomain"). This patch
implements the use of both in the right way.
2009-10-14 10:50:43 +02:00
Andrew Tridgell
893564bc64 torture: fixed socket leak in BENCH-TCON test
The BENCH-TCON test was leaving the socket open. A smbclie_tdis()
closes the tree connection, but does not close the socket.

This caused the build farm to run out of file descriptors
2009-10-12 16:11:53 +11:00
Steven Danneman
622bffce47 s4/torture: fix build break "implicit declaration of function 'isprint'" 2009-10-09 15:13:40 -07:00
Jeremy Allison
77abc2dabd Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-10-08 10:01:51 -07:00
Matthias Dieter Wallnöfer
607ceff234 s3/s4 - Adapt the IDL changes on various locations 2009-10-08 09:50:19 +02:00
Jeremy Allison
46d1933240 Exteded RAW-RENAME test to catch regressions in bug 6781.
Jeremy.
2009-10-07 16:52:29 -07:00
Aravind Srinivasan
2f379d70ff s4/torture: Ported SMBv1 RAW-OPEN tests to SMB2-CREATE
Four tests were ported from raw/open.c

One new tests added LEADING-SLASH, which tests that a server provides
the proper error when a relative path is given to a CREATE PDU
with a leading "/".
2009-10-07 14:20:25 -07:00
Aravind Srinivasan
0bff2ced79 s4/torture: convert all printf to torture_comments 2009-10-07 12:18:44 -07:00
Aravind Srinivasan
0ec8fe420f s4/torture: Ported SMBv1 RAW-STREAMS tests to SMB2-STREAMS 2009-10-07 12:16:27 -07:00
Steven Danneman
26b7734841 s4/torture: Add server target of OneFS
I've added a "--target=onefs" which lists expected deviation in the
OneFS SMB server implementation compared to a Windows machine.

I've added this in a generic way using a list of module specific
parameters.  This list currently only contains the absence of
SACL support but will be added to as additional server differences
are defined.

I'd liked to use this abstraction for defining the differences between
a WinXP and Win7 server as well.
2009-10-06 19:43:15 -07:00
Aravind Srinivasan
e9c3318e52 s4/torture: Add SMB sharemode/access mask tests
Test several thousand permutations of create mask and sharemodes on file
and directory opens.

These tests use a checked-in results table derived from a WinXP server to
verify correct server behavior.

CREATEX_ACCESS
CREATEX_SHAREMODES_FILE
CREATEX_SHAREMODES_DIR
MAXIMUM_ALLOWED
2009-10-06 19:43:15 -07:00
Aravind Srinivasan
6de743a2a2 s4/torture: change comments to torture_failures
This allows the frameworks that wrap smbtorture to detect errors
better.
2009-10-06 19:43:15 -07:00
Andrew Tridgell
8dedceaff9 torture: disable the ValidatePassword test
This test causes problems on non-sealed connections against windows
2009-10-07 10:55:35 +11:00
Andrew Tridgell
d31fa07fde s4-torture: removed an accidental commit of a local test hack
Sorry about that ....
2009-10-07 10:05:26 +11:00
Matthias Dieter Wallnöfer
44df2488e3 s4: fix various warnings (not "const" related ones) 2009-10-02 15:33:48 +02:00
Andrew Tridgell
7bdb4306b0 s4-torture: added a very simple samr ValidatePassword test 2009-10-02 16:03:02 +10:00
Andrew Tridgell
4cb055cacd ds-flags: use the new name DS_DNS_FOREST_ROOT
Update to use the new DS_DNS_FOREST_ROOT name, which makes it clearer
what this bit means (according to MS-ADTS doc)
2009-10-02 12:02:00 +10:00
Aravind Srinivasan
b529a1e987 s4/torture: Add two new SMB RAW-OPEN tests
* Add chained NTCREATEX_READX test which first tries to open/read
  a non-existant file failing on the open, then attempts the same
  operation on a file that does exist, opening and reading
  successfully.

* Add test for open_dispositions on directories.
2009-10-01 17:14:53 -07:00
Aravind Srinivasan
50db2902ee s4/torture: convert printf to torture_comment() in RAW-OPEN
Allows "make test" and other harnesses to print cleaner output.
2009-10-01 17:14:53 -07:00
Steven Danneman
c38c99af91 s4/torture: second try on renaming oplocks.c to oplock.c
Forgot to "git add" the new file in commit b2bcfaae
2009-10-01 16:40:33 -07:00
Steven Danneman
b2bcfaaeed s4/torture: rename oplocks.c to oplock.c to match SMB1 file layout 2009-10-01 14:59:52 -07:00
Steven Danneman
1160d68062 s4/torture: Ported SMB oplock torture tests to SMB2
I've ported all applicable SMB oplock torture tests to SMB2, giving us
a good base for SMB2 oplock testing.

There are several differences between oplocks in SMB and SMB2, mostly
because of differences in W2K3 and W2K8.  The existing SMB oplock
tests all pass against W2K3, but several fail against W2K8.  These
same tests were failing in SMB2, util I reworked them.

BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't
cause a sharing violation or break an existing oplock.  It appears that
in W2K8/SMB2 a sharing violation is raised.

BATCH22: In W2K3/SMB when a second opener was waiting the full timeout
of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after
about 35 seconds.  This bug has been fixed in W2K8/SMB2 and instead
the second opener succeeds.

LEVELII500: Added 1 new test checking that the server returns a proper
error code when a client improperly replies to a levelII to none break
notification.

STREAM1: W2K8 now grants oplocks on alternate data streams.
2009-10-01 14:59:52 -07:00
Steven Danneman
49fdeaeaf6 s4/torture: fix typo in test comment 2009-10-01 14:59:52 -07:00
Kamen Mazdrashki
bd5343924f s4/asn1: Added torture suite for ASN1 2009-10-01 23:12:59 +02:00
Kamen Mazdrashki
98245727c9 s4-tort-drs: Add bind_info for dcerpc_drsuapi_DsBind() call
After this patch DsGetNCChanges() test works fine.

bind_info returned by server is also cached for future use

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-10-01 11:29:23 +03:00
Kamen Mazdrashki
d60e3ac8d3 s4-tort-drs: DsReplicaUpdateRefs test fixed and extended
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-10-01 11:29:22 +03:00
Kamen Mazdrashki
b49249864a s4-tort: Added assertion macro for DRSUAPI call
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-10-01 11:29:22 +03:00
Andrew Kroeger
c5dba4a82e s4:torture: data_blob_hex_string() output is now lowercase.
Based on the change in commit fb84edabbe, these
tests needs to expect lowercase output.
2009-09-30 16:02:14 +02:00
Steven Danneman
9af9dbeaf3 s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14
We were pulling junk memory for our stream names after the reordering
of the struct definition.
2009-09-29 19:25:48 -07:00
Steven Danneman
8c0d239317 s4/torture: Allow receiving of oplock break requests in any order
Previously, the oplock torture tests, being single threaded, required
the server to return oplock break requests, and other SMB packets
in a specific order for us to verify "correctness".

Of course, in several cases the protocol allows the break packets,
especially breaks to levelII to come back in any order.  With tevent
we're now able to wait for oplock breaks in the middle of a torture
test.

I've added a helper to do this, and modified all oplock tests to allow
returning of oplock breaks in any order.
2009-09-29 19:04:36 -07:00
Aravind Srinivasan
6e4bf59d80 s4/torture: convert printf to torture_comment()
Allows "make test" and other harnesses to print cleaner output.
2009-09-29 19:04:36 -07:00
Tim Prouty
cc3a6770c7 unlink defer torture test 2009-09-28 21:36:46 -07:00
Jelmer Vernooij
db55ea08bc parmlist: Add basic tests for test_get_int(). 2009-09-27 14:39:58 +02:00
Tim Prouty
ad96c11182 s4 torture: Fix RAW-STREAMS to request more specific permissions
This allows RAW-STREAMS to pass when the user isn't root on some
systems that don't give full access rights to non-root users.
2009-09-24 10:59:33 -07:00
Andrew Tridgell
430ee62e0c s4-torture: add some debug info to RPC-HANDLES 2009-09-22 17:10:05 -07:00
Anatoliy Atanasov
6033ce2403 Add tests for MS-ADTS:3.1.1.5.1.2 Naming Constraints 2009-09-21 17:18:10 -07:00
Stefan Metzmacher
f0704f5abc s4:torture: the spoolss notify test should listen on the ncacn_np endpoint
metze
2009-09-18 20:34:43 +02:00
Stefan Metzmacher
3207188287 s4:torture: don't use 'pipe' as variable name it's a system call
metze
2009-09-18 20:34:39 +02:00
Matthias Dieter Wallnöfer
5f58119fe5 util_smb: For some (unknown) reason the previous patch changed the permissions - Reset them 2009-09-13 10:53:30 +02:00
Matt Kraai
cce3e66665 Port the Samba 4 shm_setup to QNX. 2009-09-13 10:49:28 +02:00
Andrew Tridgell
458dda1f15 s4-repl: don't do double replication
When we replicate from a remote DC, we need to note the new uSN that
the local changes have resulted in, and modify the uSN that the notify
task uses to determine if it should send a ReplicaSync message back to
the remote DC. Otherwise we end up always triggering a ReplicaSync
every time we replicate from another DC
2009-09-15 18:45:43 -07:00
Jeremy Allison
f3cc05b96d Torture test for bug 6529 - Offline files conflict with Vista and Office 2003.
Ensure we don't regress.
Jeremy.
2009-09-14 18:45:16 -07:00
Günther Deschner
bca75ecf97 s4-smbtorture: fix remaining lsa lookup call unknowns. sorry...
Guenther
2009-09-11 14:34:58 +02:00
Günther Deschner
1d4bf02993 lsa: fill in more unknowns in lsa_LookupSid calls.
Guenther
2009-09-11 13:59:56 +02:00
Kamen Mazdrashki
bb6fda8a9a s4/tort: RPC-DRSUAPI test case refactored to match torture architecture 2009-09-11 11:53:18 +10:00
Kamen Mazdrashki
b24203fcb8 s4/tort: code clean up using torture_drsuapi_assert_call() macro
After this change, when a test fails, it gives
reasonable failure message.
2009-09-11 11:53:18 +10:00
Kamen Mazdrashki
5088caa69e s4/tort: assert macro for drsuapi dcerpc call
The macro actually wraps common code pattern used in
almost every test for DRSUAPI interface
2009-09-11 11:53:17 +10:00
Kamen Mazdrashki
a03e0c478d s4/tort: Propagate torture_context and use torture_comment
NOTE: Not every place where printf is used is replaced by
torture_comment. Future work shall "missed" printfs also.
2009-09-11 11:53:17 +10:00
Kamen Mazdrashki
0c8eee9711 s4/tort: CRACKNAMES tests to use private structure for testing.
DsCrackNamesPrivate structure basically inherits DsPrivate
structure while adding few test-specific members.
2009-09-11 07:29:56 +10:00
Kamen Mazdrashki
bebeb4ff70 s4/tort: Make common setup/teardown drsuapi test funcs really common 2009-09-11 07:29:56 +10:00
Kamen Mazdrashki
ebfc13b452 s4/tort: CrackNames test update to work against W2K3.
DRSUAPI_DS_NAME_FORMAT_UKNOWN added to 'known-to-fail'
responses as this actually means to ask AD to resolve
a name from FQDN format to Unknown format.
2009-09-11 07:29:55 +10:00
Andrew Tridgell
27beb7fc7e s4/torture: fixed lots of crash bugs in the DRS tests 2009-09-10 22:59:15 +10:00
Andrew Tridgell
a11bb148f7 s4/torture: don't mix declarations and code 2009-09-10 12:14:53 +10:00
Aravind Srinivasan
4d7685c1d4 s4/torture: add new SMB oplock tests
* test if oplocks are granted when requesting delete-on-close
* test how oplocks are broken by byte-range-lock requests
2009-09-09 10:22:13 -07:00
Aravind Srinivasan
c091d4b08c s4/torture: convert printf to torture_comment()
Allows "make test" and other harnesses to print cleaner output.
2009-09-09 10:22:12 -07:00
Steven Danneman
d5643a08e9 s4/torture/smb2: removed SMB2-FIND test
This test has been wholly replaced by the SMB2-DIR-ONE test found
in dir.c.
2009-09-08 13:43:06 -07:00
Steven Danneman
a38409ee4c s4/torture/smb2: Fix several small bugs and style issues in SMB2 dir tests
* removed all uses of printf, replaced with torture_comment
* replaced custom CHECK macros with new torture_assert_*_todo() helpers
* switched string dir name generation to generate_unique_strs() helper,
  to avoid non-deterministic test behavior where generate_rand_str()
  would cause file colissions in the same directory.
2009-09-08 13:43:06 -07:00
Kamen Mazdrashki
2904034410 tort: RPC-CRACKNAMES test case refactored 2009-09-08 22:44:50 +10:00
Kamen Mazdrashki
899fc0ddde tort: DsCrackNames - propagate torture context to all tests. 2009-09-08 22:44:49 +10:00
Kamen Mazdrashki
d078d2efe8 tort: Helper function to get DC info for testing 2009-09-08 22:44:49 +10:00
Kamen Mazdrashki
5e3759d122 tort: Implement 'setup' and 'teardown' for DRSUAPI test cases. 2009-09-08 22:44:48 +10:00
Andrew Tridgell
c28096636a s4: 'index' is a libc function 2009-09-08 11:52:44 +10:00
Matthias Dieter Wallnöfer
65541baf4b s4:torture - Fix uninitialized variable 2009-09-06 12:31:37 +02:00
Günther Deschner
9bf74d0ed9 s4-smbtorture: test netr_ServerSetPassword2 against Samba3.
Guenther
2009-09-02 10:47:36 +02:00
Günther Deschner
3f0c8772f1 s4-smbtorture: do not hard code BDC secure channel type into RPC-NETLOGON tests.
Guenther
2009-08-27 13:41:50 +02:00
Günther Deschner
d368c73f95 s4-smbtorture: add test_SetPassword_flags to RPC-NETLOGON-S3 testsuite.
Guenther
2009-08-27 13:41:02 +02:00
Günther Deschner
46184692ad s4-smbtorture: add RPC-NETLOGON-S3 to test samba3 netlogon server.
Guenther
2009-08-26 23:04:18 +02:00
Jeremy Allison
9a86f26a5f Allow systems with timestamp granularity of 1sec to work with
this test.
Jeremy.
2009-08-24 18:21:23 -07:00
Andrew Bartlett
497234c1cb s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpd
The change to protocol version 1 was not intentional, and broke the
protocol established with the ntp.org project.

Andrew Bartlett
2009-08-22 11:14:22 +10:00
Matthias Dieter Wallnöfer
8fcf1b988a torture/basic: in run_derefopen() the file could have been deleted before the last unlink
Through a suggestion pointed out in bug #6622 the test file sometimes doesn't exist on
the last turn anymore. So we haven't to fail here since it could have been deleted by
a concurrent process (e.g. when the same test runs multiple times). Therefore also
NT_STATUS_OBJECT_NAME_NOT_FOUND is an acceptable result.
2009-08-11 12:59:14 +02:00
Andrew Bartlett
e13c14e7e4 s4:torture Add test for the NTP signd server
This is used by at patch to the NTP project to supply authenticated
time as required by MS-SNTP. (ie, to keep windows clients in time sync
in the domain)

Andrew Bartlett
2009-08-11 18:22:12 +10:00
Tim Prouty
09e9904f18 s4 torture: Extend the RAW-RENAME test to more fully test directory renames.
The existing test was only covering files opened underneath the
directory that was being renamed.  It is not uncommon for windows
clients to actually hold a read-only handle to a directory open across
the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED.
Additionally, holding a handle open to a stream on the directory is
also allowed.
2009-08-06 17:07:49 -07:00
Matthias Dieter Wallnöfer
cc74f21324 s4:torture The test logic for the target was wrong. This should correct it. 2009-08-05 10:48:25 +02:00
Matthias Dieter Wallnöfer
e2ed5029e9 s4:torture Remove some unwanted code in the LDAP test - hope this fixes up the test failures 2009-08-05 09:53:55 +02:00
Andrew Tridgell
8bba340e65 s4 now supports the large readx extension 2009-08-05 12:08:30 +10:00
Andrew Tridgell
88d206070d skip the readbraw tests if the server does not support it
This allows the RAW-READ test to pass against w2k8
2009-08-05 11:32:01 +10:00
Andrew Bartlett
f050c500f1 s4:torture Make RPC-NETLOGON pass against ncaclrpc servers
The original patch didn't cope with a NULL target server name - we now key off that to decide it isn't worth checking against LDAP for this host.

I still can't get this to pass against Windows 2008, but mdw was
testing against Windows 2008R2.  at least 'make test' is happy, and
the rest should not be too hard...

Andrew Bartlett
2009-08-04 18:24:37 +10:00
Andrew Bartlett
57d690b6f6 s4:torture rework LDAP sort test
This reworks the test to be part of the LDAP tests, to make better use
of the torture API and the ldb API (in particular around adding
controls), and a general cleanup.

This also adds the test to the 'make test' run.

Andrew Bartlett
2009-08-04 13:11:07 +10:00
Matthieu Patou
3eaef05506 s4:torture Add test for correct server-side sorting over LDAP 2009-08-04 11:54:40 +10:00
Matthias Dieter Wallnöfer
64b4d02032 s4: Change constant to comply with the merged build 2009-08-03 14:23:23 +02:00
Matthias Dieter Wallnöfer
720b7ea0ee s4: Torture test for enhancements in "netr_LogonGetDomainInformations" call
This corrects and enhances the torture test of the mentioned call.
2009-08-03 09:46:30 +02:00
Matthias Dieter Wallnöfer
8110cf57aa s4: Adds a small test for the new enhanced error messages from the AD LDAP server 2009-07-31 17:41:04 +02:00
Stefan Metzmacher
1436256613 frsapi.idl: fix some unknown field names
metze
2009-07-21 19:11:21 +02:00
Jelmer Vernooij
de2a9fb607 Remove unused variable. 2009-07-19 17:17:23 +02:00
Jelmer Vernooij
28d155499a Add missing includes. 2009-07-19 13:39:38 +02:00
Günther Deschner
2e77debc99 Revert "fix LSA-PRIVILEGES"
This reverts commit 0d9fdbceed.
2009-07-17 00:13:54 +02:00
Günther Deschner
106d43a1dd Revert "fix LSA-TRUSTED-DOMAINS"
This reverts commit 3c9b262760.
2009-07-17 00:13:46 +02:00
Günther Deschner
8d68d04258 s4-smbtorture: use secinfo flags instead of numbers in lsa test.
Guenther
2009-07-17 00:13:40 +02:00
Günther Deschner
8cac8fd5d6 s4-smbtorture: use torture_comment in RPC-LSA tests.
Guenther
2009-07-16 11:13:26 +02:00
Günther Deschner
0d9fdbceed fix LSA-PRIVILEGES 2009-07-16 11:07:14 +02:00
Günther Deschner
3c9b262760 fix LSA-TRUSTED-DOMAINS 2009-07-16 11:07:06 +02:00
Günther Deschner
47eb061b53 s4-smbtorture: move all privilege tests to RPC-LSA-PRIVILEGES.
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
29c3a277e1 s4-smbtorture: move all trusted domain tests to RPC-LSA-TRUSTED-DOMAINS.
Guenther
2009-07-16 10:03:12 +02:00
Günther Deschner
c3f461c35f s4-smbtorture: some work on getprinterdriver and getprinterdriver2 tests.
Guenther
2009-07-16 03:05:44 +02:00
Stefan Metzmacher
f49129e592 torture/smb2: add missing new line to the new SMB2-DIR.FILE-INDEX test
Without this the subunit formated output would be invalid and make test
reports: "UNEXPECTED(error): samba4.smb2.dir (dc).FILE-INDEX"

metze
2009-07-15 12:17:06 +02:00
Stefan Metzmacher
d3be108637 SMB2-GETINFO: test SMB2_ALL_EAS
metze
2009-07-15 10:57:32 +02:00
Stefan Metzmacher
af3444e611 SMB2-CONNECT: unlink the test file at startup
This is needed to get reproducable results...

metze
2009-07-15 10:57:32 +02:00
Stefan Metzmacher
8cb44830e0 torture/smb2: fix crash bugs in the new SMB2-DIR tests
metze
2009-07-15 10:53:13 +02:00
Aravind
5334b79142 torture/smb2: Adding SMB2 Directory enumeration torture tests.
* Most of the tests were ported from SMB torture tests.
* Added one new tests which checks the behavior of the file_index field
  present in SMB2_FIND struct.
* Added one new test to check the enumeration of directories containing
  lots of files (~2000 files) with name lengths varying from 1 to 200 char.
2009-07-14 14:50:06 -07:00
Günther Deschner
b6fb8cf5f3 s4-smbtorture: add RPC-SPOOLSS-PRINTER test.
Guenther
2009-07-14 23:03:58 +02:00
Günther Deschner
3a367ab10d s4-smbtorture: add some tests to check spoolss_SetPrinter behavior.
Guenther
2009-07-14 22:59:45 +02:00
Günther Deschner
b0cce950ba s4-smbtorture: restructure test_OpenPrinter_server in RPC-SPOOLSS a bit.
Guenther
2009-07-14 22:58:55 +02:00
Stefan Metzmacher
f5b07455d9 RAW-LOCK: fix a compiler warning and make a global static const
metze
2009-07-06 15:49:44 +02:00
Stefan Metzmacher
ad17cf1772 RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4
We now allow --target=w2k8.

The strange thing is that w2k8 and win7rc only do half of the timeout
that was given by the client.

metze
2009-07-06 15:37:48 +02:00
Stefan Metzmacher
9216b2040c SMB2-NOTIFY: windows7 uses a different maximum buffer size
metze
2009-07-06 13:28:12 +02:00
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