summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2008-04-02Fix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay@expand.com>.Jeremy Allison1-30/+0
There is no reason to ensure the target host is ourselves, and this breaks MS clients in some cases. Jeremy. (This used to be commit c19fdf43d16ce9fba3e8e12e6192bac31837715e)
2008-04-01smbd: always close the base_fsp even if the real close returned an errorStefan Metzmacher1-4/+0
Otherwise we may end up with share mode entry without an open file. Volker, Jeremy: please check... metze (This used to be commit 547eacf6058d2bc5b41b266b70f8f4747aca4eae)
2008-04-01smbd: ignore nttrans renames as w2k3 doesStefan Metzmacher1-24/+3
This lets us pass the RAW-RENAME test. metze Signed-off-by: Michael Adam <obnox@samba.org> (This used to be commit 2d50a1fef022023588e9963131951f8f3e4c7c23)
2008-03-31Ok, final move of this code :-). I think I've found the correctJeremy Allison1-9/+9
place for it now where it will cause minimal disruption (only call the extra message_dispatch just before reading the next smb off the wire). Jeremy. (This used to be commit da2c19c481d0041872b4ce2f5105052077f3d3b8)
2008-03-31Move the message_dispatch() call after the check for errno onJeremy Allison1-11/+11
the select return. We don't want the call to message_dispatch to mess up the errno value. Jeremy. (This used to be commit 26a74d01bb2b53ffa5d296ff1c7d8b2b0d17831a)
2008-03-31Reduce the race condition in Samba4 in RAW-RENAME test. We rename a fileJeremy Allison1-0/+9
using trans2 setfileinfo on one connection, and then check the file name has changed on the other. In Samba we achieve this by sending a local message to the other process. This change causes us to re-scan for incoming messages after we've woken up from the select (which is cheap if there are no pending messages). This reduces the race significantly. Volker please review. Jeremy. (This used to be commit a7499e994aef743ea9c443f9a1618b262f6eda93)
2008-03-28Fix missing '&&'.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 251df53811e4272b629575a4b50c29a99715ccf9)
2008-03-28Only allow sendfile on non-stream fsp's. Should fix make test for streamsJeremy Allison1-2/+2
as sendfile isn't implemented in the streams vfs modules yet. Jeremy. (This used to be commit eef53e9603d4f3d892ffe00b061def5d717ca481)
2008-03-28Add a talloc context parameter to current_timestring() to fix memleaks.Michael Adam1-1/+1
current_timestring used to return a string talloced to talloc_tos(). When called by DEBUG from a TALLOC_FREE, this produced messages "no talloc stackframe around, leaking memory". For example when used from net conf. This also adds a temporary talloc context to alloc_sub_basic(). For this purpose, the exit strategy is slightly altered: a common exit point is used for success and failure. Michael (This used to be commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
2008-03-28printclose has only 1 vwvVolker Lendecke1-1/+1
(This used to be commit 99d980125054cbfef8ec85a31e83aa18a6e0bce3)
2008-03-27Fix up the comments on security=share to explain we'reJeremy Allison1-1/+5
ignoring passwords. Jeremy. (This used to be commit e7b6ea46532a26611dfd9d9e2727d52ba6a9cf50)
2008-03-27posix_acls: clarify loop condition code, removing unneeded counter variable.Michael Adam1-7/+2
Coverity ID 545 falsely classified this as a NULL dereferencing bug. By putting the loop of walking the list of aces more naturely not using additional counters, it becomes much more obvious that it is not entered when dir_ace == NULL. The same modifications are done for the file_ace loop. Michael (This used to be commit 6dab6cf0647d7db01e5e472f8b5cf21395b7dbf0)
2008-03-24Missing HAVE_UPDWTMPX check before using updwtmpx().Eric Cronin1-0/+4
In 10.5 Mac OS X added enough utmpx support to make it past the first two preprocessor checks around line 390 of src/smbd/utmp.c and on to the utmpx block which uses updwtmpx(). Unfortunately, as ./configure correctly surmised, 10.5 doesn't have that. https://bugzilla.samba.org/show_bug.cgi?id=5184 (This used to be commit f19d1e3d93d0d9dfe80372c6c5635f1047f9aa88)
2008-03-20smbd: fix session setup with security = share.Michael Adam1-1/+1
Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c. Jeremy, please check. Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this. Michael (This used to be commit 008c4bdbe5de064b4469fc1f7c7173290f35b3ef)
2008-03-20Port 3c1f1f0797e from 3-0-ctdbroot1-3/+57
We need to inform ctdb about the client's TCP connection so that after a fail over ctdbd can trigger the client to reconnect very quickly (This used to be commit ddc989886deff173b8a2a2a753a896770efe7545)
2008-03-18[samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]Andrew Tridgell1-1/+1
suppress that darn message (cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f) (This used to be commit 5e8c624c9c9775f255632717e6898d5f190ba51b)
2008-03-17Some simplificationsVolker Lendecke1-2/+3
(This used to be commit b59b436997fba47afd02ffb6f1194dfaef229d44)
2008-03-17Coverity fixesMarc VanHeyningen2-2/+7
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-12Add a debug message.Michael Adam1-0/+1
Michael (This used to be commit a39807044879ad9df7614e010db6ea16b51000a0)
2008-03-11Using Metze's S4 nttrans rename test, the nttrans renameJeremy Allison1-1/+1
behaves the same as the trans2 one. Jeremy. (This used to be commit c4fa4917dad97c5047f7336c6675739b44da256b)
2008-03-11Metze pointed out this we don't need FILE_ATTRIBUTE_READ here.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 923aa9f330cb370221af6b66cf0f237a9bd06f8e)
2008-03-11Allow us to pass RAW-RENAME by testing that the connection structJeremy Allison1-1/+1
connection paths are equal, not just the conn structs themselves. Jeremy. (This used to be commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65)
2008-03-11Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,Jeremy Allison3-10/+13
BATCH20 and RAW-RENAME. Jeremy. (This used to be commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3)
2008-03-11Fix S3 to pass the test_raw_oplock_exclusive3 test.Jeremy Allison2-3/+4
Jeremy. (This used to be commit 028302fac53083d66c969b876db1d831e53b8e35)
2008-03-11registry shares: prevent creating regular share called "global".Michael Adam1-0/+4
This is a first quick fix. Registry shares should be rewritten to use libnet_conf. Michael (This used to be commit 71bd0bd0ea018e8c5033bbf904333c596330855a)
2008-03-10Convert secrets_lock_trust_account_password to tallocVolker Lendecke1-4/+7
This is preparing the conversion of secrets.c to ctdb (This used to be commit 1307f0130c47b8d740d2b7afe7a5d8d1a655e2a2)
2008-03-08Fix some typosVolker Lendecke1-1/+1
(This used to be commit cfa1b838144800c0758969921b8904fd62e46c07)
2008-03-06Be more verbose why create local token has failed duringGünther Deschner1-0/+2
NTLMSSP and Kerberos session setup Guenther (This used to be commit 18b8c2c19e50aee8fc900c7507244cb95014a4fa)
2008-02-25Fix inotify detectionVolker Lendecke1-1/+7
Bug 5271 -- thanks to Tiziano Müller (This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c)
2008-02-24Allow "max mux" async i/o requestsVolker Lendecke1-5/+9
In the negprot reply, we allowed the client to issued "max mux" concurrent requests. The OS might allow less, for example AFAIK AIX has a configurable limit of concurrent AIO requests. We will fall back to sync operation for the requests that are too many when aio_read/aio_write return an error. Jeremy, please check! (This used to be commit 8f86f7f25c4eb71bbdfcc6bf2d12eaaae9a8d9ec)
2008-02-24Export aio_request_done()Volker Lendecke1-3/+9
This is for external modules implementing the Posix AIO API that not necessarily depend on the signal mechanism to indicate completion. (This used to be commit 9a069d306bb6f8a2cd51b8ba87b433884942d13f)
2008-02-24AIO on streams does not work (yet...)Volker Lendecke1-0/+12
(This used to be commit 1ba223f202a070a695581e0d7161473a3ebf4332)
2008-02-22Fix debug messages.Jeremy Allison1-4/+5
Jeremy. (This used to be commit d265cedb55b07c6b8a13b9632fbdf8a05fbba886)
2008-02-22Don't use fname after create_file has been calledVolker Lendecke3-18/+18
create_file calls unix_convert internally, so modifies fname. So we can't use "fname" after create_file has returned. Use fsp->fsp_name instead. Found during a lengthy debugging session with Karolin testing the xattr_tdb module... (This used to be commit 183fe570469963923864b732817a87f8660341ed)
2008-02-19Update position information also for AIOVolker Lendecke1-0/+5
Necessary to survive RAW-SEEK with AIO enabled. Jeremy, please check! (This used to be commit e2ca12c2345c0e3916dd09d097b2ba1ce2989fa8)
2008-02-19Inform level II oplock holders when we write using AIOVolker Lendecke1-0/+2
Jeremy, please check! (This used to be commit 81d823e026fb332a88b6e1f15030fe49719f2522)
2008-02-18Check return code of secrets_init() function.Tim Potter1-1/+2
(This used to be commit 2b1eead269e95142576d0c8c259874324ba83502)
2008-02-17Use new structs in reply_spnego_kerberos().Günther Deschner1-6/+5
Guenther (This used to be commit c55160f8e866d9b24a4dad234af78ae46c236a37)
2008-02-14Correctly use SPNEGO to negotiate down from krb5 to NTLMSSP.Jeremy Allison1-28/+81
Previously we didn't implement the 'NEGO' part of SPNEGO :-). Jeremy. (This used to be commit 8767a0dab95c544878b4187157e494e740974bb8)
2008-02-14Currently we don't SPNEGO negotiate back to NTLMSSP. Note this.Jeremy Allison1-4/+16
Jeremy. (This used to be commit 8cd04b948bfba3896d40c9e314a197f60ad76833)
2008-02-14Ensure invalidate_vuid() deletes any ntlmssp state.Jeremy Allison1-0/+4
Jeremy. (This used to be commit b41799c351c72b268ef094047a51766747671280)
2008-02-11smbd: use make usage of wbcDomainInfo()Stefan Metzmacher1-15/+9
metze (This used to be commit 9d6b43ea106df188b51060a8055fe5168220c314)
2008-02-08Fix some typos.Karolin Seeger1-1/+1
Karolin (This used to be commit 2bec0a1fb7857e6fb8ec15e5f597b2d4125f105b)
2008-02-06Make operator precedence very clear.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 4f125110cfe25b499eb628b5b08fdb610a5d972c)
2008-02-06Change the file time before we change the file mode.Alexander Bokovoy1-6/+6
This doesn't matter for most applications, but for offline files it matters as it allows you to set files offline from windows clients even with HSM systems that refuse to offline newly created files. Merge from Tridge's v3-0-ctdb tree. (This used to be commit 7da6c675440b0253ab37ee6097f769a2e45c7b7b)
2008-02-06Allow actual call to set file offlineAlexander Bokovoy1-12/+20
Dos mode calculation was masking out FILE_ATTRIBUTE_OFFLINE so that code to set file offline was never called before. Merge from Tridge's v3-0-ctdb git tree. (This used to be commit 9827d5ff416479408b19a8964c2321ea2517aa74)
2008-02-06Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ↵Alexander Bokovoy7-208/+155
dmapi-integration (This used to be commit f59d3786abcc53065c838a2fa82ec2f4b577b16f)
2008-02-05Fix a couple of "might be used uninitialized" warnings.Jeremy Allison1-2/+2
Jeremy. (This used to be commit b3ac8073a23afbba19d045302aa0700197c58bd5)
2008-02-05Fix typo.Karolin Seeger1-1/+1
Karolin (This used to be commit 3745e398b1cc4d1b76a7cb4ee9c998ff16b454b9)
2008-02-04str_list_free is not needed anymoreVolker Lendecke1-4/+2
(This used to be commit feddc1447d585fd108d22a36bccc576fa81197ef)