smbd: Remove a "!" from an if-condition for easier readability
[Samba.git] / WHATSNEW.txt
blob2914f57c60273c797e756d66759ab81704516864
1                    =============================
2                    Release Notes for Samba 4.7.5
3                           February 7, 2018
4                    =============================
7 This is the latest stable release of the Samba 4.7 release series.
9 Major enhancements include:
11 o  BUG 13228: This is a major issue in Samba's ActiveDirectory domain
12    controller code. It might happen that AD objects have missing or broken
13    linked attributes. This could lead to broken group memberships e.g.
14    All Samba AD domain controllers set up with Samba 4.6 or lower and then
15    upgraded to 4.7 are affected. The corrupt database can be fixed with
16    'samba-tool dbcheck --cross-ncs --fix'.
19 Changes since 4.7.4:
20 --------------------
22 o  Jeremy Allison <jra@samba.org>
23    * BUG 13193: smbd tries to release not leased oplock during oplock II
24      downgrade.
26 o  Ralph Boehme <slow@samba.org>
27    * BUG 13181: Fix copying file with empty FinderInfo from Windows client
28      to Samba share with fruit.
30 o  Günther Deschner <gd@samba.org>
31    * BUG 10976: build: Deal with recent glibc sunrpc header removal.
32    * BUG 13238: Make Samba work with tirpc and libnsl2.
34 o  David Disseldorp <ddiss@samba.org>
35    * BUG 13208: vfs_ceph: Add fs_capabilities hook to avoid local statvfs.
37 o  Love Hornquist Astrand <lha@h5l.org>
38    * BUG 12986: Kerberos: PKINIT: Can't decode algorithm parameters in
39      clientPublicValue.
41 o  Amitay Isaacs <amitay@gmail.com>
42    * BUG 13188: ctdb-recovery-helper: Deregister message handler in error
43      paths.
45 o  Volker Lendecke <vl@samba.org>
46    * BUG 13240: samba: Only use async signal-safe functions in signal handler.
48 o  Stefan Metzmacher <metze@samba.org>
49    * BUG 12986: Kerberos: PKINIT: Can't decode algorithm parameters in
50      clientPublicValue.
51    * BUG 13228: repl_meta_data: Fix linked attribute corruption on databases
52      with unsorted links on expunge. dbcheck: Add functionality to fix the
53      corrupt database.
55 o  Christof Schmitt <cs@samba.org>
56    * BUG 13189: Fix smbd panic when chdir returns error during exit.
58 o  Andreas Schneider <asn@samba.org>
59    * BUG 13238: Make Samba work with tirpc and libnsl2.
61 o  Uri Simchoni <uri@samba.org>
62    * BUG 13176: Fix POSIX ACL support on HPUX and possibly other big-endian OSs.
65 #######################################
66 Reporting bugs & Development Discussion
67 #######################################
69 Please discuss this release on the samba-technical mailing list or by
70 joining the #samba-technical IRC channel on irc.freenode.net.
72 If you do report problems then please try to send high quality
73 feedback. If you don't provide vital information to help us track down
74 the problem then you will probably be ignored.  All bug reports should
75 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
76 database (https://bugzilla.samba.org/).
79 ======================================================================
80 == Our Code, Our Bugs, Our Responsibility.
81 == The Samba Team
82 ======================================================================
85 Release notes for older releases follow:
86 ----------------------------------------
88                    =============================
89                    Release Notes for Samba 4.7.4
90                           December 22, 2017
91                    =============================
94 This is the latest stable release of the Samba 4.7 release series.
97 smbclient reparse point symlink parameters reversed
98 ===================================================
100 A bug in smbclient caused the 'symlink' command to reverse the
101 meaning of the new name and link target parameters when creating a
102 reparse point symlink against a Windows server.
104 This only affects using the smbclient 'symlink' command against
105 a Windows server, not a Samba server using the UNIX extensions
106 (the parameter order is correct in that case) so no existing
107 user scripts that depend on creating symlinks on Samba servers
108 need to change.
110 As this is a little used feature the ordering of these parameters
111 has been reversed to match the parameter ordering of the UNIX
112 extensions 'symlink' command. This means running 'symlink' against
113 both Windows and Samba now uses the same paramter ordering in both
114 cases.
116 The usage message for this command has also been improved to remove confusion.
119 Changes since 4.7.3:
120 --------------------
122 o  Jeremy Allison <jra@samba.org>
123    * BUG 13140: s3: smbclient: Implement 'volume' command over SMB2.
124    * BUG 13171: s3: libsmb: Fix valgrind read-after-free error in
125      cli_smb2_close_fnum_recv().
126    * BUG 13172: s3: libsmb: Fix reversing of oldname/newname paths when creating
127      a reparse point symlink on Windows from smbclient.
129 o  Timur I. Bakeyev <timur@iXsystems.com>
130    * BUG 12934: Build man page for vfs_zfsacl.8 with Samba.
132 o  Andrew Bartlett <abartlet@samba.org>
133    * BUG 13095: repl_meta_data: Allow delete of an object with dangling
134      backlinks.
135    * BUG 13129: s4:samba: Fix default to be running samba as a deamon.
136    * BUG 13191: Performance regression in DNS server with introduction of
137      DNS wildcard, ldb: Release 1.2.3
139 o  Ralph Boehme <slow@samba.org>
140    * BUG 6133: vfs_zfsacl: Fix compilation error.
141    * BUG 13051: "smb encrypt" setting changes are not fully applied until full
142      smbd restart.
143    * BUG 13052: winbindd: Fix idmap_rid dependency on trusted domain list.
144    * BUG 13155: vfs_fruit: Proper VFS-stackable conversion of FinderInfo.
145    * BUG 13173: winbindd: Dependency on trusted-domain list in winbindd in
146      critical auth codepath.
148 o  Andrej Gessel <Andrej.Gessel@janztec.com>
149    * BUG 13120: repl_meta_data: Fix removing of backlink on deleted objects.
151 o  Amitay Isaacs <amitay@gmail.com>
152    "* BUG 13153: ctdb: sock_daemon leaks memory.
153    * BUG 13154: TCP tickles not getting synchronised on CTDB restart.
155 o  Volker Lendecke <vl@samba.org>
156    * BUG 13150: winbindd: winbind parent and child share a ctdb connection.
157    * BUG 13170: pthreadpool: Fix deadlock.
158    * BUG 13179: pthreadpool: Fix starvation after fork.
159    * BUG 13180: messaging: Always register the unique id.
161 o  Gary Lockyer <gary@catalyst.net.nz>
162    * 13129: s4/smbd: set the process group.
164 o  Stefan Metzmacher <metze@samba.org>
165    * BUG 13095: Fix broken linked attribute handling.
166    * BUG 13132: The KDC on an RWDC doesn't send error replies in some
167      situations.
168    * BUG 13149: libnet_join: Fix 'net rpc oldjoin'.
169    * BUG 13195: g_lock conflict detection broken when processing stale entries.
170    * BUG 13197: s3:smb2_server: allow logoff, close, unlock, cancel and echo
171      on expired sessions.
173 o  Noel Power <noel.power@suse.com>
174    * BUG 13166: s3:libads: net ads keytab list fails with "Key table name
175      malformed".
177 o  Christof Schmitt <cs@samba.org>
178    * BUG 13170: Fix crash in pthreadpool thread after failure from pthread_create.
180 o  Andreas Schneider <asn@samba.org>
181    * BUG 13129: s4:samba: Allow samba daemon to run in foreground.
182    * BUG 13174: third_party: Link the aesni-intel library with "-z noexecstack".
184 o  Niels de Vos <ndevos@redhat.com>
185    * BUG 13125: vfs_glusterfs: include glusterfs/api/glfs.h without relying on
186      "-I" options.
189 #######################################
190 Reporting bugs & Development Discussion
191 #######################################
193 Please discuss this release on the samba-technical mailing list or by
194 joining the #samba-technical IRC channel on irc.freenode.net.
196 If you do report problems then please try to send high quality
197 feedback. If you don't provide vital information to help us track down
198 the problem then you will probably be ignored.  All bug reports should
199 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
200 database (https://bugzilla.samba.org/).
203 ======================================================================
204 == Our Code, Our Bugs, Our Responsibility.
205 == The Samba Team
206 ======================================================================
209 ----------------------------------------------------------------------
212                    =============================
213                    Release Notes for Samba 4.7.3
214                          November 21, 2017
215                    =============================
218 This is a security release in order to address the following defects:
220 o  CVE-2017-14746 (Use-after-free vulnerability.)
221 o  CVE-2017-15275 (Server heap memory information leak.)
224 =======
225 Details
226 =======
228 o  CVE-2017-14746:
229    All versions of Samba from 4.0.0 onwards are vulnerable to a use after
230    free vulnerability, where a malicious SMB1 request can be used to
231    control the contents of heap memory via a deallocated heap pointer. It
232    is possible this may be used to compromise the SMB server.
234 o  CVE-2017-15275:
235    All versions of Samba from 3.6.0 onwards are vulnerable to a heap
236    memory information leak, where server allocated heap memory may be
237    returned to the client without being cleared.
239    There is no known vulnerability associated with this error, but
240    uncleared heap memory may contain previously used data that may help
241    an attacker compromise the server via other methods. Uncleared heap
242    memory may potentially contain password hashes or other high-value
243    data.
245 For more details and workarounds, please see the security advisories:
247    o https://www.samba.org/samba/security/CVE-2017-14746.html
248    o https://www.samba.org/samba/security/CVE-2017-15275.html
251 Changes since 4.7.2:
252 --------------------
254 o  Jeremy Allison <jra@samba.org>
255    * BUG 13041: CVE-2017-14746: s3: smbd: Fix SMB1 use-after-free crash bug.
256    * BUG 13077: CVE-2017-15275: s3: smbd: Chain code can return uninitialized
257      memory when talloc buffer is grown.
260 #######################################
261 Reporting bugs & Development Discussion
262 #######################################
264 Please discuss this release on the samba-technical mailing list or by
265 joining the #samba-technical IRC channel on irc.freenode.net.
267 If you do report problems then please try to send high quality
268 feedback. If you don't provide vital information to help us track down
269 the problem then you will probably be ignored.  All bug reports should
270 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
271 database (https://bugzilla.samba.org/).
274 ======================================================================
275 == Our Code, Our Bugs, Our Responsibility.
276 == The Samba Team
277 ======================================================================
280 ----------------------------------------------------------------------
283                    =============================
284                    Release Notes for Samba 4.7.2
285                          November 15, 2017
286                    =============================
289 This is an additional bugfix release to address a possible data corruption
290 issue. Please update immediately! For details, please see
292   https://bugzilla.samba.org/show_bug.cgi?id=13130
294 Samba 4.6.0 and newer is affected by this issue.
297 Changes since 4.7.1:
298 --------------------
300 o  Jeremy Allison <jra@samba.org>
301    * BUG 13121: Non-smbd processes using kernel oplocks can hang smbd.
303 o  Joe Guo <joeg@catalyst.net.nz>
304    * BUG 13127: python: use communicate to fix Popen deadlock.
306 o  Volker Lendecke <vl@samba.org>
307    * BUG 13130: smbd on disk file corruption bug under heavy threaded load.
309 o  Stefan Metzmacher <metze@samba.org>
310    * BUG 13130: tevent: version 0.9.34.
312 o  Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
313    * BUG 13118: s3: smbd: Fix delete-on-close after smb2_find.
316 #######################################
317 Reporting bugs & Development Discussion
318 #######################################
320 Please discuss this release on the samba-technical mailing list or by
321 joining the #samba-technical IRC channel on irc.freenode.net.
323 If you do report problems then please try to send high quality
324 feedback. If you don't provide vital information to help us track down
325 the problem then you will probably be ignored.  All bug reports should
326 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
327 database (https://bugzilla.samba.org/).
330 ======================================================================
331 == Our Code, Our Bugs, Our Responsibility.
332 == The Samba Team
333 ======================================================================
336 ----------------------------------------------------------------------
339                    =============================
340                    Release Notes for Samba 4.7.1
341                          November 02, 2017
342                    =============================
345 This is the latest stable release of the Samba 4.7 release series.
348 Changes since 4.7.0:
349 --------------------
351 o  Michael Adam <obnox@samba.org>
352    * BUG 13091: vfs_glusterfs: Fix exporting subdirs with shadow_copy2.
354 o  Jeremy Allison <jra@samba.org>
355    * BUG 13027: s3: smbd: Currently if getwd() fails after a chdir(), we panic.
356    * BUG 13068: s3: VFS: Ensure default SMB_VFS_GETWD() call can't return a
357      partially completed struct smb_filename.
358    * BUG 13069: sys_getwd() can leak memory or possibly return the wrong errno
359      on older systems.
360    * BUG 13093: 'smbclient' doesn't correctly canonicalize all local names
361      before use.
363 o  Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
364    * BUG 13095: Fix broken linked attribute handling.
366 o  Andrew Bartlett <abartlet@samba.org>
367    * BUG 12994: Missing LDAP query escapes in DNS rpc server.
368    * BUG 13087: replace: Link to -lbsd when building replace.c by hand.
370 o  Ralph Boehme <slow@samba.org>
371    * BUG 6133: Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.
372    * BUG 7909: Map SYNCHRONIZE acl permission statically in zfs_acl vfs module.
373    * BUG 7933: Samba fails to honor SEC_STD_WRITE_OWNER bit with the
374      acl_xattr module.
375    * BUG 12991: s3/mdssvc: Missing assignment in sl_pack_float.
376    * BUG 12995: Wrong Samba access checks when changing DOS attributes.
377    * BUG 13062: samba_runcmd_send() leaves zombie processes on timeout
378    * BUG 13065: net: groupmap cleanup should not delete BUILTIN mappings.
379    * BUG 13076: Enabling vfs_fruit results in loss of Finder tags and other
380      xattrs.
382 o  Alexander Bokovoy <ab@samba.org>
383    * BUG 9613: man pages: Properly ident lists.
384    * BUG 13081: smb.conf.5: Sort parameters alphabetically.
386 o  Samuel Cabrero <scabrero@suse.de>
387    * BUG 12993: s3: spoolss: Fix GUID string format on GetPrinter info.
389 o  Amitay Isaacs <amitay@gmail.com>
390    * BUG 13042: Remote serverid check doesn't check for the unique id.
391    * BUG 13056: CTDB starts consuming memory if there are dead nodes in the
392      cluster.
393    * BUG 13070: ctdb-common: Ignore event scripts with multiple '.'s.
395 o  Lutz Justen <ljusten@google.com>
396    * BUG 13046: libgpo doesn't sort the GPOs in the correct order.
398 o  Volker Lendecke <vl@samba.org>
399    * BUG 13042: Remote serverid check doesn't check for the unique id.
400    * BUG 13090: vfs_catia: Fix a potential memleak.
401    * BUG 12903: Fix file change notification for renames.
403 o  Gary Lockyer <gary@catalyst.net.nz>
404    * BUG 12952: Samba DNS server does not honour wildcards.
406 o  Stefan Metzmacher <metze@samba.org>
407    * BUG 13079:  Can't change password in samba from a Windows client if Samba
408      runs on IPv6 only interface.
410 o  Anoop C S <anoopcs@redhat.com>
411    * BUG 13086: vfs_fruit: Replace closedir() by SMB_VFS_CLOSEDIR.
413 o  Christof Schmitt <cs@samba.org>
414    * BUG 13047: Apple client can't cope with SMB2 async replies when creating
415      symlinks.
417 o  Andreas Schneider <asn@samba.org>
418    * BUG 12959: s4:rpc_server:backupkey: Move variable into scope.
419    * BUG 13099: s4:scripting: Fix ntstatus_gen.h generation on 32bit.
420    * BUG 13100: s3:vfs_glusterfs: Fix a double free in vfs_gluster_getwd().
421    * BUG 13101: Fix resouce leaks and pointer issues.
423 o  Jorge Schrauwen
424    * BUG 13049: vfs_solarisacl: Fix build for samba 4.7 and up.
427 #######################################
428 Reporting bugs & Development Discussion
429 #######################################
431 Please discuss this release on the samba-technical mailing list or by
432 joining the #samba-technical IRC channel on irc.freenode.net.
434 If you do report problems then please try to send high quality
435 feedback. If you don't provide vital information to help us track down
436 the problem then you will probably be ignored.  All bug reports should
437 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
438 database (https://bugzilla.samba.org/).
441 ======================================================================
442 == Our Code, Our Bugs, Our Responsibility.
443 == The Samba Team
444 ======================================================================
447 ----------------------------------------------------------------------
450                    =============================
451                    Release Notes for Samba 4.7.0
452                         September 20, 2017
453                    =============================
456 This is the first stable release of Samba 4.7.
457 Please read the release notes carefully before upgrading.
459 UPGRADING
460 =========
462 'smbclient' changes
463 ------------------
465 'smbclient' no longer prints a 'Domain=[...] OS=[Windows 6.1] Server=[...]'
466 banner when connecting to the first server. With SMB2 and Kerberos,
467 there's no way to print this information reliably. Now we avoid it at all
468 consistently. In interactive sessions the following banner is now presented
469 to the user: 'Try "help" do get a list of possible commands.'.
471 The default for "client max protocol" has changed to "SMB3_11",
472 which means that 'smbclient' (and related commands) will work against
473 servers without SMB1 support.
475 It's possible to use the '-m/--max-protocol' option to overwrite
476 the "client max protocol" option temporarily.
478 Note that the '-e/--encrypt' option also works with most SMB3 servers
479 (e.g. Windows >= 2012 and Samba >= 4.0.0), so the SMB1 unix extensions
480 are not required for encryption.
482 The change to SMB3_11 as default also means 'smbclient' no longer
483 negotiates SMB1 unix extensions by default, when talking to a Samba server with
484 "unix extensions = yes".  As a result, some commands are not available, e.g.
485 'posix_encrypt', 'posix_open', 'posix_mkdir', 'posix_rmdir', 'posix_unlink',
486 'posix_whoami', 'getfacl' and 'symlink'. Using "-mNT1" reenables them, if the
487 server supports SMB1.
489 Note the default ("CORE") for "client min protocol" hasn't changed,
490 so it's still possible to connect to SMB1-only servers by default.
492 'smbclient' learned a new command 'deltree' that is able to do
493 a recursive deletion of a directory tree.
496 NEW FEATURES/CHANGES
497 ====================
499 Whole DB read locks: Improved LDAP and replication consistency
500 --------------------------------------------------------------
502 Prior to Samba 4.7 and ldb 1.2.0, the LDB database layer used by Samba
503 erroneously did not take whole-DB read locks to protect search
504 and DRS replication operations.
506 While each object returned remained subject to a record-level lock (so
507 would remain consistent to itself), under a race condition with a
508 rename or delete, it and any links (like the member attribute) to it
509 would not be returned.
511 The symptoms of this issue include:
513 Replication failures with this error showing in the client side logs:
514  error during DRS repl ADD: No objectClass found in replPropertyMetaData for
515  Failed to commit objects:
516  WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE
518 A crash of the server, in particular the rpc_server process with
519  INTERNAL ERROR: Signal 11
521 LDAP read inconsistency
522  A DN subject to a search at the same time as it is being renamed
523  may not appear under either the old or new name, but will re-appear
524  for a subsequent search.
526 See https://bugzilla.samba.org/show_bug.cgi?id=12858 for more details
527 and updated advise on database recovery for affected installations.
529 Samba AD with MIT Kerberos
530 --------------------------
532 After four years of development, Samba finally supports compiling and
533 running Samba AD with MIT Kerberos. You can enable it with:
535     ./configure --with-system-mitkrb5
537 Samba requires version 1.15.1 of MIT Kerberos to build with AD DC support.
538 The krb5-devel and krb5-server packages are required.
539 The feature set is not on par with the Heimdal build but the most important
540 things, like forest and external trusts, are working. Samba uses the KDC binary
541 provided by MIT Kerberos.
543 Missing features, compared to Heimdal, are:
544   * PKINIT support
545   * S4U2SELF/S4U2PROXY support
546   * RODC support (not fully working with Heimdal either)
548 The Samba AD process will take care of starting the MIT KDC and it will load a
549 KDB (Kerberos Database) driver to access the Samba AD database.  When
550 provisioning an AD DC using 'samba-tool' it will take care of creating a correct
551 kdc.conf file for the MIT KDC.
553 For further details, see:
554 https://wiki.samba.org/index.php/Running_a_Samba_AD_DC_with_MIT_Kerberos_KDC
556 Dynamic RPC port range
557 ----------------------
559 The dynamic port range for RPC services has been changed from the old default
560 value "1024-1300" to "49152-65535". This port range is not only used by a
561 Samba AD DC, but also applies to all other server roles including NT4-style
562 domain controllers. The new value has been defined by Microsoft in Windows
563 Server 2008 and newer versions. To make it easier for Administrators to control
564 those port ranges we use the same default and make it configurable with the
565 option: "rpc server dynamic port range".
567 The "rpc server port" option sets the first available port from the new
568 "rpc server dynamic port range" option. The option "rpc server port" only
569 applies to Samba provisioned as an AD DC.
571 Authentication and Authorization audit support
572 ----------------------------------------------
574 Detailed authentication and authorization audit information is now
575 logged to Samba's debug logs under the "auth_audit" debug class,
576 including in particular the client IP address triggering the audit
577 line.  Additionally, if Samba is compiled against the jansson JSON
578 library, a JSON representation is logged under the "auth_json_audit"
579 debug class.
581 Audit support is comprehensive for all authentication and
582 authorisation of user accounts in the Samba Active Directory Domain
583 Controller, as well as the implicit authentication in password
584 changes.  In the file server and classic/NT4 domain controller, NTLM
585 authentication, SMB and RPC authorization is covered, however password
586 changes are not at this stage, and this support is not currently
587 backed by a testsuite.
589 For further details, see:
590 https://wiki.samba.org/index.php/Setting_up_Audit_Logging
592 Multi-process LDAP Server
593 -------------------------
595 The LDAP server in the AD DC now honours the process model used for
596 the rest of the 'samba' process, rather than being forced into a single
597 process.  This aids in Samba's ability to scale to larger numbers of AD
598 clients and the AD DC's overall resiliency, but will mean that there is a
599 fork()ed child for every LDAP client, which may be more resource
600 intensive in some situations.  If you run Samba in a
601 resource-constrained VM, consider allocating more RAM and swap space.
603 Improved Read-Only Domain Controller (RODC) Support
604 ---------------------------------------------------
606 Support for RODCs in Samba AD until now has been experimental. With this latest
607 version, many of the critical bugs have been fixed and the RODC can be used in
608 DC environments requiring no writable behaviour. RODCs now correctly support
609 bad password lockouts and password disclosure auditing through the
610 msDS-RevealedUsers attribute.
612 The fixes made to the RWDC will also allow Windows RODC to function more
613 correctly and to avoid strange data omissions such as failures to replicate
614 groups or updated passwords. Password changes are currently rejected at the
615 RODC, although referrals should be given over LDAP. While any bad passwords can
616 trigger domain-wide lockout, good passwords which have not been replicated yet
617 for a password change can only be used via NTLM on the RODC (and not Kerberos).
619 The reliability of RODCs locating a writable partner still requires some
620 improvements and so the 'password server' configuration option is generally
621 recommended on the RODC.
623 Samba 4.7 is the first Samba release to be secure as an RODC or when
624 hosting an RODC.  If you have been using earlier Samba versions to
625 host or be an RODC, please upgrade.
627 In particular see https://bugzilla.samba.org/show_bug.cgi?id=12977 for
628 details on the security implications for password disclosure to an
629 RODC using earlier versions.
631 Additional password hashes stored in supplementalCredentials
632 ------------------------------------------------------------
634 A new config option 'password hash userPassword schemes' has been added to
635 enable generation of SHA-256 and SHA-512 hashes (without storing the plaintext
636 password with reversible encryption). This builds upon previous work to improve
637 password sync for the AD DC (originally using GPG).
639 The user command of 'samba-tool' has been updated in order to be able to
640 extract these additional hashes, as well as extracting the (HTTP) WDigest
641 hashes that we had also been storing in supplementalCredentials.
643 Improvements to DNS during Active Directory domain join
644 -------------------------------------------------------
646 The 'samba-tool' domain join command will now add the A and GUID DNS records
647 (on both the local and remote servers) during a join if possible via RPC. This
648 should allow replication to proceed more smoothly post-join.
650 The mname element of the SOA record will now also be dynamically generated to
651 point to the local read-write server. 'samba_dnsupdate' should now be more
652 reliable as it will now find the appropriate name server even when resolv.conf
653 points to a forwarder.
655 Significant AD performance and replication improvements
656 -------------------------------------------------------
658 Previously, replication of group memberships was been an incredibly expensive
659 process for the AD DC. This was mostly due to unnecessary CPU time being spent
660 parsing member linked attributes. The database now stores these linked
661 attributes in sorted form to perform efficient searches for existing members.
662 In domains with a large number of group memberships, a join can now be
663 completed in half the time compared with Samba 4.6.
665 LDAP search performance has also improved, particularly in the unindexed search
666 case. Parsing and processing of security descriptors should now be more
667 efficient, improving replication but also overall performance.
669 Query record for open file or directory
670 ---------------------------------------
672 The record attached to an open file or directory in Samba can be
673 queried through the 'net tdb locking' command. In clustered Samba this
674 can be useful to determine the file or directory triggering
675 corresponding "hot" record warnings in ctdb.
677 Removal of lpcfg_register_defaults_hook()
678 -----------------------------------------
680 The undocumented and unsupported function lpcfg_register_defaults_hook()
681 that was used by external projects to call into Samba and modify
682 smb.conf default parameter settings has been removed. If your project
683 was using this call please raise the issue on
684 samba-technical@lists.samba.org in order to design a supported
685 way of obtaining the same functionality.
687 Change of loadable module interface
688 -----------------------------------
690 The _init function of all loadable modules in Samba has changed
691 from:
693 NTSTATUS _init(void);
697 NTSTATUS _init(TALLOC_CTX *);
699 This allows a program loading a module to pass in a long-lived
700 talloc context (which must be guaranteed to be alive for the
701 lifetime of the module). This allows modules to avoid use of
702 the talloc_autofree_context() (which is inherently thread-unsafe)
703 and still be valgrind-clean on exit. Modules that don't need to
704 free long-lived data on exit should use the NULL talloc context.
706 SHA256 LDAPS Certificates
707 -------------------------
709 The self-signed certificate generated for use on LDAPS will now be
710 generated with a SHA256 self-signature, not a SHA1 self-signature.
712 Replacing this certificate with a certificate signed by a trusted
713 CA is still highly recommended.
715 CTDB changes
716 ------------
718 * CTDB no longer allows mixed minor versions in a cluster
720   See the AllowMixedVersions tunable option in ctdb-tunables(7) and also
721   https://wiki.samba.org/index.php/Upgrading_a_CTDB_cluster#Policy
723 * CTDB now ignores hints from Samba about TDB flags when attaching to databases
725   CTDB will use the correct flags depending on the type of database.
726   For clustered databases, the smb.conf setting
727   dbwrap_tdb_mutexes:*=true will be ignored. Instead, CTDB continues
728   to use the TDBMutexEnabled tunable.
730 * New configuration variable CTDB_NFS_CHECKS_DIR
732   See ctdbd.conf(5) for more details.
734 * The CTDB_SERVICE_AUTOSTARTSTOP configuration variable has been
735   removed
737   To continue to manage/unmanage services while CTDB is running:
739   - Start service by hand and then flag it as managed
741   - Mark service as unmanaged and shut it down by hand
743   - In some cases CTDB does something fancy - e.g. start Samba under
744     "nice", so care is needed. One technique is to disable the
745     eventscript, mark as managed, run the startup event by hand and then
746     re-enable the eventscript.
748 * The CTDB_SCRIPT_DEBUGLEVEL configuration variable has been removed
750 * The example NFS Ganesha call-out has been improved
752 * A new "replicated" database type is available
754   Replicated databases are intended for CTDB's internal use to
755   replicate state data across the cluster, but may find other
756   uses. The data in replicated databases is valid for the lifetime of
757   CTDB and cleared on first attach.
759 Using x86_64 Accelerated AES Crypto Instructions
760 ------------------------------------------------
762 Samba on x86_64 can now be configured to use the Intel accelerated AES
763 instruction set, which has the potential to make SMB3 signing and
764 encryption much faster on client and server. To enable this, configure
765 Samba using the new option --accel-aes=intelaesni.
767 This is a temporary solution that is being included to allow users
768 to enjoy the benefits of Intel accelerated AES on the x86_64 platform,
769 but the longer-term solution will be to move Samba to a fully supported
770 external crypto library.
772 The third_party/aesni-intel code will be removed from Samba as soon as
773 external crypto library performance reaches parity.
775 The default is to build without setting --accel-aes, which uses the
776 existing Samba software AES implementation.
778 Parameter changes
779 -----------------
781 The "strict sync" global parameter has been changed from
782 a default of "no" to "yes". This means smbd will by default
783 obey client requests to synchronize unwritten data in operating
784 system buffers safely onto disk. This is a safer default setting
785 for modern SMB1/2/3 clients.
787 The 'ntlm auth' option default is renamed to 'ntlmv2-only', reflecting
788 the previous behaviour.  Two new values have been provided,
789 'mschapv2-and-ntlmv2-only' (allowing MSCHAPv2 while denying NTLMv1)
790 and 'disabled', totally disabling NTLM authentication and password
791 changes.
793 smb.conf changes
794 ================
796   Parameter Name                     Description             Default
797   --------------                     -----------             -------
798   allow unsafe cluster upgrade       New parameter           no
799   auth event notification            New parameter           no
800   auth methods                       Deprecated
801   client max protocol                Effective               SMB3_11
802                                      default changed
803   map untrusted to domain            New value/              auto
804                                      Default changed/
805                                      Deprecated
806   mit kdc command                    New parameter
807   profile acls                       Deprecated
808   rpc server dynamic port range      New parameter           49152-65535
809   strict sync                        Default changed         yes
810   password hash userPassword schemes New parameter
811   ntlm auth                          New values              ntlmv2-only
814 KNOWN ISSUES
815 ============
817 https://wiki.samba.org/inFdex.php/Release_Planning_for_Samba_4.7#Release_blocking_bugs
820 CHANGES SINCE 4.7.0rc6
821 ======================
823 o  CVE-2017-12150:
824    A man in the middle attack may hijack client connections.
826 o  CVE-2017-12151:
827    A man in the middle attack can read and may alter confidential
828    documents transferred via a client connection, which are reached
829    via DFS redirect when the original connection used SMB3.
831 o  CVE-2017-12163:
832    Client with write access to a share can cause server memory contents to be
833    written into a file or printer.
836 CHANGES SINCE 4.7.0rc5
837 ======================
839 o  Jeremy Allison <jra@samba.org>
840    * BUG 13003: s3: vfs: catia: compression get/set must act only on base file, and
841      must cope with fsp==NULL.
842    * BUG 13008: lib: crypto: Make smbd use the Intel AES instruction set for signing
843      and encryption.
845 o  Andrew Bartlett <abartlet@samba.org>
846    * BUG 12946: s4-drsuapi: Avoid segfault when replicating as a non-admin with
847      GUID_DRS_GET_CHANGES.
848    * BUG 13015: Allow re-index of newer databases with binary GUID TDB keys
849      (this officially removes support for re-index of the original pack format 0,
850      rather than simply segfaulting).
851    * BUG 13017: Add ldb_ldif_message_redacted_string() to allow debug of redacted
852      log messages, avoiding showing secret values.
853    * BUG 13023: ldb: version 1.2.2.
854    * BUG 13025: schema: Rework dsdb_schema_set_indices_and_attributes() db
855      operations.
857 o  Alexander Bokovoy <ab@samba.org>
858    * BUG 13030: Install dcerpc/__init__.py for all Python environments.
860 o  Ralph Boehme <slow@samba.org>
861    * BUG 13024: s3/smbd: Sticky write time offset miscalculation causes broken
862      timestamps
863    * BUG 13037: lib/util: Only close the event_fd in tfork if the caller didn't
864      call tfork_event_fd().
866 o  Volker Lendecke <vl@samba.org>
867    * BUG 13006: messaging: Avoid a socket leak after fork.
869 o  Stefan Metzmacher <metze@samba.org>
870    * BUG 13018: charset: Fix str[n]casecmp_m() by comparing lower case values.
872 o  Gary Lockyer <gary@catalyst.net.nz>
873    * BUG 13037: util_runcmd: Free the fde in event handler.
875 o  Amitay Isaacs <amitay@gmail.com>
876    * BUG 13012: ctdb-daemon: Fix implementation of process_exists control.
877    * BUG 13021: GET_DB_SEQNUM control can cause ctdb to deadlock when databases
878      are frozen.
879    * BUG 13029: ctdb-daemon: Free up record data if a call request is deferred.
880    * BUG 13036: ctdb-client: Initialize ctdb_ltdb_header completely for empty
881      record.
883 o  Christof Schmitt <cs@samba.org>
884    * BUG 13032: vfs_streams_xattr: Fix segfault when running with log level 10.
887 CHANGES SINCE 4.7.0rc4
888 ======================
890 o  Andrew Bartlett <abartlet@samba.org>
891    * BUG 12929: smb.conf: Explain that "ntlm auth" is a per-passdb setting.
892    * BUG 12953: s4/lib/tls: Use SHA256 to sign the TLS certificates.
894 o  Jeremy Allison <jra@samba.org>
895    * BUG 12932: Get rid of talloc_autofree_context().
897 o  Amitay Isaacs <amitay@gmail.com>
898    * BUG 12978: After restarting CTDB, it attaches replicated databases with
899      wrong flags.
901 o  Stefan Metzmacher <metze@samba.org>
902    * BUG 12863: s3:smbclient: Don't try any workgroup listing with
903      "client min protocol = SMB2".
904    * BUG 12876: s3:libsmb: Don't call cli_NetServerEnum() on SMB2/3 connections
905      in SMBC_opendir_ctx().
906    * BUG 12881: s3:libsmb: Let do_connect() debug the negotiation result
907      similar to "session request ok".
908    * BUG 12919: s4:http/gensec: add missing tevent_req_done() to
909      gensec_http_ntlm_update_done().
910    * BUG 12968: Fix 'smbclient tarmode' with SMB2/3.
911    * BUG 12973: 'smbd': Don't use a lot of CPU on startup of a connection.
913 o  Christof Schmitt <cs@samba.org>
914    * BUG 12983: vfs_default: Fix passing of errno from async calls.
916 o  Andreas Schneider <asn@samba.org>
917    * BUG 12629: s3:utils: Do not report an invalid range for AD DC role.
918    * BUG 12704: s3:libsmb: Let get_ipc_connect() use
919      CLI_FULL_CONNECTION_FORCE_SMB1.
920    * BUG 12930: Fix build issues with GCC 7.1.
921    * BUG 12950: s3:script: Untaint user supplied data in modprinter.pl.
922    * BUG 12956: s3:libads: Fix changing passwords with Kerberos.
923    * BUG 12975: Fix changing the password with 'smbpasswd' as a local user on
924      a domain member.
927 CHANGES SINCE 4.7.0rc3
928 ======================
930 o  Jeremy Allison <jra@samba.org>
931    * BUG 12913: Implement cli_smb2_setatr() by calling cli_smb2_setpathinfo().
933 o  Andrew Bartlett <abartlet@samba.org>
934    * BUG 11392: s4-cldap/netlogon: Match Windows 2012R2 and return
935      NETLOGON_NT_VERSION_5 when version unspecified.
936    * BUG 12855: dsdb: Do not force a re-index of sam.ldb on upgrade to 4.7.
937    * BUG 12904: dsdb: Fix dsdb_next_callback to correctly use ldb_module_done()
938      etc.
939    * BUG 12939: s4-rpc_server: Improve debug of new endpoints.
941 o  Ralph Boehme <slow@samba.org>
942    * BUG 12791: Fix kernel oplocks issues with named streams.
943    * BUG 12944: vfs_gpfs: Handle EACCES when fetching DOS attributes from xattr.
945 o  Bob Campbell <bobcampbell@catalyst.net.nz>
946    * BUG 12842: samdb/cracknames: Support user and service principal as desired
947      format.
949 o  David Disseldorp <ddiss@samba.org>
950    * BUG 12911: vfs_ceph: Fix cephwrap_chdir().
952 o  Gary Lockyer <gary@catalyst.net.nz>
953    * BUG 12865: Track machine account ServerAuthenticate3.
955 o  Marc Muehlfeld <mmuehlfeld@samba.org>
956    * BUG 12947: python: Fix incorrect kdc.conf parameter name in kerberos.py.
958 o  Noel Power <noel.power@suse.com>
959    * BUG 12937: s3/utils: 'smbcacls' failed to detect DIRECTORIES using SMB2
960      (Windows only).
962 o  Arvid Requate <requate@univention.de>
963    * BUG 11392: s4-dsdb/netlogon: Allow missing ntver in cldap ping.
965 o  Anoop C S <anoopcs@redhat.com>
966    * BUG 12936: source3/client: Fix typo in help message displayed by default.
968 o  Andreas Schneider <asn@samba.org>
969    * BUG 12930: Fix building with GCC 7.1.1.
972 CHANGES SINCE 4.7.0rc2
973 ======================
975 o  Jeremy Allison <jra@samba.org>
976    * BUG 12836: s3: smbd: Fix a read after free if a chained SMB1 call goes
977      async.
978    * BUG 12899: s3: libsmb: Reverse sense of 'clear all attributes', ignore
979      attribute change in SMB2 to match SMB1.
980    * BUG 12914: s3: smbclient: Add new command deltree.
982 o  Ralph Boehme <slow@samba.org>
983    * BUG 12885: s3/smbd: Let non_widelink_open() chdir() to directories
984      directly.
985    * BUG 12887: Remove SMB_VFS_STRICT_UNLOCK noop from the VFS.
986    * BUG 12891: Enable TDB mutexes in dbwrap and ctdb.
987    * BUG 12897: vfs_fruit: don't use MS NFS ACEs with Windows clients.
988    * BUG 12910: s3/notifyd: Ensure notifyd doesn't return from
989      smbd_notifyd_init.
991 o  Alexander Bokovoy <ab@samba.org>
992    * BUG 12905: Build py3 versions of other rpc modules.
994 o  Günther Deschner <gd@samba.org>
995    * BUG 12840: vfs_fruit: Add "fruit:model = <modelname>" parametric option.
997 o  Dustin L. Howett
998    * BUG 12720: idmap_ad: Retry query_user exactly once if we get
999      TLDAP_SERVER_DOWN.
1001 o  Amitay Isaacs <amitay@gmail.com>
1002    * BUG 12891: dbwrap_ctdb: Fix calculation of persistent flag.
1004 o  Thomas Jarosch <thomas.jarosch@intra2net.com>
1005    * BUG 12927: s3: libsmb: Fix use-after-free when accessing pointer *p.
1007 o  Volker Lendecke <vl@samba.org>
1008    * BUG 12925: smbd: Fix a connection run-down race condition.
1010 o  Stefan Metzmacher <metze@samba.org>
1011    * tevent: version 0.9.33: make tevent_req_print() more robust against crashes.
1012    * ldb: version 1.2.1
1013    * BUG 12882: Do not install _ldb_text.py if we have system libldb.
1014    * BUG 12890: s3:smbd: consistently use talloc_tos() memory for
1015      rpc_pipe_open_interface().
1016    * BUG 12900: Fix index out of bound in ldb_msg_find_common_values.
1018 o  Rowland Penny <rpenny@samba.org>
1019    * BUG 12884: Easily edit a users object in AD, as if using 'ldbedit'.
1021 o  Bernhard M. Wiedemann <bwiedemann@suse.de>
1022    * BUG 12906: s3: drop build_env
1024 o  Andreas Schneider <asn@samba.org>
1025    * BUG 12882: waf: Do not install _ldb_text.py if we have system libldb.
1027 o  Martin Schwenke <martin@meltin.net>
1028    * BUG 12898: ctdb-common: Set close-on-exec when creating PID file.
1031 CHANGES SINCE 4.7.0rc1
1032 ======================
1034 o  Jeffrey Altman <jaltman@secure-endpoints.com>
1035    * BUG 12894: CVE-2017-11103: Orpheus' Lyre KDC-REP service name validation
1038 #######################################
1039 Reporting bugs & Development Discussion
1040 #######################################
1042 Please discuss this release on the samba-technical mailing list or by
1043 joining the #samba-technical IRC channel on irc.freenode.net.
1045 If you do report problems then please try to send high quality
1046 feedback. If you don't provide vital information to help us track down
1047 the problem then you will probably be ignored.  All bug reports should
1048 be filed under the Samba 4.1 and newer product in the project's Bugzilla
1049 database (https://bugzilla.samba.org/).
1052 ======================================================================
1053 == Our Code, Our Bugs, Our Responsibility.
1054 == The Samba Team
1055 ======================================================================