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