samba_tool/fsmo: Allocate RID Set when seizing RID manager
[Samba.git] / WHATSNEW.txt
blobf26834a790710fb4a0a4c2bcd7ba267d2108b548
1                    =============================
2                    Release Notes for Samba 4.5.1
3                           October 26, 2016
4                    =============================
7 This is the latest stable release of the Samba 4.5 release series.
9 Major enhancements in Samba 4.5.1 include:
11 o  Let winbindd discard expired kerberos tickets when built against
12    (internal) heimdal (BUG #12369).
13 o  REGRESSION: smbd segfaults on startup, tevent context being freed
14    (BUG #12283).
17 Changes since 4.5.0:
18 --------------------
20 o  Jeremy Allison <jra@samba.org>
21    * BUG 11259: smbd contacts a domain controller for each session.
22    * BUG 12272: Fix messaging subsystem crash.
23    * BUG 12283: REGRESSION: smbd segfaults on startup, tevent context being
24      freed.
25    * BUG 12381: s3: cldap: cldap_multi_netlogon_send() fails with one bad IPv6
26      address.
27    * BUG 12383: s3: libsmb: Fix cut and paste error using the wrong structure
28      type.
30 o  Christian Ambach <ambi@samba.org>
31    * BUG 9945: Setting specific logger levels in smb.conf makes 'samba-tool drs
32      showrepl' crash.
34 o  Andrew Bartlett <abartlet@samba.org>
35    * BUG 12382: Tombstone expunge does not remove old links.
37 o  Björn Baumbach <bb@sernet.de>
38    * BUG 8618: s3-printing: Fix migrate printer code.
40 o  Ralph Boehme <slow@samba.org>
41    * BUG 12256: s3/smbd: In call_trans2qfilepathinfo call lstat when dealing
42      with posix pathnames.
43    * BUG 12261: s3/smbd: Set FILE_ATTRIBUTE_DIRECTORY as necessary.
45 o  Günther Deschner <gd@samba.org>
46    * BUG 12285: "DriverVersion" registry backend parsing incorrect in spoolss.
48 o  David Disseldorp <ddiss@samba.org>
49    * BUG 12144: smbd/ioctl: Match WS2016 ReFS get compression behaviour.
51 o  Amitay Isaacs <amitay@gmail.com>
52    * BUG 12259: ctdb-protocol: Fix marshalling for GET_DB_SEQNUM control
53      request.
54    * BUG 12275: ctdb-recovery-helper: Add missing initialisation of ban_credits.
55    * BUG 12287: CTDB PID file handling is too weak.
57 o  Volker Lendecke <vl@samba.org>
58    * BUG 12045: gencache: Bail out of stabilize if we can not get the allrecord
59      lock.
60    * BUG 12268: smbd: Reset O_NONBLOCK on open files.
61    * BUG 12283: glusterfs: Avoid tevent_internal.h.
62    * BUG 12291: source3/lib/msghdr.c, line 208: syntax error before or at: ;.
63    * BUG 12374: spoolss: Fix caching of printername->sharename.
65 o  Stefan Metzmacher <metze@samba.org>
66    * BUG 12283: REGRESSION: smbd segfaults on startup, tevent context being
67      freed.
68    * BUG 12369: Let winbindd discard expired kerberos tickets when built against
69      (internal) heimdal.
71 o  Noel Power <noel.power@suse.com>
72    * BUG 12298: s3/winbindd: Fix using default domain with user@domain.com
73      format.
75 o  Christof Schmitt <cs@samba.org>
76    * BUG 12295: winbind: Fix passing idmap failure from wb_sids2xids back to
77      callers.
79 o  Andreas Schneider <asn@samba.org>
80    * BUG 12269: nss_wins has incorrect function definitions for gethostbyname*.
81    * BUG 12276: s3-lib: Fix %G substitution in AD member environment.
82    * BUG 12364: s3-utils: Fix loading smb.conf in smbcquotas.
84 o  Garming Sam <garming@catalyst.net.nz>
85    * BUG 12286: kcc: Don't check schedule if None.
86    * BUG 12382: Tombstone expunge does not remove old links.
88 o  Anoop C S <anoopcs@redhat.com>
89    * BUG 12377: vfs_glusterfs: Fix a memory leak in connect path.
91 o  Martin Schwenke <martin@meltin.net>
92    * BUG 12254: CTDB IP takeover does not complete if there are no public
93      addresses configured.
94    * BUG 12255: ctdb-packaging: Fix systemd network dependency.
95    * BUG 12287: CTDB PID file handling is too weak.
97 o  Uri Simchoni <uri@samba.org>
98    * BUG 12270: smbcquotas: Fix error message listing quotas.
99    * BUG 12273: s3-sysquotas: Correctly restore path when finding mount point.
100    * BUG 12288: cliquota: Fix param count when setting fs quota.
101    * BUG 12289: smbd: Free talloc context if no quota records are available.
102    * BUG 12307: ntquotas: Support "freeing" an empty quota list.
105 #######################################
106 Reporting bugs & Development Discussion
107 #######################################
109 Please discuss this release on the samba-technical mailing list or by
110 joining the #samba-technical IRC channel on irc.freenode.net.
112 If you do report problems then please try to send high quality
113 feedback. If you don't provide vital information to help us track down
114 the problem then you will probably be ignored.  All bug reports should
115 be filed under the Samba 4.1 and newer product in the project's Bugzilla
116 database (https://bugzilla.samba.org/).
119 ======================================================================
120 == Our Code, Our Bugs, Our Responsibility.
121 == The Samba Team
122 ======================================================================
125 Release notes for older releases follow:
126 ----------------------------------------
128                    =============================
129                    Release Notes for Samba 4.5.0
130                            September 7, 2016
131                    =============================
134 This is the first stable release of the Samba 4.5 release series.
137 UPGRADING
138 =========
140 NTLMv1 authentication disabled by default
141 -----------------------------------------
143 In order to improve security we have changed
144 the default value for the "ntlm auth" option from
145 "yes" to "no". This may have impact on very old
146 clients which doesn't support NTLMv2 yet.
148 The primary user of NTLMv1 is MSCHAPv2 for VPNs and 802.1x.
150 By default, Samba will only allow NTLMv2 via NTLMSSP now,
151 as we have the following default "lanman auth = no",
152 "ntlm auth = no" and "raw NTLMv2 auth = no".
155 NEW FEATURES/CHANGES
156 ====================
158 Support for LDAP_SERVER_NOTIFICATION_OID
159 ----------------------------------------
161 The ldap server has support for the LDAP_SERVER_NOTIFICATION_OID
162 control. This can be used to monitor the Active Directory database
163 for changes.
165 KCC improvements for sparse network replication
166 -----------------------------------------------
168 The Samba KCC will now be the default knowledge consistency checker in
169 Samba AD. Instead of using full mesh replication between every DC, the
170 KCC will set up connections to optimize replication latency and cost
171 (using site links to calculate the routes). This change should allow
172 larger domains to function significantly better in terms of replication
173 traffic and the time spent performing DRS replication.
175 VLV - Virtual List View
176 -----------------------
178 The VLV Control allows applications to page the LDAP directory in the
179 way you might expect a live phone book application to operate, without
180 first downloading the entire directory.
182 DRS Replication for the AD DC
183 -----------------------------
185 DRS Replication in Samba 4.5 is now much more efficient in handling
186 linked attributes, particularly in large domains with over 1000 group
187 memberships or other links.
189 Replication is also much more reliable in the handling of tree
190 renames, such as the rename of an organizational unit containing many
191 users.  Extensive tests have been added to ensure this code remains
192 reliable, particularly in the case of conflicts between objects added
193 with the same name on different servers.
195 Schema updates are also handled much more reliably.
197 samba-tool drs replicate with new options
198 -----------------------------------------
200 'samba-tool drs replicate' got two new options:
202 The option '--local-online' will do the DsReplicaSync() via IRPC
203 to the local dreplsrv service.
205 The option '--async-op' will add DRSUAPI_DRS_ASYNC_OP to the
206 DsReplicaSync(), which won't wait for the replication result.
208 replPropertyMetaData Changes
209 ----------------------------
211 During the development of the DRS replication, tests showed that Samba
212 stores the replPropertyMetaData object incorrectly. To address this,
213 be aware that 'dbcheck' will now detect and offer to fix all objects in
214 the domain for this error.
216 For further information and instructions how to fix the problem, see
217 https://wiki.samba.org/index.php/Updating_Samba#Fixing_replPropertyMetaData_Attributes
219 Linked attributes on deleted objects
220 ------------------------------------
222 In Active Directory, an object that has been tombstoned or recycled
223 has no linked attributes.  However, Samba incorrectly maintained such
224 links, slowing replication and run-time performance.  'dbcheck' now
225 offers to remove such links, and they are no longer kept after the
226 object is tombstoned or recycled.
228 Improved AD DC performance
229 --------------------------
231 Many other improvements have been made to our LDAP database layer in
232 the AD DC, to improve performance, both during 'samba-tool domain
233 provision' and at runtime.
235 Other dbcheck improvements
236 --------------------------
238  - 'samba-tool dbcheck' can now find and fix a missing or corrupted
239    'deleted objects' container.
240  - BUG 11433: samba-dbcheck no longer offers to resort auxiliary class values
241    in objectClass as these were then re-sorted at the next dbcheck indefinitely.
243 Tombstone Reanimation
244 ---------------------
246 Samba now supports tombstone reanimation, a feature in the AD DC
247 allowing tombstones, that is objects which have been deleted, to be
248 restored with the original SID and GUID still in place.
250 Multiple DNS Forwarders on the AD DC
251 ------------------------------------
253 Previously, the Samba internal DNS server supported only one DNS forwarder.
254 The "dns forwarder" option has been enhanced and now supports a space-separated
255 list of multiple DNS server IP addresses. As a result, Samba is now able to
256 fall back to alternative DNS servers. In case that a DNS query to the first
257 server timed out, it is sent to the next DNS server listed in the option.
259 Password quality plugin support in the AD DC
260 --------------------------------------------
262 The check password script now operates correctly in the AD DC.
264 pwdLastSet is now correctly honoured
265 ------------------------------------
267 BUG 9654: The pwdLastSet attribute is now correctly handled (this previously
268 permitted passwords that expire next).
270 net ads dns unregister
271 ----------------------
273 It is now possible to remove the DNS entries created with 'net ads register'
274 with the matching 'net ads unregister' command.
276 samba-tool improvements
277 ------------------------
279 Running 'samba-tool' on the command line should now be a lot snappier. The tool
280 now only loads the code specific to the subcommand that you wish to run.
282 SMB 2.1 Leases enabled by default
283 ---------------------------------
285 Leasing is an SMB 2.1 (and higher) feature which allows clients to
286 aggressively cache files locally above and beyond the caching allowed
287 by SMB 1 oplocks. This feature was disabled in previous releases, but
288 the SMB2 leasing code is now considered mature and stable enough to be
289 enabled by default.
291 Open File Description (OFD) Locks
292 ---------------------------------
294 On systems that support them (currently only Linux), the fileserver now
295 uses Open File Description (OFD) locks instead of POSIX locks to implement
296 client byte range locks. As these locks are associated with a specific
297 file descriptor on a file this allows more efficient use when multiple
298 descriptors having file locks are opened onto the same file. An internal
299 tunable "smbd:force process locks = true" may be used to turn off OFD
300 locks if there appear to be problems with them.
302 Password sync as Active Directory domain controller
303 ---------------------------------------------------
305 The new commands 'samba-tool user getpassword'
306 and 'samba-tool user syncpasswords' provide
307 access and syncing of various password fields.
309 If compiled with GPGME support (--with-gpgme) it's
310 possible to store cleartext passwords in a PGP/OpenGPG
311 encrypted form by configuring the new "password hash gpg key ids"
312 option. This requires gpgme devel and python packages to be installed
313 (e.g. libgpgme11-dev and python-gpgme on Debian/Ubuntu).
315 Python crypto requirements
316 --------------------------
318 Some 'samba-tool' subcommands require python-crypto and/or
319 python-m2crypto packages to be installed.
321 SmartCard/PKINIT improvements
322 -----------------------------
324 'samba-tool user create' accepts "--smartcard-required"
325 and 'samba-tool user setpassword' accepts "--smartcard-required"
326 and "--clear-smartcard-required".
328 Specifying "--smartcard-required" results in the UF_SMARTCARD_REQUIRED
329 flags being set in the userAccountControl attribute.
330 At the same time, the account password is reset to a random
331 NTHASH value.
333 Interactive password logons are rejected, if the UF_SMARTCARD_REQUIRED
334 bit is set in the userAccountControl attribute of a user.
336 When doing a PKINIT based Kerberos logon the KDC adds the
337 required PAC_CREDENTIAL_INFO element to the authorization data.
338 That means the NTHASH is shared between the PKINIT based client and
339 the domain controller, which allows the client to do NTLM based
340 authentication on behalf of the user. It also allows an offline
341 logon using a smartcard to work on Windows clients.
343 CTDB changes
344 ------------
346 * New improved 'ctdb tool'
348   'ctdb tool' has been completely rewritten using new client API.
349   Usage messages are much improved.
351 * Sample CTDB configuration file is installed as ctdbd.conf.
353 * The use of real-time scheduling when taking locks has been narrowed
354   to limit potential performance impacts on nodes.
356 * CTDB_RECOVERY_LOCK now supports specification of an external helper
357   to take and hold the recovery lock.
359   See the RECOVERY LOCK section in ctdb(7) for details.  Documentation
360   for writing helpers is provided in doc/cluster_mutex_helper.txt.
362 * "ctdb natgwlist" has been replaced by a top level "ctdb natgw"
363   command that has "master", "list" and "status" subcommands.
365 * The 'onnode' command no longer supports the "recmaster", "lvs" and
366   "natgw" node specifications.
368 * Faster resetting of TCP connections to public IP addresses during
369   failover.
371 * Tunables MaxRedirectCount, ReclockPingPeriod,
372   DeferredRebalanceOnNodeAdd are now obsolete/ignored.
374 * "ctdb listvars" now lists all variables, including the first one.
376 * "ctdb xpnn", "ctdb rebalanceip" and "ctdb rebalancenode" have been
377   removed.
379   These are not needed because "ctdb reloadips" should do the correct
380   rebalancing.
382 * Output for the following commands has been simplified:
384     ctdb getdbseqnum
385     ctdb getdebug
386     ctdb getmonmode
387     ctdb getpid
388     ctdb getreclock
389     ctdb getpid
390     ctdb pnn
392   These now simply print the requested output with no preamble.  This
393   means that scripts no longer need to strip part of the output.
395   "ctdb getreclock" now prints nothing when the recovery lock is not
396   set.
398 * Output for the following commands has been improved:
400   ctdb setdebug
401   ctdb uptime
403 * 'ctdb process-exists' has been updated to only take a PID argument.
405   The PNN can be specified with -n <PNN>.  Output also cleaned up.
407 * LVS support has been reworked - related commands and configuration
408   variables have changed.
410   'ctdb lvsmaster' and 'ctdb lvs' have been replaced by a top level
411   'ctdb lvs' command that has 'master', 'list' and 'status'
412   subcommands.
414   See the LVS sections in ctdb(7) and ctdbd.conf(5) for details,
415   including configuration changes.
417 * Improved sample NFS Ganesha call-out.
419 New shadow_copy2 options
420 ------------------------
422 * shadow:snapprefix
424   With growing number of snapshots file-systems need some mechanism to
425   differentiate one set of snapshots from other, e.g. monthly, weekly, manual,
426   special events, etc. Therefore, these file-systems provide different ways to tag
427   snapshots, e.g. provide a configurable way to name snapshots, which is not just
428   based on time.  With only shadow:format it is very difficult to filter these
429   snapshots. With this optional parameter, one can specify a variable prefix
430   component for names of the snapshot directories in the file-system. If this
431   parameter is set, together with the shadow:format and shadow:delimiter
432   parameters it determines the possible names of snapshot directories in the
433   file-system. The option only supports Basic Regular Expression (BRE).
435 * shadow:delimiter
437   This optional parameter is used as a delimiter between "shadow:snapprefix" and
438   "shadow:format". This parameter is used only when "shadow:snapprefix" is set.
440   Default: shadow:delimiter = "_GMT"
443 REMOVED FEATURES
444 ================
446 "only user" and "username" parameters
447 -------------------------------------
449 These two parameters have long been deprecated and superseded by
450 "valid users" and "invalid users".
453 smb.conf changes
454 ================
456   Parameter Name                Description             Default
457   --------------                -----------             -------
458   kccsrv:samba_kcc              Changed default         yes
459   ntlm auth                     Changed default         no
460   only user                     Removed
461   password hash gpg key ids     New
462   shadow:snapprefix             New
463   shadow:delimiter              New                     _GMT
464   smb2 leases                   Changed default         yes
465   username                      Removed
468 KNOWN ISSUES
469 ============
471 While a lot of schema replication bugs were fixed in this release
472 Bug 12204 - Samba fails to replicate schema 69
473 (https://bugzilla.samba.org/show_bug.cgi?id=12204) is still open.
474 The replication fails if more than 133 schema objects are added
475 at the same time.
477 More open bugs are listed at:
478 https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.5#All_bugs
481 CHANGES SINCE 4.5.0rc3
482 ======================
484 o   Björn Baumbach <bb@sernet.de>
485     * BUG 12194: idmap_script: fix missing "IDTOSID" argument in scripts
486       command line.
488 o   Andrew Bartlett <abartlet@samba.org>
489     * BUG 12178: samba-tool dbcheck fails to fix replPropertyMetaData.
491 o   Ralph Boehme <slow@samba.org>
492     * BUG 12177: Unexpected synthesized default ACL from vfs_acl_xattr.
493     * BUG 12181: vfs_acl_common not setting filesystem permissions anymore.
494     * BUG 12184: Loading shared RPC modules failed.
496 o   Günther Deschner <gd@samba.org>
497     * BUG 12245: fix _spoolss_GetPrinterDataEx by moving the keyname
498       length check.
500 o   Stefan Metzmacher <metze@samba.org>
501     * BUG 11994: smbclient fails to connect to Azure or Apple share spnego
502       fails with no mechListMIC.
504 o   Martin Schwenke <martin@meltin.net>
505     * BUG 12180: CTDB crashes running eventscripts.
508 CHANGES SINCE 4.5.0rc2
509 ======================
511 o   Michael Adam <obnox@samba.org>
512     * BUG 12155: Some idmap backends don't perform range checks for the result
513       of sids_to_xids.
515 o   Jeremy Allison <jra@samba.org>
516     * BUG 12115: Endless loop on drsuapi pull replication after schema changes.
517     * BUG 12135: net ads gpo refresh can crash with null pointer deref..
518     * BUG 12139: Race between break oplock and check for share_mode.
519     * BUG 12150: SMB2 snapshot query fails on DFS shares..
520     * BUG 12165: smbclient allinfo doesn't correctly return 'previous version'
521       info over SMB1.
522     * BUG 12166: smbclient allinfo doesn't correctly return 'previous version'
523       info over SMB2.
524     * BUG 12174: error: 'conn' undeclared.
526 o   Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
527     * BUG 12143: misnamed attribute in samba_kcc causes exception in unusual
528       circumstances.
529     * BUG 12187: Backport changes for partial attribute set calculation
530       for 4.5.
532 o   Andrew Bartlett <abartlet@samba.org>
533     * BUG 12107: backport backupkey tests.
534     * BUG 12115: Endless loop on drsuapi pull replication after schema changes.
535     * BUG 12128: Correctly resolve replicated schema changes regarding linked
536       attributes.
538 o   Amitay Isaacs <amitay@gmail.com>
539     * BUG 12137: Fix printf format non-liternal warnings and printf
540       format errors.
541     * BUG 12138: Fix uninitialized timeout in ctdb_pmda.
542     * BUG 12151: Drop resurrected ctdb commands in new ctdb tool.
543     * BUG 12152: Fix ctdb addip; implementation to match ctdb delip.
544     * BUG 12163: Fix missing arguments and format elements in format strings.
545     * BUG 12168: Fix format-nonliteral warnings.
547 o   Stefan Metzmacher <metze@samba.org>
548     * BUG 12108: Backport selftest/autobuild fixes to v4-5-test.
549     * BUG 12114: In memory schema updated on non schema master.
550     * BUG 12115: Endless loop on drsuapi pull replication after schema changes.
551     * BUG 12128: Correctly resolve replicated schema changes regarding
552       linked attributes.
553     * BUG 12129: let samba-tool ldapcmp ignore whenChanged.
555 o   Garming Sam <garming@catalyst.net.nz>
556     * BUG 12187: Backport changes for partial attribute set calculation
557       for 4.5.
559 o   Andreas Schneider <asn@samba.org>
560     * BUG 12175: smbget always prompts for a username.
562 o   Christof Schmitt <cs@samba.org>
563     * BUG 12150: SMB2 snapshot query fails on DFS shares..
565 o   Martin Schwenke <martin@meltin.net>
566     * BUG 12157: Coverity and related fixes.
567     * BUG 12158: CTDB release IP fixes.
568     * BUG 12161: Fix CTDB cumulative takeover timeout.
569     * BUG 12170: CTDB test runs can kill each other's ctdbd daemons.
571 o   Uri Simchoni <uri@samba.org>
572     * BUG 12145: smbd: if inherit owner is enabled, the free disk on a folder
573       should take the owner's quota into account.
574     * BUG 12149: smbd: cannot load a Windows device driver from a Samba share
575       via SMB2.
576     * BUG 12172: a snapshot folder cannot be accessed via SMB1.
579 CHANGES SINCE 4.5.0rc1
580 ======================
582 o   Ralph Boehme <slow@samba.org>
583     * BUG 12005: parse_share_modes() chokes on ctdb tombstone record from ltdb.
584     * BUG 12105: smbclient connection to not reachable IP eats 100% CPU.
586 o   Ira Cooper <ira@samba.org>
587     * BUG 12133: source3/wscript: Add support for disabling vfs_cephfs.
589 o   Amitay Isaacs <amitay@gmail.com>
590     * BUG 12121: ctdb-tools: Fix numerous Coverity IDs and other issues.
591     * BUG 12122: If a transaction fails, it should be canceled and transaction
592       handle should be freed.
593     * BUG 12134: dbwrap: Fix structure initialization.
595 o   Marc Muehlfeld <mmuehlfeld@samba.org>
596     * BUG 12023: man: Fix wrong option for parameter "ldap ssl" in smb.conf
597       man page.
599 o   Andreas Schneider <asn@samba.org>
600     * BUG 12104: ctdb-waf: Move ctdb tests to libexec directory.
602 o   Martin Schwenke <martin@meltin.net>
603     * BUG 12104: ctdb-packaging: Move ctdb tests to libexec directory.
604     * BUG 12109: Fixes several CTDB tests.
605     * BUG 12110: Fix numerous Coverity IDs.
606     * BUG 12113: ctdb-mutex: Avoid corner case where helper is already
607       reparented to init.
608     * BUG 12123: Fix ctdb tickle command and update documentation.
609     * BUG 12125: CTDB overwrites working configuration due to packaging
610       change.
611     * BUG 12126: Fix broken CTDB log messages.
614 #######################################
615 Reporting bugs & Development Discussion
616 #######################################
618 Please discuss this release on the samba-technical mailing list or by
619 joining the #samba-technical IRC channel on irc.freenode.net.
621 If you do report problems then please try to send high quality
622 feedback. If you don't provide vital information to help us track down
623 the problem then you will probably be ignored.  All bug reports should
624 be filed under the Samba 4.1 and newer product in the project's Bugzilla
625 database (https://bugzilla.samba.org/).
628 ======================================================================
629 == Our Code, Our Bugs, Our Responsibility.
630 == The Samba Team
631 ======================================================================