Andrew Bartlett [Thu, 24 Apr 2008 10:49:41 +0000 (11:49 +0100)]
Remove unused KANJI and terminal code options.
Someone can re-add this with tests and an actual implementation.
Andrew Bartlett
James Peach [Wed, 23 Apr 2008 18:26:38 +0000 (11:26 -0700)]
testsuite: skip RAW-BENCH-LOOKUP by default.
Simo Sorce [Wed, 23 Apr 2008 12:54:57 +0000 (08:54 -0400)]
Revert "Add port number for ncacn_http epmapper."
This reverts commit
1304362b3754960f68fb56e0915c3d80cace6e60.
This was causing way too many tests to fail. The dcesrv server was failing
to start as the NCACN_HTTP transport is considered invalid.
Jelmer please check how to properly fix dcesrv server before re-committing
your change.
Simo Sorce [Tue, 22 Apr 2008 20:37:54 +0000 (16:37 -0400)]
Fix more failing tests to pass the event context.
Simo Sorce [Tue, 22 Apr 2008 20:37:27 +0000 (16:37 -0400)]
Remove temporary debug statement
Jelmer Vernooij [Tue, 22 Apr 2008 20:33:34 +0000 (22:33 +0200)]
Fix event context initialization for Python bindings.
Jelmer Vernooij [Tue, 22 Apr 2008 20:19:46 +0000 (22:19 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Björn Jacke [Fri, 18 Apr 2008 15:09:09 +0000 (17:09 +0200)]
fix an extrasemi compile warning
Jelmer Vernooij [Tue, 22 Apr 2008 08:21:22 +0000 (10:21 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Simo Sorce [Mon, 21 Apr 2008 23:53:29 +0000 (19:53 -0400)]
Make sure we have an event context available
Simo Sorce [Mon, 21 Apr 2008 23:53:15 +0000 (19:53 -0400)]
Fix build
Jelmer Vernooij [Mon, 21 Apr 2008 23:34:11 +0000 (01:34 +0200)]
Add port number for ncacn_http epmapper.
Simo Sorce [Mon, 21 Apr 2008 21:58:23 +0000 (17:58 -0400)]
Remove more event_context_init() uses from function calls within deep down the code.
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
James Peach [Mon, 21 Apr 2008 22:09:43 +0000 (15:09 -0700)]
smbtorture: Add RAW-BENCH-LOOKUP micro-benchmark.
This test samples the lookup rate for a non-existant filename in a
directory, while varying the number of files in the directory. The
lookup rate should continue to approximate the lookup rate for the
empty directory case.
Jelmer Vernooij [Mon, 21 Apr 2008 15:59:08 +0000 (17:59 +0200)]
Load default smb.conf file if none was specified explicitly.
Andrew Bartlett [Sat, 19 Apr 2008 07:59:07 +0000 (09:59 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Stefan Metzmacher [Sat, 19 Apr 2008 00:06:44 +0000 (02:06 +0200)]
SMB2-PERSISTENT-HANDLES1: close the handle before deleting it
This means we no longer have a oplock break timing out
for the "delete".
metze
Stefan Metzmacher [Fri, 18 Apr 2008 22:13:42 +0000 (00:13 +0200)]
torture/smb2: add a simple SMB2-OPLOCK-BATCH1 test
metze
Stefan Metzmacher [Fri, 18 Apr 2008 20:32:25 +0000 (22:32 +0200)]
ntvfs_generic: map RAW_LOCK_SMB2_BREAK to RAW_LOCK_GENERIC
metze
Stefan Metzmacher [Fri, 18 Apr 2008 20:30:12 +0000 (22:30 +0200)]
smb_server/smb2: handle incoming oplock releases
metze
Stefan Metzmacher [Fri, 18 Apr 2008 20:27:24 +0000 (22:27 +0200)]
libcli/smb2: make it possible to handle incoming oplock requests
metze
Stefan Metzmacher [Fri, 18 Apr 2008 20:24:21 +0000 (22:24 +0200)]
libcli/smb2: add smb2_break() calls
metze
Stefan Metzmacher [Fri, 18 Apr 2008 20:19:08 +0000 (22:19 +0200)]
libcli: define structure for SMB2 Break
metze
Stefan Metzmacher [Fri, 18 Apr 2008 22:14:52 +0000 (00:14 +0200)]
ntvfs_generic: fix mapping the granted oplocks for SMB2
metze
Stefan Metzmacher [Fri, 18 Apr 2008 20:20:49 +0000 (22:20 +0200)]
build: fix the build rule for .o files
metze
Amin Azez [Mon, 10 Mar 2008 10:06:12 +0000 (10:06 +0000)]
Flag smb messages array with AND_X and LARGE_REQUEST
If smb_messages flags show for which opcodes VWV(0)
signifies chaining modes, and also which opcodes can
have requests >64K then the bcc / req->in.data_size
fixup in smbsrv_recv_smb_request can be more safely
applied.
This fix permits nttrans requests >64K to be handled.
It is not yet clear if THAT is a good thing, but this
fix does the current thing more nicely.
Amin Azez [Mon, 10 Mar 2008 10:03:38 +0000 (10:03 +0000)]
Re-order smbsrv_recv_smb_request and smb_messages
No functional change, just re-ordering so that
smbsrv_recv_smb_request can refer to smb_messages
in a future patch
Andrew Bartlett [Fri, 18 Apr 2008 16:21:52 +0000 (18:21 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Andrew Tridgell [Fri, 18 Apr 2008 14:23:48 +0000 (16:23 +0200)]
fixed a double free in winbind
state->domain->netlogon_binding is a child of ctx, and ctx is freed by
the composite_is_ok failure callback
Andrew Tridgell [Fri, 18 Apr 2008 13:42:55 +0000 (15:42 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Fri, 18 Apr 2008 13:41:54 +0000 (15:41 +0200)]
change the default idmap range to 3M -> 4M
This gives us a lot more headroom, and means that we have a lower
chance of running into real local users
Andrew Bartlett [Fri, 18 Apr 2008 09:37:43 +0000 (11:37 +0200)]
Fix samba3 protocol to correctly include the NULL terminator
Andrew Bartlett
Andrew Bartlett [Thu, 17 Apr 2008 16:44:48 +0000 (18:44 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Andrew Bartlett [Thu, 17 Apr 2008 16:40:56 +0000 (18:40 +0200)]
More endian fixes in the registry
Andrew Tridgell [Thu, 17 Apr 2008 14:53:36 +0000 (16:53 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Bartlett [Thu, 17 Apr 2008 14:44:55 +0000 (16:44 +0200)]
Fix typo
Andrew Bartlett [Thu, 17 Apr 2008 14:38:53 +0000 (16:38 +0200)]
More work to avoid endian bugs in registry tests.
Andrew Bartlett
Stefan Metzmacher [Thu, 17 Apr 2008 14:26:59 +0000 (16:26 +0200)]
nbt.idl: fix parsing und pushing of dom_sids by using dom_sid0
metze
Stefan Metzmacher [Thu, 17 Apr 2008 13:01:45 +0000 (15:01 +0200)]
libndr: add dom_sid0 type that can later be used for CLDAP and MAILSLOT ntlogon packets
metze
Andrew Bartlett [Thu, 17 Apr 2008 13:54:22 +0000 (15:54 +0200)]
Fix bug in registry test on big-endian machines.
Andrew Bartlett
Andrew Tridgell [Thu, 17 Apr 2008 13:21:08 +0000 (15:21 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Thu, 17 Apr 2008 13:20:39 +0000 (15:20 +0200)]
fix the overflow/wrap checks in Samba4 for new gcc optimisation behavior
The approach I have used is as set out in
https://www.securecoding.cert.org/confluence/display/seccode/ARR38-C.+Do+not+add+or+subtract+an+integer+to+a+pointer+if+the+resulting+value+does+not+refer+to+an+element+within+the+array
Andrew Bartlett [Thu, 17 Apr 2008 12:59:16 +0000 (14:59 +0200)]
Don't exclude all tests mentioning 'samba3', but only those actually
specific.
Andrew Bartlett
Andrew Bartlett [Thu, 17 Apr 2008 12:51:30 +0000 (14:51 +0200)]
Fix samba3sam test.
sAMAccountType is blocked by the samldb module.
Andrew Bartlett
Andrew Tridgell [Thu, 17 Apr 2008 12:47:07 +0000 (14:47 +0200)]
use uintptr_t instead of intptr_t where appropriate
Andrew Bartlett [Thu, 17 Apr 2008 12:25:22 +0000 (14:25 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Andrew Bartlett [Thu, 17 Apr 2008 12:23:50 +0000 (14:23 +0200)]
Run samba3sam.js with bin/smbscript explicitly.
Andrew Bartlett
Andrew Bartlett [Thu, 17 Apr 2008 12:20:46 +0000 (14:20 +0200)]
Fix build not to always use code coverage.
Somehow, the way this was structured before always did a gcov build.
Andrew Bartlett
Simo Sorce [Thu, 17 Apr 2008 12:04:57 +0000 (08:04 -0400)]
Add useful provisioning debugging options
Jelmer Vernooij [Thu, 17 Apr 2008 11:05:25 +0000 (13:05 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Jelmer Vernooij [Thu, 17 Apr 2008 11:04:04 +0000 (13:04 +0200)]
Fix the build.
Jelmer Vernooij [Thu, 17 Apr 2008 10:23:44 +0000 (12:23 +0200)]
Specify event_context to ldb_wrap_connect explicitly.
Andrew Bartlett [Thu, 17 Apr 2008 10:03:49 +0000 (12:03 +0200)]
Fix the expectations on the unixinfo test.
Andrew Bartlett
Andrew Bartlett [Thu, 17 Apr 2008 09:25:19 +0000 (11:25 +0200)]
Run more tests that were previously skipped.
Andrew Bartlett
Andrew Bartlett [Thu, 17 Apr 2008 09:22:23 +0000 (11:22 +0200)]
Skip strcmp() on 2 NULL pointers.
Andrew Bartlett
Andrew Bartlett [Thu, 17 Apr 2008 08:40:16 +0000 (10:40 +0200)]
Use the struct based winbind tests, but mark as known fail.
Andrew Bartlett
Andrew Tridgell [Thu, 17 Apr 2008 07:37:29 +0000 (09:37 +0200)]
make smb2 read and write size configurable
Andrew Tridgell [Thu, 17 Apr 2008 07:36:09 +0000 (09:36 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Conflicts:
source/ntvfs/ntvfs_generic.c
Stefan Metzmacher [Thu, 17 Apr 2008 01:54:26 +0000 (03:54 +0200)]
ntvfs_generic: map SMB2 oplock levels to the generic ones
metze
Stefan Metzmacher [Thu, 17 Apr 2008 01:52:45 +0000 (03:52 +0200)]
SMB2-PERSISTENT-HANDLES1: verify some more fields
metze
Stefan Metzmacher [Wed, 16 Apr 2008 08:11:44 +0000 (10:11 +0200)]
torture/smb2: add SMB2-PERSISTENT-HANDLES1 test
This demonstrates that the file seek position
is still available on reconnected persistent handles.
metze
Stefan Metzmacher [Thu, 17 Apr 2008 00:38:13 +0000 (02:38 +0200)]
selftest: ignore failures in the SMB2-PERSISTENT-HANDLES1 test
metze
Stefan Metzmacher [Wed, 16 Apr 2008 13:16:56 +0000 (15:16 +0200)]
torture/smb2: add torture_suite_add_2smb2_test() helper function
metze
Stefan Metzmacher [Wed, 16 Apr 2008 13:15:57 +0000 (15:15 +0200)]
torture/smb2: fix whitespaces
metze
Stefan Metzmacher [Wed, 16 Apr 2008 17:26:52 +0000 (19:26 +0200)]
smb_server/smb2: initialize new create.in.blobs element untill it'll be supported
metze
Jelmer Vernooij [Thu, 17 Apr 2008 00:06:07 +0000 (02:06 +0200)]
Avoid recursive make for code coverage.
Stefan Metzmacher [Wed, 16 Apr 2008 08:03:08 +0000 (10:03 +0200)]
libcli/smb2: make it possible to pass additional extra blobs in smb2_create()
This also fixes the alignment from 8 to 4 byte bounderies.
metze
Stefan Metzmacher [Wed, 16 Apr 2008 08:05:53 +0000 (10:05 +0200)]
libcli/smb2: also offer the SMB2 dialect that what used in longhorn beta3
With this smbtorture works against longhorn beta3 again,
hopefully it still works with new versions...
metze
Jelmer Vernooij [Wed, 16 Apr 2008 23:37:42 +0000 (01:37 +0200)]
Add convenience function for getting at event context from ejs code.
Jelmer Vernooij [Wed, 16 Apr 2008 23:37:02 +0000 (01:37 +0200)]
Avoid using event_context_find where possible.
Jelmer Vernooij [Wed, 16 Apr 2008 23:30:21 +0000 (01:30 +0200)]
Fix the build.
Jelmer Vernooij [Wed, 16 Apr 2008 23:22:39 +0000 (01:22 +0200)]
Require explicit event context rather than looking if it is not specified.
Jelmer Vernooij [Wed, 16 Apr 2008 23:19:53 +0000 (01:19 +0200)]
Explicitly require event context to be specified.
Jelmer Vernooij [Wed, 16 Apr 2008 23:19:20 +0000 (01:19 +0200)]
Use provided event context rather than looking for it.
Jelmer Vernooij [Wed, 16 Apr 2008 23:09:33 +0000 (01:09 +0200)]
Require passing in an event context to endpoint mapper utility function.
Jelmer Vernooij [Wed, 16 Apr 2008 23:03:18 +0000 (01:03 +0200)]
Remove event context tracking from the credentials struct.
Jelmer Vernooij [Wed, 16 Apr 2008 21:06:27 +0000 (23:06 +0200)]
Avoid event_find_context when a event context is already available.
Jelmer Vernooij [Wed, 16 Apr 2008 20:52:07 +0000 (22:52 +0200)]
Use readily available event context.
Jelmer Vernooij [Wed, 16 Apr 2008 20:30:15 +0000 (22:30 +0200)]
Avoid event_find_context() when the event context is already available
in the net utility.
Jelmer Vernooij [Wed, 16 Apr 2008 16:17:10 +0000 (18:17 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Jelmer Vernooij [Wed, 16 Apr 2008 16:11:37 +0000 (18:11 +0200)]
Fix todo element on actually implemented function.
Andrew Bartlett [Wed, 16 Apr 2008 15:35:32 +0000 (17:35 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Andrew Bartlett [Wed, 16 Apr 2008 15:33:58 +0000 (17:33 +0200)]
Adjust the expectations of the struct based winbind test.
These expectations (such as what happens when we have no trusted
domains) were incorrect, compared with Samba3 (which is the reference
for this protocol).
Andrew Bartlett
Jelmer Vernooij [Wed, 16 Apr 2008 15:21:48 +0000 (17:21 +0200)]
Provide stubs when the [todo] attribute is set.
Andrew Tridgell [Wed, 16 Apr 2008 15:11:21 +0000 (17:11 +0200)]
fixed popt handling on 64bit boxes in gentest
Andrew Bartlett [Wed, 16 Apr 2008 14:12:58 +0000 (16:12 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Andrew Bartlett [Wed, 16 Apr 2008 14:11:17 +0000 (16:11 +0200)]
Fix struct_based winbind test for 'check machine account'.
The problem here was that we did not fill in the error strings in the
success case, and the testsuite checked against the incorrect
'freindly' error string.
Andrew Bartlett
Andrew Bartlett [Wed, 16 Apr 2008 14:10:16 +0000 (16:10 +0200)]
Fix wbinfo --trusted-domains.
The problems here were that we did not bind to the LSA pipe, and we
did not consider it possible to have 0 trusted domains.
Andrew Bartlett
Jelmer Vernooij [Wed, 16 Apr 2008 12:52:29 +0000 (14:52 +0200)]
Use the subunit shell library.
Jelmer Vernooij [Wed, 16 Apr 2008 12:41:42 +0000 (14:41 +0200)]
Remove policy library - it's now in a separate git repository.
Jelmer Vernooij [Wed, 16 Apr 2008 10:34:53 +0000 (12:34 +0200)]
Use library for subunit test functions.
Jelmer Vernooij [Wed, 16 Apr 2008 09:43:37 +0000 (11:43 +0200)]
make sure header can be included more than once.
Andrew Bartlett [Wed, 16 Apr 2008 07:02:12 +0000 (09:02 +0200)]
Now that we don't create a new event context, don't free it.
This previously would free the torture provided global event context.
Andrew Bartlett
Jelmer Vernooij [Tue, 15 Apr 2008 23:32:54 +0000 (01:32 +0200)]
Remove unused arguments from reg_open_local().
Jelmer Vernooij [Tue, 15 Apr 2008 23:10:20 +0000 (01:10 +0200)]
Fix -r test, knownfailure return code.
Jelmer Vernooij [Tue, 15 Apr 2008 22:17:03 +0000 (00:17 +0200)]
Mention the actual exit code when a suite failed.
Jelmer Vernooij [Tue, 15 Apr 2008 22:05:36 +0000 (00:05 +0200)]
Merge branch 'wbinfo-test' of git://git.samba.org/kai/samba/kai-work-in-progress into v4-0-selftest
Jelmer Vernooij [Tue, 15 Apr 2008 22:05:12 +0000 (00:05 +0200)]
Fix executable bit on blackbox ndrdump tests.
Jelmer Vernooij [Tue, 15 Apr 2008 22:04:11 +0000 (00:04 +0200)]
Provide the right error count to formatters.
Jelmer Vernooij [Tue, 15 Apr 2008 22:03:45 +0000 (00:03 +0200)]
Properly warn about exit codes that indicate success while tests claim
failure.