1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

9385 Commits

Author SHA1 Message Date
Andrew Bartlett
bfc02627ce r16914: Add more tests for the partition module.
Andrew Bartlett
(This used to be commit 2728b60dfa50ded03e06f0bd53eee55fce5143bd)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
41992489d2 r16913: better return the same values as vista beta2
metze
(This used to be commit ae9c007324b04a81fd367e4e72f50275df137d46)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
ac857dcfed r16912: I messed up the numbers for ipc and print shares...
This caused vista beta2 to not do any rpc calls
against samba4

metze
(This used to be commit b42d918d56387a4d5dd27cc4dfc187990195d9c3)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
29f3389fc0 r16911: the TID is only 32 bits...don't overwrite parts of the UID field
metze
(This used to be commit 7db393e5ea15dd363f83dcf5eb299f2806971f97)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
627f49d8c9 r16910: - don't search the wildcard handle
(a handle with all bits set to 1 is justed for some
   SMB2 Ioctl calls...)
- don't crash if we didn't find the tcon

metze
(This used to be commit 27087818c7e8cbaadbcd640fe3b0ffc1c3455b04)
2007-10-10 14:09:58 -05:00
Volker Lendecke
70b5c605c0 r16909: Change torture_open_connection to look at torture:unclist.
Volker
(This used to be commit 3413ad5c31b24d490744ad61229372ef74a707b0)
2007-10-10 14:09:58 -05:00
Andrew Bartlett
977e44c556 r16908: Set an error string if we can't find a backend for an operation.
Andrew Bartlett
(This used to be commit 6a8c9af9bae8c482dfdb07114ae8313b7e35d9e9)
2007-10-10 14:09:58 -05:00
Volker Lendecke
b7c5bc522b r16907: Add an index parameter to torture_open_connection. Next step is to enable the
unclist parameter for all tests that do two connections, to enable cluster
testing.

Volker
(This used to be commit a5d6db09244d444986f8fded3fc6e72c74c8ca1f)
2007-10-10 14:09:58 -05:00
Rafal Szczesniak
56bb8f4062 r16900: Nicer display of the test results.
rafal
(This used to be commit bb0e9297b2d0b25866b31937b553434a2dc6aac4)
2007-10-10 14:09:58 -05:00
Rafal Szczesniak
82f1374d2b r16897: Don't pass allocated buffer for returned string as the lookup
function allocates it using memory context.
Also, give nicer output of the result of lookup performed.

rafal
(This used to be commit 1bd5661258dffc01afdb11da50f2da8f0b0b9046)
2007-10-10 14:09:57 -05:00
Rafal Szczesniak
304c8fbfbe r16896: Allow to use both binding and unc string to specify host name
being looked up.

rafal
(This used to be commit e597e9867f50f495a338bed05cee76ff84fd38b6)
2007-10-10 14:09:57 -05:00
Rafal Szczesniak
861ec81048 r16895: Add continue function and prevent from segfaulting (or unpredictable
behaviour) if composite context returned from _send function was NULL.

rafal
(This used to be commit d9fce228d006b702d76faebe4eb436327a7212d0)
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
ee89812758 r16891: test dcerpc over smb2
metze
(This used to be commit 2fd7a5fc6107e398bb9e399461b2b30319c7741e)
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
810df68c23 r16890: implement DCERPC over SMB2 in the IPC backend
metze
(This used to be commit 5338699d0cff5da9fe7f9cd622764ea5a6b0d96b)
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
eb75ecbccf r16889: implement SMB2 Ioctl in the frontend
metze
(This used to be commit 90b0ae53e40a220249b55035411e6b60ee04de7c)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
48e6c11956 r16877: run SMB2-FIND test
metze
(This used to be commit 8edbd9b05b10aeba00b50e238614ba92fd7020e3)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
42248766d4 r16876: implement SMB2 Find in the posix ntvfs backend
metze
(This used to be commit 4f1afda488f2fb5cfcf98ef6a56157f954fdccfc)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
a3797ff66a r16875: implement SMB2 Find in the frontend
metze
(This used to be commit 58bed7322c7e552d0462a11ce5d46a282c31f8f7)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
1fcd8c8a90 r16874: query all information
metze
(This used to be commit 0ff9c5775724a4644dee10ce1476d728b515a569)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
7c810db7da r16873: - grow the buffer with the correct size, we maybe had 1 byte preallocated
- body_size doesn't contain the preallocated byte so don't remove it

metze
(This used to be commit 3cf50e26b7dc11d85c46ef81a36c74acf97085c0)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
e8b61d7cc8 r16872: when we know the data length we can preallocate the buffer
and avoid a realloc

metze
(This used to be commit 51d59d23a1179689bda7cd1ab8cc43de31ad4f24)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
bb158b74da r16871: zero padding bytes
(found by valgrind)

metze
(This used to be commit 283bec8295b6302dfe3dc12c82d7870bdfee8b37)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
f0f7070ad7 r16870: copy over the status from the ntvfs request to the smb2 request
so that smb2srv_setup_reply() doesn't push uninitialized data
(found by valgrind)

metze
(This used to be commit 1a1fd2747d12663ff1084a3bc85e85c74188edb7)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
cf901ad491 r16869: - if we know the blob length, we can preallocated the memory
and avoid a realloc in smb2_push_*
- don't overwrite the first data byte

metze
(This used to be commit 7761a2a595720e30f2a38448761ca77077908be7)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
1b45214f31 r16868: init some uninitialized values
(found by valgrind)

metze
(This used to be commit 1bb60b5be48fab7d84594283f58d2bc04c474b0c)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
0f215e9947 r16860: Fix (and reactivate) the RPC-SAMR test. We need to allow these sids
to be created as foreign, even if they are in a local domain.

Also we do need the user to exist for the life of the test, as we add
it to a group.

Andrew Bartlett
(This used to be commit ae470ff7014e52b55d88e9fe12e2322e069daf9d)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
6abc3e05b1 r16858: The RPC-SAMR-PASSWORDS test now passes.
Andrew Bartlett
(This used to be commit 8b34bb268946a20c655b2aad90625ac666c7820a)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
bc3d68af6d r16854: Fix the RPC-SAMR-PASSWORDS test. It failed because we allocated users
in the Builtin domain a SID from the global domain.

Andrew Bartlett
(This used to be commit 9d31b9f04721a2cac62f492f8db071aaa0aa966b)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
f596c0a4ec r16852: I thought we passed RPC-SAMR-PASSWORDS, but we don't. Disable that
test for now.

Andrew Bartlett
(This used to be commit 9748c3a2f0801b3968640eed8874c0a2c7d83a5a)
2007-10-10 14:09:54 -05:00
Andrew Bartlett
5768d1298f r16851: Put a clue in as to which domain might have failed, due to the length
of this test.

Andrew Bartlett
(This used to be commit b4d75f01d9cb2d1c9d5facfd5eb39c8a062886d4)
2007-10-10 14:09:53 -05:00
Andrew Bartlett
90b744247f r16850: Disable NBT-WINSREPLICATION-OWNED until it always passes (currently it still has intermittant failures).
Andrew Bartlett
(This used to be commit 845da45117402a1376909049755dbe6791479a41)
2007-10-10 14:09:53 -05:00
Andrew Bartlett
ba968d6684 r16847: Add the parts of the SAMR test that pass back into 'make test'.
I still need to figure out what causes the rest to fail...

Andrew Bartlett
(This used to be commit aa34bd46cb1446b9fb6fd8f1b8ffca5f81b3c052)
2007-10-10 14:09:53 -05:00
Andrew Bartlett
1d2b6e8712 r16846: Try not to segfault if the domain SID isn't there, or the search
failed.

Andrew Bartlett
(This used to be commit 5d5d49374fcbe0a42108c5bb2f2f44abc05e9bb9)
2007-10-10 14:09:52 -05:00
Jeremy Allison
ec3be5b908 r16843: Confirm that openX uses the same mapping table as getatr.
Jeremy.
(This used to be commit 1c84e57e712b03f03035abe26fd8adb71aa16994)
2007-10-10 14:09:52 -05:00
Volker Lendecke
a5cbc9a01c r16842: Jeremy, I almost don't dare checking this in.....
Volker
(This used to be commit ec36c49c08bdd222d5514611a39f3caf096dac7b)
2007-10-10 14:09:50 -05:00
Jelmer Vernooij
4979fd60b6 r16838: Allow compilation by midl. Patch by andrzej.hajda@wp.pl
(This used to be commit 9e38cc9f3fddd3f0494209df225c35c9e1e3dd37)
2007-10-10 14:09:49 -05:00
Andrew Bartlett
86518acc49 r16835: Remove RPC-SAMR from the test, until I can clear up the unexplained failure.
Andrew Bartlett
(This used to be commit 666ac7e36cf71faba6edbcd86e78cbcb2c2de1e7)
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
af0a9eb529 r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
(This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10 14:09:49 -05:00
Andrew Bartlett
51e0ae33ac r16833: Add a base DN to more search calls, we need to look for an ID over the
whole tree here.

Andrew Bartlett
(This used to be commit 7674306e673341513d26556a845a698a28dec92b)
2007-10-10 14:09:49 -05:00
Andrew Bartlett
1f1b34b3e8 r16832: I should be more careful (and test!) when trying to make compilers and
static checkers happy...

Andrew Bartlett
(This used to be commit ae7ec0d553650b2a90fac8b7564b8f986e3e4288)
2007-10-10 14:09:49 -05:00
Andrew Bartlett
ebea352760 r16831: Use a valid memory context (found by the IBM checker).
Andrew Bartlett
(This used to be commit 9fdbedafad69e55ef4ccad51c4f002c49e43f372)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
12dc0ae78c r16830: Fix IBM checker and GCC warnings.
Andrew Bartlett
(This used to be commit 5ef924bc739a51a8f83d7b4566f9ba85296c585a)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
3ed1e8ff3c r16829: Fix a number of issues raised by the IBM checker, or gcc warnings.
In particular, this removes one use of the LDB_DN_NULL_FAILED macro,
which was being used on more than DNs, had an embedded goto, and
confused the IBM checker.

In the password_hash code, ensure that sambaAttr is not, before
checking the number of values.

In GENSEC, note that this switch value can't occour.  This seems to be
the only way to quiet both the IBM checker and gcc, as well as cope
with possibly invalid inputs.

Andrew Bartlet
(This used to be commit 3e58350ec2ab883795b1dd03ac46a3520cac67d0)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
5e3ca4a733 r16828: Add RPC-LSA as a test that passes, and remove RAW-ACLs until someone
can fix it.

Andrew Bartlett
(This used to be commit 840b5f0a7f33db17fb324f978b3faff95ba280c1)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
f2e8b3202c r16827: Factor out some code into common samdb functions:
- creation of ForeignSecurityPrincipals
 - template duplication code

Rework much of the LSA server to pass the RPC-LSA test.  Much of the
server code was untested.  In implementing the LSA Accounts feature, I
have opted to have it only create entires when privilages are applied,
and not to delete entries, but to delete the privilages.

We skip some parts of the test, but it is much better than not testing
it at all.

Andrew Bartlett
(This used to be commit 10eeea6da465564ed9f785d06e2d2ed06cfe29a4)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
3aa8a700e6 r16826: Ensure we don't segfault if the remote server fails to set a password
in RPC-SAMR test.

Andrew Bartlett
(This used to be commit 08ec74d620ffe613655f28d002e60ca8201fadd9)
2007-10-10 14:09:47 -05:00
Andrew Bartlett
44e6f21393 r16825: Make ldb_sainity_check() set an error string. This makes it much
easier to chase down what modules or application code gets wrong.

Ensure not to leave memory allocated on failure in ldb_search()

Andrew Bartlett
(This used to be commit 0828739951ed879640f8ed6e4700d8ca6b8221b8)
2007-10-10 14:09:47 -05:00
Jelmer Vernooij
927cbf74ae r16824: Rename Ethereal -> Wireshark (patch from Joerg Mayer)
(This used to be commit a789aa468b2b2b631289dd65888b352de46ad900)
2007-10-10 14:09:47 -05:00
Stefan Metzmacher
fbf566b777 r16815: split out search levels which are also used by smb2
metze
(This used to be commit 3b8ecc19fac6f9d52adae86767ca153ab719d00d)
2007-10-10 14:09:47 -05:00
Günther Deschner
91e4f9f6d8 r16801: Adding WERR_DS_DRA_ACCESS_DENIED.
Guenther
(This used to be commit 075242b97614202ee265577c9e5dd499e56bd768)
2007-10-10 14:09:46 -05:00