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

3132 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
89b23974d3 Torture suite: Revert some changes because they aren't necessary
This reverts some changes made by me because they aren't necessary. The "ZERO_STRUCT"'s remain in.
2008-09-21 23:18:01 +02:00
Matthias Dieter Wallnöfer
9038f2a0fd Torture suite: Fixes the tests to not segfault again SAMBA 4 registry server 2008-09-21 23:18:00 +02:00
Jelmer Vernooij
a61c9ded40 Properly report why a test didn't succeed (required for use with known
failures).
2008-09-18 16:05:46 +02:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
Jelmer Vernooij
323346f7b0 Merge branch 'singlecompression' into single 2008-09-16 19:07:59 +02:00
Jelmer Vernooij
9c466a6158 Use single copy of compression library in Samba3,4. 2008-09-16 19:07:02 +02:00
Jelmer Vernooij
3e5ba883b3 Fix paths to subunit.sh 2008-09-16 18:39:08 +02:00
Jelmer Vernooij
d7a0c26af4 Move torture/ blackbox tests closer to code they're testing. 2008-09-16 18:30:24 +02:00
Jelmer Vernooij
7fdca97040 Merge branch 'singlesw' into single
Conflicts:
	source3/lib/socket_wrapper/socket_wrapper.c
	source4/lib/replace/system/network.h
2008-09-16 16:46:22 +02:00
Jelmer Vernooij
bf21371c09 Merge branch 'singlereplace' into single
Conflicts:
	source4/configure.ac
	source4/torture/local/config.mk
2008-09-16 16:45:10 +02:00
Jelmer Vernooij
f957aeaee6 Merge branch 'singletdb' into single 2008-09-16 16:44:16 +02:00
Jelmer Vernooij
41669237cd Use single copy of socket_wrapper in Samba 3 and Samba 4. 2008-09-16 16:39:45 +02:00
Jelmer Vernooij
0888ffa2b7 Make Samba 3 and Samba 4 both use the same single copy of libreplace. 2008-09-16 16:30:14 +02:00
Jelmer Vernooij
8ec93160d5 Fix last few includes to use new tdb location. 2008-09-16 16:09:50 +02:00
Jelmer Vernooij
80a5da73e9 Share talloc source code between Samba 3 and Samba 4. 2008-09-16 14:36:41 +02:00
Jeremy Allison
6ce1c893fa Comment the delay write time tests so I know what they're
testing.
Jeremy.
(This used to be commit 2bf9074c77)
2008-09-12 14:59:32 -07:00
Andrew Bartlett
0cbfc686c4 Fix failures in the winbind struct-based test.
Don't try to pass the 'privileged' socket directory around for expected value testing - it is just too hard...

A better test (once we unify the winbind protocol with Samba3) would
be a operation to see if you are on the priv pipe, and that will give
acutal end-to-end testing.

Andrew Bartlett
(This used to be commit 2d4103518a)
2008-09-11 11:49:24 +10:00
Jeremy Allison
bc731db854 A truncate write must be a smbcli_smbwrite, not a
smbcli_write.
Jeremy.
(This used to be commit 8cebd4d36c)
2008-09-09 21:24:34 -07:00
Stefan Metzmacher
d613041396 UNIX-WHOAMI: fix compiler warnings
metze
(This used to be commit ec5d8ddadb)
2008-09-09 13:01:34 +02:00
Jeremy Allison
2c2a79eefa Make it easier to see when tests start/end.
Jeremy.
(This used to be commit 6f89e72827)
2008-09-08 14:58:58 -07:00
Stefan Metzmacher
ad34034797 BASE-DELAYWRITE: test behavior of SMBwrite truncate, writeX, SMBwrite truncate and writeX again
metze
(This used to be commit 66b8c8d80e)
2008-09-08 16:22:57 +02:00
Stefan Metzmacher
f009e78864 BASE-DELAYWRITE: test behavior of writeX, SMBwrite truncate, writeX and SMBwrite again
metze
(This used to be commit 051164ba0a)
2008-09-08 16:22:57 +02:00
Stefan Metzmacher
1cf9d7e078 BASE-DELAYWRITE: demonstrate that a truncate write doesn't update the write time after SET_FILE_INFO
metze
(This used to be commit f81014db9d)
2008-09-08 16:22:53 +02:00
Stefan Metzmacher
a626b01193 BASE-DELAYWRITE: demonstrate that the time between the open and the first write doesn't matter
metze
(This used to be commit 13d051cd63)
2008-09-08 12:12:25 +02:00
Stefan Metzmacher
3ca48b015f BASE-DELAYWRITE: test more details of the truncate write time update behavior
metze
(This used to be commit 39367ef15f)
2008-09-08 08:31:34 +02:00
Andrew Bartlett
3eb6f79a02 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into trusted-domains
(This used to be commit a057c3ed9d)
2008-09-08 12:54:13 +10:00
Andrew Bartlett
b3cee235f5 More work towards trusted domains support in Samba4's LSA
Make 'lsar_CreateTrustedDomain' consistant with
lsar_CreateTrustedDomainEx{,2} by renaming handle -> policy_handle

Implement LSA server logic to create the cn=users trust account for
incoming trusts.

Andrew Bartlett
(This used to be commit d87b655e20)
2008-09-08 10:55:34 +10:00
Jeremy Allison
56b6b4a68f Don't compare identity, it'll never be different.
Jeremy.
(This used to be commit 840369b553)
2008-09-05 21:47:06 -07:00
Jeremy Allison
0d0fddf8ae Added tests that show that write time update is immediate
when changing file size using SMBwrite of size zero,
SET_END_OF_FILE, or SET_ALLOCATION_SIZE - no 2 second
delay in these cases.
Jeremy.
(This used to be commit 3aa7523d77)
2008-09-05 14:24:36 -07:00
Andrew Bartlett
19fb3b0199 More work to implement LSA CreateTrustedDomainEx2
We still don't get the format inside the encrypted blob correct
however.

Andrew Bartlett
(This used to be commit 99a3abda09)
2008-09-04 16:06:38 +10:00
Andrew Bartlett
b936d0f3be Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 9590805bcb)
2008-09-03 15:34:44 +10:00
Andrew Bartlett
ef57d9587b Test a few more error cases in RPC-PAC
(This used to be commit 50502b3b8f)
2008-09-03 14:19:16 +10:00
Andrew Bartlett
5dae44e88e Start testing CreateTrustedDomainEx2
Andrew Bartlett
(This used to be commit 91ae8dca25)
2008-09-02 11:31:46 +10:00
Andrew Bartlett
35c8899949 Follow MS-LSAD 3.1.4.7.12 and set defaults when creating a trust.
Also check we get the defaults correct with a query in the torture
suite.

Andrew Bartlett
(This used to be commit b55a1b63cc)
2008-09-01 14:43:00 +10:00
Andrew Bartlett
81dcc99e9a It turns out that the Netlogon PAC verification is encrypted.
This test now passes against Win2k3, and a implementation in the
Samba4 server should follow shortly.

Andrew Bartlett
(This used to be commit c6b8ba893d)
2008-08-29 15:06:30 +10:00
Andrew Bartlett
adb207e903 Further rework the RPC-PAC test.
This would seem to match the documentation requirements for the PAC
verfication over NETLOGON, but I can't get Win2k3 to accept it so far.

Andrew Bartlett
(This used to be commit acfa87f341)
2008-08-28 16:30:17 +10:00
Andrew Bartlett
c79dff2e9b Heimdal provides Kerberos PAC parsing routines. Use them.
This uses Heimdal's PAC parsing code in the:
 - LOCAL-PAC test
 - gensec_gssapi server
 - KDC (where is was already used, the support code refactored from here)

In addition, the service and KDC checksums are recorded in the struct
auth_serversupplied_info, allowing them to be extracted for validation
across NETLOGON.

Andrew Bartlett
(This used to be commit 418b440a7b)
2008-08-28 16:28:47 +10:00
Andrew Bartlett
c59c6cf18b Add missing file - netlogon.h
This file allows the remote_pac.c code to call into netlogon.c's setup
credentials code.

Andrew Bartlett
(This used to be commit 0343987cf1)
2008-08-27 22:26:25 +10:00
Andrew Bartlett
960bd9df1f Add a test to explore Netlogon PAC validation
However, I have still not figured out this protocol yet, and the docs
are rather unclear... :-(

Andrew Bartlett
(This used to be commit d878643071)
2008-08-27 21:36:27 +10:00
Andrew Bartlett
3010e5e489 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit d7db5fe161)
2008-08-26 16:27:10 +10:00
Andrew Bartlett
f1c0c3896e Don't use lsa_Delete any more, as smbd now refuses it.
(This used to be commit 8e1285a1ee)
2008-08-26 16:26:46 +10:00
Andrew Bartlett
4eba234a73 More LSA server and testuite work.
- Implement QueryDomainInformationPolicy in Samba4

 - Allow RPC-LSA to pass against Windows 2008 (which does not allow
   the Audit privilage to be removed)

Andrew Bartlett
(This used to be commit d94c7bbcd6)
2008-08-26 12:18:26 +10:00
Andrew Bartlett
f7c13b1a95 Make RPC-LSA test deterministic with an msleep(200).
(This used to be commit 914e1865aa)
2008-08-26 10:56:16 +10:00
Andrew Bartlett
291b0dfb2a Update RPC-LSA to (almost) pass against Windows 2008.
(This used to be commit a17cb558c2)
2008-08-26 09:49:54 +10:00
Andrew Bartlett
9eacc3a8f3 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit a555334db6)
2008-08-25 08:27:06 +10:00
Andrew Tridgell
a22b9d6485 fixed the data in SAVEFILE op in RAW-OFFLINE
(This used to be commit 3441ea5df5)
2008-08-24 17:42:29 +10:00
Andrew Tridgell
b030743d74 show the bad data in RAW-OFFLINE
also show the worst case latencies so far, matching tsm_torture
(This used to be commit 5859bb337c)
2008-08-24 17:38:43 +10:00
Andrew Tridgell
3efd7d2262 don't use zero data for the first file in RAW-OFFLINE
the most likely bugs in HSM involve zero data, due to the
dm_punch_hole() request
(This used to be commit 330ab956ea)
2008-08-23 11:54:02 +10:00
Andrew Tridgell
0a27ff953e Merge branch 'abartlet-4-0-local' into v4-0-test
(This used to be commit 469fac2669)
2008-08-22 17:37:43 +10:00
Stefan Metzmacher
75f594b285 drsuapi: fix samba4 callers after drsuapi.idl changes
metze
(This used to be commit 4b054cee51)
2008-08-20 15:22:05 +02:00
Matthias Dieter Wallnöfer
5e89476730 Add a torture test for the new 'netlogon' flags.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit a484334fb4)
2008-08-20 12:46:37 +10:00
Andrew Bartlett
f1df6744f1 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 3731f7eaea)
2008-08-15 20:47:52 +10:00
Andrew Bartlett
4bdb752cc5 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit b4b14b748e)
2008-08-15 20:41:50 +10:00
Andrew Bartlett
427b3baba3 Don't segfault in RPC-ATSVC.
(This used to be commit e711f7d26a)
2008-08-15 09:46:51 +10:00
Andrew Bartlett
ac503b140d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit b337369d5c)
2008-08-15 07:58:03 +10:00
Stefan Metzmacher
c1c6c1b609 RAW-OPEN: be more strict in create_option checking
metze
(This used to be commit d548f5dee5)
2008-08-14 15:14:53 +02:00
Stefan Metzmacher
affba1f75c SMB2-CREATE: add a special test for FILE_ATTRIBUTE_ENCRYPTED
Some standalone server (and samba4) doesn't support this.

metze
(This used to be commit 6d8fd4c008)
2008-08-14 13:13:52 +02:00
Stefan Metzmacher
d6abf13510 SMB2-CREATE: be more strict in checking file attributes
metze
(This used to be commit ba9d0f6b3c)
2008-08-14 13:13:51 +02:00
Stefan Metzmacher
80f2f10839 SMB2-CREATE: be more strict in error checking
metze
(This used to be commit d7d4df78c1)
2008-08-14 13:13:51 +02:00
Stefan Metzmacher
8b585deae4 NBT-WINSREPLICATION: be more robust to timing errors
Also reenable disabled tests.

metze
(This used to be commit 76878a9c79)
2008-08-14 13:13:48 +02:00
Andrew Tridgell
336f6810ce expanded the SMB2-CREATE and RAW-OPEN tests to explore more of how the
create options fields are supposed to work
(This used to be commit 0576875ecc)
2008-08-14 17:26:30 +10:00
Andrew Tridgell
88ec1aead4 cope with not knowing the kdc key
(This used to be commit 7e48dad4c7)
2008-08-14 15:27:22 +10:00
Andrew Bartlett
cb98944be3 Assert on failure to join domain in NBT-DGRAM
(This used to be commit 0a8080d0f2)
2008-08-14 11:54:19 +10:00
Andrew Bartlett
a0b5ec7797 We can't use ndr_pull_struct_blob_all in combinatin with relative pointers
(This used to be commit d0a128f35b)
2008-08-08 10:41:48 +10:00
Stefan Metzmacher
8275d511bc drsuapi: fix callers after idl change
metze
(This used to be commit 7dee6fb62d)
2008-08-07 19:15:58 +02:00
Andrew Bartlett
358a11c6f3 Print trustAuthOutgoing and trustAuthIncoming in RPC-DSSYNC
(This used to be commit 6673a6e623)
2008-07-31 21:23:48 +10:00
Andrew Bartlett
2cc32c4988 Use the cldap reply to avoid segfaulting in RPC-DSSYNC
Also don't fail the test if the server does not implement the NT4
changelog.

Andrew Bartlett
(This used to be commit 514d88580b)
2008-07-31 10:51:59 +10:00
Andrew Bartlett
2afd7d6d66 Don't fail if the domain has a trust already.
Andrew Bartlett
(This used to be commit c2df7ffa6d)
2008-07-31 09:07:57 +10:00
Stefan Metzmacher
1a4f4d2cf0 SMB2-CONNECT: remove reference to req->session before calling smb2_logoff_recv() on the invalid session
metze
(This used to be commit 93203e8e31)
2008-07-28 14:09:45 +02:00
Stefan Metzmacher
460356c976 smbtorture: add --extra-user option
This can we used to pass additional credentials to torture tests
(it can be used multiple times.

metze
(This used to be commit 4d80dbfac2)
2008-07-26 20:11:09 +02:00
Michael Adam
1f20ca14cc drsuapi: always set the pid field of the outgoing DsBindInfo to 0.
This is for debugging and informational purposes only.
The assignment is implementation specific.
(WSPP docs, sec. 5.35).

Michael
(This used to be commit 1f5704e2de)
2008-07-23 15:36:13 +02:00
Stefan Metzmacher
734d0c0a5d RPC-DSSYNC: print 'supplementalCredentials' more verbosely
metze
(This used to be commit 6a7637b12e)
2008-07-23 14:46:06 +02:00
Michael Adam
a9c3f4700c smbtorture: add a warning for unknown BindInfo length to the RPC-DSSYNC test
Michael
(This used to be commit 7ee99105ea)
2008-07-23 12:52:40 +02:00
Michael Adam
935a7b3389 smbtorture: add support for the DSBindInfo48 to the RPC-DSSYNC test.
Michael
(This used to be commit 67a99e4458)
2008-07-23 12:52:40 +02:00
Michael Adam
7fba6c649b Change occurrences of the u1 member of DsBindInfo* to pid after idl change.
Michael
(This used to be commit b91bbc5fe4)
2008-07-22 15:35:23 +02:00
Andrew Bartlett
d626a26374 Rename structures to better match the names in the WSPP IDL.
The 'comment' element in a number of domain structures is called
oem_information.  This was picked up actually because with OpenLDAP
doing the schema checking, it noticed that 'comment' was not a valid
attribute.

The rename tries to keep this consistant in both the LDB mappings and
IDL, so we don't make the same mistake in future.

This has no real schema impact, as this value isn't actually used for
anything, as 'comment' was not used in the provision.

Andrew Bartlett
(This used to be commit 65dc0d5365)
2008-07-21 13:42:07 +10:00
Andrew Bartlett
e16b2242e5 Remove bogus test in 'enum trusted domains' LSA server.
The change to the RPC-LSA test proves that when the remote server has
0 trusted domains, it will return NT_STATUS_NO_MORE_ENTRIES, not
NT_STATUS_OK.

Andrew Bartlett
(This used to be commit 40a55b34c2)
2008-07-21 12:05:53 +10:00
Volker Lendecke
853ef0d5ef Fix RAW-OPEN against Samba3
This test assumed that fnums are recycled immediately after a close. This is
not true on Samba 3.

Andrew B., I assume this is just a bug in the test. Assuming recycled fnums
might be true on Windows and Samba 4, but I don't think we should assume this
everywhere.

Volker
(This used to be commit a4c3a59d47)
2008-07-19 12:47:31 +02:00
Andrew Bartlett
853194c308 More 'must be ignored' options from the MS-SMB doc.
Also in particular the 'sync' flags (which Samba has traditionally
ignored).

Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.

Andrew Bartlett
(This used to be commit 370bb39cd7)
2008-07-18 18:40:19 +10:00
Stefan Metzmacher
29049aa670 drsuapi: print out the number of linked attribute values we got
metze
(This used to be commit 34f8b2abdd)
2008-07-16 14:42:12 +02:00
Stefan Metzmacher
f0e44c35af drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]
metze
(This used to be commit 35c7fa470a)
2008-07-16 14:42:11 +02:00
Stefan Metzmacher
a24fb2b537 drsuapi: get ctr6 out of xpress compressed level
metze
(This used to be commit 4e0708148a)
2008-07-16 14:42:06 +02:00
Stefan Metzmacher
c6ea7f0221 drsuapi: total_object_count was the wrong guess
The total_object_count member of DsGetNCChangesCtr[1|6] was wrong
it's the error code of an extended operation.

DsGetNCChangesCtr6 has a nc_object_count value which contains
the estimated amount of objects in the naming_context.

W2k seems to have a bug and sends this number of objects
in the extended_ret field. Maybe it's just a bug and
not a feature:-)

metze
(This used to be commit 6793109212)
2008-07-16 12:16:58 +02:00
Stefan Metzmacher
dfb1ba3d9e NET-API-BECOME-DC: fix crash bugs because of unintialized variables
metze
(This used to be commit 6acf42c2e4)
2008-07-16 12:12:29 +02:00
Andrew Bartlett
e92125e631 Ignore and handle more NT Create & X options.
The MS-SMB document explains that some of these options should be
ignored.  The test proves it.

/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */

If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */

Andrew Bartlett
(This used to be commit 502739ff90)
2008-07-16 14:00:18 +10:00
Stefan Metzmacher
bbbe06fb09 torture: .in.max_data should not depend on the smb max size
We now support async multi fragment SMBtrans calls.

metze
(This used to be commit ba8499867a)
2008-07-07 20:59:18 +02:00
Stefan Metzmacher
4af2de3f03 rap: trans->in.max_data should not depend on the smb max size
We now support async multi fragment SMBtrans calls.

metze
(This used to be commit 66e0c1754f)
2008-07-07 20:59:18 +02:00
Stefan Metzmacher
c88ec856bd drsuapi.idl: remove some unknows from DsGetNCChanges() (update samba4 callers)
metze
(This used to be commit d41b3dd6ff)
2008-06-30 17:40:01 +02:00
Simo Sorce
2daf2897d5 Use a custom init function for samba4 that sets a samba4
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308)
2008-06-14 13:00:53 -04:00
Simo Sorce
929adc9efa Make up the right dependencies now that ldb depends on libevents
(This used to be commit 3b8eec7ca3)
2008-06-14 11:59:19 -04:00
Andrew Tridgell
5d5c8a09f0 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 8e96f2edb0)
2008-06-06 22:11:00 -07:00
Andrew Tridgell
8e45338c8d handle NULL fields in blob comparison
(This used to be commit 0643b5a2bf)
2008-06-06 10:54:17 -07:00
Jelmer Vernooij
d51904c489 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit dcdfee611c)
2008-06-05 22:03:17 +02:00
Jelmer Vernooij
d05ca8cbba Add convenience function for creating nbt sockets in torture.
(This used to be commit 1e6bfb1aa7)
2008-06-05 22:02:41 +02:00
Andrew Tridgell
c6cc3cb88e another SMB2-LOCK fix now that we know that the UNLOCK flag is only
honoured on the first lock in a set
(This used to be commit c014ffabc6)
2008-06-04 17:52:13 -07:00
Andrew Tridgell
93d6332e7e fixed SMB2-LOCK test for new semantics (from docs)
(This used to be commit d4d4d62939)
2008-06-04 13:04:48 -07:00
Andrew Tridgell
bc8c2a50e8 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit d206517f90)
2008-06-04 09:25:16 -07:00
Stefan Metzmacher
8699913858 lib/crypto: remove unused sha1 and hmac-sha1 code
metze
(This used to be commit 2c8904be3b)
2008-06-04 09:12:24 +02:00
Andrew Tridgell
70219bee13 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 9d74201e46)
2008-06-03 15:11:42 -07:00
Stefan Metzmacher
6610a6c49a BASE-DELAYWRITE: fix test on filesystem without high resolution timestamps
metze
(This used to be commit fde9880f99)
2008-06-03 14:03:49 +02:00