smb2_sesssetup: avoid STATUS_PENDING completely on session logoff
[Samba.git] / WHATSNEW.txt
blobf88d3e99b3c49b54af52796092ad082709470f7f
1                    ==============================
2                    Release Notes for Samba 4.10.2
3                            April 8, 2019
4                    ==============================
7 This is a security release in order to address the following defects:
9 o  CVE-2019-3870 (World writable files in Samba AD DC private/ dir)
10 o  CVE-2019-3880 (Save registry file outside share as unprivileged user)
13 =======
14 Details
15 =======
17 o  CVE-2019-3870:
18    During the provision of a new Active Directory DC, some files in the private/
19    directory are created world-writable.
21 o  CVE-2019-3880:
22    Authenticated users with write permission can trigger a symlink traversal to
23    write or detect files outside the Samba share.
25 For more details and workarounds, please refer to the security advisories.
28 Changes since 4.10.1:
29 ---------------------
31 o  Andrew Bartlett <abartlet@samba.org>
32    * BUG 13834: CVE-2019-3870: pysmbd: Ensure a zero umask is set for
33      smbd.mkdir().
35 o  Jeremy Allison <jra@samba.org>
36    * BUG 13851: CVE-2018-14629: rpc: winreg: Remove implementations of
37      SaveKey/RestoreKey.
40 #######################################
41 Reporting bugs & Development Discussion
42 #######################################
44 Please discuss this release on the samba-technical mailing list or by
45 joining the #samba-technical IRC channel on irc.freenode.net.
47 If you do report problems then please try to send high quality
48 feedback. If you don't provide vital information to help us track down
49 the problem then you will probably be ignored.  All bug reports should
50 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
51 database (https://bugzilla.samba.org/).
54 ======================================================================
55 == Our Code, Our Bugs, Our Responsibility.
56 == The Samba Team
57 ======================================================================
60 Release notes for older releases follow:
61 ----------------------------------------
63                    ==============================
64                    Release Notes for Samba 4.10.1
65                            April 3, 2019
66                    ==============================
69 This is the latest stable release of the Samba 4.10 release series.
72 Changes since 4.10.0:
73 ---------------------
75 o  Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
76    * BUG 13837: py/kcc_utils: py2.6 compatibility.
78 o  Philipp Gesang <philipp.gesang@intra2net.com>
79    * BUG 13869: libcli: permit larger values of DataLength in
80      SMB2_ENCRYPTION_CAPABILITIES of negotiate response.
82 o  Michael Hanselmann <public@hansmi.ch>
83    * BUG 13840: regfio: Improve handling of malformed registry hive files.
85 o  Amitay Isaacs <amitay@samba.org>
86    * BUG 13789: ctdb-version: Simplify version string usage.
88 o  Volker Lendecke <vl@samba.org>
89    * BUG 13859: lib: Make fd_load work for non-regular files.
91 o  Stefan Metzmacher <metze@samba.org>
92    * BUG 13816: dbcheck in the middle of the tombstone garbage collection causes
93      replication failures, dbcheck: add --selftest-check-expired-tombstones
94      cmdline option.
95    * BUG 13818: ndr_spoolss_buf: Fix out of scope use of stack variable in
96      NDR_SPOOLSS_PUSH_ENUM_OUT().
98 o  Anoop C S <anoopcs@redhat.com>
99    * BUG 13854: s4/messaging: Fix undefined reference in linking
100      libMESSAGING-samba4.so.
102 o  Garming Sam <garming@catalyst.net.nz>
103    * BUG 13836: acl_read: Fix regression for empty lists.
105 o  Michael Saxl <mike@mwsys.mine.bz>
106    * BUG 13841: s4:dlz make b9_has_soa check dc=@ node.
108 o  Andreas Schneider <asn@samba.org>
109    * BUG 13832: s3:client: Fix printing via smbspool backend with kerberos auth.
110    * BUG 13847: s4:librpc: Fix installation of Samba.
111    * BUG 13848: s3:lib: Fix the debug message for adding cache entries.
112    * BUG 13793: s3:utils: Add 'smbstatus -L --resolve-uids' to show username.
113    * BUG 13848: s3:lib: Fix the debug message for adding cache entries.
114    * BUG 13853: s3:waf: Fix the detection of makdev() macro on Linux.
116 o  Martin Schwenke <martin@meltin.net>
117    * BUG 13789: ctdb-build: Drop creation of .distversion in tarball.
118    * BUG 13838: ctdb-packaging: Test package requires tcpdump, ctdb package
119      should not own system library directory.
122 #######################################
123 Reporting bugs & Development Discussion
124 #######################################
126 Please discuss this release on the samba-technical mailing list or by
127 joining the #samba-technical IRC channel on irc.freenode.net.
129 If you do report problems then please try to send high quality
130 feedback. If you don't provide vital information to help us track down
131 the problem then you will probably be ignored.  All bug reports should
132 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
133 database (https://bugzilla.samba.org/).
136 ======================================================================
137 == Our Code, Our Bugs, Our Responsibility.
138 == The Samba Team
139 ======================================================================
142 ----------------------------------------------------------------------
145                    ==============================
146                    Release Notes for Samba 4.10.0
147                            March 19, 2019
148                    ==============================
151 This is the first stable release of the Samba 4.10 release series.
152 Please read the release notes carefully before upgrading.
155 NEW FEATURES/CHANGES
156 ====================
158 GPO Improvements
159 ----------------
161 A new 'samba-tool gpo backup' command has been added that can export a
162 set of Group Policy Objects from a domain in a generalised XML format.
164 A corresponding 'samba-tool gpo restore' command has been added to
165 rebuild the Group Policy Objects from the XML after generalization.
166 (The administrator needs to correct the values of XML entities between
167 the backup and restore to account for the change in domain).
169 KDC prefork
170 -----------
172 The KDC now supports the pre-fork process model and worker processes will be
173 forked for the KDC when the pre-fork process model is selected for samba.
175 Prefork 'prefork children'
176 --------------------------
178 The default value for this smdb.conf parameter has been increased from 1 to
181 Netlogon prefork
182 ----------------
184 DCERPC now supports pre-forked NETLOGON processes. The netlogon processes are
185 pre-forked when the prefork process model is selected for samba.
187 Offline domain backups
188 ----------------------
190 The 'samba-tool domain backup' command has been extended with a new 'offline'
191 option. This safely creates a backup of the local DC's database directly from
192 disk. The main benefits of an offline backup are it's quicker, it stores more
193 database details (for forensic purposes), and the samba process does not have
194 to be running when the backup is made. Refer to the samba-tool help for more
195 details on using this command.
197 Group membership statistics
198 ---------------------------
200 A new 'samba-tool group stats' command has been added. This provides summary
201 information about how the users are spread across groups in your domain.
202 The 'samba-tool group list --verbose' command has also been updated to include
203 the number of users in each group.
205 Paged results LDAP control
206 --------------------------
208 The behaviour of the paged results control (1.2.840.113556.1.4.319, RFC2696)
209 has been changed to more closely match Windows servers, to improve memory
210 usage. Paged results may be used internally (or is requested by the user) by
211 LDAP libraries or tools that deal with large result sizes, for example, when
212 listing all the objects in the database.
214 Previously, results were returned as a snapshot of the database but now,
215 some changes made to the set of results while paging may be reflected in the
216 responses. If strict inter-record consistency is required in answers (which is
217 not possible on Windows with large result sets), consider avoiding the paged
218 results control or alternatively, it might be possible to enforce restrictions
219 using the LDAP filter expression.
221 For further details see https://wiki.samba.org/index.php/Paged_Results
223 Prefork process restart
224 -----------------------
226 The pre-fork process model now restarts failed processes. The delay between
227 restart attempts is controlled by the "prefork backoff increment" (default = 10)
228 and "prefork maximum backoff" (default = 120) smbd.conf parameters.  A linear
229 back off strategy is used with "prefork backoff increment" added to the
230 delay between restart attempts up until it reaches "prefork maximum backoff".
232 Using the default sequence the restart delays (in seconds) are:
233   0, 10, 20, ..., 120, 120, ...
235 Standard process model
236 ----------------------
238 When using the standard process model samba forks a new process to handle ldap
239 and netlogon connections.  Samba now honours the 'max smbd processes' smb.conf
240 parameter.  The default value of 0, indicates there is no limit.  The limit
241 is applied individually to netlogon and ldap.  When the process limit is
242 exceeded Samba drops new connections immediately.
244 python3 support
245 ---------------
247 This is the first release of Samba which has full support for Python 3.
248 Samba 4.10 still has support for Python 2, however, Python 3 will be used by
249 default, i.e. 'configure' & 'make' will execute using python3.
251 To build Samba with python2 you *must* set the 'PYTHON' environment variable
252 for both the 'configure' and 'make' steps, i.e.
253    'PYTHON=python2 ./configure'
254    'PYTHON=python2 make'
255 This will override the python3 default.
257 Alternatively, it is possible to produce Samba Python bindings for both
258 Python 2 and Python 3. To do so, specify '--extra-python=/usr/bin/python2'
259 as part of the 'configure' command. Note that python3 will still be used as
260 the default in this case.
262 Note that Samba 4.10 supports Python 3.4 onwards.
264 Future Python support
265 ---------------------
267 Samba 4.10 will be the last release that comes with full support for
268 Python 2. Unfortunately, the Samba Team doesn't have the resources to support
269 both Python 2 and Python 3 long-term.
271 Samba 4.11 will not have any runtime support for Python 2. This means if
272 you use Python 2 bindings it is time to migrate to Python 3 now.
274 If you are building Samba using the '--disable-python' option (i.e. you're
275 excluding all the run-time Python support), then this will continue to work
276 on a system that supports either python2 or python3.
278 Also note that Samba 4.11 will most likely only support Python 3.6 onwards.
280 JSON logging
281 ------------
283 Authentication messages now contain the Windows Event Id "eventId" and logon
284 type "logonType". The supported event codes and logon types are:
285   Event codes:
286     4624  Successful logon
287     4625  Unsuccessful logon
289   Logon Types:
290     2  Interactive
291     3  Network
292     8  NetworkCleartext
294 The version number for Authentication messages is now 1.1, changed from 1.0
296 Password change messages now contain the Windows Event Id "eventId", the
297 supported event Id's are:
298   4723 Password changed
299   4724 Password reset
301 The version number for PasswordChange messages is now 1.1, changed from 1.0
303 Group membership change messages now contain the Windows Event Id "eventId",
304 the supported event Id's are:
305   4728 A member was added to a security enabled global group
306   4729 A member was removed from a security enabled global group
307   4732 A member was added to a security enabled local group
308   4733 A member was removed from a security enabled local group
309   4746 A member was added to a security disabled local group
310   4747 A member was removed from a security disabled local group
311   4751 A member was added to a security disabled global group
312   4752 A member was removed from a security disabled global group
313   4756 A member was added to a security enabled universal group
314   4757 A member was removed from a security enabled universal group
315   4761 A member was added to a security disabled universal group
316   4762 A member was removed from a security disabled universal group
319 The version number for GroupChange messages is now 1.1, changed from 1.0. Also
320 A GroupChange message is generated when a new user is created to log that the
321 user has been added to their primary group.
323 The leading "JSON <message type>:" and source file  prefix of the JSON formatted
324 log entries has been removed to make the parsing of the JSON log messages
325 easier. JSON log entries now start with 2 spaces followed by an opening brace
326 i.e. "  {"
328 SMBv2 samba-tool support
329 ------------------------
331 On previous releases, some samba-tool commands would not work against a remote
332 DC that had SMBv1 disabled. SMBv2 support has now been added for samba-tool.
333 The affected commands are 'samba-tool domain backup|rename' and the
334 'samba-tool gpo' set of commands. Refer also bug #13676.
336 New glusterfs_fuse VFS module
337 -----------------------------
339 The new vfs_glusterfs_fuse module improves performance when Samba
340 accesses a glusterfs volume mounted via FUSE (Filesystem in Userspace
341 as part of the Linux kernel). It achieves that by leveraging a
342 mechanism to retrieve the appropriate case of filenames by querying a
343 specific extended attribute in the filesystem. No extra configuration
344 is required to use this module, only glusterfs_fuse needs to be set in
345 the "vfs objects" parameter. Further details can be found in the
346 vfs_glusterfs_fuse(8) manpage. This new vfs_glusterfs_fuse module does
347 not replace the existing vfs_glusterfs module, it just provides an
348 additional, alternative mechanism to access a Gluster volume.
350 REMOVED FEATURES
351 ================
353 MIT Kerberos build of the AD DC
354 -------------------------------
356 While not removed, the MIT Kerberos build of the Samba AD DC is still
357 considered experimental.  Because Samba will not issue security
358 patches for this configuration, such builds now require the explicit
359 configure option: --with-experimental-mit-ad-dc
361 For further details see
362 https://wiki.samba.org/index.php/Running_a_Samba_AD_DC_with_MIT_Kerberos_KDC
364 samba_backup
365 ------------
367 The samba_backup script has been removed. This has now been replaced by the
368 'samba-tool domain backup offline' command.
370 SMB client Python bindings
371 --------------------------
373 The SMB client python bindings are now deprecated and will be removed in future
374 Samba releases. This will only affects users that may have used the Samba
375 Python bindings to write their own utilities, i.e. users with a custom Python
376 script that includes the line 'from samba import smb'.
378 smb.conf changes
379 ================
381   Parameter Name                     Description                Default
382   --------------                     -----------                -------
383   prefork backoff increment   Delay added to process restart    10 (seconds)
384                               between attempts.
385   prefork maximum backoff     Maximum delay for process between 120 (seconds)
386                               process restart attempts
387   smbd search ask sharemode   Name changed, old name was
388                               "smbd:search ask sharemode"
389   smbd async dosmode          Name changed, old name was
390                               "smbd:async dosmode"
391   smbd max async dosmode      Name changed, old name was
392                               "smbd:max async dosmode"
393   smbd getinfo ask sharemode  New: similar to "smbd search ask yes
394                               sharemode" but for SMB getinfo
397 CHANGES SINCE 4.10.0rc4
398 =======================
400 o  Andrew Bartlett <abartlet@samba.org>
401    * BUG 13760: s4-server: Open and close a transaction on sam.ldb at startup.
403 o  Ralph Boehme <slow@samba.org>
404    * BUG 13812: access_check_max_allowed() doesn't process "Owner Rights" ACEs.
406 o  Joe Guo <joeg@catalyst.net.nz>
407    * s4/scripting/bin: Open unicode files with utf8 encoding and write
408    * unicode string.
410 o  Björn Jacke <bj@sernet.de>
411    * BUG 13759: sambaundoguididx: Use the right escaped oder unescaped sam ldb
412      files.
414 o  Volker Lendecke <vl@samba.org>
415    * BUG 13813: Fix idmap cache pollution with S-1-22- IDs on winbind hickup.
417 o  Christof Schmitt <cs@samba.org>
418    * passdb: Update ABI to 0.27.2.
419    * BUG 13813: lib/winbind_util: Add winbind_xid_to_sid for --without-winbind.
421 o  Andreas Schneider <asn@samba.org>
422    * BUG 13823: lib:util: Move debug message for mkdir failing to log level 1.
425 CHANGES SINCE 4.10.0rc3
426 =======================
428 o  Jeremy Allison <jra@samba.org>
429    * BUG 13803: SMB1 POSIX mkdir does case insensitive name lookup.
431 o  Ralph Boehme <slow@samba.org>
432    * BUG 13802: Fix idmap xid2sid cache issue.
434 o  David Disseldorp <ddiss@samba.org>
435    * BUG 13807: vfs_ceph strict_allocate_ftruncate calls (local FS) ftruncate
436      and fallocate.
438 o  Volker Lendecke <vl@samba.org>
439    * BUG 13786: messages_dgm: Properly handle receiver re-initialization.
441 o  Gary Lockyer <gary@catalyst.net.nz>
442    * BUG 13765: man pages: Document prefork process model.
443    * BUG 13773: CVE-2019-3824 ldb: wildcard_match end of data check.
445 o  Stefan Metzmacher <metze@samba.org>
446    * tdb: Fix compatibility of wscript with older python.
447    * tevent: version 0.9.39
448    * BUG 13773: CVE-2019-3824 ldb: version 1.5.4
450 o  David Mulder <dmulder@suse.com>
451    * Search for location of waf script.
453 o  Noel Power <noel.power@suse.com>
454    * BUG 13777: buildtools/wafsamba: Avoid decode when using python2.
456 o  Jiří Šašek <jiri.sasek@oracle.com>
457    * BUG 13704: notifyd: Fix SIGBUS on sparc.
459 o  Swen Schillig <swen@linux.ibm.com>
460    * BUG 13791: ctdb: Buffer write beyond limits.
462 o  Lukas Slebodnik <lslebodn@fedoraproject.org>
463    * BUG 13773: CVE-2019-3824 ldb: Out of bound read in ldb_wildcard_compare.
465 o  Martin Schwenke <martin@meltin.net>
466    * BUG 13790: ctdb-config: Change example recovery lock setting to one that
467      fails.
468    * BUG 13800: Fix recovery lock bug.
471 CHANGES SINCE 4.10.0rc2
472 =======================
474 o  Jeremy Allison <jra@samba.org>
475    * BUG 13690: smbd: uid: Don't crash if 'force group' is added to an existing
476      share connection.
477    * BUG 13770: s3: VFS: vfs_fruit. Fix the NetAtalk deny mode compatibility
478      code.
480 o  Andrew Bartlett <abartlet@samba.org>
481    * ldb: Release ldb 1.5.3
482    * BUG 13762: Avoid inefficient one-level searches.
483    * BUG 13772: The test api.py should not rely on order of entries in dict.
485 o  Tim Beale <timbeale@catalyst.net.nz>
486    * BUG 13762: ldb: Avoid inefficient one-level searches.
488 o  Ralph Boehme <slow@samba.org>
489    * BUG 13776: tldap: Avoid use after free errors.
491 o  Günther Deschner <gd@samba.org>
492    * BUG 13746: s3-smbd: Use fruit:model string for mDNS registration.
494 o  David Disseldorp <ddiss@samba.org>
495    * BUG 13766: printing: Check lp_load_printers() prior to pcap cache update.
497 o  Christof Schmitt <cs@samba.org>
498    * BUG 13787: waf: Check for libnscd.
500 o  Andreas Schneider <asn@samba.org>
501    * BUG 13770: s3:vfs: Correctly check if OFD locks should be enabled or not.
502    * BUG 13778: Public ZERO_STRUCT() uses undefined C11 function memset_s().
505 CHANGES SINCE 4.10.0rc1
506 =======================
508 o  Jeremy Allison <jra@samba.org>
509    * BUG 13750: libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10
510      seconds.
512 o  Tim Beale <timbeale@catalyst.net.nz>
513    * BUG 13676: samba-tool SMB/sysvol connections do not work if SMBv1 is
514      disabled.
515    * BUG 13747: join: Throw CommandError instead of Exception for simple errors.
517 o  Günther Deschner <gd@samba.org>
518    * BUG 13774: s3-vfs: Add glusterfs_fuse vfs module.
520 o  Volker Lendecke <vl@samba.org>
521    * BUG 13742: ctdb: Print locks latency in machinereadable stats.
523 o  Stefan Metzmacher <metze@samba.org>
524    * BUG 13752: s4:server: Add support for 'smbcontrol samba shutdown'.
526 o  Anoop C S <anoopcs@redhat.com>
527    * BUG 13330: vfs_glusterfs: Adapt to changes in libgfapi signatures.
528    * BUG 13774: s3-vfs: Use ENOATTR in errno comparison for getxattr.
530 o  Justin Stephenson <jstephen@redhat.com>
531    * BUG 13727: s3:libsmb: Honor disable_netbios option in smbsock_connect_send.
534 KNOWN ISSUES
535 ============
537 https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.10#Release_blocking_bugs
540 #######################################
541 Reporting bugs & Development Discussion
542 #######################################
544 Please discuss this release on the samba-technical mailing list or by
545 joining the #samba-technical IRC channel on irc.freenode.net.
547 If you do report problems then please try to send high quality
548 feedback. If you don't provide vital information to help us track down
549 the problem then you will probably be ignored.  All bug reports should
550 be filed under the Samba 4.1 and newer product in the project's Bugzilla
551 database (https://bugzilla.samba.org/).
554 ======================================================================
555 == Our Code, Our Bugs, Our Responsibility.
556 == The Samba Team
557 ======================================================================