vfs_default: Fix passing of errno from async calls
[Samba.git] / WHATSNEW.txt
blob87c45794058f644c5423b8f5fbe9446a2c8771da
1                    =============================
2                    Release Notes for Samba 4.6.7
3                            August 9, 2017
4                    =============================
7 This is the latest stable release of the Samba 4.6 release series.
10 Changes since 4.6.6:
11 ---------------------
13 o  Jeremy Allison <jra@samba.org>
14    * BUG 12836: s3: smbd: Fix a read after free if a chained SMB1 call goes async.
16 o  Andrew Bartlett <abartlet@samba.org>
17    * BUG 11392: s4-cldap/netlogon: Match Windows 2012R2 and return
18      NETLOGON_NT_VERSION_5 when version unspecified.
20 o  Ralph Boehme <slow@samba.org>
21    * BUG 12885: s3/smbd: Let non_widelink_open() chdir() to directories directly.
22    * BUG 12910: s3/notifyd: Ensure notifyd doesn't return from
23      smbd_notifyd_init.
25 o  Günther Deschner <gd@samba.org>
26    * BUG 12840: vfs_fruit: Add fruit:model = <modelname> parametric option.
28 o  David Disseldorp <ddiss@samba.org>
29    * BUG 12911: vfs_ceph: Fix cephwrap_chdir().
31 o  Dustin L. Howett
32    * BUG 12720: idmap_ad: Retry query_user exactly once if we get
33      TLDAP_SERVER_DOWN.
35 o  Thomas Jarosch <thomas.jarosch@intra2net.com>
36    * BUG 12927: s3: libsmb: Fix use-after-free when accessing pointer *p.
38 o  Volker Lendecke <vl@samba.org>
39    * BUG 12925: smbd: Fix a connection run-down race condition.
41 o  Stefan Metzmacher <metze@samba.org>
42    * BUG 12782: winbindd changes the local password and gets
43      NT_STATUS_WRONG_PASSWORD for the remote change.
44    * BUG 12890: s3:smbd: consistently use talloc_tos() memory for
45      rpc_pipe_open_interface().
47 o  Noel Power <noel.power@suse.com>
48    * BUG 12937: smbcacls: Don't fail against a directory on Windows using SMB2.
50 o  Arvid Requate <requate@univention.de>
51    * BUG 11392: s4-dsdb/netlogon: Allow missing ntver in cldap ping.
53 o  Garming Sam <garming@catalyst.net.nz>
54    * BUG 12813: dnsserver: Stop dns_name_equal doing OOB read.
56 o  Andreas Schneider <asn@samba.org>
57    * BUG 12886: s3:client: The smbspool krb5 wrapper needs negotiate for
58      authentication.
60 o  Martin Schwenke <martin@meltin.net>
61    * BUG 12898: ctdb-common: Set close-on-exec when creating PID file.
64 #######################################
65 Reporting bugs & Development Discussion
66 #######################################
68 Please discuss this release on the samba-technical mailing list or by
69 joining the #samba-technical IRC channel on irc.freenode.net.
71 If you do report problems then please try to send high quality
72 feedback. If you don't provide vital information to help us track down
73 the problem then you will probably be ignored.  All bug reports should
74 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
75 database (https://bugzilla.samba.org/).
78 ======================================================================
79 == Our Code, Our Bugs, Our Responsibility.
80 == The Samba Team
81 ======================================================================
84 Release notes for older releases follow:
85 ----------------------------------------
87                    =============================
88                    Release Notes for Samba 4.6.6
89                             July 12, 2017
90                    =============================
93 This is a security release in order to address the following defect:
95 o  CVE-2017-11103 (Orpheus' Lyre mutual authentication validation bypass)
97 =======
98 Details
99 =======
101 o  CVE-2017-11103 (Heimdal):
102    All versions of Samba from 4.0.0 onwards using embedded Heimdal
103    Kerberos are vulnerable to a man-in-the-middle attack impersonating
104    a trusted server, who may gain elevated access to the domain by
105    returning malicious replication or authorization data.
107    Samba binaries built against MIT Kerberos are not vulnerable.
110 Changes since 4.6.5:
111 ---------------------
113 o  Jeffrey Altman <jaltman@secure-endpoints.com>
114    * BUG 12894: CVE-2017-11103: Orpheus' Lyre KDC-REP service name validation
117 #######################################
118 Reporting bugs & Development Discussion
119 #######################################
121 Please discuss this release on the samba-technical mailing list or by
122 joining the #samba-technical IRC channel on irc.freenode.net.
124 If you do report problems then please try to send high quality
125 feedback. If you don't provide vital information to help us track down
126 the problem then you will probably be ignored.  All bug reports should
127 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
128 database (https://bugzilla.samba.org/).
131 ======================================================================
132 == Our Code, Our Bugs, Our Responsibility.
133 == The Samba Team
134 ======================================================================
137 ----------------------------------------------------------------------
140                    =============================
141                    Release Notes for Samba 4.6.5
142                             June 6, 2017
143                    =============================
146 This is the latest stable release of the Samba 4.6 release series.
149 Changes since 4.6.4:
150 ---------------------
152 o  Jeremy Allison <jra@samba.org>
153    * BUG 12804: s3: VFS: Catia: Ensure path name is also converted.
155 o  Christian Ambach <ambi@samba.org>
156    * BUG 12765: s3:smbcacls add prompt for password.
158 o  Ralph Boehme <slow@samba.org>
159    * BUG 12562: vfs_acl_xattr|tdb: Ensure create mask is at least 0666 if
160      ignore_system_acls is set.
161    * BUG 12702: Wrong sid->uid mapping for SIDs residing in sIDHistory.
162    * BUG 12749: vfs_fruit: lp_case_sensitive() does not return a bool.
163    * BUG 12766: s3/smbd: Update exclusive oplock optimisation to the lease area.
164    * BUG 12798: s3/smbd: Fix exclusive lease optimisation.
166 o  Alexander Bokovoy <ab@samba.org>
167    * BUG 12751: Allow passing trusted domain password as plain-text to PASSDB
168      layer.
169    * BUG 12764: systemd: Fix detection of libsystemd.
171 o  Amitay Isaacs <amitay@gmail.com>
172    * BUG 12697: ctdb-readonly: Avoid a tight loop waiting for revoke to
173      complete.
174    * BUG 12770: ctdb-logging: Initialize DEBUGLEVEL before changing the value.
176 o  Shilpa Krishnareddy <skrishnareddy@panzura.com>
177    * BUG 12756: notify: Fix ordering of events in notifyd.
179 o  Volker Lendecke <vl@samba.org>
180    * BUG 12757: idmap_rfc2307: Lookup of more than two SIDs fails.
182 o  Stefan Metzmacher <metze@samba.org>
183    * BUG 12767: samba-tool: Let 'samba-tool user syncpasswords' report deletions
184      immediately.
186 o  Doug Nazar <nazard@nazar.ca>
187    * BUG 12760: s3: smbd: inotify_map_mask_to_filter incorrectly indexes an
188      array.
190 o  Andreas Schneider <asn@samba.org>
191    * BUG 12687: vfs_expand_msdfs tries to open the remote address as a file
192      path.
194 o  Martin Schwenke <martin@meltin.net>
195    * BUG 12802: 'ctdb nodestatus' incorrectly displays status for all nodes with
196      wrong exit code.
197    * BUG 12814: ctdb-common: Fix crash in logging initialisation.
200 #######################################
201 Reporting bugs & Development Discussion
202 #######################################
204 Please discuss this release on the samba-technical mailing list or by
205 joining the #samba-technical IRC channel on irc.freenode.net.
207 If you do report problems then please try to send high quality
208 feedback. If you don't provide vital information to help us track down
209 the problem then you will probably be ignored.  All bug reports should
210 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
211 database (https://bugzilla.samba.org/).
214 ======================================================================
215 == Our Code, Our Bugs, Our Responsibility.
216 == The Samba Team
217 ======================================================================
220 ----------------------------------------------------------------------
223                    =============================
224                    Release Notes for Samba 4.6.4
225                             May 24, 2017
226                    =============================
229 This is a security release in order to address the following defect:
231 o  CVE-2017-7494 (Remote code execution from a writable share)
233 =======
234 Details
235 =======
237 o  CVE-2017-7494:
238    All versions of Samba from 3.5.0 onwards are vulnerable to a remote
239    code execution vulnerability, allowing a malicious client to upload a
240    shared library to a writable share, and then cause the server to load
241    and execute it.
244 Changes since 4.6.3:
245 ---------------------
247 o  Volker Lendecke <vl@samba.org>
248    * BUG 12780: CVE-2017-7494: Avoid remote code execution from a writable
249      share.
252 #######################################
253 Reporting bugs & Development Discussion
254 #######################################
256 Please discuss this release on the samba-technical mailing list or by
257 joining the #samba-technical IRC channel on irc.freenode.net.
259 If you do report problems then please try to send high quality
260 feedback. If you don't provide vital information to help us track down
261 the problem then you will probably be ignored.  All bug reports should
262 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
263 database (https://bugzilla.samba.org/).
266 ======================================================================
267 == Our Code, Our Bugs, Our Responsibility.
268 == The Samba Team
269 ======================================================================
272 ----------------------------------------------------------------------
275                    =============================
276                    Release Notes for Samba 4.6.3
277                            April 25, 2017
278                    =============================
281 This is the latest stable release of the Samba 4.6 release series.
284 Changes since 4.6.2:
285 --------------------
287 o  Michael Adam <obnox@samba.org>
288    * BUG 12743: s3:vfs:shadow_copy2: vfs_shadow_copy2 fails to list snapshots
289      from shares with GlusterFS backend.
291 o  Jeremy Allison <jra@samba.org>
292    * BUG 12559: Fix for Solaris C compiler.
293    * BUG 12628: s3: locking: Update oplock optimization for the leases era.
294    * BUG 12693: Make the Solaris C compiler happy.
295    * BUG 12695: s3: libgpo: Allow skipping GPO objects that don't have the
296      expected LDAP attributes.
297    * BUG 12747: Fix buffer overflow caused by wrong use of getgroups.
299 o  Hanno Boeck <hanno@hboeck.de>
300    * BUG 12746: lib: debug: Avoid negative array access.
301    * BUG 12748: cleanupdb: Fix a memory read error.
303 o  Ralph Boehme <slow@samba.org>
304    * BUG 7537: streams_xattr and kernel oplocks results in
305      NT_STATUS_NETWORK_BUSY.
306    * BUG 11961: winbindd: idmap_autorid allocates ids for unknown SIDs from other
307      backends.
308    * BUG 12565: vfs_fruit: Resource fork open request with
309      flags=O_CREAT|O_RDONLY.
310    * BUG 12615: manpages/vfs_fruit: Document global options.
311    * BUG 12624: lib/pthreadpool: Fix a memory leak.
312    * BUG 12727: Lookup-domain for well-known SIDs on a DC.
313    * BUG 12728: winbindd: Fix error handling in rpc_lookup_sids().
314    * BUG 12729: winbindd: Trigger possible passdb_dsdb initialisation.
316 o  Alexander Bokovoy <ab@samba.org>
317    * BUG 12611: credentials_krb5: use gss_acquire_cred for client-side GSSAPI
318      use case.
319    * BUG 12690: lib/crypto: Implement samba.crypto Python module for RC4.
321 o  Amitay Isaacs <amitay@gmail.com>
322    * BUG 12697: ctdb-readonly: Avoid a tight loop waiting for revoke to
323      complete.
324    * BUG 12723: ctdb_event monitor command crashes if event is not specified.
325    * BUG 12733: ctdb-docs: Fix documentation of "-n" option to 'ctdb tool'.
327 o  Volker Lendecke <vl@samba.org>
328    * BUG 12558: smbd: Fix smb1 findfirst with DFS.
329    * BUG 12610: smbd: Do an early exit on negprot failure.
330    * BUG 12699: winbindd: Fix substitution for 'template homedir'.
332 o  Stefan Metzmacher <metze@samba.org>
333    * BUG 12554: s4:kdc: Disable principal based autodetected referral detection.
334    * BUG 12613: idmap_autorid: Allocate new domain range if the callers knows
335      the sid is valid.
336    * BUG 12724: LINKFLAGS_PYEMBED should not contain -L/some/path.
337    * BUG 12725: PAM auth with WBFLAG_PAM_GET_PWD_POLICY returns wrong policy for
338      trusted domain.
339    * BUG 12731: rpcclient: Allow -U'OTHERDOMAIN\user' again.
341 o  Christof Schmitt <cs@samba.org>
342    * BUG 12725: winbindd: Fix password policy for pam authentication.
344 o  Andreas Schneider <asn@samba.org>
345    * BUG 12554: s3:gse: Correctly handle external trusts with MIT.
346    * BUG 12611: auth/credentials: Always set the realm if we set the principal
347      from the ccache.
348    * BUG 12686: replace: Include sysmacros.h.
349    * BUG 12687: s3:vfs_expand_msdfs: Do not open the remote address as a file.
350    * BUG 12704: s3:libsmb: Only print error message if kerberos use is forced.
351    * BUG 12708: winbindd: Child process crashes when kerberos-authenticating
352      a user with wrong password.
354 o  Uri Simchoni <uri@samba.org>
355    * BUG 12715: vfs_fruit: Office document opens as read-only on macOS due to
356      CNID semantics.
357    * BUG 12737: vfs_acl_xattr: Fix failure to get ACL on Linux if memory is
358      fragmented.
361 #######################################
362 Reporting bugs & Development Discussion
363 #######################################
365 Please discuss this release on the samba-technical mailing list or by
366 joining the #samba-technical IRC channel on irc.freenode.net.
368 If you do report problems then please try to send high quality
369 feedback. If you don't provide vital information to help us track down
370 the problem then you will probably be ignored.  All bug reports should
371 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
372 database (https://bugzilla.samba.org/).
375 ======================================================================
376 == Our Code, Our Bugs, Our Responsibility.
377 == The Samba Team
378 ======================================================================
381 ----------------------------------------------------------------------
384                    =============================
385                    Release Notes for Samba 4.6.2
386                            March 31, 2017
387                    =============================
390 This is a bug fix release to address a regression introduced by the security
391 fixes for CVE-2017-2619 (Symlink race allows access outside share definition).
392 Please see https://bugzilla.samba.org/show_bug.cgi?id=12721 for details.
395 Changes since 4.6.1:
396 --------------------
398 o  Jeremy Allison <jra@samba.org>
399    * BUG 12721: Fix regression with "follow symlinks = no".
402 #######################################
403 Reporting bugs & Development Discussion
404 #######################################
406 Please discuss this release on the samba-technical mailing list or by
407 joining the #samba-technical IRC channel on irc.freenode.net.
409 If you do report problems then please try to send high quality
410 feedback. If you don't provide vital information to help us track down
411 the problem then you will probably be ignored.  All bug reports should
412 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
413 database (https://bugzilla.samba.org/).
416 ======================================================================
417 == Our Code, Our Bugs, Our Responsibility.
418 == The Samba Team
419 ======================================================================
422 ----------------------------------------------------------------------
425                    =============================
426                    Release Notes for Samba 4.6.1
427                            March 23, 2017
428                    =============================
431 This is a security release in order to address the following defect:
433 o  CVE-2017-2619 (Symlink race allows access outside share definition)
435 =======
436 Details
437 =======
439 o  CVE-2017-2619:
440    All versions of Samba prior to 4.6.1, 4.5.7, 4.4.11 are vulnerable to
441    a malicious client using a symlink race to allow access to areas of
442    the server file system not exported under the share definition.
444    Samba uses the realpath() system call to ensure when a client requests
445    access to a pathname that it is under the exported share path on the
446    server file system.
448    Clients that have write access to the exported part of the file system
449    via SMB1 unix extensions or NFS to create symlinks can race the server
450    by renaming a realpath() checked path and then creating a symlink. If
451    the client wins the race it can cause the server to access the new
452    symlink target after the exported share path check has been done. This
453    new symlink target can point to anywhere on the server file system.
455    This is a difficult race to win, but theoretically possible. Note that
456    the proof of concept code supplied wins the race reliably only when
457    the server is slowed down using the strace utility running on the
458    server. Exploitation of this bug has not been seen in the wild.
461 Changes since 4.6.0:
462 --------------------
464 o  Jeremy Allison <jra@samba.org>
465    * BUG 12496: CVE-2017-2619: Symlink race permits opening files outside share
466      directory.
468 o  Ralph Boehme <slow@samba.org>
469    * BUG 12496: CVE-2017-2619: Symlink race permits opening files outside share
470      directory.
473 #######################################
474 Reporting bugs & Development Discussion
475 #######################################
477 Please discuss this release on the samba-technical mailing list or by
478 joining the #samba-technical IRC channel on irc.freenode.net.
480 If you do report problems then please try to send high quality
481 feedback. If you don't provide vital information to help us track down
482 the problem then you will probably be ignored.  All bug reports should
483 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
484 database (https://bugzilla.samba.org/).
487 ======================================================================
488 == Our Code, Our Bugs, Our Responsibility.
489 == The Samba Team
490 ======================================================================
493 ----------------------------------------------------------------------
496                    ==============================
497                    Release Notes for Samba 4.6.0
498                            March 7, 2017
499                    ==============================
502 This is the first stable release of Samba 4.6.
503 Please read the release notes carefully before upgrading.
506 UPGRADING
507 =========
509 ID Mapping
510 ----------
511 We discovered that the majority of users have an invalid or incorrect
512 ID mapping configuration. We implemented checks in the 'testparm' tool to
513 validate the ID mapping configuration. You should run it and check if it prints
514 any warnings or errors after upgrading! If it does you should fix them. See the
515 'IDENTITY MAPPING CONSIDERATIONS' section in the smb.conf manpage.
516 There are some ID mapping backends which are not allowed to be used for the
517 default backend. Winbind will no longer start if an invalid backend is
518 configured as the default backend.
520 To avoid problems in future we advise all users to run 'testparm' after
521 changing the smb.conf file!
523 vfs_fruit option "fruit:resource" spelling correction
524 -----------------------------------------------------
526 Due to a spelling error in the vfs_fruit option parsing for the "fruit:resource"
527 option, users who have set this option in their smb.conf were still using the
528 default setting "fruit:resource = file" as the parser was looking for the string
529 "fruit:ressource" (two "s").
531 After upgrading to this Samba version 4.6, you MUST either remove the option
532 from your smb.conf or set it to the default "fruit:resource = file", otherwise
533 your macOS clients will not be able to access the resource fork data.
535 This version Samba 4.6 accepts both the correct and incorrect spelling, but the
536 next Samba version 4.7 will not accept the wrong spelling.
538 Users who were using the wrong spelling "ressource" with two "s" can keep the
539 setting, but are advised to switch to the correct spelling.
541 vfs_fruit Netatalk metadata xattr name on *BSD
542 ----------------------------------------------
544 Users on *BSD must rename the metadata xattr used by vfs_fruit when
545 using the default setting "fruit:metadata = netatalk".
547 Due to a glitch in the Samba xattr API compatibility layer for FreeBSD and a
548 mistake in vfs_fruit, vfs_fruit ended up using the wrong xattr name when
549 configured with "fruit:metadata = netatalk" (default). Instead of the correct
551   org.netatalk.Metadata
553 it used
555   netatalk.Metadata
557 Starting with Samba 4.6 vfs_fruit will use the correct "org.netatalk.Metadata"
558 which means existing installations must rename this xattrs. For this purpose
559 Samba now includes a new tool `mvxattr`. See below for further details.
562 NEW FEATURES/CHANGES
563 ====================
565 Kerberos client encryption types
566 --------------------------------
567 Some parts of Samba (most notably winbindd) perform Kerberos client
568 operations based on a Samba-generated krb5.conf file. A new
569 parameter, "kerberos encryption types" allows configuring the
570 encryption types set in this file, thereby allowing the user to
571 enforce strong or legacy encryption in Kerberos exchanges.
573 The default value of "all" is compatible with previous behavior, allowing
574 all encryption algorithms to be negotiated. Setting the parameter to "strong"
575 only allows AES-based algorithms to be negotiated. Setting the parameter to
576 "legacy" allows only RC4-HMAC-MD5 - the legacy algorithm for Active Directory.
577 This can solves some corner cases of mixed environments with Server 2003R2 and
578 newer DCs.
580 Printing
581 --------
582 Support for uploading printer drivers from newer Windows clients (Windows 10)
583 has been added until our implementation of [MS-PAR] protocol is ready.
584 Several issues with uploading different printing drivers have been addressed.
586 The OS Version for the printing server has been increased to announce
587 Windows Server 2003 R2 SP2. If a driver needs a newer version then you should
588 check the smb.conf manpage for details.
590 New option for owner inheritance
591 --------------------------------
592 The "inherit owner" smb.conf parameter instructs smbd to set the
593 owner of files to be the same as the parent directory's owner.
594 Up until now, this parameter could be set to "yes" or "no".
595 A new option, "unix only", enables this feature only for the UNIX owner
596 of the file, not affecting the SID owner in the Windows NT ACL of the
597 file. This can be used to emulate something very similar to folder quotas.
599 Multi-process Netlogon support
600 ------------------------------
602 The Netlogon server in the Samba AD DC can now run as multiple
603 processes.  The Netlogon server is a part of the AD DC that handles
604 NTLM authentication on behalf of domain members, including file
605 servers, NTLM-authenticated web servers and 802.1x gateways.  The
606 previous restriction to running as a single process has been removed,
607 and it will now run in the same process model as the rest of the
608 'samba' binary.
610 As part of this change, the NETLOGON service will now run on a distinct
611 TCP port, rather than being shared with all other RPC services (LSA,
612 SAMR, DRSUAPI etc).
614 New options for controlling TCP ports used for RPC services
615 -----------------------------------------------------------
617 The new 'rpc server port' option controls the default port used for
618 RPC services other than Netlogon.  The Netlogon server honours instead
619 the 'rpc server port:netlogon' option.  The default value for both
620 these options is the first available port including or after 1024.
622 AD LDAP and replication performance improvements
623 ------------------------------------------------
625 Samba's LDB (the database holding the AD directory tree, as seen via
626 LDAP) and our DRSUAPI replication code continues to improve,
627 particularly in respect to the handling of large numbers of objects or
628 linked attributes.
630  * We now respect an 'uptodateness vector' which will dramatically
631    reduce the over-replication of links from new DCs.
633  * We have also made the parsing of on-disk linked attributes much
634    more efficient.
636  * We rely on ldb 1.1.28.  This ldb version has improved memory
637    handling for ldb search results, improving poorly indexed and
638    unindexed search result processing speed by around 20%.
640 DNS improvements
641 ----------------
643 The samba-tool dns subcommand is now much more robust and can delete
644 records in a number of situations where it was not possible to do so
645 in the past.
647 On the server side, DNS names are now more strictly validated.
649 CTDB changes
650 ------------
652 * "ctdb event" is a new top-level command for interacting with event scripts
654   "ctdb event status" replaces "ctdb scriptstatus" - the latter is
655   maintained for backward compatibility but the output format has been
656   cleaned up
658   "ctdb event run" replaces "ctdb eventscript"
660   "ctdb event script enable" replaces "ctdb enablescript"
662   "ctdb event script disable" replaces "ctdb disablescript"
664   The new command "ctdb event script list" lists event scripts.
666 * CTDB's back-end for running event scripts has been replaced by a
667   separate, long-running daemon ctdbd_eventd.
669 * Running ctdb interactively will log to stderr
671 * CTDB logs now include process id for each process
673 * CTDB tags log messages differently.  Changes include:
675   ctdb-recoverd: Messages from CTDB's recovery daemon
676   ctdb-recovery: Messages from CTDB database recovery
677   ctdb-eventd: Messages from CTDB's event daemon
678   ctdb-takeover: Messages from CTDB's public IP takeover subsystem
680 * The mapping between symbolic and numeric debug levels has changed
682   Configurations containing numeric debug levels should be updated.
683   Symbolic debug levels are recommended.  See the DEBUG LEVEL section
684   of ctdb(7) for details.
686 * Tunable IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPs
688   See ctdb-tunables(7) for details.
690 * CTDB's configuration tunables should be consistently set across a cluster
692   This has always been the cases for most tunables but this fact is
693   now documented.
695 * CTDB ships with recovery lock helper call-outs for etcd and Ceph RADOS
697   To build/install these, use the "--enable-etcd-reclock" and
698   "--enable-ceph-reclock" configure options.
700 winbind changes
701 ---------------
703 winbind contains code that tries to emulate the group membership calculation
704 that domain controllers do when a user logs in. This group membership calculation
705 is a very complex process, in particular for domain trust relationship
706 situations. Also, in many scenarios it is impossible for winbind to
707 correctly do this calculation due to access restrictions in the
708 domains: winbind using its machine account simply does not have the
709 rights to ask for an arbitrary user's group memberships.
711 When a user logs in to a Samba server, the domain controller correctly
712 calculates the user's group memberships authoritatively and makes the
713 information available to the Samba server. This is the only reliable
714 way Samba can get informed about the groups a user is member of.
716 Because of its flakiness, the fallback group membership code is unwished,
717 and our code pathes try hard to only use of the group memberships
718 calculated by the domain controller.
720 However, a lot of admins rely on the fallback behavior in order to support
721 access for nfs access, ssh public key authentication and passwordless sudo.
723 That's the reason for changing this back between 4.6.0rc4 and 4.6.0
724 (See BUG 12612).
726 The winbind change to simplify the calculation of supplementary groups to make
727 it more reliable and predictable has been deferred to 4.7 or later.
729 This means that 'id <username>' without the user having logged in
730 previously works similar to 4.5.
732 winbind primary group and nss info
733 ----------------------------------
735 With 4.6, it will be possible to optionally use the primary group as
736 set in the "Unix Attributes" tab for the local unix token of a domain
737 user.  Before 4.6, the Windows primary group was always chosen as
738 primary group for the local unix token.
740 To activate the unix primary group, set
742 idmap config <DOMAIN> : unix_primary_group = yes
744 Similarly, set
746 idmap config <DOMAIN> : unix_nss_info = yes
748 to retrieve the home directory and login shell from the "Unix
749 Attributes" of the user. This supersedes the "winbind nss info"
750 parameter with a per-domain configuration option.
752 mvxattr
753 -------
755 mvxattr is a simple utility to recursively rename extended attributes of all
756 files and directories in a directory tree.
758   Usage: mvxattr -s STRING -d STRING PATH [PATH ...]
759     -s, --from=STRING         xattr source name
760     -d, --to=STRING           xattr destination name
761     -l, --follow-symlinks     follow symlinks, the default is to ignore them
762     -p, --print               print files where the xattr got renamed
763     -v, --verbose             print files as they are checked
764     -f, --force               force overwriting of destination xattr
766   Help options:
767     -?, --help                Show this help message
768     --usage                   Display brief usage message
770 idmap_hash
771 ----------
773 The idmap_hash module is marked as deprecated with this release and will be
774 removed in a future version. See the manpage of the module for details.
777 smb.conf changes
778 ================
780   Parameter Name                Description             Default
781   --------------                -----------             -------
782   kerberos encryption types     New                     all
783   inherit owner                 New option
784   fruit:resource                Spelling correction
785   lsa over netlogon             New (deprecated)        no
786   rpc server port               New                     0
789 KNOWN ISSUES
790 ============
792 https://wiki.samba.org/index.php/Release_Planning_for_Samba_4.6#Release_blocking_bugs
795 CHANGES SINCE 4.6.0rc4
796 ======================
798 o  Jeremy Allison <jra@samba.org>
799    * BUG 12592: Fix several issues found by covscan.
800    * BUG 12608: s3: smbd: Restart reading the incoming SMB2 fd when the send
801      queue is drained.
803 o  Ralph Boehme <slow@samba.org>
804    * BUG 12427: vfs_fruit doesn't work with fruit:metadata=stream.
805    * BUG 12526: vfs_fruit: Only veto AppleDouble files if "fruit:resource" is
806      set to "file".
807    * BUG 12604: vfs_fruit: Enabling AAPL extensions must be a global switch.
809 o  Volker Lendecke <vl@samba.org>
810    * BUG 12612: Re-enable token groups fallback.
812 o  Stefan Metzmacher <metze@samba.org>
813    * BUG 9048: Samba4 ldap error codes.
814    * BUG 12557: gensec:spnego: Add debug message for the failed principal.
815    * BUG 12605: s3:winbindd: Fix endless forest trust scan.
816    * BUG 12612: winbindd: Find the domain based on the sid within
817      wb_lookupusergroups_send().
819 o  Andreas Schneider <asn@samba.org>
820    * BUG 12557: s3:librpc: Handle gss_min in gse_get_client_auth_token()
821      correctly.
822    * BUG 12582: idmap_hash: Add a deprecation message, improve the idmap_hash
823      manpage.
824    * BUG 12592: Fix several issues found by covscan.
826 o  Martin Schwenke <martin@meltin.net>
827    * BUG 12592: ctdb-logging: CID 1396883 Dereference null return value
828      (NULL_RETURNS).
831 CHANGES SINCE 4.6.0rc3
832 ======================
834 o  Jeremy Allison <jra@samba.org>
835    * BUG 12545: s3: rpc_server/mdssvc: Add attribute "kMDItemContentType".
836    * BUG 12572: s3: smbd: Don't loop infinitely on bad-symlink resolution.
838 o  Ralph Boehme <slow@samba.org>
839    * BUG 12490: vfs_fruit: Correct Netatalk metadata xattr on FreeBSD.
840    * BUG 12536: s3/smbd: Check for invalid access_mask
841      smbd_calculate_access_mask().
842    * BUG 12591: vfs_streams_xattr: use fsp, not base_fsp.
844 o  Amitay Isaacs <amitay@gmail.com>
845    * BUG 12580: ctdb-common: Fix use-after-free error in comm_fd_handler().
846    * BUG 12595: build: Fix generation of CTDB manpages while creating tarball.
848 o  Bryan Mason <bmason@redhat.com>
849    * BUG 12575: Modify smbspool_krb5_wrapper to just fall through to smbspool if
850      AUTH_INFO_REQUIRED is not set or is not "negotiate".
852 o  Stefan Metzmacher <metze@samba.org>
853    * BUG 11830: s3:winbindd: Try a NETLOGON connection with noauth over NCACN_NP
854      against trusted domains.
855    * BUG 12262: 'net ads testjoin' and smb access fails after winbindd changed the
856      trust password.
857    * BUG 12585: librpc/rpc: fix regression in
858      NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE error mapping.
859    * BUG 12586: netlogon_creds_cli_LogonSamLogon doesn't work without
860      netr_LogonSamLogonEx.
861    * BUG 12587: winbindd child segfaults on connect to an NT4 domain.
862    * BUG 12588: s3:winbindd: Make sure cm_prepare_connection() only returns OK
863      with a valid tree connect.
864    * BUG 12598: winbindd (as member) requires kerberos against trusted ad domain,
865      while it shouldn't.
866    * BUG 12601: Backport pytalloc_GenericObject_reference() related changes to
867      4.6.
869 o  Garming Sam <garming@catalyst.net.nz>
870    * BUG 12600: dbchecker: Stop ignoring linked cases where both objects are
871      alive.
873 o  Andreas Schneider <asn@samba.org>
874    * BUG 12571: s3-vfs: Only walk the directory once in open_and_sort_dir().
876 o  Martin Schwenke <martin@meltin.net>
877    * BUG 12589: CTDB statd-callout does not cause grace period when
878      CTDB_NFS_CALLOUT="".
879    * BUG 12595: ctdb-build: Fix RPM build.
882 CHANGES SINCE 4.6.0rc2
883 ======================
885 o  Jeremy Allison <jra@samba.org>
886    * BUG 12499: s3: vfs: dirsort doesn't handle opendir of "." correctly.
887    * BUG 12546: s3: VFS: vfs_streams_xattr.c: Make streams_xattr_open() store
888      the same path as streams_xattr_recheck().
889    * BUG 12531: Make vfs_shadow_copy2 cope with server changing directories.
891 o  Andrew Bartlett <abartlet@samba.org>
892    * BUG 12543: samba-tool: Correct handling of default value for use_ntvfs and
893      use_xattrs.
894    * BUG 12573: Samba < 4.7 does not know about compatibleFeatures and
895      requiredFeatures.
896    * BUG 12577: 'samba-tool dbcheck' gives errors on one-way links after a
897      rename.
899 o  Ralph Boehme <slow@samba.org>
900    * BUG 12184: s3/rpc_server: Shared rpc modules loading.
901    * BUG 12520: Ensure global "smb encrypt = off" is effective.
902    * BUG 12524: s3/rpc_server: Move rpc_modules.c to its own subsystem.
903    * BUG 12541: vfs_fruit: checks wrong AAPL config state and so always uses
904      readdirattr.
906 o  Volker Lendecke <vl@samba.org>
907    * BUG 12551: smbd: Fix "map acl inherit" = yes.
909 o  Stefan Metzmacher <metze@samba.org>
910    * BUG 12398: Replication with DRSUAPI_DRS_CRITICAL_ONLY and
911      DRSUAPI_DRS_GET_ANC results in WERR_DS_DRA_MISSING_PARENT S
912    * BUG 12540: s3:smbd: allow "server min protocol = SMB3_00" to go via "SMB
913      2.???" negprot.
915 o  John Mulligan <jmulligan@nasuni.com>
916    * BUG 12542: docs: Improve description of "unix_primary_group" parameter in
917      idmap_ad manpage.
919 o  Andreas Schneider <asn@samba.org>
920    * BUG 12552: waf: Do not install the unit test binary for krb5samba.
922 o  Amitay Isaacs <amitay@gmail.com>
923    * BUG 12547: ctdb-build: Install CTDB tests correctly from toplevel.
924    * BUG 12549: ctdb-common: ioctl(.. FIONREAD ..) returns an int value.
926 o  Garming Sam <garming@catalyst.net.nz>
927    * BUG 12577: 'samba-tool dbcheck' gives errors on one-way links after a
928      rename.
930 o  Uri Simchoni <uri@samba.org>
931    * BUG 12529: waf: Backport finding of pkg-config.
934 CHANGES SINCE 4.6.0rc1
935 ======================
937 o  Amitay Isaacs <amitay@gmail.com>
938    * BUG 12469: CTDB lock helper getting stuck trying to lock a record.
939    * BUG 12500: ctdb-common: Fix a bug in packet reading code for generic socket
940      I/O.
941    * BUG 12510: sock_daemon_test 4 crashes with SEGV.
942    * BUG 12513: ctdb-daemon: Remove stale eventd socket.
944 o  Björn Jacke <bj@sernet.de>
945    * BUG 12535: vfs_default: Unlock the right file in copy chunk.
947 o  Volker Lendecke <vl@samba.org>
948    * BUG 12509: messaging: Fix dead but not cleaned-up-yet destination sockets.
949    * BUG 12538: Backport winbind fixes.
951 o  Stefan Metzmacher <metze@samba.org>
952    * BUG 12501: s3:winbindd: talloc_steal the extra_data in
953      winbindd_list_users_recv().
955 o  Martin Schwenke <martin@meltin.net>
956    * BUG 12511: ctdb-takeover: Handle case where there are no RELEASE_IPs to
957      send.
958    * BUG 12512: ctdb-scripts: Fix remaining uses of "ctdb gratiousarp".
959    * BUG 12516: ctdb-scripts: /etc/iproute2/rt_tables gets populated with multiple
960      'default' entries.
963 #######################################
964 Reporting bugs & Development Discussion
965 #######################################
967 Please discuss this release on the samba-technical mailing list or by
968 joining the #samba-technical IRC channel on irc.freenode.net.
970 If you do report problems then please try to send high quality
971 feedback. If you don't provide vital information to help us track down
972 the problem then you will probably be ignored.  All bug reports should
973 be filed under the Samba 4.1 and newer product in the project's Bugzilla
974 database (https://bugzilla.samba.org/).
977 ======================================================================
978 == Our Code, Our Bugs, Our Responsibility.
979 == The Samba Team
980 ======================================================================