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

15939 Commits

Author SHA1 Message Date
Andrew Tridgell
11703b2986 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
(This used to be commit 92d5fb531d)
2008-04-17 15:20:39 +02:00
Andrew Tridgell
107ab090e2 use uintptr_t instead of intptr_t where appropriate
(This used to be commit d62f2bcc85)
2008-04-17 14:47:07 +02:00
Andrew Tridgell
769ebe9171 make smb2 read and write size configurable
(This used to be commit 2090e75e0c)
2008-04-17 09:37:29 +02:00
Andrew Tridgell
30b9c37420 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Conflicts:

	source/ntvfs/ntvfs_generic.c
(This used to be commit a626a9c69c)
2008-04-17 09:36:09 +02:00
Stefan Metzmacher
baad7a7e56 ntvfs_generic: map SMB2 oplock levels to the generic ones
metze
(This used to be commit 9013748273)
2008-04-17 03:54:26 +02:00
Stefan Metzmacher
8d6af0a8ad SMB2-PERSISTENT-HANDLES1: verify some more fields
metze
(This used to be commit ae0a7d0918)
2008-04-17 03:52:45 +02:00
Stefan Metzmacher
4dc59022e8 torture/smb2: add SMB2-PERSISTENT-HANDLES1 test
This demonstrates that the file seek position
is still available on reconnected persistent handles.

metze
(This used to be commit 30e04ae3a0)
2008-04-17 02:39:32 +02:00
Stefan Metzmacher
9064aad727 selftest: ignore failures in the SMB2-PERSISTENT-HANDLES1 test
metze
(This used to be commit 02bfe20fd3)
2008-04-17 02:39:31 +02:00
Stefan Metzmacher
17e41720d9 torture/smb2: add torture_suite_add_2smb2_test() helper function
metze
(This used to be commit d70afbb067)
2008-04-17 02:39:30 +02:00
Stefan Metzmacher
1fe057f2e8 torture/smb2: fix whitespaces
metze
(This used to be commit 66c0f331a2)
2008-04-17 02:39:30 +02:00
Stefan Metzmacher
79b2980cf5 smb_server/smb2: initialize new create.in.blobs element untill it'll be supported
metze
(This used to be commit fbfbd74e65)
2008-04-17 02:39:29 +02:00
Stefan Metzmacher
578539216f 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
(This used to be commit e0a0d8e36a)
2008-04-17 01:58:25 +02:00
Stefan Metzmacher
b0f34bc8ca 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
(This used to be commit 874924a85a)
2008-04-17 01:58:24 +02:00
Jelmer Vernooij
a5d52174bd Avoid event_find_context() when the event context is already available
in the net utility.
(This used to be commit d40804777e)
2008-04-16 22:30:15 +02:00
Jelmer Vernooij
b815b81fb0 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit b175e7bf16)
2008-04-16 18:17:10 +02:00
Jelmer Vernooij
c47286e57a Fix todo element on actually implemented function.
(This used to be commit dedbeea4d2)
2008-04-16 18:11:37 +02:00
Andrew Bartlett
f9ca1a80c6 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit eab5f6a7f5)
2008-04-16 17:35:32 +02:00
Andrew Bartlett
80ad7025cf 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
(This used to be commit 29d5de9e8f)
2008-04-16 17:33:58 +02:00
Jelmer Vernooij
d49f94621b Provide stubs when the [todo] attribute is set.
(This used to be commit 356a5d2474)
2008-04-16 17:21:48 +02:00
Andrew Tridgell
4bbaf36f6f fixed popt handling on 64bit boxes in gentest
(This used to be commit 40c93ffbe9)
2008-04-16 17:11:21 +02:00
Andrew Bartlett
9586462b8f Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 18dd8120cc)
2008-04-16 16:12:58 +02:00
Andrew Bartlett
a58df2f54c 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
(This used to be commit df05f11883)
2008-04-16 16:11:17 +02:00
Andrew Bartlett
008c8adfe3 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
(This used to be commit 86694d429d)
2008-04-16 16:10:16 +02:00
Jelmer Vernooij
228f342b1f Use the subunit shell library.
(This used to be commit 49367e044e)
2008-04-16 14:52:29 +02:00
Jelmer Vernooij
68b2d9372f Remove policy library - it's now in a separate git repository.
(This used to be commit 9b364bf390)
2008-04-16 14:41:42 +02:00
Jelmer Vernooij
f540669c48 Use library for subunit test functions.
(This used to be commit 690924dc7f)
2008-04-16 12:34:53 +02:00
Jelmer Vernooij
7c4a45de26 make sure header can be included more than once.
(This used to be commit 38ed501ac8)
2008-04-16 11:43:37 +02:00
Andrew Bartlett
8eaf64b47b 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
(This used to be commit 664f2fc49f)
2008-04-16 09:02:12 +02:00
Jelmer Vernooij
2ef07ad551 Remove unused arguments from reg_open_local().
(This used to be commit fee7ea7080)
2008-04-16 01:32:54 +02:00
Jelmer Vernooij
83c8d6cc89 Fix -r test, knownfailure return code.
(This used to be commit 4f0954905a)
2008-04-16 01:10:20 +02:00
Jelmer Vernooij
c60a914052 Mention the actual exit code when a suite failed.
(This used to be commit 46ad68ad0b)
2008-04-16 00:17:03 +02:00
Jelmer Vernooij
f5c0be9208 Merge branch 'wbinfo-test' of git://git.samba.org/kai/samba/kai-work-in-progress into v4-0-selftest
(This used to be commit 56340a5fa1)
2008-04-16 00:05:36 +02:00
Jelmer Vernooij
edc9b35f1e Fix executable bit on blackbox ndrdump tests.
(This used to be commit a3f0e4151b)
2008-04-16 00:05:12 +02:00
Jelmer Vernooij
4b4a56fb1e Provide the right error count to formatters.
(This used to be commit f22602797f)
2008-04-16 00:04:11 +02:00
Jelmer Vernooij
8eb6d59a46 Properly warn about exit codes that indicate success while tests claim
failure.
(This used to be commit 92873264d7)
2008-04-16 00:03:45 +02:00
Jelmer Vernooij
d3729a8efa Support knownfail Subunit command.
(This used to be commit ad58a50854)
2008-04-16 00:03:00 +02:00
Jelmer Vernooij
e4cfb2d316 Deal with commands not even starting.
(This used to be commit 0f789e6779)
2008-04-15 23:52:06 +02:00
Kai Blin
3413cfefb8 blackbox: Add many more tests for wbinfo
(This used to be commit 0a2942f6e9)
2008-04-15 23:36:41 +02:00
Jelmer Vernooij
8170956b68 Add some documentation about the expected testsuite output.
(This used to be commit a24651d649)
2008-04-15 23:21:43 +02:00
Jelmer Vernooij
9062214d09 Add some documentation on test behaviour in selftest.
(This used to be commit e8e9f2cc7b)
2008-04-15 22:42:52 +02:00
Jelmer Vernooij
b708a3d1e7 Split binding structure handling out into a separate file.
For easier synchronisation with Samba 3.
(This used to be commit b9cac469f3)
2008-04-15 18:03:09 +02:00
Andrew Bartlett
2ddd23a875 Re-add 'db' subdirectory for LDAP backend provision
Andrew Bartlett
(This used to be commit 19890c0d15)
2008-04-15 17:10:47 +02:00
Andrew Bartlett
dfedfae1cd Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 66327b8bd8)
2008-04-15 16:56:15 +02:00
Andrew Bartlett
cb5873f36d Fix some of the winbind tests.
Some of the test expectations were incorrect.

Andrew Bartlett
(This used to be commit bc0e94360e)
2008-04-15 16:31:08 +02:00
Andrew Bartlett
e0eba5232d Fix winbind to check machine account.
This enables 'wbinfo -t', by checking the machine account with a
SamLogon call.

Andrew Bartlett
(This used to be commit abefa12029)
2008-04-15 16:29:13 +02:00
Jelmer Vernooij
7bb2ebb884 Fix size to memcpy call in generated Samba 3 client code.
Reported-By: vl
(This used to be commit a28807569d)
2008-04-15 16:00:07 +02:00
Andrew Bartlett
f8f4856ab7 Fix provision-backend script
Andrew Bartlett
(This used to be commit ee6e4f8da2)
2008-04-15 15:52:52 +02:00
Jelmer Vernooij
fd52fe8616 Fix pointers when pushing strings to python during pidl generation.
(This used to be commit ca72187b3e)
2008-04-15 14:32:13 +02:00
Jelmer Vernooij
983b66b8f1 Saner names for Python objects.
(This used to be commit f4de8d2c1c)
2008-04-15 12:51:31 +02:00
Jelmer Vernooij
1a8bfba545 Fix warnings.
(This used to be commit 88013ca977)
2008-04-15 12:15:43 +02:00