1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

9714 Commits

Author SHA1 Message Date
Simo Sorce
c93817b36d r17185: Oh, I wanted to do this for sooo long time.
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.

Simo.
(This used to be commit 25fc7354049d62efeba17681ef1cdd326bc3f2ef)
2007-10-10 14:10:16 -05:00
Stefan Metzmacher
550f5fb26e r17176: remove off_t from talloc. size_t is large enough to hold
the max amount of memory of one process

metze
(This used to be commit f47b7bb656c8854c16c5a28ba24d18eeb22b6e22)
2007-10-10 14:10:16 -05:00
Andrew Bartlett
5f741e17d7 r17174: Enable gnutls code, which requires the HAVE_GNUTLS CPP macro.
Andrew Bartlett
(This used to be commit f3b6e57b2336f36416e25c3a5cd793aa036b5b40)
2007-10-10 14:10:16 -05:00
Andrew Bartlett
b718193b6b r17173: Check for oversize output, not oversize input, and fix the GSSAPI mech
to work (it broke it in the previous commit).

Andrew Bartlett
(This used to be commit e96638bc74f0752ce8af6626a04c92d48b917ffe)
2007-10-10 14:10:16 -05:00
Andrew Bartlett
048d0c64f9 r17171: Add a gensec function to determine the maximum negotiated buffer size,
and the maximum amount of user data that may be fitted into that.

This is used in the new SASL code, to correctly honour SASL buffer sizes.

Andrew Bartlett
(This used to be commit cbbe99d9c1f0262e67a495fb098cacc09fd78e05)
2007-10-10 14:10:15 -05:00
Andrew Bartlett
d5aeddf2ef r17170: Catch some more out-of-memory cases, and provide some clues when
chasing down bad signatures that may be due to data truncation.

Andrew Bartlett
(This used to be commit d304760d3d909e55cbf2c744cdb2b4137f74b81b)
2007-10-10 14:10:15 -05:00
Andrew Bartlett
9e854f2f86 r17169: Test LDAP with testnonblock.
Andrew Bartlett
(This used to be commit 9d866a030ea75b9589c3332725d23ba5f0e9669d)
2007-10-10 14:10:15 -05:00
Andrew Bartlett
a1a842eb44 r17168: Now that TLS (and soon SASL) is below the socket layer, we need to
make the testnonblock skip some things.  The socket *under* the tls
socket is still tested.

Andrew Bartlett
(This used to be commit 9c33c6a20a77e3f15eac3d62488117517afad940)
2007-10-10 14:10:15 -05:00
Andrew Bartlett
dc2715b49c r17167: indent
(This used to be commit 4dcdc5a3ad6847be6c6199854121ae4ccadaa673)
2007-10-10 14:10:15 -05:00
Stefan Metzmacher
48fac823d2 r17157: bail out if sizeof(size_t) < sizeof(void *)
metze
(This used to be commit f94198c2a8afd79b4c156773d14de691fd8bf0d5)
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
02ac968a26 r17156: check for the size of a pointer
metze
(This used to be commit 58e124ade31efbd72297ecc41d8ddfc48546ac53)
2007-10-10 14:10:14 -05:00
Jeremy Allison
38dee43c19 r17141: Prove that create dispositions with truncate and
overwrite break oplocks.
Jeremy.
(This used to be commit 94886f8c4029a9661a0bce2f7d9c41a3a5eaa366)
2007-10-10 14:10:14 -05:00
Jeremy Allison
8de86d192a r17139: Checking in Volker's extended oplock test.
Jeremy
(This used to be commit 720c425af167373aaedf739d1d7794ada3fcddf6)
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
3ff21a0cd7 r17114: print some sizes for debugging
metze
(This used to be commit fa04ef88e5875c58fdfc7cbd2b24587bb740970d)
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
4611244abd r17113: build tdb and ldb standalone with the same sizes of 'off_t' as from samba
metze
(This used to be commit 5c1e6c08c7cce233ca5798a325bdd17c2640286f)
2007-10-10 14:10:13 -05:00
Stefan Metzmacher
761450c66e r17112: - fix the build of the ldap ldb backend with newer openldap header files.
- use the correct timeout variable (simo you should do a standalone build before commiting:-)

metze
(This used to be commit ac9d69d2574e8331b3ce9c3b97922ead9165fa79)
2007-10-10 14:10:13 -05:00
Stefan Metzmacher
e3fd9ccd4e r17109: - use AC_SYS_LARGEFILE so that type sizes are the same when talloc
is build standalone and inside samba
- add configure checks for the some type sizes for debugging

metze
(This used to be commit 2977e7097ae9d6b96bb6f01c5c20bc2f3a518050)
2007-10-10 14:10:13 -05:00
Andrew Bartlett
b38fca6e2d r17104: Rename function parameters and variables to avoid shadowing global
declarations.

Andrew Bartlett
(This used to be commit 15dd43b77328c4d56438bdb34b3e8139c5a83878)
2007-10-10 14:10:13 -05:00
Andrew Bartlett
37eab82528 r17103: Big updates to the not-yet-enabled partitions module. It now services
the Global Catalog port 'correctly' (in a very simple sense) in that
it should be no worse than what we had before.

We now combine partitions together to search over the whole tree, when
we are marked as 'global catalog'.

Andrew Bartlett
(This used to be commit 0a354a1ddeccd9a6b1610bc6813a86fcdfc4d310)
2007-10-10 14:10:13 -05:00
Jeremy Allison
6cebe4d890 r17099: Samba3 now passes RAW-LOCK completely, no need for
parameters to protect it.
Jeremy.
(This used to be commit 382c37e3d70c4d259c400dba3d7e4c3846f66c34)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
e1248154d6 r17088: add ntvfs mapping function for notify
metze
(This used to be commit 7daf432d58ecebd10a28acd3ddbded9cb16536d0)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
bdf914a39d r17087: - make pvfs_notify_next_send static
- fix double free:
  a talloc_reference(a,b) when a is a child of b
  doesn't prevent talloc_free(b) from destroiying a and b.

metze
(This used to be commit 41acbc6645cc22d7f5f061dc5eda9b938ca018ba)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
bca8f2d568 r17085: reuse the existing sec_desc_buf struct
metze
(This used to be commit 22463cbcdd159657d04657071451738e768d0b2a)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
8075ce63fd r17084: implement SMB2 Cancel in the server,
that makes it possible for clients to cancel
async requests, like NOTIFY...

metze
(This used to be commit eaccd3c4353833daf584aaea4d7e8f11004a8072)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
a5bafffd66 r17083: - implement SMB2 Cancel in the client
- the 0xffffffffffffffff seqnum is reserved for SMB2 Break (oplock breaks)
  so don't use it in a request. we should someday try to test this...

metze
(This used to be commit 730cdc4475822e28cb400116641294a7f98ad0b5)
2007-10-10 14:10:11 -05:00
Volker Lendecke
152ea280f1 r17082: Add a test that walks and tests denying tconX access via the share security
descriptor. This is something that W2k3 does _not_ pass and probably is not
expected to, it seems the don't check access at tconX time.

Thanks to metze for the hint how in the srvsvc_NetShareInfo1501 struct the
length of the sd can be encoded in idl.

As metze says, there's probably more to the share secdesc, this needs more
testing. This one is here to walk the samba3 code.

Volker
(This used to be commit 67185508229a8d7f144c22cb194f573c932d6de5)
2007-10-10 14:10:11 -05:00
Stefan Metzmacher
73b066281e r17081: add idle handler support to the smb2 client lib too
metze
(This used to be commit 1f48e7dca6a06078f3655a7f7a8f109bd6c0cb8e)
2007-10-10 14:10:11 -05:00
Rafal Szczesniak
45b64e394d r17079: Remove an attempt to connect on ncacn_ip_tcp transport after failure
on ncacn_np, as abartlet suggested. Also, named pipe remains the default
transport for all kinds of servers to be contacted.

rafal
(This used to be commit 76888c74a66317a9888ea4c0965f0d33124c222f)
2007-10-10 14:10:11 -05:00
Volker Lendecke
f139daccf7 r17074: Extend the rpc-samba3-getusername test: This creates a normal user and we
check if we can actually see the user SID on a fresh sessionsetup.

This also gives us the simple create_user, which can lead to more fun tests
:-)

Volker
(This used to be commit 92afe1156915ab6c7e21380000bdad93414d0829)
2007-10-10 14:10:11 -05:00
Volker Lendecke
32b7198256 r17069: Make us pass RPC-NETLOGSAMBA3 against w2k3 again
(This used to be commit 963878a5f394234229af5835b2ccdd6d4b369466)
2007-10-10 14:10:10 -05:00
Volker Lendecke
803e5ef031 r17065: NT4 does not like "0" here, W2k3 does not care...
(This used to be commit 4f13b7d53c0f177cfd2a0d00ee14de3fce12d9bf)
2007-10-10 14:10:10 -05:00
Volker Lendecke
41c571e659 r17064: lsa_GetUserName needs to return the name for S-1-5-7 on an anonymous login.
Found that because I want to play around with setsharesecurity, for this I
need the "whoami" call figuring out the SID of the currently connected user.

Not activating this test yet until the build farm has picked up the new samba4
revision.

Volker
(This used to be commit 5603db30e7dfbb3d5c4599d36a50007a2b3cac75)
2007-10-10 14:10:10 -05:00
Stefan Metzmacher
4e4e698f2b r17062: make correct use of talloc destructors, and make the code much simpler
should I merge that aslo to samba3?

metze
(This used to be commit c5672a54a02e3f457effd7cc693a6f6ac2dcc621)
2007-10-10 14:10:10 -05:00
Stefan Metzmacher
cab68a413b r17061: - remove the currect talloc chunk from it's parent before freeing the children
this fixes an endless loop bug!
- reenable the test for this

should I merge this to samba3?

metze
(This used to be commit 0559222b62930765519aaab5d33609ece29014d6)
2007-10-10 14:10:09 -05:00
Andrew Bartlett
624544f065 r17031: When I first revived the objectclass sorting module, simo complained
that it should handle the add without a search.

Now that I'm working on better behaviour with an LDAP backend, I've
fixed the module to do just that.  For an ADD, and a MODIFY with the
REPLACE flag, we do not need the search step.

Andrew Bartlett
(This used to be commit 87573e2ee4a71168ea69182d2dc4ebf1779b7c02)
2007-10-10 14:10:09 -05:00
Rafal Szczesniak
6078bfda5e r17028: Remove extra newline.
rafal
(This used to be commit 7da9ebffbd2c8c558086656ab9c0e74aff2a7ce6)
2007-10-10 14:10:09 -05:00
Rafal Szczesniak
752fda46a5 r17027: My copyright notice.
rafal
(This used to be commit a2229f8c80898f5f0bae6641b356a476d3265c5a)
2007-10-10 14:10:09 -05:00
Rafal Szczesniak
434087bb4b r17026: Make rpc connect routine a bit smarter. Try to connect again
using different transport and possibly address type, when
the first attempt fails (only if it makes any sense, of course).
This may be especially useful when connecting DCs and PDCs in
mixed environments.

Also, add monitor messages issuing.

rafal
(This used to be commit d69b31230dd01efadd9c0cc6ef31c794c6165881)
2007-10-10 14:10:09 -05:00
Stefan Metzmacher
440d0487a6 r17020: pass the real error to the failing requests
metze
(This used to be commit 49b96ac44a883c020c69df7a12df154dc4faa4d5)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
09b9d831c2 r17019: don't timeout on notifies
metze
(This used to be commit 8d4fd35b10b176d31f986bbca5848091dffcd657)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a6a8065812 r17015: add a test that closes the tcp connection with an outstanding
notify request

metze
(This used to be commit d90313f715e999bb925a154b8431c77638a19a50)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
5af1b8e009 r17014: add whitespaces...
metze
(This used to be commit 60c4eaa4c5f98475ff214acf26dd5ad885c94e0b)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
39b7ae11ac r17012: don't try to send any data when the socket is gone already...
(fixes crash bugs)

metze
(This used to be commit b7418aec33033577de2420c70a8b94a2fb7901dd)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
669e5d0fab r17009: set the protocol version correct
metze
(This used to be commit 24ec382560de356704bcbf6cd1ee52182231e970)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
4c499cb45f r17008: on SMB2 Create the delete_on_close flag isn't ignored for
existing opened files as it is for SMB.

metze
(This used to be commit bcf09a769e241de36abed17f22aa0534d87cf4ff)
2007-10-10 14:10:07 -05:00
Rafal Szczesniak
ad521ee793 r17001: Prepare a new monitor messages.
rafal
(This used to be commit aaa2a5a27adf9bc9bb6853f8b14538a5923b130a)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
da722e8520 r16996: use the correct types, merge from samba3
metze
(This used to be commit dd81e7e5c71af36499746ba100ce48fedd240dce)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
b73a3ad21b r16989: implement SMB2 Notify in the frontend
metze
(This used to be commit 156bd4620c5b0f917a2ab6be5e6a2fdcf9403676)
2007-10-10 14:10:07 -05:00
Volker Lendecke
ab763b0a48 r16988: Extend locktest to enable cluster testing byte range locks. -l <unclist> will
redirect the first server/share via the unclist file.

Volker
(This used to be commit b370c9c8ddbaf73b071aae53d52edbf596e4d60a)
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
219a242ee8 r16982: fix compiler warning, gentest will not use any SMB2 levels...
metze
(This used to be commit db5a94ce0a1f1f3dda74ee5ecb0146bd762ded7c)
2007-10-10 14:10:06 -05:00