WHATSNEW: Update changes since rc1.
[Samba.git] / WHATSNEW.txt
blobc3c514c9167b9814a6d26700835d66362543a360
1                    ================================
2                    Release Notes for Samba 3.6.0rc2
3                             June 7, 2011
4                    ================================
7 This is the second release candidate of Samba 3.6.0.  This is *not*
8 intended for production environments and is designed for testing
9 purposes only.  Please report any defects via the Samba bug reporting
10 system at https://bugzilla.samba.org/.
13 Major enhancements in Samba 3.6.0 include:
16 Changed security defaults
17 -------------------------
19 Samba 3.6 has adopted a number of improved security defaults that will
20 impact on existing users of Samba.
22  client ntlmv2 auth = yes
23  client use spnego principal = no
24  send spnego principal = no
26 The impact of 'client ntlmv2 auth = yes' is that by default we will not
27 use NTLM authentication as a client.  This applies to the Samba client
28 tools such as smbclient and winbind, but does not change the separately
29 released in-kernel CIFS client.  To re-enable the poorer NTLM encryption
30 set '--option=clientusentlmv2auth=no' on your smbclient command line, or
31 set 'client ntlmv2 auth = no' in your smb.conf
33 The impact of 'client use spnego principal = no' is that we may be able
34 to use Kerberos to communicate with a server less often in smbclient,
35 winbind and other Samba client tools.  We may fall back to NTLMSSP in
36 more situations where we would previously rely on the insecure
37 indication from the 'NegProt' CIFS packet.  This mostly occursed when
38 connecting to a name alias not recorded as a servicePrincipalName for
39 the server.  This indication is not available from Windows 2008 or later
40 in any case, and is not used by modern Windows clients, so this makes
41 Samba's behaviour consistent with other clients and against all servers.
43 The impact of 'send spnego principal = no' is to match Windows 2008 and
44 not to send this principal, making existing clients give more consistent
45 behaviour (more likely to fall back to NTLMSSP) between Samba and
46 Windows 2008, and between Windows versions that did and no longer use
47 this insecure hint.
50 SMB2 support
51 ------------
53 SMB2 support in 3.6.0 is fully functional (with one omission),
54 and can be enabled by setting:
56 max protocol = SMB2
58 in the [global] section of your smb.conf and re-starting
59 Samba. All features should work over SMB2 except the modification
60 of user quotas using the Windows quota management tools.
62 As this is the first release containing what we consider
63 to be a fully featured SMB2 protocol, we are not enabling
64 this by default, but encourage users to enable SMB2 and
65 test it. Once we have enough confirmation from Samba
66 users and OEMs that SMB2 support is stable in wide user
67 testing we will enable SMB2 by default in a future Samba
68 release.
71 Internal Winbind passdb changes
72 -------------------------------
74 Winbind has been changed to use the internal samr and lsa rpc pipe to get
75 local user and group information instead of calling passdb functions. The
76 reason is to use more of our infrastructure and test this infrastructure by
77 using it. With this approach more code in Winbind is shared.
80 New Spoolss code
81 ----------------
83 The spoolss and the old RAP printing code have been completely
84 overhauled and refactored.
86 All calls from lanman/printing code has been changed to go through the
87 spoolss RPC interfaces, this allows us to keep all checks in one place
88 and avoid special cases in the main printing code.
89 Printing code has been therefore confined within the spoolss code.
91 All the printing code, including the spoolss RPC interfaces has been
92 changed to use the winreg RPC interfaces to store all data.
93 All data has been migrated from custom, arbitrary TDB files to the
94 registry interface. This transition allow us to present correct data to
95 windows client accessing the server registry through the winreg RPC
96 interfaces to query for printer data. Data is served out from a real
97 registry implementation and therefore arguably 100% forward compatible.
99 Migration code from the previous TDB files formats is provided. This
100 code is automatically invoked the first time the new code is run on the
101 server. Although manual migration is also available using the 'net
102 printer migrate' command.
104 These changes not only make all the spoolss code much more closer to
105 "the spec", it also greatly improves our internal testing of both
106 spoolss and winreg interfaces, and reduces overall code duplication.
108 As part of this work, new tests have been also added to increase
109 coverage.
111 This code will also allow, in future, an easy transition to split out
112 the spooling functions into a separate daemon for those OEMs that do not
113 need printing functionality in their appliances, reducing the code
114 footprint.
117 ID Mapping Changes
118 ------------------
120 The id mapping configuration has been a source of much grief in the past.
121 For this release, id mapping has been rewritten yet again with the goal
122 of making the configuration more simple and more coherent while keeping
123 the needed flexibility and even adding to the flexibility in some respects.
125 The major change that implies the configuration simplifications is at
126 the heart of the id mapping system: The separation of the "idmap alloc
127 system" that is responsible for the unix id counters in the tdb, tdb2
128 and ldap idmap backends from the id mapping code itself has been removed.
129 The sids_to_unixids operation is now atomic and encapsulates (if needed)
130 the action of allocating a unix id for a mapping that is to be created.
131 Consequently all idmap alloc configuration parameters have vanished and
132 it is hence now also not possible any more to specify an idmap alloc
133 backend different from the idmap backend. Each idmap backend uses its
134 own idmap unixid creation mechanism transparently.
136 As a consequence of the id mapping changes, the methods that are used
137 for storing and deleting id mappings have been removed from the winbindd
138 API. The "net idmap dump/restore" commands have been rewritten to
139 not speak through winbindd any more but directly act on the databases.
140 This is currently available for the tdb and tdb2 backends, the implementation
141 for ldap still missing.
143 The allocate_id functionality is preserved for the unix id creator of the
144 default idmap configuration is also used as the source of unix ids
145 for the group mapping database and for the posix attributes in a
146 ldapsam:editposix setup.
148 As part of the changes, the default idmap configuration has been
149 changed to be more coherent with the per-domain configuration.
150 The parameters "idmap uid", "idmap gid" and "idmap range" are now
151 deprecated in favour of the systematic "idmap config * : range"
152 and "idmap config * : backend" parameters. The reason for this change
153 is that the old options only provided an incomplete and hence deceiving
154 backwards compatibility, which was a source of many problems with
155 upgrades. By introducing this change in configuration, it should be
156 brought to the conciousness of the users that even the simple
157 id mapping is not working exactly as in Samba 3.0 versions any more.
160 Endpoint Mapper
161 ---------------
163 As Microsoft is more and more relying on endpoint mapper and we didn't have a
164 complete implementation we decided to create an instance for Samba. The
165 endpoint mapper is like a DNS server but for ports. If you want to talk to a
166 certain RPC service over TCP/IP, you just ask the endpoint mapper on which
167 port it is running. Then you can connect to the service and make sure that it
168 is running.
170 The code is deactivated by default, because it needs more testing and it
171 doesn't scale yet. If you want to enable and test the endpoint mapper
172 you can set "rpc_server:epmapper = daemon" in the smb.conf file.
175 Internal restructuring
176 ----------------------
178 Ongoing internal restructuring for better separation of internal subsystem to
179 achieve a faster build, smaller binaries and cleaner dependencies for the samba3
180 waf build.
183 SMB Traffic Analyzer
184 --------------------
186 Added the new SMB Traffic Analyzer (SMBTA) VFS module protocol 2
187 featuring encryption, multiple arguments, and easier parseability. A new
188 tool 'smbta-util' has been created to control the encryption behaviour
189 of SMBTA. For compatibility, SMBTA by default operates on version 1.
190 There are programs consuming the data that the module sends.
192 More information can be found on
193 http://holger123.wordpress.com/smb-traffic-analyzer/
196 NFS quota backend on Linux
197 --------------------------
199 A new nfs quota backend for Linux has been added that is based
200 on the existing Solaris/FreeBSD implementation. This allows samba
201 to communicate correct diskfree information for nfs imports that
202 are re-exported as samba shares.
205 ######################################################################
206 Changes
207 #######
209 smb.conf changes
210 ----------------
212    Parameter Name                      Description     Default
213    --------------                      -----------     -------
215    async smb echo handler              New             No
216    client ntlmv2 auth                  Changed Default Yes
217    client use spnego principal         New             No
218    ctdb locktime warn threshold        New             0
219    idmap alloc backend                 Removed
220    log writeable files on exit         New             No
221    multicast dns register              New             Yes
222    ncalrpc dir                         New
223    send spnego principal               New             No
224    smb2 max credits                    New             128
225    smb2 max read                       New             1048576
226    smb2 max trans                      New             1048576
227    smb2 max write                      New             1048576
228    username map cache time             New             0
229    winbind max clients                 New             200
231    The variable substitutions for %i and %I no longer
232    use IPv4 addresses mapped to IPv6, e.g. '::ffff:192.168.0.1',
233    if the host has IPv6 enabled. Now %i and %I contain just
234    '192.168.0.1'.
236 Commit Highlights
237 -----------------
239 o   Michael Adam <obnox@samba.org>
240     * ID Mapping changes.
243 o   Jeremy Allison <jra@samba.org>
244     * Implement SMB2 support.
247 o   Stefan Metzmacher <metze@samba.org>
248     * Implement SMB2 support.
251 o   Andreas Schneider <asn@samba.org>
252     * Add an Endpoint Mapper daemon.
255 Changes since 3.6.0rc1
256 ----------------------
258 o   Michael Adam <obnox@samba.org>
259     * BUG 8200: Add support for multiple writeable ldap idmap domains.
262 o   Jeremy Allison <jra@samba.org>
263     * BUG 6911: Fix Kerberos authentication from Vista to Samba.
264     * BUG 7054: Fix X account flag when "pwdlastset" is "0".
265     * BUG 8133: Fix strange behavior for the file (whose filename first
266       character is period ) in SMB2 case.
267     * BUG 8144: Fix setting timestamp when touching files with CIFS clients.
268     * BUG 8150: Ban "dos charset = utf8".
269     * BUG 8153: Fix setting up getaddrinfo on IPv6-only machines.
270     * BUG 8156: Fix 'net ads join' using the user's Kerberos ticket.
271     * BUG 8157: Fix parsing a cups printcap file.
272     * BUG 8163: Fix our asn.1 parser to handle negative numbers.
273     * BUG 8175: Fix smbd deadlock.
274     * BUG 8191: Split the ACE flag mapping between nfs4 and Windows into two
275       separate functions.
276     * BUG 8197: Winbind does not properly detect when a DC connection is dead.
277     * BUG 8203: Winbind needs to reset the DC connection if an RPC times out.
280 o   Christian Ambach <ambi@samba.org>
281     * BUG 8152: Fix smbd crash in release_ip().
284 o   Andrew Bartlett <abartlet@samba.org>
285     * BUG 8151: Deprecate security parameters.
288 o   Gregor Beck <gbeck@sernet.de>
289     * BUG 8191: nfs4_acls: Pass ACE_FLAG_INHERITED_ACE up to the client/down
290       from the client.
291     * BUG 8192: Fix parsing of multiple flags in 'smbcacls'.
294 o   Sumit Bose <sbose@redhat.com>
295     * BUG 8142: Fix typos in LDAP schema files.
298 o   Holger Hetterich <hhetter@novell.com>
299     * BUG 8148: Default to protocol version 2 for SMB Traffic Analyzer.
300     * BUG 8154: Actually make use of SMBTA subversion numbers.
303 o   Björn Jacke <bj@sernet.de>
304     * BUG 7998: Remove warning if IOV_MAX is not defined.
307 o   Jim McDonough <jmcd@samba.org>
308     * BUG 8166: Don't lockout users when offline.
311 o   Stefan Metzmacher <metze@samba.org>
312     * BUG 8140: talloc: Fix Valgrind false positives and other backports.
313     * BUG 8141: Fix wrong permissions on lp_ncalrpc_dir().
316 o   Andreas Schneider <asn@samba.org>
317     * BUG 8155: Fix registering only named pipes on EPM for a service.
320 o   Volker Lendecke <vl@samba.org>
321     * BUG 8159: Fix memory corruption in fetching cli->server_domain from the
322       server.
323     * BUG 8185: "security=server" does not obey guest login field.
324     * BUG 8189: Support shadow copy display over SMB2.
325     * BUG 8199: Fix potential crash in smbd handling smb2.
328 o   Samuel Thibault <sthibault@debian.org>
329     * BUG 7998: Fix build on Hurd.
332 Changes since 3.6.0pre3
333 -----------------------
335 o   Jeremy Allison <jra@samba.org>
336     * BUG 8111: CIFS VFS: Fix unexpected error on SMB posix open.
337     * BUG 8112: POSIX extension opens of a directory are denied with EISDIR.
338     * Remove fstrings from client struct.
339     * BUGFIX when converting from safe_strcpy to strlcpy.
340     * Fix off-by-one calculations with strlcpy.
341     * Ensure we always write the correct incoming mid into the share mode table
342       entries.
343     * Fix the SMB2 oplock showstopper.
346 o   Christian Ambach <christian.ambach@de.ibm.com>
347     * Convert user-specified domain to uppercase in libsmb.
350 o   Günther Deschner <gd@samba.org>
351     * BUG 8132: Fix filling printers location field when using cups.
352     * Fix Coverity CID #2302: FORWARD_NULL.
353     * Fix cups_pull_comment_location().
354     * Fix double free of cups request.
355     * Make cups_pull_comment_location() work again.
356     * Fix potential crash bug in display_print_driver3().
359 o   Volker Lendecke <vl@samba.org>
360     * Properly clean up in pthreadpool_init in case of failure.
361     * Make plaintext session setup async.
362     * Reduce fd load in Winbind children.
363     * Avoid a potential 100% CPU loop in Winbind.
364     * Tune broadcast namequeries for unique names.
365     * Properly deal with exited winbind children.
366     * Fix dup_smb2_vec3.
367     * Fix return check in nss_wins.
370 Changes since 3.6.0pre2
371 -----------------------
373 o   Michael Adam <obnox@samba.org>
374     * Fix build of tdb2.
377 o   Jeremy Allison <jra@samba.org>
378     * BUG 8083: "inherit owner = yes" doesn't interact correctly with
379       vfs_acl_xattr or vfs_acl_tdb module.
380     * BUG 8088: rpccli_samr_chng_pswd_auth_crap segfaults if any input blobs
381       are null.
382     * Correctly detect and deny symlinks anywhere in a path (not just the last
383       component) if "follow symlinks = no".
386 o   Günther Deschner <gd@samba.org>
387     * BUG 8106: Fix the build of 'smbget' on HP NonStop.
388     * Fix timeout in rpc_pipe_open_tcp_port().
389     * Fix the build of "--with-profiling-data".
390     * Fix the AIX 5.3 build.
393 o   Sergey Korsak <skif@1plus1.net>
394     * BUG #8099: setpwent() actually does endpwent() and vice versa on FreeBSD.
397 o   Volker Lendecke <vl@samba.org>
398     * BUG 8066: Fix wrong output in 'smbget'.
399     * Fix Coverity IDs 986, 1340, 2047, 2299, 2307, 2325, 2335, 2336, 2470,
400       2471, 2478.
401     * nsswitch: Add 'wbinfo --lookup-sids'.
402     * nsswitch: Add 'wbinfo --sids-to-unix-ids'.
403     * Fix smbd with the async echo responder.
404     * Fix the build of vfs_gpfs.c.
405     * Add a 10-second timeout for the 445 or netbios connection to a DC.
406     * Many pthreadpool fixes.
409 o   Stefan Metzmacher <metze@samba.org>
410     * BUG 7383: Listen on IPv6 addresses with IPV6_ONLY.
413 o   Rusty Russell <rusty@rustcorp.com.au>
414     * Fix transaction recovery area for converted tdbs.
418 Changes since 3.6.0pre1
419 -----------------------
421 o   Michael Adam <obnox@samba.org>
422     * ID Mapping changes.
423     * Add "--option" to 'testparm'.
426 o   Jeremy Allison <jra@samba.org>
427     * BUG 7080: Quota only shown when logged as root.
428     * BUG 7863: Unlink may unlink wrong file when hardlinks are involved.
429     * BUG 7996: Sgid bit lost on folder rename.
430     * BUG 8040: Fix smbclient segfault with Cyrillic netbios names.
431     * Fix crash bug on smbd shutdown when using FOPENDIR().
432     * Ensure we don't return an incorrect access mask.
433     * Fix bug against the new Mac client.
434     * Fix leak in error path.
435     * Fix error where Windows client spoolss returns WERR_INVALID_DATA.
438 o   Christian Ambach <christian.ambach@de.ibm.com>
439     * Fix a segfault in the krb5 locator plugin.
440     * Enable sharesec for registry shares.
443 o   Andrew Bartlett <abartlet@samba.org>
444     * Fix memory leak in "security=share" and "force user".
447 o   Björn Baumbach <bb@sernet.de>
448     * BUG 7875: Fix 'nmbd --port'.
449     * BUG 7880: cmd_spoolss_deletedriver() returned without checking all
450       architectures.
453 o   Gregor Beck <gbeck@sernet.de>
454     * Add new 'net idmap check' command.
455     * Add new 'net idmap delete' command.
456     * Fix segfault on missing input file in 'net idmap restore'.
459 o   Olly Betts <olly@survex.com>
460     * Fix 'net usersidlist' not to skip every other user.
463 o   Günther Deschner <gd@samba.org>
464     * BUG 7690: Retry DNS updates when connection to one nameserver has failed.
465     * BUG 7945: Let winbind try to use samlogon validation level 6.
466     * Fix Coverity ID 2041.
467     * Fix potential crash bug in spoolss_PrinterEnumValues push path.
468     * Internal restructuring.
469     * Don't wipe out all printer drivers when only one should be deleted.
470     * Fix winbindd_dual_pam_auth_samlogon() for NT4 domains.
473 o   David Disseldorp <ddiss@suse.de>
474     * BUG 7915: Fix cups pcap reload with no printers.
475     * BUG 8040: Fix smbclient segfault with Cyrillic netbios names.
476     * Fix memory leak in print_cups.c.
477     * Remove duplicate cups response processing code.
478     * Follow force user/group for driver IO.
479     * Initiate pcap reload from parent smbd.
480     * Reload shares after pcap cache fill.
483 o   Björn Jacke <bj@sernet.de>
484     * BUG 8033: Add explicit configure option whether or not to enable dmapi
485       support.
488 o   Volker Lendecke <vl@samba.org>
489     * BUG 7917: Fix bug in chain_reply.
490     * BUG 7940: Fall back for utimes calls.
491     * BUG 8009: Fix getting username in 'net rap session'.
492     * BUG 8010: Use jenkins hash for str_checksum.
493     * BUG 8042: Fix file creation on OS/X.
494     * Fix numerous Coverity IDs.
495     * Fix a memory leak in check_sam_security_info3.
496     * Fix a segfault in the nss wrapper when libnss_winbind.so is not loadable.
497     * Make "net sam list [users|workstations]" list only the right things.
498     * Fix a potential memleak in secrets_fetch_trusted_domain_password.
499     * Use the right credentials in check_netlogond_security.
500     * Add support for AF_NETLINK addr notifications.
501     * Fork multiple Winbind children per domain.
502     * Fix a deadlock between smbd and ctdbd.
503     * Add 'wbinfo --dc-info'.
504     * Make "nmbd socket dir" configurable.
505     * Fix a valgrind error.
506     * Fix a memleak in receive_getdc_response.
509 o   Nikolay Martynov <mar.kolya@gmail.com>
510     * BUG 8010: Fix inode generation so nautilus can count total dir size
511       correctly.
514 o   Stefan Metzmacher <metze@samba.org>
515     * BUG 7567: Fix printing from Windows 7.
516     * BUG 7899: Don't return "-1" on success in 'net rpc vampire keytab'.
517     * BUG 7944: Catch lookup_names/sids schannel errors over ncacn_ip_tcp.
518     * Don't grant SEC_STD_DELETE always to the owner of a file.
519     * Fix segfaults on addrchange errors in Winbind.
520     * Allow machine accounts as members in groupdb.
523 o   Jonathan Nieder <jrnieder@gmail.com>
524     * BUG 6837: Make "rlimit_max below minimum Windows limit" notification less
525       scary.
528 o   Andreas Schneider <asn@samba.org>
529     * Add an Endpoint Mapper daemon.
530     * Add IPv6 support for the endpoint mapper.
531     * Free unused memory in the rpc server.
532     * Fix possible segfaults in svcctl server.
533     * Fix possible segfault with client_id in rpc server.
534     * Add a 'svcctl shutdown' function to rpc server.
535     * Fix a resource leak in net_afs.
536     * Fix a resource leak in smbta-util.
537     * Fix possible resource leak in net_usershare.
538     * Fix possible resource leak in 'smbget'.
539     * Fix possible resource leak in 'smbfilter'.
540     * Fix a possible null pointer dereference in smbd.
543 o   Pavel Shilovsky <piastry@etersoft.ru>
544     * BUG 7928: Fix problems with "kernel oplocks" option set to "no".
545     * Ensure we send the direct levelII oplock break to the correct fid.
548 o   Simo Sorce <idra@samba.org>
549     * Fix private libdir and codepages paths.
552 o   Andrew Tridgell <tridge@samba.org>
553     * Fix a valgrind error.
556 ######################################################################
557 Reporting bugs & Development Discussion
558 #######################################
560 Please discuss this release on the samba-technical mailing list or by
561 joining the #samba-technical IRC channel on irc.freenode.net.
563 If you do report problems then please try to send high quality
564 feedback. If you don't provide vital information to help us track down
565 the problem then you will probably be ignored.  All bug reports should
566 be filed under the Samba 3.6 product in the project's Bugzilla
567 database (https://bugzilla.samba.org/).
570 ======================================================================
571 == Our Code, Our Bugs, Our Responsibility.
572 == The Samba Team
573 ======================================================================