VERSION: Disable GIT_SNAPSHOTS for the 4.5.9 release.
[Samba.git] / WHATSNEW.txt
blob7c57603c9c09bdd661888f21474704c014bb2e5c
1                    =============================
2                    Release Notes for Samba 4.5.9
3                             May 18, 2017
4                    =============================
7 This is the latest stable release of the Samba 4.5 release series.
10 Changes since 4.5.8:
11 --------------------
13 o  Michael Adam <obnox@samba.org>
14    * BUG 12743: vfs_shadow_copy2 fails to list snapshots from shares with
15      GlusterFS backend.
17 o  Jeremy Allison <jra@samba.org>
18    * BUG 12747: Wrong use of getgroups causes buffer overflow.
20 o  Hanno Böck <hanno@hboeck.de>
21    * BUG 12746: lib: debug: Avoid negative array access.
22    * BUG 12748: cleanupdb: Fix a memory read error.
24 o  Ralph Boehme <slow@samba.org>
25    * BUG 11961: idmap_autorid allocates ids for unknown SIDs from other backends.
26    * BUG 12562: vfs_acl_common should force "create mask = 0777".
27    * BUG 12565: vfs_fruit: resource fork open request with
28      flags=O_CREAT|O_RDONLY.
29    * BUG 12727: Lookup-domain for well-known SIDs on a DC.
30    * BUG 12728: winbindd: Fix error handling in rpc_lookup_sids().
31    * BUG 12729: winbindd: Trigger possible passdb_dsdb initialisation.
32    * BUG 12749: Can't case-rename files with vfs_fruit.
33    * BUG 12766: s3/smbd: Update exclusive oplock optimisation to the lease area.
35 o  Amitay Isaacs <amitay@gmail.com>
36    * BUG 12733: ctdb-docs: Fix documentation of "-n" option to 'ctdb tool'.
38 o  Shilpa Krishnareddy <skrishnareddy@panzura.com>
39    * BUG 12756: notify: Fix ordering of events in notifyd.
41 o  Volker Lendecke <vl@samba.org>
42    * BUG 12276: lib: Fix CID 1373623 Dereference after null check.
43    * BUG 12558: smbd: Fix smb1 findfirst with DFS.
44    * BUG 12757: idmap_rfc2307: Fix lookup of more than two SIDs.
46 o  Stefan Metzmacher <metze@samba.org>
47    * BUG 12767: samba-tool: Let 'samba-tool user syncpasswords' report deletions
48      immediately.
49    * BUG 12725: pam_winbind: no longer use wbcUserPasswordPolicyInfo when
50      authenticating.
52 o  Doug Nazar <nazard@nazar.ca>
53    * BUG 12760: s3: smbd: inotify_map_mask_to_filter incorrectly indexes an
54      array.
56 o  Christof Schmitt <cs@samba.org>
57    * BUG 12725: winbindd: Fix password policy for pam authentication.
59 o  Andreas Schneider <asn@samba.org>
60    * BUG 12277: waf: Explicitly link libreplace against libnss_wins.so.
62 o  Uri Simchoni <uri@samba.org>
63    * BUG 12737: vfs_acl_xattr - failure to get ACL on Linux if memory is
64      fragmented.
67 #######################################
68 Reporting bugs & Development Discussion
69 #######################################
71 Please discuss this release on the samba-technical mailing list or by
72 joining the #samba-technical IRC channel on irc.freenode.net.
74 If you do report problems then please try to send high quality
75 feedback. If you don't provide vital information to help us track down
76 the problem then you will probably be ignored.  All bug reports should
77 be filed under the Samba 4.1 and newer product in the project's Bugzilla
78 database (https://bugzilla.samba.org/).
81 ======================================================================
82 == Our Code, Our Bugs, Our Responsibility.
83 == The Samba Team
84 ======================================================================
87 Release notes for older releases follow:
88 ----------------------------------------
90                    =============================
91                    Release Notes for Samba 4.5.8
92                            March 31, 2017
93                    =============================
96 This is a bug fix release to address a regression introduced by the security
97 fixes for CVE-2017-2619 (Symlink race allows access outside share definition).
98 Please see https://bugzilla.samba.org/show_bug.cgi?id=12721 for details.
101 Changes since 4.5.7:
102 --------------------
104 o  Jeremy Allison <jra@samba.org>
105    * BUG 12721: Fix regression with "follow symlinks = no".
108 #######################################
109 Reporting bugs & Development Discussion
110 #######################################
112 Please discuss this release on the samba-technical mailing list or by
113 joining the #samba-technical IRC channel on irc.freenode.net.
115 If you do report problems then please try to send high quality
116 feedback. If you don't provide vital information to help us track down
117 the problem then you will probably be ignored.  All bug reports should
118 be filed under the Samba 4.1 and newer product in the project's Bugzilla
119 database (https://bugzilla.samba.org/).
122 ======================================================================
123 == Our Code, Our Bugs, Our Responsibility.
124 == The Samba Team
125 ======================================================================
128 ----------------------------------------------------------------------
131                    =============================
132                    Release Notes for Samba 4.5.7
133                            March 23, 2017
134                    =============================
137 This is a security release in order to address the following defect:
139 o  CVE-2017-2619 (Symlink race allows access outside share definition)
141 =======
142 Details
143 =======
145 o  CVE-2017-2619:
146    All versions of Samba prior to 4.6.1, 4.5.7, 4.4.11 are vulnerable to
147    a malicious client using a symlink race to allow access to areas of
148    the server file system not exported under the share definition.
150    Samba uses the realpath() system call to ensure when a client requests
151    access to a pathname that it is under the exported share path on the
152    server file system.
154    Clients that have write access to the exported part of the file system
155    via SMB1 unix extensions or NFS to create symlinks can race the server
156    by renaming a realpath() checked path and then creating a symlink. If
157    the client wins the race it can cause the server to access the new
158    symlink target after the exported share path check has been done. This
159    new symlink target can point to anywhere on the server file system.
161    This is a difficult race to win, but theoretically possible. Note that
162    the proof of concept code supplied wins the race reliably only when
163    the server is slowed down using the strace utility running on the
164    server. Exploitation of this bug has not been seen in the wild.
167 Changes since 4.5.6:
168 --------------------
170 o  Jeremy Allison <jra@samba.org>
171    * BUG 12496: CVE-2017-2619: Symlink race permits opening files outside share
172      directory.
174 o  Ralph Boehme <slow@samba.org>
175    * BUG 12496: CVE-2017-2619: Symlink race permits opening files outside share
176      directory.
179 #######################################
180 Reporting bugs & Development Discussion
181 #######################################
183 Please discuss this release on the samba-technical mailing list or by
184 joining the #samba-technical IRC channel on irc.freenode.net.
186 If you do report problems then please try to send high quality
187 feedback. If you don't provide vital information to help us track down
188 the problem then you will probably be ignored.  All bug reports should
189 be filed under the Samba 4.1 and newer product in the project's Bugzilla
190 database (https://bugzilla.samba.org/).
193 ======================================================================
194 == Our Code, Our Bugs, Our Responsibility.
195 == The Samba Team
196 ======================================================================
199 ----------------------------------------------------------------------
202                    =============================
203                    Release Notes for Samba 4.5.6
204                            March 9, 2017
205                    =============================
208 This is the latest stable release of the Samba 4.5 release series.
211 Changes since 4.5.5:
212 --------------------
214 o  Jeremy Allison <jra@samba.org>
215    * BUG 12499: s3: vfs: dirsort doesn't handle opendir of "." correctly.
216    * BUG 12531: vfs_shadow_copy2 doesn't cope with server changing directories.
217    * BUG 12546: vfs_streams_xattr doesn't cope with server changing directories.
218    * BUG 12572: s3: smbd: Don't loop infinitely on bad-symlink resolution.
219    * BUG 12608: s3: smbd: Restart reading the incoming SMB2 fd when the send
220      queue is drained.
222 o  Andrew Bartlett <abartlet@samba.org>
223    * BUG 12573: Samba < 4.7 does not know about compatibleFeatures and
224      requiredFeatures.
226 o  Ralph Boehme <slow@samba.org>
227    * BUG 12184: s3/rpc_server: Shared rpc modules loading.
228    * BUG 12427: vfs_fruit doesn't work with fruit:metadata=stream.
229    * BUG 12520: Ensure global "smb encrypt = off" is effective.
230    * BUG 12524: s3/rpc_server: move rpc_modules.c to its own subsystem.
231    * BUG 12536: s3/smbd: check for invalid access_mask
232      smbd_calculate_access_mask().
233    * BUG 12541: vfs_fruit: checks wrong AAPL config state and so always uses
234      readdirattr.
235    * BUG 12545: s3/rpc_server/mdssvc: add attribute "kMDItemContentType".
236    * BUG 12591: vfs_streams_xattr: use fsp, not base_fsp.
237    * BUG 12604: vfs_fruit: Enabling AAPL extensions must be a global switch.
239 o  Amitay Isaacs <amitay@gmail.com>
240    * BUG 12469: ctdb-tests: Use replace headers instead of system headers.
241    * BUG 12547: ctdb-build: Install CTDB tests correctly from toplevel.
242    * BUG 12580: ctdb-common: Fix use-after-free error in comm_fd_handler().
244 o  Volker Lendecke <vl@samba.org>
245    * BUG 12551: smbd: Fix "map acl inherit" = yes.
247 o  Stefan Metzmacher <metze@samba.org>
248    * BUG 9048: s4:ldap_server: Match Windows in the error messages of failing
249      LDAP Bind requests.
250    * BUG 11830: s3:winbindd: Try a NETLOGON connection with noauth over NCACN_NP
251      against trusted domains.
252    * BUG 12262: 'net ads testjoin' and smb access fails after winbindd changed the
253      trust password.
254    * BUG 12399: s4:repl_meta_data: Normalize rdn attribute name via the schema.
255    * BUG 12540: s3:smbd: Allow "server min protocol = SMB3_00" to go via "SMB
256      2.???" negprot.
257    * BUG 12581: smbclient fails on bad endianess when listing shares from
258      Solaris kernel SMB server on SPARC.
259    * BUG 12585: librpc/rpc: fix regression in
260      NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE error mapping.
261    * BUG 12586: libcli/auth: Use the correct creds value against servers without
262      LogonSamLogonEx.
263    * BUG 12587: winbindd child segfaults on connect to an NT4 domain.
264    * BUG 12588: cm_prepare_connection may return NT_STATUS_OK without a valid
265      connection.
266    * BUG 12598: winbindd (as member) requires Kerberos against trusted ad
267      domain, while it shouldn't.
268    * BUG 12605: s3:winbindd: Fix endless forest trust scan.
270 o  Garming Sam <garming@catalyst.net.nz>
271    * BUG 12577: dbcheck-links: Test that dbcheck against one-way links does not
272      error.
273    * BUG 12600: dbchecker: Stop ignoring linked cases where both objects are
274      alive.
276 o  Andreas Schneider <asn@samba.org>
277    * BUG 12571: s3-vfs: Only walk the directory once in open_and_sort_dir().
279 o  Martin Schwenke <martin@meltin.net>
280    * BUG 12589: ctdb-scripts: Initialise CTDB_NFS_CALLOUT in statd-callout.
282 o  Uri Simchoni <uri@samba.org>
283    * BUG 12529: waf: backport finding of pkg-config.
286 #######################################
287 Reporting bugs & Development Discussion
288 #######################################
290 Please discuss this release on the samba-technical mailing list or by
291 joining the #samba-technical IRC channel on irc.freenode.net.
293 If you do report problems then please try to send high quality
294 feedback. If you don't provide vital information to help us track down
295 the problem then you will probably be ignored.  All bug reports should
296 be filed under the Samba 4.1 and newer product in the project's Bugzilla
297 database (https://bugzilla.samba.org/).
300 ======================================================================
301 == Our Code, Our Bugs, Our Responsibility.
302 == The Samba Team
303 ======================================================================
306 ----------------------------------------------------------------------
309                    =============================
310                    Release Notes for Samba 4.5.5
311                           January 30, 2017
312                    =============================
315 This is the latest stable release of the Samba 4.5 release series.
317 Samba 4.5.4 erroneously included a rewrite of the vfs_fruit module.
318 This patchset will be reverted with this release, because it needs to pass the
319 review process first. If you are using the vfs_fruit module, please do not use
320 Samba 4.5.4.
322 Changes since 4.5.4:
323 --------------------
325 o  Amitay Isaacs <amitay@gmail.com>
326    * BUG 12469: ctdb-locking: Explicitly unlock record/db in lock helper.
328 o  Björn Jacke <bj@sernet.de>
329    * BUG 12535: vfs_default: Unlock the right file in copy chunk.
331 o  Martin Schwenke <martin@meltin.net>
332    * BUG 12512: ctdb-scripts: Fix remaining uses of "ctdb gratiousarp".
333    * BUG 12516: ctdb-scripts: /etc/iproute2/rt_tables gets populated with multiple
334      'default' entries.
337 #######################################
338 Reporting bugs & Development Discussion
339 #######################################
341 Please discuss this release on the samba-technical mailing list or by
342 joining the #samba-technical IRC channel on irc.freenode.net.
344 If you do report problems then please try to send high quality
345 feedback. If you don't provide vital information to help us track down
346 the problem then you will probably be ignored.  All bug reports should
347 be filed under the Samba 4.1 and newer product in the project's Bugzilla
348 database (https://bugzilla.samba.org/).
351 ======================================================================
352 == Our Code, Our Bugs, Our Responsibility.
353 == The Samba Team
354 ======================================================================
357 ----------------------------------------------------------------------
360                    =============================
361                    Release Notes for Samba 4.5.4
362                           January 18, 2017
363                    =============================
366 This is the latest stable release of the Samba 4.5 release series.
369 Changes since 4.5.3:
370 --------------------
372 o  Jeremy Allison <jra@samba.org>
373    * BUG 12460: rename_internals_fsp missing ACL permission-check on destination
374      folder.
375    * BUG 12466: lib: security: se_access_check() incorrectly processes owner
376      rights (S-1-3-4) DENY ace entries.
377    * BUG 12467: s3: ntlm_auth: Don't corrupt the output stream with debug
378      messages.
379    * BUG 12479: s3: libsmb: Add cli_smb2_ftruncate(), plumb into
380      cli_ftruncate().
382 o  Ralph Boehme <slow@samba.org>
383    * BUG 12396: s3/smbd: Remove a misleading error message.
384    * BUG 12412: vfs_fruit: Fix "fruit:resource" option spelling, but not
385      behaviour.
386    * BUG 12485: ctdbd_conn: Fix a resource leak.
388 o  David Disseldorp <ddiss@samba.org>
389    * BUG 12144: smbd/ioctl: match WS2016 ReFS set compression behaviour.
391 o  Björn Jacke <bj@sernet.de>
392    * BUG 2210: pam: Map more NT password errors to PAM errors.
394 o  Volker Lendecke <vl@samba.org>
395    * BUG 12484: winbindd: Use idmap cache in xids2sids.
396    * BUG 12509: messaging: Fix dead but not cleaned-up-yet destination sockets.
398 o  Stefan Metzmacher <metze@samba.org>
399    * BUG 12480: kinit succeeded but ads_sasl_spnego_gensec_bind(KRB5) failed: An
400      internal error occurred (with MIT krb5).
402 o  Andreas Schneider <asn@samba.org>
403    * BUG 12183: printing: Fix building with CUPS version older than 1.7.
404    * BUG 12441: s3:libads: Include system /etc/krb5.conf if we use MIT Kerberos.
406 o  Martin Schwenke <martin@meltin.net>
407    * BUG 12470: Fix ctdb ip bugs.
410 #######################################
411 Reporting bugs & Development Discussion
412 #######################################
414 Please discuss this release on the samba-technical mailing list or by
415 joining the #samba-technical IRC channel on irc.freenode.net.
417 If you do report problems then please try to send high quality
418 feedback. If you don't provide vital information to help us track down
419 the problem then you will probably be ignored.  All bug reports should
420 be filed under the Samba 4.1 and newer product in the project's Bugzilla
421 database (https://bugzilla.samba.org/).
424 ======================================================================
425 == Our Code, Our Bugs, Our Responsibility.
426 == The Samba Team
427 ======================================================================
430 ----------------------------------------------------------------------
433                    =============================
434                    Release Notes for Samba 4.5.3
435                           December 19, 2016
436                    =============================
439 This is a security release in order to address the following defects:
441 o  CVE-2016-2123 (Samba NDR Parsing ndr_pull_dnsp_name Heap-based Buffer
442    Overflow Remote Code Execution Vulnerability).
443 o  CVE-2016-2125 (Unconditional privilege delegation to Kerberos servers in
444    trusted realms).
445 o  CVE-2016-2126 (Flaws in Kerberos PAC validation can trigger privilege
446    elevation).
448 =======
449 Details
450 =======
452 o  CVE-2016-2123:
453    The Samba routine ndr_pull_dnsp_name contains an integer wrap problem,
454    leading to an attacker-controlled memory overwrite. ndr_pull_dnsp_name
455    parses data from the Samba Active Directory ldb database.  Any user
456    who can write to the dnsRecord attribute over LDAP can trigger this
457    memory corruption.
459    By default, all authenticated LDAP users can write to the dnsRecord
460    attribute on new DNS objects. This makes the defect a remote privilege
461    escalation.
463 o  CVE-2016-2125
464    Samba client code always requests a forwardable ticket
465    when using Kerberos authentication. This means the
466    target server, which must be in the current or trusted
467    domain/realm, is given a valid general purpose Kerberos
468    "Ticket Granting Ticket" (TGT), which can be used to
469    fully impersonate the authenticated user or service.
471 o  CVE-2016-2126
472    A remote, authenticated, attacker can cause the winbindd process
473    to crash using a legitimate Kerberos ticket due to incorrect
474    handling of the arcfour-hmac-md5 PAC checksum.
476    A local service with access to the winbindd privileged pipe can
477    cause winbindd to cache elevated access permissions.
480 Changes since 4.5.2:
481 --------------------
483 o  Volker Lendecke <vl@samba.org>
484    * BUG 12409: CVE-2016-2123: Fix DNS vuln ZDI-CAN-3995.
486 o  Stefan Metzmacher <metze@samba.org>
487    * BUG 12445: CVE-2016-2125: Don't send delegated credentials to all servers.
488    * BUG 12446: CVE-2016-2126: auth/kerberos: Only allow known checksum types in
489      check_pac_checksum().
492 #######################################
493 Reporting bugs & Development Discussion
494 #######################################
496 Please discuss this release on the samba-technical mailing list or by
497 joining the #samba-technical IRC channel on irc.freenode.net.
499 If you do report problems then please try to send high quality
500 feedback. If you don't provide vital information to help us track down
501 the problem then you will probably be ignored.  All bug reports should
502 be filed under the Samba 4.1 and newer product in the project's Bugzilla
503 database (https://bugzilla.samba.org/).
506 ======================================================================
507 == Our Code, Our Bugs, Our Responsibility.
508 == The Samba Team
509 ======================================================================
512 ----------------------------------------------------------------------
515                    =============================
516                    Release Notes for Samba 4.5.2
517                           December 07, 2016
518                    =============================
521 This is the latest stable release of the Samba 4.5 release series.
524 Changes since 4.5.1:
525 --------------------
527 o  Michael Adam <obnox@samba.org>
528    * BUG 12404: vfs:glusterfs: Preallocate result for glfs_realpath.
530 o  Jeremy Allison <jra@samba.org>
531    * BUG 12384: s3: vfs: Remove files/directories after the streams are deleted.
532    * BUG 12387: s3: vfs_streams_depot: Use conn->connectpath not conn->cwd.
533    * BUG 12436: s3/smbd: Fix the last resort check that sets the file type
534      attribute.
536 o  Andrew Bartlett <abartlet@samba.org>
537    * BUG 9954: dsdb: Create RID Set as SYSTEM.
538    * BUG 12297: dbcheck: Correct message for orphaned backlinks.
539    * BUG 12395: build: Fix build with perl on debian sid.
540    * BUG 12398: Fix errors in extended operations (like allocating a RID Set).
542 o  Günther Deschner <gd@samba.org>
543    * BUG 11197: spoolss: Use correct values for secdesc and devmode pointers.
545 o  Clive Ferreira <cliveferreira@catalyst.net.nz>
546    * BUG 12394: objectclass_attrs: Only abort on a missing attribute when an
547      attribute is both MUST and replicated.
549 o  Amitay Isaacs <amitay@gmail.com>
550    * BUG 12366: provision,dlz-bind: Add support for BIND 9.11.x.
551    * BUG 12392: ctdb-locking: Reset real-time priority in lock helper.
552    * BUG 12407: ctdb-scripts: Fix calculation of CTDB_BASE.
553    * BUG 12434: ctdb-recovery: Avoid NULL dereference in failure case.
555 o  Stefan Metzmacher <metze@samba.org>
556    * BUG 10297: s3:smbd: Only pass UCF_PREP_CREATEFILE to filename_convert() if
557      we may create a new file.
559 o  Mathieu Parent <math.parent@gmail.com>
560    * BUG 12371: ctdb-scripts: Fix Debian init in samba eventscript.
562 o  Garming Sam <garming@catalyst.net.nz>
563    * BUG 9954: samba_tool/fsmo: Allocate RID Set when seizing RID manager.
564    * BUG 10882: s4-auth: Don't check for NULL saltPrincipal if it doesn't need
565      it.
566    * BUG 12297: upgradeprovision: Remove objectCategory from constructed attrs.
567    * BUG 12385: collect_tombstones: Allow links to recycled objects to be
568      deleted.
570 o  Andreas Schneider <asn@samba.org>
571    * BUG 12183: s3-printing: Correctly encode CUPS printer URIs.
572    * BUG 12195: s3-printing: Allow printer names longer than 16 chars.
573    * BUG 12269: nss_wins: Fix errno values for HOST_NOT_FOUND.
574    * BUG 12405: s3-winbind: Do not return NO_MEMORY if we have an empty user
575      list.
576    * BUG 12415: s3:spoolss: Add support for COPY_FROM_DIRECTORY in
577      AddPrinterDriverEx.
579 o  Martin Schwenke <martin@meltin.net>
580    * BUG 12104: ctdb-packaging: Move CTDB tests to /usr/local/share/ctdb/tests/.
582 o  Uri Simchoni <uri@samba.org>
583    * BUG 12375: smbd: In ntlm auth, do not map empty domain in case of
584      \user@realm.
586 o  Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
587    * BUG 12372: ctdb-conn: Add missing variable initialization.
590 #######################################
591 Reporting bugs & Development Discussion
592 #######################################
594 Please discuss this release on the samba-technical mailing list or by
595 joining the #samba-technical IRC channel on irc.freenode.net.
597 If you do report problems then please try to send high quality
598 feedback. If you don't provide vital information to help us track down
599 the problem then you will probably be ignored.  All bug reports should
600 be filed under the Samba 4.1 and newer product in the project's Bugzilla
601 database (https://bugzilla.samba.org/).
604 ======================================================================
605 == Our Code, Our Bugs, Our Responsibility.
606 == The Samba Team
607 ======================================================================
610 ----------------------------------------------------------------------
613                    =============================
614                    Release Notes for Samba 4.5.1
615                           October 26, 2016
616                    =============================
619 This is the latest stable release of the Samba 4.5 release series.
621 Major enhancements in Samba 4.5.1 include:
623 o  Let winbindd discard expired kerberos tickets when built against
624    (internal) heimdal (BUG #12369).
625 o  REGRESSION: smbd segfaults on startup, tevent context being freed
626    (BUG #12283).
629 Changes since 4.5.0:
630 --------------------
632 o  Jeremy Allison <jra@samba.org>
633    * BUG 11259: smbd contacts a domain controller for each session.
634    * BUG 12272: Fix messaging subsystem crash.
635    * BUG 12283: REGRESSION: smbd segfaults on startup, tevent context being
636      freed.
637    * BUG 12381: s3: cldap: cldap_multi_netlogon_send() fails with one bad IPv6
638      address.
639    * BUG 12383: s3: libsmb: Fix cut and paste error using the wrong structure
640      type.
642 o  Christian Ambach <ambi@samba.org>
643    * BUG 9945: Setting specific logger levels in smb.conf makes 'samba-tool drs
644      showrepl' crash.
646 o  Andrew Bartlett <abartlet@samba.org>
647    * BUG 12382: Tombstone expunge does not remove old links.
649 o  Björn Baumbach <bb@sernet.de>
650    * BUG 8618: s3-printing: Fix migrate printer code.
652 o  Ralph Boehme <slow@samba.org>
653    * BUG 12256: s3/smbd: In call_trans2qfilepathinfo call lstat when dealing
654      with posix pathnames.
655    * BUG 12261: s3/smbd: Set FILE_ATTRIBUTE_DIRECTORY as necessary.
657 o  Günther Deschner <gd@samba.org>
658    * BUG 12285: "DriverVersion" registry backend parsing incorrect in spoolss.
660 o  David Disseldorp <ddiss@samba.org>
661    * BUG 12144: smbd/ioctl: Match WS2016 ReFS get compression behaviour.
663 o  Amitay Isaacs <amitay@gmail.com>
664    * BUG 12259: ctdb-protocol: Fix marshalling for GET_DB_SEQNUM control
665      request.
666    * BUG 12275: ctdb-recovery-helper: Add missing initialisation of ban_credits.
667    * BUG 12287: CTDB PID file handling is too weak.
669 o  Volker Lendecke <vl@samba.org>
670    * BUG 12045: gencache: Bail out of stabilize if we can not get the allrecord
671      lock.
672    * BUG 12268: smbd: Reset O_NONBLOCK on open files.
673    * BUG 12283: glusterfs: Avoid tevent_internal.h.
674    * BUG 12291: source3/lib/msghdr.c, line 208: syntax error before or at: ;.
675    * BUG 12374: spoolss: Fix caching of printername->sharename.
677 o  Stefan Metzmacher <metze@samba.org>
678    * BUG 12283: REGRESSION: smbd segfaults on startup, tevent context being
679      freed.
680    * BUG 12369: Let winbindd discard expired kerberos tickets when built against
681      (internal) heimdal.
683 o  Noel Power <noel.power@suse.com>
684    * BUG 12298: s3/winbindd: Fix using default domain with user@domain.com
685      format.
687 o  Christof Schmitt <cs@samba.org>
688    * BUG 12295: winbind: Fix passing idmap failure from wb_sids2xids back to
689      callers.
691 o  Andreas Schneider <asn@samba.org>
692    * BUG 12269: nss_wins has incorrect function definitions for gethostbyname*.
693    * BUG 12276: s3-lib: Fix %G substitution in AD member environment.
694    * BUG 12364: s3-utils: Fix loading smb.conf in smbcquotas.
696 o  Garming Sam <garming@catalyst.net.nz>
697    * BUG 12286: kcc: Don't check schedule if None.
698    * BUG 12382: Tombstone expunge does not remove old links.
700 o  Anoop C S <anoopcs@redhat.com>
701    * BUG 12377: vfs_glusterfs: Fix a memory leak in connect path.
703 o  Martin Schwenke <martin@meltin.net>
704    * BUG 12254: CTDB IP takeover does not complete if there are no public
705      addresses configured.
706    * BUG 12255: ctdb-packaging: Fix systemd network dependency.
707    * BUG 12287: CTDB PID file handling is too weak.
709 o  Uri Simchoni <uri@samba.org>
710    * BUG 12270: smbcquotas: Fix error message listing quotas.
711    * BUG 12273: s3-sysquotas: Correctly restore path when finding mount point.
712    * BUG 12288: cliquota: Fix param count when setting fs quota.
713    * BUG 12289: smbd: Free talloc context if no quota records are available.
714    * BUG 12307: ntquotas: Support "freeing" an empty quota list.
717 #######################################
718 Reporting bugs & Development Discussion
719 #######################################
721 Please discuss this release on the samba-technical mailing list or by
722 joining the #samba-technical IRC channel on irc.freenode.net.
724 If you do report problems then please try to send high quality
725 feedback. If you don't provide vital information to help us track down
726 the problem then you will probably be ignored.  All bug reports should
727 be filed under the Samba 4.1 and newer product in the project's Bugzilla
728 database (https://bugzilla.samba.org/).
731 ======================================================================
732 == Our Code, Our Bugs, Our Responsibility.
733 == The Samba Team
734 ======================================================================
737 ----------------------------------------------------------------------
740                    =============================
741                    Release Notes for Samba 4.5.0
742                            September 7, 2016
743                    =============================
746 This is the first stable release of the Samba 4.5 release series.
749 UPGRADING
750 =========
752 NTLMv1 authentication disabled by default
753 -----------------------------------------
755 In order to improve security we have changed
756 the default value for the "ntlm auth" option from
757 "yes" to "no". This may have impact on very old
758 clients which doesn't support NTLMv2 yet.
760 The primary user of NTLMv1 is MSCHAPv2 for VPNs and 802.1x.
762 By default, Samba will only allow NTLMv2 via NTLMSSP now,
763 as we have the following default "lanman auth = no",
764 "ntlm auth = no" and "raw NTLMv2 auth = no".
767 NEW FEATURES/CHANGES
768 ====================
770 Support for LDAP_SERVER_NOTIFICATION_OID
771 ----------------------------------------
773 The ldap server has support for the LDAP_SERVER_NOTIFICATION_OID
774 control. This can be used to monitor the Active Directory database
775 for changes.
777 KCC improvements for sparse network replication
778 -----------------------------------------------
780 The Samba KCC will now be the default knowledge consistency checker in
781 Samba AD. Instead of using full mesh replication between every DC, the
782 KCC will set up connections to optimize replication latency and cost
783 (using site links to calculate the routes). This change should allow
784 larger domains to function significantly better in terms of replication
785 traffic and the time spent performing DRS replication.
787 VLV - Virtual List View
788 -----------------------
790 The VLV Control allows applications to page the LDAP directory in the
791 way you might expect a live phone book application to operate, without
792 first downloading the entire directory.
794 DRS Replication for the AD DC
795 -----------------------------
797 DRS Replication in Samba 4.5 is now much more efficient in handling
798 linked attributes, particularly in large domains with over 1000 group
799 memberships or other links.
801 Replication is also much more reliable in the handling of tree
802 renames, such as the rename of an organizational unit containing many
803 users.  Extensive tests have been added to ensure this code remains
804 reliable, particularly in the case of conflicts between objects added
805 with the same name on different servers.
807 Schema updates are also handled much more reliably.
809 samba-tool drs replicate with new options
810 -----------------------------------------
812 'samba-tool drs replicate' got two new options:
814 The option '--local-online' will do the DsReplicaSync() via IRPC
815 to the local dreplsrv service.
817 The option '--async-op' will add DRSUAPI_DRS_ASYNC_OP to the
818 DsReplicaSync(), which won't wait for the replication result.
820 replPropertyMetaData Changes
821 ----------------------------
823 During the development of the DRS replication, tests showed that Samba
824 stores the replPropertyMetaData object incorrectly. To address this,
825 be aware that 'dbcheck' will now detect and offer to fix all objects in
826 the domain for this error.
828 For further information and instructions how to fix the problem, see
829 https://wiki.samba.org/index.php/Updating_Samba#Fixing_replPropertyMetaData_Attributes
831 Linked attributes on deleted objects
832 ------------------------------------
834 In Active Directory, an object that has been tombstoned or recycled
835 has no linked attributes.  However, Samba incorrectly maintained such
836 links, slowing replication and run-time performance.  'dbcheck' now
837 offers to remove such links, and they are no longer kept after the
838 object is tombstoned or recycled.
840 Improved AD DC performance
841 --------------------------
843 Many other improvements have been made to our LDAP database layer in
844 the AD DC, to improve performance, both during 'samba-tool domain
845 provision' and at runtime.
847 Other dbcheck improvements
848 --------------------------
850  - 'samba-tool dbcheck' can now find and fix a missing or corrupted
851    'deleted objects' container.
852  - BUG 11433: samba-dbcheck no longer offers to resort auxiliary class values
853    in objectClass as these were then re-sorted at the next dbcheck indefinitely.
855 Tombstone Reanimation
856 ---------------------
858 Samba now supports tombstone reanimation, a feature in the AD DC
859 allowing tombstones, that is objects which have been deleted, to be
860 restored with the original SID and GUID still in place.
862 Multiple DNS Forwarders on the AD DC
863 ------------------------------------
865 Previously, the Samba internal DNS server supported only one DNS forwarder.
866 The "dns forwarder" option has been enhanced and now supports a space-separated
867 list of multiple DNS server IP addresses. As a result, Samba is now able to
868 fall back to alternative DNS servers. In case that a DNS query to the first
869 server timed out, it is sent to the next DNS server listed in the option.
871 Password quality plugin support in the AD DC
872 --------------------------------------------
874 The check password script now operates correctly in the AD DC.
876 pwdLastSet is now correctly honoured
877 ------------------------------------
879 BUG 9654: The pwdLastSet attribute is now correctly handled (this previously
880 permitted passwords that expire next).
882 net ads dns unregister
883 ----------------------
885 It is now possible to remove the DNS entries created with 'net ads register'
886 with the matching 'net ads unregister' command.
888 samba-tool improvements
889 ------------------------
891 Running 'samba-tool' on the command line should now be a lot snappier. The tool
892 now only loads the code specific to the subcommand that you wish to run.
894 SMB 2.1 Leases enabled by default
895 ---------------------------------
897 Leasing is an SMB 2.1 (and higher) feature which allows clients to
898 aggressively cache files locally above and beyond the caching allowed
899 by SMB 1 oplocks. This feature was disabled in previous releases, but
900 the SMB2 leasing code is now considered mature and stable enough to be
901 enabled by default.
903 Open File Description (OFD) Locks
904 ---------------------------------
906 On systems that support them (currently only Linux), the fileserver now
907 uses Open File Description (OFD) locks instead of POSIX locks to implement
908 client byte range locks. As these locks are associated with a specific
909 file descriptor on a file this allows more efficient use when multiple
910 descriptors having file locks are opened onto the same file. An internal
911 tunable "smbd:force process locks = true" may be used to turn off OFD
912 locks if there appear to be problems with them.
914 Password sync as Active Directory domain controller
915 ---------------------------------------------------
917 The new commands 'samba-tool user getpassword'
918 and 'samba-tool user syncpasswords' provide
919 access and syncing of various password fields.
921 If compiled with GPGME support (--with-gpgme) it's
922 possible to store cleartext passwords in a PGP/OpenGPG
923 encrypted form by configuring the new "password hash gpg key ids"
924 option. This requires gpgme devel and python packages to be installed
925 (e.g. libgpgme11-dev and python-gpgme on Debian/Ubuntu).
927 Python crypto requirements
928 --------------------------
930 Some 'samba-tool' subcommands require python-crypto and/or
931 python-m2crypto packages to be installed.
933 SmartCard/PKINIT improvements
934 -----------------------------
936 'samba-tool user create' accepts "--smartcard-required"
937 and 'samba-tool user setpassword' accepts "--smartcard-required"
938 and "--clear-smartcard-required".
940 Specifying "--smartcard-required" results in the UF_SMARTCARD_REQUIRED
941 flags being set in the userAccountControl attribute.
942 At the same time, the account password is reset to a random
943 NTHASH value.
945 Interactive password logons are rejected, if the UF_SMARTCARD_REQUIRED
946 bit is set in the userAccountControl attribute of a user.
948 When doing a PKINIT based Kerberos logon the KDC adds the
949 required PAC_CREDENTIAL_INFO element to the authorization data.
950 That means the NTHASH is shared between the PKINIT based client and
951 the domain controller, which allows the client to do NTLM based
952 authentication on behalf of the user. It also allows an offline
953 logon using a smartcard to work on Windows clients.
955 CTDB changes
956 ------------
958 * New improved 'ctdb tool'
960   'ctdb tool' has been completely rewritten using new client API.
961   Usage messages are much improved.
963 * Sample CTDB configuration file is installed as ctdbd.conf.
965 * The use of real-time scheduling when taking locks has been narrowed
966   to limit potential performance impacts on nodes.
968 * CTDB_RECOVERY_LOCK now supports specification of an external helper
969   to take and hold the recovery lock.
971   See the RECOVERY LOCK section in ctdb(7) for details.  Documentation
972   for writing helpers is provided in doc/cluster_mutex_helper.txt.
974 * "ctdb natgwlist" has been replaced by a top level "ctdb natgw"
975   command that has "master", "list" and "status" subcommands.
977 * The 'onnode' command no longer supports the "recmaster", "lvs" and
978   "natgw" node specifications.
980 * Faster resetting of TCP connections to public IP addresses during
981   failover.
983 * Tunables MaxRedirectCount, ReclockPingPeriod,
984   DeferredRebalanceOnNodeAdd are now obsolete/ignored.
986 * "ctdb listvars" now lists all variables, including the first one.
988 * "ctdb xpnn", "ctdb rebalanceip" and "ctdb rebalancenode" have been
989   removed.
991   These are not needed because "ctdb reloadips" should do the correct
992   rebalancing.
994 * Output for the following commands has been simplified:
996     ctdb getdbseqnum
997     ctdb getdebug
998     ctdb getmonmode
999     ctdb getpid
1000     ctdb getreclock
1001     ctdb getpid
1002     ctdb pnn
1004   These now simply print the requested output with no preamble.  This
1005   means that scripts no longer need to strip part of the output.
1007   "ctdb getreclock" now prints nothing when the recovery lock is not
1008   set.
1010 * Output for the following commands has been improved:
1012   ctdb setdebug
1013   ctdb uptime
1015 * 'ctdb process-exists' has been updated to only take a PID argument.
1017   The PNN can be specified with -n <PNN>.  Output also cleaned up.
1019 * LVS support has been reworked - related commands and configuration
1020   variables have changed.
1022   'ctdb lvsmaster' and 'ctdb lvs' have been replaced by a top level
1023   'ctdb lvs' command that has 'master', 'list' and 'status'
1024   subcommands.
1026   See the LVS sections in ctdb(7) and ctdbd.conf(5) for details,
1027   including configuration changes.
1029 * Improved sample NFS Ganesha call-out.
1031 New shadow_copy2 options
1032 ------------------------
1034 * shadow:snapprefix
1036   With growing number of snapshots file-systems need some mechanism to
1037   differentiate one set of snapshots from other, e.g. monthly, weekly, manual,
1038   special events, etc. Therefore, these file-systems provide different ways to tag
1039   snapshots, e.g. provide a configurable way to name snapshots, which is not just
1040   based on time.  With only shadow:format it is very difficult to filter these
1041   snapshots. With this optional parameter, one can specify a variable prefix
1042   component for names of the snapshot directories in the file-system. If this
1043   parameter is set, together with the shadow:format and shadow:delimiter
1044   parameters it determines the possible names of snapshot directories in the
1045   file-system. The option only supports Basic Regular Expression (BRE).
1047 * shadow:delimiter
1049   This optional parameter is used as a delimiter between "shadow:snapprefix" and
1050   "shadow:format". This parameter is used only when "shadow:snapprefix" is set.
1052   Default: shadow:delimiter = "_GMT"
1055 REMOVED FEATURES
1056 ================
1058 "only user" and "username" parameters
1059 -------------------------------------
1061 These two parameters have long been deprecated and superseded by
1062 "valid users" and "invalid users".
1065 smb.conf changes
1066 ================
1068   Parameter Name                Description             Default
1069   --------------                -----------             -------
1070   kccsrv:samba_kcc              Changed default         yes
1071   ntlm auth                     Changed default         no
1072   only user                     Removed
1073   password hash gpg key ids     New
1074   shadow:snapprefix             New
1075   shadow:delimiter              New                     _GMT
1076   smb2 leases                   Changed default         yes
1077   username                      Removed
1080 KNOWN ISSUES
1081 ============
1083 While a lot of schema replication bugs were fixed in this release
1084 Bug 12204 - Samba fails to replicate schema 69
1085 (https://bugzilla.samba.org/show_bug.cgi?id=12204) is still open.
1086 The replication fails if more than 133 schema objects are added
1087 at the same time.
1089 More open bugs are listed at:
1090 https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.5#All_bugs
1093 CHANGES SINCE 4.5.0rc3
1094 ======================
1096 o   Björn Baumbach <bb@sernet.de>
1097     * BUG 12194: idmap_script: fix missing "IDTOSID" argument in scripts
1098       command line.
1100 o   Andrew Bartlett <abartlet@samba.org>
1101     * BUG 12178: samba-tool dbcheck fails to fix replPropertyMetaData.
1103 o   Ralph Boehme <slow@samba.org>
1104     * BUG 12177: Unexpected synthesized default ACL from vfs_acl_xattr.
1105     * BUG 12181: vfs_acl_common not setting filesystem permissions anymore.
1106     * BUG 12184: Loading shared RPC modules failed.
1108 o   Günther Deschner <gd@samba.org>
1109     * BUG 12245: fix _spoolss_GetPrinterDataEx by moving the keyname
1110       length check.
1112 o   Stefan Metzmacher <metze@samba.org>
1113     * BUG 11994: smbclient fails to connect to Azure or Apple share spnego
1114       fails with no mechListMIC.
1116 o   Martin Schwenke <martin@meltin.net>
1117     * BUG 12180: CTDB crashes running eventscripts.
1120 CHANGES SINCE 4.5.0rc2
1121 ======================
1123 o   Michael Adam <obnox@samba.org>
1124     * BUG 12155: Some idmap backends don't perform range checks for the result
1125       of sids_to_xids.
1127 o   Jeremy Allison <jra@samba.org>
1128     * BUG 12115: Endless loop on drsuapi pull replication after schema changes.
1129     * BUG 12135: net ads gpo refresh can crash with null pointer deref..
1130     * BUG 12139: Race between break oplock and check for share_mode.
1131     * BUG 12150: SMB2 snapshot query fails on DFS shares..
1132     * BUG 12165: smbclient allinfo doesn't correctly return 'previous version'
1133       info over SMB1.
1134     * BUG 12166: smbclient allinfo doesn't correctly return 'previous version'
1135       info over SMB2.
1136     * BUG 12174: error: 'conn' undeclared.
1138 o   Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
1139     * BUG 12143: misnamed attribute in samba_kcc causes exception in unusual
1140       circumstances.
1141     * BUG 12187: Backport changes for partial attribute set calculation
1142       for 4.5.
1144 o   Andrew Bartlett <abartlet@samba.org>
1145     * BUG 12107: backport backupkey tests.
1146     * BUG 12115: Endless loop on drsuapi pull replication after schema changes.
1147     * BUG 12128: Correctly resolve replicated schema changes regarding linked
1148       attributes.
1150 o   Amitay Isaacs <amitay@gmail.com>
1151     * BUG 12137: Fix printf format non-liternal warnings and printf
1152       format errors.
1153     * BUG 12138: Fix uninitialized timeout in ctdb_pmda.
1154     * BUG 12151: Drop resurrected ctdb commands in new ctdb tool.
1155     * BUG 12152: Fix ctdb addip; implementation to match ctdb delip.
1156     * BUG 12163: Fix missing arguments and format elements in format strings.
1157     * BUG 12168: Fix format-nonliteral warnings.
1159 o   Stefan Metzmacher <metze@samba.org>
1160     * BUG 12108: Backport selftest/autobuild fixes to v4-5-test.
1161     * BUG 12114: In memory schema updated on non schema master.
1162     * BUG 12115: Endless loop on drsuapi pull replication after schema changes.
1163     * BUG 12128: Correctly resolve replicated schema changes regarding
1164       linked attributes.
1165     * BUG 12129: let samba-tool ldapcmp ignore whenChanged.
1167 o   Garming Sam <garming@catalyst.net.nz>
1168     * BUG 12187: Backport changes for partial attribute set calculation
1169       for 4.5.
1171 o   Andreas Schneider <asn@samba.org>
1172     * BUG 12175: smbget always prompts for a username.
1174 o   Christof Schmitt <cs@samba.org>
1175     * BUG 12150: SMB2 snapshot query fails on DFS shares..
1177 o   Martin Schwenke <martin@meltin.net>
1178     * BUG 12157: Coverity and related fixes.
1179     * BUG 12158: CTDB release IP fixes.
1180     * BUG 12161: Fix CTDB cumulative takeover timeout.
1181     * BUG 12170: CTDB test runs can kill each other's ctdbd daemons.
1183 o   Uri Simchoni <uri@samba.org>
1184     * BUG 12145: smbd: if inherit owner is enabled, the free disk on a folder
1185       should take the owner's quota into account.
1186     * BUG 12149: smbd: cannot load a Windows device driver from a Samba share
1187       via SMB2.
1188     * BUG 12172: a snapshot folder cannot be accessed via SMB1.
1191 CHANGES SINCE 4.5.0rc1
1192 ======================
1194 o   Ralph Boehme <slow@samba.org>
1195     * BUG 12005: parse_share_modes() chokes on ctdb tombstone record from ltdb.
1196     * BUG 12105: smbclient connection to not reachable IP eats 100% CPU.
1198 o   Ira Cooper <ira@samba.org>
1199     * BUG 12133: source3/wscript: Add support for disabling vfs_cephfs.
1201 o   Amitay Isaacs <amitay@gmail.com>
1202     * BUG 12121: ctdb-tools: Fix numerous Coverity IDs and other issues.
1203     * BUG 12122: If a transaction fails, it should be canceled and transaction
1204       handle should be freed.
1205     * BUG 12134: dbwrap: Fix structure initialization.
1207 o   Marc Muehlfeld <mmuehlfeld@samba.org>
1208     * BUG 12023: man: Fix wrong option for parameter "ldap ssl" in smb.conf
1209       man page.
1211 o   Andreas Schneider <asn@samba.org>
1212     * BUG 12104: ctdb-waf: Move ctdb tests to libexec directory.
1214 o   Martin Schwenke <martin@meltin.net>
1215     * BUG 12104: ctdb-packaging: Move ctdb tests to libexec directory.
1216     * BUG 12109: Fixes several CTDB tests.
1217     * BUG 12110: Fix numerous Coverity IDs.
1218     * BUG 12113: ctdb-mutex: Avoid corner case where helper is already
1219       reparented to init.
1220     * BUG 12123: Fix ctdb tickle command and update documentation.
1221     * BUG 12125: CTDB overwrites working configuration due to packaging
1222       change.
1223     * BUG 12126: Fix broken CTDB log messages.
1226 #######################################
1227 Reporting bugs & Development Discussion
1228 #######################################
1230 Please discuss this release on the samba-technical mailing list or by
1231 joining the #samba-technical IRC channel on irc.freenode.net.
1233 If you do report problems then please try to send high quality
1234 feedback. If you don't provide vital information to help us track down
1235 the problem then you will probably be ignored.  All bug reports should
1236 be filed under the Samba 4.1 and newer product in the project's Bugzilla
1237 database (https://bugzilla.samba.org/).
1240 ======================================================================
1241 == Our Code, Our Bugs, Our Responsibility.
1242 == The Samba Team
1243 ======================================================================