summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2008-12-23s3: Fix stream marshalling to return the correct streaminfo statusTim Prouty1-10/+1
When there are enough streams on a file to fill up the max_data_count when responding to a trans2 streaminfo, samba is returning NT_STATUS_BUFFER_TOO_SMALL. Windows handles this by returning NT_STATUS_BUFFER_OVERFLOW while still sending as much of the data that it can fit into the buffer. When the windows client sees BUFFER_OVERFLOW, it retries the streaminfo with a larger buffer (2x). The windows client starts at 2K and will continue increasing the buffer size by two until it reaches 64K. If the streams don't fit in 64K the windows client seems to give up. This patch fixes marshall_stream_info to overfill the buffer by 1 stream so that send_trans2_replies can properly detect the overflow and return the correct status.
2008-12-22In gcc version 4.3.2 we get warnings for functions declared withJeremy Allison1-2/+1
attribute warn_unused_result. Start to fix these. Jeremy.
2008-12-23Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-3/+0
2008-12-23merged build: Remove shared-build related variables, as they are already set ↵Jelmer Vernooij1-3/+0
up correctly by the main configure.
2008-12-23Use make variable for Samba 4 shared library output directory.Jelmer Vernooij2-6/+5
2008-12-22Force symbolic links for shared library sonames to be created,Jelmer Vernooij1-1/+1
as they are required at run-time.
2008-12-22Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-2/+11
2008-12-22Fix "allow trusted domain" so it disables trusted domains.Gerald (Jerry) Carter1-2/+11
2008-12-22Set right LD_LIBRARY_PATH for finding Samba4's libraries.Jelmer Vernooij1-8/+8
2008-12-22Build samba 4 plugins in merged build.Jelmer Vernooij1-1/+2
2008-12-22merged build: Build Samba 4 using shared libraries internally, whenJelmer Vernooij1-1/+1
we're also doing so for Samba 3. This saves a significant amount of disk space.
2008-12-22merged build: Remove SWIG checks, set flags for shared Samba 4 build.Jelmer Vernooij1-6/+14
2008-12-21s3:loadparm/docs: Set default for "ldap ssl" to "start tls".root1-1/+1
This has been discussed on samba-technical before. 3.3 and newer only! Karolin
2008-12-21s3: loadparm: Clean-up list of parameters.Karolin Seeger1-8/+1
We don't need to list several combinations of lowercase and uppercase here. Karolin
2008-12-19Extend the chain1 test with write&xVolker Lendecke1-2/+21
2008-12-19Add a torture test simulating Windows write behaviourVolker Lendecke1-1/+81
Jeremy, enjoy :-)
2008-12-19Make smbclient "put" use cli_pushVolker Lendecke1-37/+31
This should fill the TCP socket even beyond the smbclient io_bufsize, very much like smbclient "get" should do it since 3.2
2008-12-19Add async cli_write_andx and cli_pullVolker Lendecke2-0/+425
2008-12-19Fix bug #5986 - Editing a stream is broken (rename problems).Jeremy Allison2-11/+14
Jeremy.
2008-12-19Fix setting smb_len for huge write&x callsVolker Lendecke1-1/+14
2008-12-19Add the cli_wct_ofs routine to calculate the offset for write&xVolker Lendecke2-0/+33
2008-12-19Remove the direct inbuf reference from construct_reply_common()Volker Lendecke2-10/+11
2008-12-19Add a doxygen comment line I forgot to mergeVolker Lendecke1-0/+1
2008-12-19Convert cli_request->outbuf to uint8_tVolker Lendecke2-15/+17
2008-12-19For large smbwrite&x, we need more than 64k bccVolker Lendecke2-6/+6
2008-12-19Add some commentsVolker Lendecke1-0/+22
If it takes more than 10 seconds to understand the code you've written yourself less than a year ago, it's time for comments or refactoring. I couldn't find a way to refactor that cleanly, so add comments :-)
2008-12-19Fix the padding calculation in smb_splice_chain for "bytes_padding!=0"Volker Lendecke1-1/+1
2008-12-19Pass "bytes_alignment" up through cli_request_sendVolker Lendecke7-10/+14
This parameter makes smb_spice_chain add padding before the bytes field
2008-12-19Fix a "ignoring function call result" warningVolker Lendecke1-1/+6
2008-12-19Prefer network writes over readsVolker Lendecke1-32/+33
If we really want to keep the pipe busy, we need to write everything we have as early as possible, giving the kernel the chance to get rid of the buffers quickly :-)
2008-12-19Move some bytes from data to text, make use of the ARRAY_SIZE macroVolker Lendecke1-2/+2
Probably pointless, but it doesn't add complexity and it is fun to see bss and data shrink :-)
2008-12-19Factor out cli_write_max_bufsizeVolker Lendecke1-25/+36
2008-12-19Remove two write-only variablesVolker Lendecke1-8/+0
If someone wants those stats, please don't use globals :-)
2008-12-19Make cli_negprot asyncVolker Lendecke2-50/+101
2008-12-19Make cli_negprot return NTSTATUS instead of boolVolker Lendecke13-42/+69
2008-12-19cli_negprot_send -> cli_negprot_sendsyncVolker Lendecke3-3/+3
2008-12-18Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison122-429/+28822
2008-12-18Comment out the parent inheritance code (this is incorrect) as wasJeremy Allison2-0/+4
done for POSIX ACLs. Jeremy.
2008-12-18Fix bug #5980 - Race condition when granting level2 oplocks can cause break ↵Jeremy Allison1-4/+27
notify to be missed. Jeremy.
2008-12-17s3: Add statvfs implementation to the onefs vfs moduleAravind Srinivasan1-0/+28
2008-12-17Fix bug #5979 - Level 2 oplocks being granted improperly,Jeremy Allison3-71/+124
Jeremy.
2008-12-17s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.Günther Deschner7-208/+4
Guenther
2008-12-17s3-ntsvcs: remove old _PNP_GetDeviceList.Günther Deschner3-72/+0
Guenther
2008-12-17s3-ntsvcs: use pidl for _PNP_GetDeviceList.Günther Deschner2-39/+30
Guenther
2008-12-17s3: refactor _netr_LogonControl{2,2Ex} server side.Günther Deschner1-28/+32
Guenther
2008-12-17Fix a valgrind errorVolker Lendecke1-1/+2
Reported by naga_kishore_kommuri@yahoo.com Derrel, please check! Thanks, Volker (cherry picked from commit 3356b95f72e26ede4ab16a12c334be90b8b1a639)
2008-12-17s3/smb.h: Remove unused LDAP_SSL_ON.Karolin Seeger1-1/+1
LDAP_SSL_ON is not defined at all. Ldaps can be used by specifying an ldaps URL using the "passdb backend" parameter. Karolin
2008-12-17s3/loadparm.c: Change default value for "ldap ssl".Karolin Seeger1-1/+1
LDAP_SSL_ON is not defined at all. That's why the actual default value was "" for a long time. Set a more sensible default value without chnging the default behaviour. -----8<------------------snip--------------8<-------------- user@host:/data/git/samba/v3-0-test/source> git grep LDAP_SSL_ON | cat include/smb.h:enum ldap_ssl_types {LDAP_SSL_ON, LDAP_SSL_OFF, LDAP_SSL_START_TLS}; param/loadparm.c: Globals.ldap_ssl = LDAP_SSL_ON; ----->8------------------snap-------------->8-------------- It's the same in 3.2 and 3.3 series. Karolin
2008-12-17s4:lib/tevent: add lib/events/ compat and let things compileStefan Metzmacher2-2/+3
metze
2008-12-17net luaVolker Lendecke4-4/+401
This adds a lua command line interpreter with some sample code how to build your own data types based on our internal data types. Not meant as the final word, but as a playground for experiments for people. Might be removed later when we find this turns out to be too awkward.