summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* VERSION: Bump version number up to 4.0.0rc2.samba-4.0.0rc2Karolin Seeger2012-10-021-1/+1
| | | | Karolin
* librelease.sh: Move the GPG data to the library section.Karolin Seeger2012-10-021-10/+24
| | | | | | | | Don't use the Library key for the samba releases. Karolin Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* WHATSNEW: Add kernel oplocks...Karolin Seeger2012-10-021-0/+1
| | | | | | to the list of changed defaults. Karolin
* WHATSNEW: Remove default values.Karolin Seeger2012-10-021-24/+24
| | | | | | | Karolin Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-0-test): Tue Oct 2 11:05:25 CEST 2012 on sn-devel-104
* WHATSNEW: Add more changes since rc1.Karolin Seeger2012-10-021-0/+22
| | | | Karolin
* s4-dns: fix a non handled memory out of memoryMatthieu Patou2012-10-021-0/+1
| | | | Fix bug #9233 - internal dns server has a non handled out of memory case.
* s3fs-smbd: Move housekeeping to the background process.Andreas Schneider2012-10-021-0/+9
| | | | | | | | | | | | | | | | | | | | If you add 200 printers using lpadmin. Then you wait for the printcap cache to expire. As soon as this expires we notify all deamons that they should reload the printers. This mean we need to create the default registry keys for each printer. If you do e.g. a 'smbclient -L' during that time you will get a lot of timeouts. This lets the housekeeping function of the printcap cache do the task of creating the default registry keys in background queue process. When it is done with the task it will tell all smbd childs to reload the printers and the 200 printers appear. (cherry picked from commit aa6a7a97803b1106d2200c889a2260f81059c450) Signed-off-by: Andreas Schneider <asn@samba.org> Fix bug #9231 - NT_STATUS_IO_TIMEOUT during slow import of printers into registry.
* Fix service control for non-internal services.Vladimir Marek2012-10-021-4/+0
| | | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a4e8869f7c93f30dd7014ff83d6d2f2b5afc2d64) Signed-off-by: Andreas Schneider <asn@samba.org> Fix bug #9192 - svcctl list option prohibits smbd to start.
* s3-winbindd: Adjust error code loop logic in rpc_trusted_domains().Günther Deschner2012-10-021-1/+1
| | | | | | | | | Guenther Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Sat Sep 29 00:34:04 CEST 2012 on sn-devel-104 Fix bug #9185 - Winbind cannot resolve AD DC in a different subnet.
* s3-lsa: Flesh out the returned info in _lsa_EnumTrustedDomainsEx().Günther Deschner2012-10-021-0/+5
| | | | Guenther
* s3-winbindd: Allow DNS resolution of trusted domains if DNS name is avaliableSumit Bose2012-10-023-25/+58
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* docs-xml: fix build of winbindd- and krb5 locator-related manpagesAlexander Bokovoy2012-10-011-2/+2
| | | | | | | | | | | | These manpages depend on docs-xml infrastructure (samba DTDs) Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Mon Sep 17 19:52:53 CEST 2012 on sn-devel-104 The last 2 patches address bug #9229 - make man pages buildable via WAF. Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-0-test): Mon Oct 1 13:08:28 CEST 2012 on sn-devel-104
* docs-xml: convert smb.conf.5 build to wafAlexander Bokovoy2012-10-015-9/+40
| | | | | | | | | | | | | | | | | | smb.conf(5) is different from other manpages because before it is built, it gets merged together from a number of smaller files, one per parameter. So we first create a parameters.all.xml file that references all these files and then include it into master smb.conf.5.xml One small issue is how to handle generated files in WAF build from xi:include perspective as the files are generated in bin/default/docs-xml rather than in docs-xml. We solve this by further expanding use of XML catalogs and rewriting virtual path http://www.samba.org/samba/smbdotconf/ to proper location. Both docs-xml autoconf and waf builds work correctly now. Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Mon Sep 17 14:18:31 CEST 2012 on sn-devel-104
* build: Fix build on systems without ldap development headersAndrew Bartlett2012-10-011-0/+1
| | | | | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Sep 14 22:53:30 CEST 2012 on sn-devel-104 The last 2 patches address bug #9228 - libpdb/pdb_ldap/idmap_ldap build dependencies cleanup (for 4.0RC2).
* s3: make smbldaphelper subsystem an internal libraryAlexander Bokovoy2012-10-013-11/+10
| | | | | | | | | | | | | | | | | Break pdb_ldap -> smbldaphelper -> pdb -> pdb_ldap loop by making smbldaphelp intentionally underlinked internal library. It means that libsmbldaphelp is not usable unless its user is also linked to libpdb (that is the case for both its users, idmap_ldap and pdb_ldap, already) but gives us a break of the circular dependency in case pdb_ldap statically linked into pdb (default). This should solve case when idmap_ldap and pdb_ldap are dynamically loaded modules Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Fri Sep 14 01:02:21 CEST 2012 on sn-devel-104
* WHATSNEW: Start release notes for Samba 4.0.0rc2.Karolin Seeger2012-10-011-71/+142
| | | | | | | To be continued... Karolin (cherry picked from commit e30937e2826b43ebb3a77b621a6de8bf272b02d0)
* s3-smbd: Don't segfault if user specified ports out for range.Andreas Schneider2012-09-281-7/+9
| | | | | | | | | | | | | Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Sep 26 16:28:44 CEST 2012 on sn-devel-104 (cherry picked from commit 50d324b7e070de4672eff3fb6231923e6dca807a) Signed-off-by: Andreas Schneider <asn@samba.org> Fix bug #9218 - Samba panics if a user specifies an invalid port number. Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-0-test): Fri Sep 28 11:02:16 CEST 2012 on sn-devel-104
* Fix bug #9213 - Bad ASN.1 NegTokenInit packet can cause invalid free.Jeremy Allison2012-09-281-0/+4
| | | | | | | | | Not the correct fix for the specific issue, but a general fix to make sure this can never happen again. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 26 04:07:57 CEST 2012 on sn-devel-104 (cherry picked from commit 83f60672e1b3069e6b1b90b376460da895e37df3)
* s4:dns.py: reproducer for (bug #9184)Stefan Metzmacher2012-09-281-0/+29
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Sep 22 06:08:05 CEST 2012 on sn-devel-104
* lib/tsocket: fix receiving of udp packets from 0 bytes (bug #9184)Stefan Metzmacher2012-09-281-4/+1
| | | | | | | | | It's possible for a client to send 0 bytes in a UDP packet, we need still need to call recvfrom() and skip the invalid packet at a higher level. Otherwise the kernel receive queue is blocked. metze
* libcli/echo: validate the message lengthStefan Metzmacher2012-09-281-0/+5
| | | | metze
* selftest: skip the samba4.smb2.compound testsuiteMichael Adam2012-09-281-0/+1
| | | | | | | | | | | | | Too many tests are starting but never finish. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Sat Sep 22 20:50:06 CEST 2012 on sn-devel-104 (cherry picked from commit 162fbf4adbd78af0ca62e01da30e9c8bf86d3b4d) Signed-off-by: Stefan Metzmacher <metze@samba.org> The last 21 patches address bug #9173 - SMB2 compound request create/delete_on_close/close doesn't work as windows.
* s3:smbd:smb2: initialize variable in vfs_default_durable_reconnect()Michael Adam2012-09-281-1/+1
| | | | | | | Found by Ambi's state-of-the-art compiler! (cherry picked from commit 93bee9b3e31b398b9becc7be7804025d4066359b) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: we fail samba3.smb2.compound.interim2Michael Adam2012-09-281-0/+1
| | | | | | | | We currently return NT_STATUS_CANCELLED where we should return NT_STATUS_INTERNAL_ERROR. (cherry picked from commit 841934647b06d6400148932cc8ce02a20c209610) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2:compound: remove two unused macros (cherry picked from ↵Michael Adam2012-09-281-3/+0
| | | | | | commit 6f6b1c6ac15f225978e8c2d67c1a817d9e098317) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: don't skip the compound.interim2 test for non win7/win2k8 ↵Michael Adam2012-09-281-4/+0
| | | | | | (cherry picked from commit 8df0b023c51ed198d3054760447e1b273eada991) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: don't skip the compound.interim1 test for non win7/win2k8 ↵Michael Adam2012-09-281-4/+0
| | | | | | (cherry picked from commit 917e714831178b2a3d07c7f9d09711231a7ccf31) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: remove struct member smbd_smb2_request.cancelled - it was only ↵Michael Adam2012-09-286-8/+0
| | | | | | written (cherry picked from commit 88d051f7f18ff88ec5385fdc798f051659134bd3) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_lock: let smbd_smb2_create_cancel() trigger NT_STATUS_CANCELEDStefan Metzmacher2012-09-281-14/+2
| | | | | | | | | Instead of violating the tevent_req layers. metze (cherry picked from commit 603f9bfa4cf7910e1c1cae1a8d0741a6d0874baa) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_lock: smbd_smb2_notify_recv() can already return NT_STATUS_CANCELEDStefan Metzmacher2012-09-281-18/+0
| | | | | | | | | That's why we can remove the code that violates the tevent_req layers. metze (cherry picked from commit 65a81060093cf9d7c0ebf8d6e160625bdc87baab) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_notify: make use of tevent_req_defer_callback() instead of custom ↵Stefan Metzmacher2012-09-281-34/+1
| | | | | | | | | tevent_immediate metze (cherry picked from commit 882cee0acb9c1e2105a005f0ea90691197a696c7) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_notify: don't call tevent_req_done() from smbd_smb2_notify_cancel()Stefan Metzmacher2012-09-281-2/+1
| | | | | | | | | | smbd_notify_cancel_by_smbreq() will already trigger this via smbd_smb2_notify_reply() and smbd_smb2_notify_reply_trigger(). metze (cherry picked from commit 1f0dfd42f16c388abc7054a7b615d2e81031472b) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_lock: let smbd_smb2_lock_cancel() trigger NT_STATUS_CANCELEDStefan Metzmacher2012-09-281-26/+3
| | | | | | | | | Instead of violating the tevent_req layers. metze (cherry picked from commit 1f8e4732c5870043fbbc22c772404b5380f808f0) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_server: avoid segfault in smbd_smb2_request_pending_queue()Stefan Metzmacher2012-09-281-2/+6
| | | | | | | | | | | | | | | Because we should not call smbd_smb2_request_error() on an request that is still running. If the subreq implementes a cancel function, this should take care of triggering smbd_smb2_request_error. metze Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 9249871f40aab021d62d3154f8ca286b52f5ef76) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: extend the compound.invalid1 testStefan Metzmacher2012-09-281-3/+8
| | | | | | | | | | | Test that when turning the related flag back off for the last compound request, the return code changes from invalid parameter to file closed. Pair-Programmed-With: Michael Adam <obnox@samba.org> (cherry picked from commit 25437df8a65e56616499dda18c696f58be08f67a) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd:smb2: simplify smbd_smb2_request_validate() and ↵Michael Adam2012-09-282-51/+3
| | | | | | | | | | | | | | smbd_smb2_request_dispatch() removes unnneccary checks/assignments for compound_related and next_status and duplicate setting of error status. And remove (now) unused next_status from struct smbd_smb2_request. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 1ae6f9c62629f8513bbe93a56775b3c64ff06832) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd:smb2: add check for session_status for compound requests (cherry ↵Michael Adam2012-09-281-3/+3
| | | | | | picked from commit 27d38b5c27bd96d5124c175d946718bf0836b8f4) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_server: do the req->next_status check before the signing checksStefan Metzmacher2012-09-281-15/+15
| | | | | | | | | | | Windows 2012 returns NT_STATUS_INVALID_PARAMETER to the smb2.compound.invalid1 test if that uses signing (instead of NT_STATUS_ACCESS_DENIED). metze (cherry picked from commit 4384485f82aac109bf4c4c31075e313e54b4c076) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2_server: reset req->last_session_id and req->last_tid after using itStefan Metzmacher2012-09-281-0/+4
| | | | | | | | | | | | | | | | | If we can find a valid session or tcon we'll set it after the lookup, but it need to make sure to reset it if we don't find the session. This fixes a problem where a compound unrelated request between related requests doesn't reset the session. If we have 3 requests in a compound chain, request 3 should never use the id's cached from request 1. It should only every inherit handles from request 2. metze (cherry picked from commit 2552b6632372b35cbd7b788c4e00091dfe520a41) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix the compound.invalid3 test to work against windows ↵Michael Adam2012-09-281-2/+2
| | | | | | (cherry picked from commit bd8d50b451ea7f94efa7777fbe5dc0c2c19f6bf9) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture:smb2: fix compound.related3 test to work against windows (cherry ↵Michael Adam2012-09-281-2/+2
| | | | | | picked from commit 8e525a29a7c6512f61e4647ecb2e0771e2019a49) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Compound requests should continue processing.Ira Cooper2012-09-281-3/+2
| | | | | | | | | This patch addresses #9173. Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 75951946193c874b6db30c1b9c8722264c3ce656) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-spoolss: Fix builtin forms order to match Windows again.Andreas Schneider2012-09-281-120/+118
| | | | | | | | | | | Thanks to mamachine@gmail.com. (cherry picked from commit 24fc5b46f2b33f94bf79fc375432609697aaa45e) Signed-off-by: Andreas Schneider <asn@samba.org> Fix bug #8632 - printing regression: form sizes seem broken, cannot print letter size correctly.
* s3: For read-only shares, filter out write bits from conn->access_maskVolker Lendecke2012-09-281-0/+7
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 54e5590cc1267e9c886bc9abd37d8a8eb33cf3f6) The last 2 patches address bug #9217 - CreateFile with FILE_DIRECTORY_FILE can create directories on read-only shares.
* s3: Fix rejecting mkdir on read-only sharesVolker Lendecke2012-09-281-1/+1
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 6351ed1ec4b93ef1d7b79bab0b92536d74693d2a)
* panic action is defined as GLOBAL_VAR(szPanicAction) not ↵Matthieu Patou2012-09-282-2/+1
| | | | | | | | | | | | GLOBAL_VAR(panic_action) Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 18 06:12:00 CEST 2012 on sn-devel-104 (cherry picked from commit 2a7484eb7286a6896826ad1ed15aa7b1760a451c) Fix bug #9199 - fix usage of panic action.
* s3:printing only do printing_subsystem_update when printing is enabledChristian Ambach2012-09-281-1/+4
| | | | | | | no point in calling this if printing was disabled and no spoolss service was started this hurts CTDB clusters as the smbds on the cluster nodes will fight for the single record in the TDB This fixes Bug 9197 - Disabling printing still makes smbd create and access printer_list.tdb
* dynconfig/config.m4: disallow --prefix=/usr and --prefix=/usr/local without ↵Stefan Metzmacher2012-09-281-0/+4
| | | | | | | | | | | | | --enable-fhs This matches the waf configure behavior and catches the case where old build scripts try '--with-fhs' instead of '--enable-fhs'. metze (cherry picked from commit ae037670b83557d8591c633896186a3634de30cc) Fix bug #9194 - dynconfig/config.m4: disallow --prefix=/usr and --prefix=/usr/local without --enable-fhs.
* s3:smb2_server: fix usage of invalid memory in smb2_signing_check_pdu()Stefan Metzmacher2012-09-281-1/+1
| | | | | | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Sep 20 07:18:31 CEST 2012 on sn-devel-104 (cherry picked from commit bc77745cfaf502e24575dab9ae323643d94760e3) Fix bug #9193 - s3:smb2_server: fix usage of invalid memory in smb2_signing_check_pdu().
* We now pass "samba3.raw.acls.generic" and "samba3.smb2.acls.GENERIC" with ↵Jeremy Allison2012-09-281-3/+0
| | | | the max access change.