1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00
Commit Graph

9390 Commits

Author SHA1 Message Date
Stefan Metzmacher
ea88c8c99e r16923: remove unused substitude code
metze
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
4c68e315e2 r16922: move some macros out of talloc.h as the don't belong to talloc
metze
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
d41a83d559 r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
the operation doesn't need a valid file handle in that case

metze
2007-10-10 14:10:00 -05:00
Andrew Bartlett
a6e0846d9b r16917: Fix compile errors found by the testing of tdb on the build farm.
Andrew Bartlett
2007-10-10 14:10:00 -05:00
Andrew Bartlett
5d5503e8d8 r16916: Implement metze's proposed changes to the tdb logging API.
This clearly links the log function with its private pointer, and
makes the argument list for tdb_open_ex a bit shorter.

Andrew Bartlett
2007-10-10 14:09:59 -05:00
Andrew Bartlett
2728b60dfa r16914: Add more tests for the partition module.
Andrew Bartlett
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
ae9c007324 r16913: better return the same values as vista beta2
metze
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
b42d918d56 r16912: I messed up the numbers for ipc and print shares...
This caused vista beta2 to not do any rpc calls
against samba4

metze
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
7db393e5ea r16911: the TID is only 32 bits...don't overwrite parts of the UID field
metze
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
27087818c7 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
2007-10-10 14:09:58 -05:00
Volker Lendecke
3413ad5c31 r16909: Change torture_open_connection to look at torture:unclist.
Volker
2007-10-10 14:09:58 -05:00
Andrew Bartlett
6a8c9af9ba r16908: Set an error string if we can't find a backend for an operation.
Andrew Bartlett
2007-10-10 14:09:58 -05:00
Volker Lendecke
a5d6db0924 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
2007-10-10 14:09:58 -05:00
Rafal Szczesniak
bb0e9297b2 r16900: Nicer display of the test results.
rafal
2007-10-10 14:09:58 -05:00
Rafal Szczesniak
1bd5661258 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
2007-10-10 14:09:57 -05:00
Rafal Szczesniak
e597e9867f r16896: Allow to use both binding and unc string to specify host name
being looked up.

rafal
2007-10-10 14:09:57 -05:00
Rafal Szczesniak
d9fce228d0 r16895: Add continue function and prevent from segfaulting (or unpredictable
behaviour) if composite context returned from _send function was NULL.

rafal
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
2fd7a5fc61 r16891: test dcerpc over smb2
metze
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
5338699d0c r16890: implement DCERPC over SMB2 in the IPC backend
metze
2007-10-10 14:09:57 -05:00
Stefan Metzmacher
90b0ae53e4 r16889: implement SMB2 Ioctl in the frontend
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
8edbd9b05b r16877: run SMB2-FIND test
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
4f1afda488 r16876: implement SMB2 Find in the posix ntvfs backend
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
58bed7322c r16875: implement SMB2 Find in the frontend
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
0ff9c57757 r16874: query all information
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
3cf50e26b7 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
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
51d59d23a1 r16872: when we know the data length we can preallocate the buffer
and avoid a realloc

metze
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
283bec8295 r16871: zero padding bytes
(found by valgrind)

metze
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
1a1fd2747d 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
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
7761a2a595 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
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
1bb60b5be4 r16868: init some uninitialized values
(found by valgrind)

metze
2007-10-10 14:09:54 -05:00
Andrew Bartlett
ae470ff701 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
2007-10-10 14:09:54 -05:00
Andrew Bartlett
8b34bb2689 r16858: The RPC-SAMR-PASSWORDS test now passes.
Andrew Bartlett
2007-10-10 14:09:54 -05:00
Andrew Bartlett
9d31b9f047 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
2007-10-10 14:09:54 -05:00
Andrew Bartlett
9748c3a2f0 r16852: I thought we passed RPC-SAMR-PASSWORDS, but we don't. Disable that
test for now.

Andrew Bartlett
2007-10-10 14:09:54 -05:00
Andrew Bartlett
b4d75f01d9 r16851: Put a clue in as to which domain might have failed, due to the length
of this test.

Andrew Bartlett
2007-10-10 14:09:53 -05:00
Andrew Bartlett
845da45117 r16850: Disable NBT-WINSREPLICATION-OWNED until it always passes (currently it still has intermittant failures).
Andrew Bartlett
2007-10-10 14:09:53 -05:00
Andrew Bartlett
aa34bd46cb 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
2007-10-10 14:09:53 -05:00
Andrew Bartlett
5d5d49374f r16846: Try not to segfault if the domain SID isn't there, or the search
failed.

Andrew Bartlett
2007-10-10 14:09:52 -05:00
Jeremy Allison
1c84e57e71 r16843: Confirm that openX uses the same mapping table as getatr.
Jeremy.
2007-10-10 14:09:52 -05:00
Volker Lendecke
ec36c49c08 r16842: Jeremy, I almost don't dare checking this in.....
Volker
2007-10-10 14:09:50 -05:00
Jelmer Vernooij
9e38cc9f3f r16838: Allow compilation by midl. Patch by andrzej.hajda@wp.pl 2007-10-10 14:09:49 -05:00
Andrew Bartlett
666ac7e36c r16835: Remove RPC-SAMR from the test, until I can clear up the unexplained failure.
Andrew Bartlett
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
78c201db8a r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
2007-10-10 14:09:49 -05:00
Andrew Bartlett
7674306e67 r16833: Add a base DN to more search calls, we need to look for an ID over the
whole tree here.

Andrew Bartlett
2007-10-10 14:09:49 -05:00
Andrew Bartlett
ae7ec0d553 r16832: I should be more careful (and test!) when trying to make compilers and
static checkers happy...

Andrew Bartlett
2007-10-10 14:09:49 -05:00
Andrew Bartlett
9fdbedafad r16831: Use a valid memory context (found by the IBM checker).
Andrew Bartlett
2007-10-10 14:09:48 -05:00
Andrew Bartlett
5ef924bc73 r16830: Fix IBM checker and GCC warnings.
Andrew Bartlett
2007-10-10 14:09:48 -05:00
Andrew Bartlett
3e58350ec2 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
2007-10-10 14:09:48 -05:00
Andrew Bartlett
840b5f0a7f r16828: Add RPC-LSA as a test that passes, and remove RAW-ACLs until someone
can fix it.

Andrew Bartlett
2007-10-10 14:09:48 -05:00
Andrew Bartlett
10eeea6da4 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
2007-10-10 14:09:48 -05:00