summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: only align unicode pipe_name (bug #8586)Stefan Metzmacher2011-11-251-7/+11
| | | | | metze (cherry picked from commit 48bcb8c846532ccd5489ef705182fb81c5278b04)
* s3-winbind: Don't fail on users without a uid.Andreas Schneider2011-11-251-1/+18
| | | | | | | | | | | | | | | | | | | This fixes bug #8608. If you join samba with idmap_ad backend to an AD. When you try to enumerate users with 'getent passwd' and the user doesn't have a uid set, then getent is aborted cause of NT_STATUS_NONE_MAPPED. If we can't map a user we should not stop but continue enumerating users. This normally happens with the default user 'krbtgt' with idmap_ad but could also happen with other backends. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Nov 15 16:52:04 CET 2011 on sn-devel-104 (backported from commit 10b285ccc29b106f164a6c18116e237634867717) Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: allow to set TCP_NODELAYACK socket option on AIX (#8616)Björn Jacke2011-11-191-0/+3
| | | | | | | this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux this is a backport of 383a918322c1edd1977fdbce19e52e8c8e6ffac1
* Fix bug #8562 - talloc: double free error.Jeremy Allison2011-11-171-2/+9
| | | | | | | | Ensure we don't access an undefined pointer. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Nov 4 00:09:46 CET 2011 on sn-devel-104 (cherry picked from commit 767c54d8dd9596718579699398392ae234b40aa2)
* s3:libsmb: consistently use state->size in cli_write_andx_create() (bug #5326)Stefan Metzmacher2011-11-161-1/+1
| | | | | | | | | | | | | Otherwise we may get unexpected results. This is a fix that was missing in commit 95595dd93fd04999fcf56ecaab7c29b064d021f8 (s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 9 10:13:32 CET 2011 on sn-devel-104 (cherry picked from commit 4b31c4273c45faa639445614061f3da548eb8505)
* s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)Stefan Metzmacher2011-11-161-4/+15
| | | | | | | | | | | Print shares doesn't support CAP_LARGE_WRITEX, while it's negotiated by the file server part. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Nov 8 17:01:36 CET 2011 on sn-devel-104 (cherry picked from commit 95595dd93fd04999fcf56ecaab7c29b064d021f8)
* Ensure we correctly calculate reply credits over all returnedJeremy Allison2011-11-161-4/+13
| | | | | | | | | | SMB2 replies, and do as Windows does and return the total in the last SMB2 reply. Fixes an issue found by Christian M Ambach <christian.ambach@de.ibm.com> (and thanks to Christian for the initial patch this was based on). (cherry picked from commit 65566dfa8629136eaf0dc1491502dc651d1a4858) Fix bug #8614 (SMB2: not granting credits for all requests in a compound request).
* s3:smb2_flush: outbody only needs 4 bytesStefan Metzmacher2011-11-161-1/+1
| | | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Nov 14 10:01:30 CET 2011 on sn-devel-104 (cherry picked from commit 72cabbbe50a36986dde823f0ba60abf9052c535a) Fix bug #8579 (smb2_flush sends uninitialized memory).
* Fix bug #8561 - Password change settings not fully observed.Jeremy Allison2011-11-163-5/+36
| | | | | Based on commit 3ede4ffe969f806ba2363b62c09673c32a4ec296 in master (with a change to set the header prototype in the correct file).
* s3:smb2_server: grant credits in async interim responses (bug #8357)Stefan Metzmacher2011-11-141-1/+3
| | | | | | | | | | | | The first fix for bug #8357 intruduced a regression, so that we no longer grant credits for real async interim responses with STATUS_PENDING. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 9 11:56:29 CET 2011 on sn-devel-104 (cherry picked from commit ffbd1ed2797616226a7987efd4b4dd4275c8c9d0)
* s3:smbd: don't limit the number of open dptrs for smb2 (bug #8592)Stefan Metzmacher2011-11-141-3/+12
| | | | | | | | | | | This fixes a crash bug that is triggered, when a client has more than 256 directory handles with searches. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Nov 10 14:08:14 CET 2011 on sn-devel-104 (cherry picked from commit 22ddbb50534aa73240a171732d4ac1fa884fa412)
* s3:smbd: fully construct the dptr before allocating a dnum in the bitmapStefan Metzmacher2011-11-141-27/+29
| | | | | metze (cherry picked from commit 39bb5a62977261d0926f56b792aacaa5e772ff6f)
* s3:smbd: avoid string_set() in dir.cStefan Metzmacher2011-11-141-2/+9
| | | | | | | And do some more error checks. metze (cherry picked from commit 7644547a5523b77bd49d9a5d979d5e4939153401)
* s3:idmap_autorid: add an allocation range to autoridChristian Ambach2011-11-101-1/+94
| | | | | | | | | | this is needed to allocate gids for BUILTIN\Users and BUILTIN\Administrators and for local users/group that admins might want to create autorid will now allocate one range for this purpose and can so give out as many uids and gids as the configured rangesize allows
* s3:idmap_autorid: move HWM initialization into a functionChristian Ambach2011-11-101-11/+24
| | | | | we will need some more HWM soon, so move out initialization and optimize the logic using the new interface of dbwrap_fetch_uint32
* s3:idmap_autorid: use strings as parameter for range allocatorChristian Ambach2011-11-101-14/+14
| | | | | this prepares for allocation of non-domain ranges that cannot be expressed by a SID (e.g. an allocation pool)
* s3:libsmb: the workgroup in the non-extended-security negprot is not aligned ↵Stefan Metzmacher2011-11-091-4/+21
| | | | | | | | | (#8573) I've tested the fix against NT4 sp6a, W2K sp4, W2K8R2 and Win8pre0. metze (similar to commit aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34)
* s3-wafbuild: Fix inotify detection (bug 8580)Björn Baumbach2011-11-091-2/+3
| | | | | | | | | | Enable inotify if sys or kernel inotify is available. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Nov 7 16:28:38 CET 2011 on sn-devel-104 (cherry picked from commit b9e6c48678624ba5335d00906c558ea9e0086699)
* s3-build: Fix inotify detection (bug 8580)Björn Baumbach2011-11-091-2/+4
| | | | | | | Enable inotify if sys or kernel inotify is available. Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 846809853acd53a733fa6057436c6e51843d8fab)
* s3:smb2_server: FLAG_CHAINED means we always use the last session_id and tidStefan Metzmacher2011-11-094-34/+20
| | | | | | | | | Based on master commit 91648aeb6409787c7766943225f5c7a9c695aa0b. metze The last 4 patches address bug #8560 (SMB2 doesn't handle compound request headers in the same way as Windows).
* s3:smb2_server: don't reset the tid and session id in the out hdr of ↵Stefan Metzmacher2011-11-092-15/+0
| | | | | | | | | | | compound requests Windows also leaves tid (0xFFFFFFFF) and session id (0xFFFFFFFFFFFFFFFF) as the client requested them. Based on commit 8d07d7148bf47ea14e62d39ed8a8cc4f1366810e from master. metze
* s3:smb2_server: echo the SMB2_HDR_CREDIT_CHARGE and SMB2_HDR_SIGNATURE fieldsStefan Metzmacher2011-11-091-2/+4
| | | | | | | Windows just echos back the given values by default. metze (cherry picked from commit c7d3b6b2c38711943910aebff72b0188b0c346db)
* s3:smbd increase a debug levelChristian Ambach2011-11-091-3/+4
| | | | | | logging disconnected clients with level 1 swamps the logs (This fixes Bug #8585 Disconnecting clients swamp the logs)
* Properly fix bug #8384 - Windows XP clients seem to crash smbd process every ↵Henry Wong2011-11-091-0/+1
| | | | | | | | | | once in a while. Ensure we correctly null out the referenced pointer when we decrease the ref. count. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Nov 4 21:12:13 CET 2011 on sn-devel-104 (cherry picked from commit 51c86c8e67c3b026f49136f5b6743c279cc206d2)
* s3-netlogon: Fix setting the machinge account password.Andreas Schneider2011-11-011-0/+4
| | | | | | | | This bug has been found with uid wrapper. (cherry picked from commit bda9752b1036c4d4db76a526a79a091419bf757c) Fix bug #8550 (Calls inside netr_set_machine_account_password() to set the machine account password must be done as root).
* Fix bug #8548 - winbind_samlogon_retry_loop ignores logon_parameters flags.Jeremy Allison2011-11-011-2/+2
| | | | | | | | Fix confirmed by reporter. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 28 23:04:47 CEST 2011 on sn-devel-104 (cherry picked from commit f30f71c14a0b89dea296910ac9b92d3ae4016613)
* Fix bug #8542 - smbclient posix_open command fails to return correct info on ↵Jeremy Allison2011-10-261-2/+2
| | | | open file.
* Third part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison2011-10-261-2/+1
| | | | | | | symlink target is outside of the share. Missed passing ucf_flags instead of hard coded flags in findfirst call. (cherry picked from commit 49d2a796bed0273327d8919755023c4dbd6d8232)
* Second part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison2011-10-263-2/+12
| | | | | | | | symlink target is outside of the share. The statcache has to do lstat instead of stat when returning cached posix pathnames. (cherry picked from commit 305d7d7f7d76e37d82ce6ac257f178ce654b26db)
* Fix bug #8541 - readlink() on Linux clients fails if the symlink target is ↵Jeremy Allison2011-10-264-11/+43
| | | | | | | | outside of the share. The key is to only allow the lookup to succeed if it's a UNIX level lookup or readlink, but disallow all other operations. (cherry picked from commit d2ec9d20858b8e5256bf8339395c6f47793e0975)
* Use existing ISDOT and ISDOTDOT macros.Jeremy Allison2011-10-261-2/+1
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104 (cherry picked from commit d82256ca119eb8315cc69ba725ba71c386caa901)
* s3-netapi: remove pointless use_memory_krb5_ccache.Günther Deschner2011-10-262-20/+0
| | | | | | | | This breaks the ABI. Guenther See bug #7465 for more details.
* s3:Makefile: make DSO_EXPORTS_CMD more portable (#8531)Björn Jacke2011-10-211-1/+1
| | | | | | | | | | It sems like every not completely trivial sed expression should be tested with Solaris' sed. Its regexp engine is way more limited than the one of GNU sed. Thanks to Michael Pelletier for finding this! This fixes bug #8531 Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Oct 20 23:15:05 CEST 2011 on sn-devel-104 (cherry picked from commit 37be1df3d7534c2cc8e1e25614164c2178372b94)
* Fix sys_fseek wrapperBrad Smith2011-10-203-3/+5
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Fix bug #8525 (Bug with sys_fseek() wrapper on *BSD / OS X).
* s3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ↵Michael Adam2011-10-201-1/+10
| | | | | | | | | | | | | | | ucs2 string 1. catch data blobs with odd number of bytes (not an ucs2 string at all) 2. test the right ucs2 character to be 0 (prevent out-of bounds access/potential segfault) Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sun Oct 2 01:26:05 CEST 2011 on sn-devel-104 (cherry picked from commit 95bb2c23e6e9c52a1e34916dff05b1d306278bc6) The last 2 patches address bug #8528 (SEGFAULT from net registry export on not zero terminated REG_SZ values).
* s3:registry: reg_format: handle unterminated REG_SZ blobsGregor Beck2011-10-201-1/+9
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit b9da4235566ffdd649d7b4a6ca05cecd02cfbd20)
* First part of fix for bug #8419 - Make VFS op "streaminfo" stackable.Frank Lahm2011-10-208-14/+34
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 21:39:32 CEST 2011 on sn-devel-104 (cherry picked from commit c3bdcab5161107be8155a7913d9cb325383a781d)
* Add support for VFS op streaminfo chaining in all relevant VFS modules.Frank Lahm2011-10-209-68/+30
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 14 03:26:06 CEST 2011 on sn-devel-104 (cherry picked from commit 7a0b5d6fc51d5d212529e82e5ed8e21516bfbe27)
* VERSION: Bump version up to 3.6.2.Karolin Seeger2011-10-201-1/+1
| | | | Karolin
* Fix uninitialized memory problem in group_sids_to_info3 (fixes bug #8455).Wilco Baan Hofman2011-10-181-2/+2
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 17 23:32:58 CEST 2011 on sn-devel-104 (cherry picked from commit c52b571506874987ba626c25e9692fbe2251b7e2)
* Fix bug #8521 - winbindd cache timeout expiry test was reversedJeremy Allison2011-10-151-1/+1
| | | | | Found and fix reported by Micha Lenk <micha@lenk.info>. Thanks ! (cherry picked from commit 1e4761d05978b7a495d121acc1deaa7049f3911c)
* s3: Fix bug 8455 -- Samba PDC is looking up only primary user groupVolker Lendecke2011-10-151-7/+7
| | | | | | | | | | group_sids_to_info3 does a sid_peek_check_rid on the domain sid before adding the rids to the array. If the domain sid is 0x0, then the check will always fail. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Sep 17 00:51:27 CEST 2011 on sn-devel-104 (cherry picked from commit 3dcec44f3edbc9c4f1946ead3480f6d01cd53e7a)
* Another part of the fix for Bug 8473 - smb2_find uses a hard coded max reply ↵Jeremy Allison2011-10-131-3/+3
| | | | | | | | | | | | size of 0x10000 instead of smb2_max_trans. Change the defaults and the documentation to reflect the 64k limit. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 13 12:22:23 CEST 2011 on sn-devel-104 (cherry picked from commit d2a9e8df35be1516f22f0ef78356de6d4b02d4d3)
* s3:smb2_server: get/set info are limited by max_trans size (bug #8473)Stefan Metzmacher2011-10-132-0/+11
| | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 13 03:32:02 CEST 2011 on sn-devel-104 (cherry picked from commit 5e04231e961f10656384a6f16104d0d55b6f3e0e)
* s3:smb2_server: reject writes larger then the negotiated max_write size (bug ↵Stefan Metzmacher2011-10-131-2/+0
| | | | | | | #8473) metze (cherry picked from commit 6981f1114792cc251bf1e05183dd88f5d351ab09)
* s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug ↵Stefan Metzmacher2011-10-136-8/+12
| | | | | | | | | | #8473) We should enforce the negotiated max sizes instead of the lp_smb2_max_*() sizes. metze (cherry picked from commit 40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb)
* s3:smbd: disconnect the socket if we got an unexpected requestStefan Metzmacher2011-10-132-1/+20
| | | | | | | | | | | | If we got a SMB2_OP_NEGPROT after the protocol is already negotiated or if we got a non SMB2_OP_NEGPROT before the protocol was negotiated we should close the connection (as windows does). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 12:30:50 CEST 2011 on sn-devel-104 (cherry picked from commit 5494856294384df4360d85e68abc03c43dc16e06)
* s3:smb2_server: max_trans, max_read and max_write are limited to 64 kilobytesStefan Metzmacher2011-10-131-3/+17
| | | | | | | Only if SMB2_CAP_LARGE_MTU is supported we should announce larger limits. metze (cherry picked from commit e603929b9801ad6cc47dead19d27b42fe46489c7)
* Fix bug #8515 - Empty CIFS share can be blocked for other clients by ↵Volodymyr Khomenko2011-10-121-0/+8
| | | | | | | | | | deleting it via empty path (DELETE_PENDING until the last client) Disallow "." in can_set_delete_on_close(). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 12 21:07:27 CEST 2011 on sn-devel-104 (cherry picked from commit bd260f03ab492d03c2890db47dc6fb4f1b824a1a)
* s3-smb2_server: fix ioctl InputOffset checkingDavid Disseldorp2011-10-121-1/+10
| | | | | | | | | | | Currently the InputOffset is always check to point to the input data buffer, regardless of whether input data is present. Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit dbcd59f46b0d2125dfb6eb82b3d92be228c6ae4b) The last 22 patches addres bug #8520 (Fix SMB2 SMB2_OP_GETINFO and SMB2_OP_IOCTL parsing requirements).