VERSION: Disable GIT_SNAPSHOT for the 4.7.0rc4 release.
[Samba.git] / WHATSNEW.txt
bloba40feb329cdd76db949ccfb30d1e26dad22479dc
1 Release Announcements
2 =====================
4 This is the fourth release candidate of Samba 4.7.  This is *not*
5 intended for production environments and is designed for testing
6 purposes only.  Please report any defects via the Samba bug reporting
7 system at https://bugzilla.samba.org/.
9 Samba 4.7 will be the next version of the Samba suite.
12 UPGRADING
13 =========
15 smbclient changes
16 -----------------
18 smbclient no longer prints a 'Domain=[...] OS=[Windows 6.1] Server=[...]'
19 banner when connecting to the first server. With SMB2 and Kerberos
20 there's no way to print this information reliable. Now we avoid it at all
21 consistently. In interactive session the following banner is now presented
22 to the user: 'Try "help" do get a list of possible commands.'.
24 The default for "client max protocol" has changed to "SMB3_11",
25 which means that smbclient (and related commands) will work against
26 servers without SMB1 support.
28 It's possible to use the '-m/--max-protocol' option to overwrite
29 the "client max protocol" option temporary.
31 Note that the '-e/--encrypt' option also works with most SMB3 servers
32 (e.g. Windows >= 2012 and Samba >= 4.0.0), so the SMB1 unix extensions
33 are not required for encryption.
35 The change to SMB3_11 as default also  means smbclient no longer
36 negotiates SMB1 unix extensions by default, when talking to a Samba server with
37 "unix extensions = yes".  As a result some commands are not available, e.g.
38 posix_encrypt, posix_open, posix_mkdir, posix_rmdir, posix_unlink, posix_whoami,
39 getfacl and symlink. Using "-mNT1" reenabled them, if the server supports SMB1.
41 Note the default ("CORE") for "client min protocol" hasn't changed,
42 so it's still possible to connect to SMB1-only servers by default.
44 smbclient learned a new command "deltree" that is able to do
45 a recursive deletion of a directory tree.
48 NEW FEATURES/CHANGES
49 ====================
51 Whole DB read locks: Improved LDAP and replication consistency
52 --------------------------------------------------------------
54 Prior to Samba 4.7 and ldb 1.2.0, the LDB database layer used by Samba
55 erronously did not take whole-DB read locks to protect search
56 and DRS replication operations.
58 While each object returned remained subject to a record-level lock (so
59 would remain consistent to itself), under a race condition with a
60 rename or delete, it and any links (like the member attribute) to it
61 would not be returned.
63 The symptoms of this issue include:
65 Replication failures with this error showing in the client side logs:
66  error during DRS repl ADD: No objectClass found in replPropertyMetaData for
67  Failed to commit objects:
68  WERR_GEN_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE
70 A crash of the server, in particular the rpc_server process with
71  INTERNAL ERROR: Signal 11
73 LDAP read inconsistency
74  A DN subject to a search at the same time as it is being renamed
75  may not appear under either the old or new name, but will re-appear
76  for a subsequent search.
78 See https://bugzilla.samba.org/show_bug.cgi?id=12858 for more details
79 and updated advise on database recovery for affected installations.
81 Samba AD with MIT Kerberos
82 --------------------------
84 After four years of development, Samba finally supports compiling and
85 running Samba AD with MIT Kerberos. You can enable it with:
87     ./configure --with-system-mitkrb5
89 Samba requires version 1.15.1 of MIT Kerberos to build with AD DC support.
90 The krb5-devel and krb5-server packages are required.
91 The feature set is not on par with the Heimdal build but the most important
92 things, like forest and external trusts, are working. Samba uses the KDC binary
93 provided by MIT Kerberos.
95 Missing features, compared to Heimdal, are:
96   * PKINIT support
97   * S4U2SELF/S4U2PROXY support
98   * RODC support (not fully working with Heimdal either)
100 The Samba AD process will take care of starting the MIT KDC and it will load a
101 KDB (Kerberos Database) driver to access the Samba AD database.  When
102 provisioning an AD DC using 'samba-tool' it will take care of creating a correct
103 kdc.conf file for the MIT KDC.
105 Dynamic RPC port range
106 ----------------------
108 The dynamic port range for RPC services has been changed from the old default
109 value 1024-1300 to 49152-65535. This port range is not only used by a
110 Samba AD DC but also applies to all other server roles including NT4-style
111 domain controllers. The new value has been defined by Microsoft in Windows
112 Server 2008 and newer versions. To make it easier for Administrators to control
113 those port ranges we use the same default and make it configurable with the
114 option: 'rpc server dynamic port range'.
116 The 'rpc server port' option sets the first available port from the new
117 'rpc server dynamic port range' option. The option 'rpc server port' only
118 applies to Samba provisioned as an AD DC.
120 Authentication and Authorization audit support
121 ----------------------------------------------
123 Detailed authentication and authorization audit information is now
124 logged to Samba's debug logs under the "auth_audit" debug class,
125 including in particular the client IP address triggering the audit
126 line.  Additionally, if Samba is compiled against the jansson JSON
127 library, a JSON representation is logged under the "auth_json_audit"
128 debug class.
130 Audit support is comprehensive for all authentication and
131 authorisation of user accounts in the Samba Active Directory Domain
132 Controller, as well as the implicit authentication in password
133 changes.  In the file server and classic/NT4 domain controller, NTLM
134 authentication, SMB and RPC authorization is covered, however password
135 changes are not at this stage, and this support is not currently
136 backed by a testsuite.
138 Multi-process LDAP Server
139 -------------------------
141 The LDAP server in the AD DC now honours the process model used for
142 the rest of the samba process, rather than being forced into a single
143 process.  This aids in Samba's ability to scale to larger numbers of AD
144 clients and the AD DC's overall resiliency, but will mean that there is a
145 fork()ed child for every LDAP client, which may be more resource
146 intensive in some situations.
148 Improved Read-Only Domain Controller (RODC) Support
149 ---------------------------------------------------
151 Support for RODCs in Samba AD until now has been experimental. With this latest
152 version, many of the critical bugs have been fixed and the RODC can be used in
153 DC environments requiring no writable behaviour. RODCs now correctly support
154 bad password lockouts and password disclosure auditing through the
155 msDS-RevealedUsers attribute.
157 The fixes made to the RWDC will also allow Windows RODC to function more
158 correctly and to avoid strange data omissions such as failures to replicate
159 groups or updated passwords. Password changes are currently rejected at the
160 RODC, although referrals should be given over LDAP. While any bad passwords can
161 trigger domain-wide lockout, good passwords which have not been replicated yet
162 for a password change can only be used via NTLM on the RODC (and not Kerberos).
164 The reliability of RODCs locating a writable partner still requires some
165 improvements and so the 'password server' configuration option is generally
166 recommended on the RODC.
168 Additional password hashes stored in supplementalCredentials
169 ------------------------------------------------------------
171 A new config option 'password hash userPassword schemes' has been added to
172 enable generation of SHA-256 and SHA-512 hashes (without storing the plaintext
173 password with reversible encryption). This builds upon previous work to improve
174 password sync for the AD DC (originally using GPG).
176 The user command of 'samba-tool' has been updated in order to be able to
177 extract these additional hashes, as well as extracting the (HTTP) WDigest
178 hashes that we had also been storing in supplementalCredentials.
180 Improvements to DNS during Active Directory domain join
181 -------------------------------------------------------
183 The 'samba-tool' domain join command will now add the A and GUID DNS records
184 (on both the local and remote servers) during a join if possible via RPC. This
185 should allow replication to proceed more smoothly post-join.
187 The mname element of the SOA record will now also be dynamically generated to
188 point to the local read-write server. 'samba_dnsupdate' should now be more
189 reliable as it will now find the appropriate name server even when resolv.conf
190 points to a forwarder.
192 Significant AD performance and replication improvements
193 -------------------------------------------------------
195 Previously, replication of group memberships was been an incredibly expensive
196 process for the AD DC. This was mostly due to unnecessary CPU time being spent
197 parsing member linked attributes. The database now stores these linked
198 attributes in sorted form to perform efficient searches for existing members.
199 In domains with a large number of group memberships, a join can now be
200 completed in half the time compared with Samba 4.6.
202 LDAP search performance has also improved, particularly in the unindexed search
203 case. Parsing and processing of security descriptors should now be more
204 efficient, improving replication but also overall performance.
206 Query record for open file or directory
207 ---------------------------------------
209 The record attached to an open file or directory in Samba can be
210 queried through the 'net tdb locking' command. In clustered Samba this
211 can be useful to determine the file or directory triggering
212 corresponding "hot" record warnings in ctdb.
214 Removal of lpcfg_register_defaults_hook()
215 -----------------------------------------
217 The undocumented and unsupported function lpcfg_register_defaults_hook()
218 that was used by external projects to call into Samba and modify
219 smb.conf default parameter settings has been removed. If your project
220 was using this call please raise the issue on
221 samba-technical@lists.samba.org in order to design a supported
222 way of obtaining the same functionality.
224 Change of loadable module interface
225 -----------------------------------
227 The _init function of all loadable modules in Samba has changed
228 from:
230 NTSTATUS _init(void);
234 NTSTATUS _init(TALLOC_CTX *);
236 This allows a program loading a module to pass in a long-lived
237 talloc context (which must be guaranteed to be alive for the
238 lifetime of the module). This allows modules to avoid use of
239 the talloc_autofree_context() (which is inherently thread-unsafe)
240 and still be valgrind-clean on exit. Modules that don't need to
241 free long-lived data on exit should use the NULL talloc context.
243 CTDB changes
244 ------------
246 * CTDB no longer allows mixed minor versions in a cluster
248   See the AllowMixedVersions tunable option in ctdb-tunables(7) and also
249   https://wiki.samba.org/index.php/Upgrading_a_CTDB_cluster#Policy
251 * CTDB now ignores hints from Samba about TDB flags when attaching to databases
253   CTDB will use the correct flags depending on the type of database.
254   For clustered databases, the smb.conf setting
255   dbwrap_tdb_mutexes:*=true will be ignored. Instead, CTDB continues
256   to use the TDBMutexEnabled tunable.
258 * New configuration variable CTDB_NFS_CHECKS_DIR
260   See ctdbd.conf(5) for more details.
262 * The CTDB_SERVICE_AUTOSTARTSTOP configuration variable has been
263   removed
265   To continue to manage/unmanage services while CTDB is running:
267   - Start service by hand and then flag it as managed
269   - Mark service as unmanaged and shut it down by hand
271   - In some cases CTDB does something fancy - e.g. start Samba under
272     "nice", so care is needed. One technique is to disable the
273     eventscript, mark as managed, run the startup event by hand and then
274     re-enable the eventscript.
276 * The CTDB_SCRIPT_DEBUGLEVEL configuration variable has been removed
278 * The example NFS Ganesha call-out has been improved
280 * A new "replicated" database type is available
282   Replicated databases are intended for CTDB's internal use to
283   replicate state data across the cluster, but may find other
284   uses. The data in replicated databases is valid for the lifetime of
285   CTDB and cleared on first attach.
287 Parameter changes
288 -----------------
290 The "strict sync" global parameter has been changed from
291 a default of "no" to "yes". This means smbd will by default
292 obey client requests to synchronize unwritten data in operating
293 system buffers safely onto disk. This is a safer default setting
294 for modern SMB1/2/3 clients.
296 The 'ntlm auth' option default is renamed to 'ntlmv2-only', reflecting
297 the previous behaviour.  Two new values have been provided,
298 'mschapv2-and-ntlmv2-only' (allowing MSCHAPv2 while denying NTLMv1)
299 and 'disabled', totally disabling NTLM authentication and password
300 changes.
303 smb.conf changes
304 ================
306   Parameter Name                     Description             Default
307   --------------                     -----------             -------
308   allow unsafe cluster upgrade       New parameter           no
309   auth event notification            New parameter           no
310   auth methods                       Deprecated
311   client max protocol                Effective               SMB3_11
312                                      default changed
313   map untrusted to domain            New value/              auto
314                                      Default changed/
315                                      Deprecated
316   mit kdc command                    New parameter
317   profile acls                       Deprecated
318   rpc server dynamic port range      New parameter           49152-65535
319   strict sync                        Default changed         yes
320   password hash userPassword schemes New parameter
321   ntlm auth                          New values              ntlmv2-only
324 KNOWN ISSUES
325 ============
327 https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.7#Release_blocking_bugs
330 CHANGES SINCE 4.7.0rc3
331 ======================
333 o  Jeremy Allison <jra@samba.org>
334    * BUG 12913: Implement cli_smb2_setatr() by calling cli_smb2_setpathinfo().
336 o  Andrew Bartlett <abartlet@samba.org>
337    * BUG 11392: s4-cldap/netlogon: Match Windows 2012R2 and return
338      NETLOGON_NT_VERSION_5 when version unspecified.
339    * BUG 12855: dsdb: Do not force a re-index of sam.ldb on upgrade to 4.7.
340    * BUG 12904: dsdb: Fix dsdb_next_callback to correctly use ldb_module_done()
341      etc.
342    * BUG 12939: s4-rpc_server: Improve debug of new endpoints.
344 o  Ralph Boehme <slow@samba.org>
345    * BUG 12791: Fix kernel oplocks issues with named streams.
346    * BUG 12944: vfs_gpfs: Handle EACCES when fetching DOS attributes from xattr.
348 o  Bob Campbell <bobcampbell@catalyst.net.nz>
349    * BUG 12842: samdb/cracknames: Support user and service principal as desired
350      format.
352 o  David Disseldorp <ddiss@samba.org>
353    * BUG 12911: vfs_ceph: Fix cephwrap_chdir().
355 o  Gary Lockyer <gary@catalyst.net.nz>
356    * BUG 12865: Track machine account ServerAuthenticate3.
358 o  Marc Muehlfeld <mmuehlfeld@samba.org>
359    * BUG 12947: python: Fix incorrect kdc.conf parameter name in kerberos.py.
361 o  Noel Power <noel.power@suse.com>
362    * BUG 12937: s3/utils: 'smbcacls' failed to detect DIRECTORIES using SMB2
363      (Windows only).
365 o  Arvid Requate <requate@univention.de>
366    * BUG 11392: s4-dsdb/netlogon: Allow missing ntver in cldap ping.
368 o  Anoop C S <anoopcs@redhat.com>
369    * BUG 12936: source3/client: Fix typo in help message displayed by default.
371 o  Andreas Schneider <asn@samba.org>
372    * BUG 12930: Fix building with GCC 7.1.1.
375 CHANGES SINCE 4.7.0rc2
376 ======================
378 o  Jeremy Allison <jra@samba.org>
379    * BUG 12836: s3: smbd: Fix a read after free if a chained SMB1 call goes
380      async.
381    * BUG 12899: s3: libsmb: Reverse sense of 'clear all attributes', ignore
382      attribute change in SMB2 to match SMB1.
383    * BUG 12914: s3: smbclient: Add new command deltree.
385 o  Ralph Boehme <slow@samba.org>
386    * BUG 12885: s3/smbd: Let non_widelink_open() chdir() to directories
387      directly.
388    * BUG 12887: Remove SMB_VFS_STRICT_UNLOCK noop from the VFS.
389    * BUG 12891: Enable TDB mutexes in dbwrap and ctdb.
390    * BUG 12897: vfs_fruit: don't use MS NFS ACEs with Windows clients.
391    * BUG 12910: s3/notifyd: Ensure notifyd doesn't return from
392      smbd_notifyd_init.
394 o  Alexander Bokovoy <ab@samba.org>
395    * BUG 12905: Build py3 versions of other rpc modules.
397 o  Günther Deschner <gd@samba.org>
398    * BUG 12840: vfs_fruit: Add "fruit:model = <modelname>" parametric option.
400 o  Dustin L. Howett
401    * BUG 12720: idmap_ad: Retry query_user exactly once if we get
402      TLDAP_SERVER_DOWN.
404 o  Amitay Isaacs <amitay@gmail.com>
405    * BUG 12891: dbwrap_ctdb: Fix calculation of persistent flag.
407 o  Thomas Jarosch <thomas.jarosch@intra2net.com>
408    * BUG 12927: s3: libsmb: Fix use-after-free when accessing pointer *p.
410 o  Volker Lendecke <vl@samba.org>
411    * BUG 12925: smbd: Fix a connection run-down race condition.
413 o  Stefan Metzmacher <metze@samba.org>
414    * tevent: version 0.9.33: make tevent_req_print() more robust against crashes.
415    * ldb: version 1.2.1
416    * BUG 12882: Do not install _ldb_text.py if we have system libldb.
417    * BUG 12890: s3:smbd: consistently use talloc_tos() memory for
418      rpc_pipe_open_interface().
419    * BUG 12900: Fix index out of bound in ldb_msg_find_common_values.
421 o  Rowland Penny <rpenny@samba.org>
422    * BUG 12884: Easily edit a users object in AD, as if using 'ldbedit'.
424 o  Bernhard M. Wiedemann <bwiedemann@suse.de>
425    * BUG 12906: s3: drop build_env
427 o  Andreas Schneider <asn@samba.org>
428    * BUG 12882: waf: Do not install _ldb_text.py if we have system libldb.
430 o  Martin Schwenke <martin@meltin.net>
431    * BUG 12898: ctdb-common: Set close-on-exec when creating PID file.
434 CHANGES SINCE 4.7.0rc1
435 ======================
437 o  Jeffrey Altman <jaltman@secure-endpoints.com>
438    * BUG 12894: CVE-2017-11103: Orpheus' Lyre KDC-REP service name validation
441 #######################################
442 Reporting bugs & Development Discussion
443 #######################################
445 Please discuss this release on the samba-technical mailing list or by
446 joining the #samba-technical IRC channel on irc.freenode.net.
448 If you do report problems then please try to send high quality
449 feedback. If you don't provide vital information to help us track down
450 the problem then you will probably be ignored.  All bug reports should
451 be filed under the Samba 4.1 and newer product in the project's Bugzilla
452 database (https://bugzilla.samba.org/).
455 ======================================================================
456 == Our Code, Our Bugs, Our Responsibility.
457 == The Samba Team
458 ======================================================================