CVE-2015-5370: s4:librpc/rpc: call dcerpc_connection_dead() on protocol errors
[samba.git] / WHATSNEW.txt
1                    =============================
2                    Release Notes for Samba 4.2.9
3                            March 8, 2016
4                    =============================
5
6
7 This is a security release in order to address the following CVEs:
8
9 o  CVE-2015-7560 (Incorrect ACL get/set allowed on symlink path)
10 o  CVE-2016-0771 (Out-of-bounds read in internal DNS server)
11
12 =======
13 Details
14 =======
15
16 o  CVE-2015-7560:
17    All versions of Samba from 3.2.0 to 4.4.0rc3 inclusive are vulnerable to
18    a malicious client overwriting the ownership of ACLs using symlinks.
19
20    An authenticated malicious client can use SMB1 UNIX extensions to
21    create a symlink to a file or directory, and then use non-UNIX SMB1
22    calls to overwrite the contents of the ACL on the file or directory
23    linked to.
24
25 o  CVE-2016-0771:
26    All versions of Samba from 4.0.0 to 4.4.0rc3 inclusive, when deployed as
27    an AD DC and choose to run the internal DNS server, are vulnerable to an
28    out-of-bounds read issue during DNS TXT record handling caused by users
29    with permission to modify DNS records.
30
31    A malicious client can upload a specially constructed DNS TXT record,
32    resulting in a remote denial-of-service attack. As long as the affected
33    TXT record remains undisturbed in the Samba database, a targeted DNS
34    query may continue to trigger this exploit.
35
36    While unlikely, the out-of-bounds read may bypass safety checks and
37    allow leakage of memory from the server in the form of a DNS TXT reply.
38
39    By default only authenticated accounts can upload DNS records,
40    as "allow dns updates = secure only" is the default.
41    Any other value would allow anonymous clients to trigger this
42    bug, which is a much higher risk.
43
44
45 Changes since 4.2.8:
46 --------------------
47
48 o  Jeremy Allison <jra@samba.org>
49    * BUG 11648: CVE-2015-7560: Getting and setting Windows ACLs on symlinks can
50      change permissions on link target.
51
52 o  Garming Sam <garming@catalyst.net.nz>
53    * BUGs 11128, 11686: CVE-2016-0771: Read of uninitialized memory DNS TXT
54      handling.
55
56 o  Stefan Metzmacher <metze@samba.org>
57    * BUGs 11128, 11686: CVE-2016-0771: Read of uninitialized memory DNS TXT
58      handling.
59
60
61 #######################################
62 Reporting bugs & Development Discussion
63 #######################################
64
65 Please discuss this release on the samba-technical mailing list or by
66 joining the #samba-technical IRC channel on irc.freenode.net.
67
68 If you do report problems then please try to send high quality
69 feedback. If you don't provide vital information to help us track down
70 the problem then you will probably be ignored.  All bug reports should
71 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
72 database (https://bugzilla.samba.org/).
73
74
75 ======================================================================
76 == Our Code, Our Bugs, Our Responsibility.
77 == The Samba Team
78 ======================================================================
79
80
81 Release notes for older releases follow:
82 ----------------------------------------
83
84                    =============================
85                    Release Notes for Samba 4.2.8
86                           February 2, 2016
87                    =============================
88
89
90 This is the latest stable release of Samba 4.2.
91
92
93 Changes since 4.2.7:
94 --------------------
95
96 o  Michael Adam <obnox@samba.org>
97    * BUG 11647: s3:smbd: Fix a corner case of the symlink verification.
98
99
100 o  Jeremy Allison <jra@samba.org>
101    * BUG 11624: s3: libsmb: Correctly initialize the list head when keeping a
102      list of primary followed by DFS connections.
103    * BUG 11625: Reduce the memory footprint of empty string options.
104
105
106 o  Christian Ambach <ambi@samba.org>
107    * BUG 11400: s3:smbd/oplock: Obey kernel oplock setting when releasing
108      oplocks.
109
110
111 o  Ralph Boehme <slow@samba.org>
112    * BUG 11065: vfs_fruit: Fix renaming directories with open files.
113    * BUG 11347: Fix MacOS finder error 36 when copying folder to Samba.
114    * BUG 11466: Fix copying files with vfs_fruit when using vfs_streams_xattr
115      without stream prefix and type suffix.
116    * BUG 11645: smbd: make "hide dot files" option work with "store dos
117      attributes = yes".
118    * BUG 11684: s3:smbd: Ignore initial allocation size for directory creation.
119
120
121 o  Günther Deschner <gd@samba.org>
122    * BUG 11639: lib/async_req: Do not install async_connect_send_test.
123
124
125 o  Karolin Seeger <kseeger@samba.org>
126    * BUG 11641: docs: Fix typos in man vfs_gpfs.
127
128
129 o  Uri Simchoni <uri@samba.org>
130    * BUG 11682: smbcacls: Fix uninitialized variable.
131
132
133 #######################################
134 Reporting bugs & Development Discussion
135 #######################################
136
137 Please discuss this release on the samba-technical mailing list or by
138 joining the #samba-technical IRC channel on irc.freenode.net.
139
140 If you do report problems then please try to send high quality
141 feedback. If you don't provide vital information to help us track down
142 the problem then you will probably be ignored.  All bug reports should
143 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
144 database (https://bugzilla.samba.org/).
145
146
147 ======================================================================
148 == Our Code, Our Bugs, Our Responsibility.
149 == The Samba Team
150 ======================================================================
151
152
153 ----------------------------------------------------------------------
154
155
156                    =============================
157                    Release Notes for Samba 4.2.7
158                          December 16, 2015
159                    =============================
160
161
162 This is a security release in order to address the following CVEs:
163
164 o  CVE-2015-3223 (Denial of service in Samba Active Directory
165                   server)
166 o  CVE-2015-5252 (Insufficient symlink verification in smbd)
167 o  CVE-2015-5299 (Missing access control check in shadow copy
168                   code)
169 o  CVE-2015-5296 (Samba client requesting encryption vulnerable
170                   to downgrade attack)
171 o  CVE-2015-8467 (Denial of service attack against Windows
172                   Active Directory server)
173 o  CVE-2015-5330 (Remote memory read in Samba LDAP server)
174
175 Please note that if building against a system libldb, the required
176 version has been bumped to ldb-1.1.24.  This is needed to ensure
177 we build against a system ldb library that contains the fixes
178 for CVE-2015-5330 and CVE-2015-3223.
179
180 =======
181 Details
182 =======
183
184 o  CVE-2015-3223:
185    All versions of Samba from 4.0.0 to 4.3.2 inclusive (resp. all
186    ldb versions up to 1.1.23 inclusive) are vulnerable to
187    a denial of service attack in the samba daemon LDAP server.
188
189    A malicious client can send packets that cause the LDAP server in the
190    samba daemon process to become unresponsive, preventing the server
191    from servicing any other requests.
192
193    This flaw is not exploitable beyond causing the code to loop expending
194    CPU resources.
195
196 o  CVE-2015-5252:
197    All versions of Samba from 3.0.0 to 4.3.2 inclusive are vulnerable to
198    a bug in symlink verification, which under certain circumstances could
199    allow client access to files outside the exported share path.
200
201    If a Samba share is configured with a path that shares a common path
202    prefix with another directory on the file system, the smbd daemon may
203    allow the client to follow a symlink pointing to a file or directory
204    in that other directory, even if the share parameter "wide links" is
205    set to "no" (the default).
206
207 o  CVE-2015-5299:
208    All versions of Samba from 3.2.0 to 4.3.2 inclusive are vulnerable to
209    a missing access control check in the vfs_shadow_copy2 module. When
210    looking for the shadow copy directory under the share path the current
211    accessing user should have DIRECTORY_LIST access rights in order to
212    view the current snapshots.
213
214    This was not being checked in the affected versions of Samba.
215
216 o  CVE-2015-5296:
217    Versions of Samba from 3.2.0 to 4.3.2 inclusive do not ensure that
218    signing is negotiated when creating an encrypted client connection to
219    a server.
220
221    Without this a man-in-the-middle attack could downgrade the connection
222    and connect using the supplied credentials as an unsigned, unencrypted
223    connection.
224
225 o  CVE-2015-8467:
226    Samba, operating as an AD DC, is sometimes operated in a domain with a
227    mix of Samba and Windows Active Directory Domain Controllers.
228
229    All versions of Samba from 4.0.0 to 4.3.2 inclusive, when deployed as
230    an AD DC in the same domain with Windows DCs, could be used to
231    override the protection against the MS15-096 / CVE-2015-2535 security
232    issue in Windows.
233
234    Prior to MS16-096 it was possible to bypass the quota of machine
235    accounts a non-administrative user could create.  Pure Samba domains
236    are not impacted, as Samba does not implement the
237    SeMachineAccountPrivilege functionality to allow non-administrator
238    users to create new computer objects.
239
240 o  CVE-2015-5330:
241    All versions of Samba from 4.0.0 to 4.3.2 inclusive (resp. all
242    ldb versions up to 1.1.23 inclusive) are vulnerable to
243    a remote memory read attack in the samba daemon LDAP server.
244
245    A malicious client can send packets that cause the LDAP server in the
246    samba daemon process to return heap memory beyond the length of the
247    requested value.
248
249    This memory may contain data that the client should not be allowed to
250    see, allowing compromise of the server.
251
252    The memory may either be returned to the client in an error string, or
253    stored in the database by a suitabily privileged user.  If untrusted
254    users can create objects in your database, please confirm that all DN
255    and name attributes are reasonable.
256
257
258 Changes since 4.2.6:
259 --------------------
260
261 o  Andrew Bartlett <abartlet@samba.org>
262    * BUG 11552: CVE-2015-8467: samdb: Match MS15-096 behaviour for
263      userAccountControl.
264
265 o  Jeremy Allison <jra@samba.org>
266    * BUG 11325: CVE-2015-3223: Fix LDAP \00 search expression attack DoS.
267    * BUG 11395: CVE-2015-5252: Fix insufficient symlink verification (file
268      access outside the share).
269    * BUG 11529: CVE-2015-5299: s3-shadow-copy2: Fix missing access check on
270      snapdir.
271
272 o  Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
273    * BUG 11599: CVE-2015-5330: Fix remote read memory exploit in LDB.
274
275 o  Stefan Metzmacher <metze@samba.org>
276    * BUG 11536: CVE-2015-5296: Add man in the middle protection when forcing
277      smb encryption on the client side.
278
279
280 #######################################
281 Reporting bugs & Development Discussion
282 #######################################
283
284 Please discuss this release on the samba-technical mailing list or by
285 joining the #samba-technical IRC channel on irc.freenode.net.
286
287 If you do report problems then please try to send high quality
288 feedback. If you don't provide vital information to help us track down
289 the problem then you will probably be ignored.  All bug reports should
290 be filed under the "Samba 4.1 and newer" product in the project's Bugzilla
291 database (https://bugzilla.samba.org/).
292
293
294 ======================================================================
295 == Our Code, Our Bugs, Our Responsibility.
296 == The Samba Team
297 ======================================================================
298
299
300 ----------------------------------------------------------------------
301
302
303                    =============================
304                    Release Notes for Samba 4.2.6
305                          December 08, 2015
306                    =============================
307
308
309 This is the latest stable release of Samba 4.2.
310
311
312 Changes since 4.2.5:
313 --------------------
314
315 o   Michael Adam <obnox@samba.org>
316     * BUG 11365: ctdb: Strip trailing spaces from nodes file.
317     * BUG 11577: ctdb: Open the RO tracking db with perms 0600 instead of 0000.
318     * BUG 11619: doc: Fix a typo in the smb.conf manpage.
319
320
321 o   Jeremy Allison <jra@samba.org>
322     * BUG 11452: s3-smbd: Fix old DOS client doing wildcard delete - gives a
323       attribute type of zero.
324     * BUG 11565: auth: gensec: Fix a memory leak.
325     * BUG 11566: lib: util: Make non-critical message a warning.
326     * BUG 11589: s3: smbd: If EA's are turned off on a share don't allow an SMB2
327       create containing them.
328     * BUG 11615: s3: smbd: have_file_open_below() fails to enumerate open files
329       below an open directory handle.
330
331
332 o   Ralph Boehme <slow@samba.org>
333     * BUG 11564: async_req: Fix non-blocking connect().
334
335
336 o   Volker Lendecke <vl@samba.org>
337     * BUG 11243: vfs_gpfs: Re-enable share modes.
338     * BUG 11570: smbd: Send SMB2 oplock breaks unencrypted.
339
340
341 o   YvanM <yvan.masson@openmailbox.org>
342     * BUG 11584: manpage: Correct small typo error.
343
344
345 o   Marc Muehlfeld <mmuehlfeld@samba.org>
346     * BUG 9912: Changing log level of two entries to from 1 to 3.
347
348
349 o   Andreas Schneider <asn@samba.org>
350     * BUG 11346: wafsamba: Also build libraries with RELRO protection.
351     * BUG 11563: nss_wins: Do not run into use after free issues when we access
352       memory allocated on the globals and the global being reinitialized.
353
354
355 o   Karolin Seeger <kseeger@samba.org>
356     * BUG 11619: docs: Fix some typos in the idmap config section of man 5
357       smb.conf.
358
359
360 o   Noel Power <noel.power@suse.com>
361     * BUG 11569: Fix winbindd crashes with samlogon for trusted domain user.
362     * BUG 11597: Backport some valgrind fixes from upstream master.
363
364
365 #######################################
366 Reporting bugs & Development Discussion
367 #######################################
368
369 Please discuss this release on the samba-technical mailing list or by
370 joining the #samba-technical IRC channel on irc.freenode.net.
371
372 If you do report problems then please try to send high quality
373 feedback. If you don't provide vital information to help us track down
374 the problem then you will probably be ignored.  All bug reports should
375 be filed under the Samba 4.2 product in the project's Bugzilla
376 database (https://bugzilla.samba.org/).
377
378
379 ======================================================================
380 == Our Code, Our Bugs, Our Responsibility.
381 == The Samba Team
382 ======================================================================
383
384
385 ----------------------------------------------------------------------
386
387
388                    =============================
389                    Release Notes for Samba 4.2.5
390                          October 27, 2015
391                    =============================
392
393
394 This is the latest stable release of Samba 4.2.
395
396
397 Changes since 4.2.4:
398 --------------------
399
400 o   Jeremy Allison <jra@samba.org>
401     * BUG 10252: s3: smbd: Fix our access-based enumeration on "hide unreadable"
402       to match Windows.
403     * BUG 10634: smbd: Fix file name buflen and padding in notify repsonse.
404     * BUG 11486: s3: smbd: Fix mkdir race condition.
405     * BUG 11522: s3: smbd: Fix opening/creating :stream files on the root share
406       directory.
407     * BUG 11535: s3: smbd: Fix NULL pointer bug introduced by previous 'raw'
408       stream fix (bug #11522).
409     * BUG 11555: s3: lsa: lookup_name() logic for unqualified (no DOMAIN\
410       component) names is incorrect.
411
412
413 o   Ralph Boehme <slow@samba.org>
414     * BUG 11535: s3: smbd: Fix a crash in unix_convert().
415     * BUG 11543: vfs_fruit: Return value of ad_pack in vfs_fruit.c.
416     * BUG 11549: Fix bug in smbstatus where the lease info is not printed.
417     * BUG 11550: s3:smbstatus: Add stream name to share_entry_forall().
418     * BUG 11555: s3:lib: validate domain name in lookup_wellknown_name().
419
420
421 o   Günther Deschner <gd@samba.org>
422     * BUG 11038: kerberos: Make sure we only use prompter type when available.
423
424
425 o   Björn Jacke <bj@sernet.de>
426     * BUG 10365: nss_winbind: Fix hang on Solaris on big groups.
427     * BUG 11355: build: Use as-needed linker flag also on OpenBSD.
428
429
430 o   Volker Lendecke <vl@samba.org>
431     * BUG 11038: winbind: Fix 100% loop.
432     * BUG 11381: Fix a deadlock in tdb.
433
434
435 o   Stefan Metzmacher <metze@samba.org>
436     * BUG 11316: s3:ctdbd_conn: Make sure we destroy tevent_fd before closing
437       the socket.
438     * BUG 11327: dcerpc.idl: accept invalid dcerpc_bind_nak pdus.
439
440
441 o   Har Gagan Sahai <SHarGagan@novell.com>
442     * BUG 11509: s3: dfs: Fix a crash when the dfs targets are disabled.
443
444
445 o   Andreas Schneider <asn@samba.org>
446     * BUG 11502: pam_winbind: Fix a segfault if initialization fails.
447
448
449 o   Uri Simchoni <uri@samba.org>
450     * BUG 11528: net: Fix a crash with 'net ads keytab create'.
451     * BUG 11547: vfs_commit: Set the fd on open before calling SMB_VFS_FSTAT.
452
453
454 #######################################
455 Reporting bugs & Development Discussion
456 #######################################
457
458 Please discuss this release on the samba-technical mailing list or by
459 joining the #samba-technical IRC channel on irc.freenode.net.
460
461 If you do report problems then please try to send high quality
462 feedback. If you don't provide vital information to help us track down
463 the problem then you will probably be ignored.  All bug reports should
464 be filed under the Samba 4.2 product in the project's Bugzilla
465 database (https://bugzilla.samba.org/).
466
467
468 ======================================================================
469 == Our Code, Our Bugs, Our Responsibility.
470 == The Samba Team
471 ======================================================================
472
473
474 ----------------------------------------------------------------------
475
476
477                    =============================
478                    Release Notes for Samba 4.2.4
479                          September 8, 2015
480                    =============================
481
482
483 This is the latest stable release of Samba 4.2.
484
485
486 Changes since 4.2.3:
487 --------------------
488
489 o   Michael Adam <obnox@samba.org>
490     * BUG 11372: smbd: Fix SMB3 functionality of "smb encrypt".
491
492
493 o   Jeremy Allison <jra@samba.org>
494     * BUG 11359: lib: replace: Add strsep function (missing on Solaris).
495
496
497 o   Ralph Boehme <slow@samba.org>
498     * BUG 11278: Fix stream names with colon with "fruit:encoding = native".
499     * BUG 11317: vfs:fruit: Implement copyfile style copy_chunk.
500     * BUG 11426: s3-net: Use talloc array in share allowedusers.
501     * BUG 11467: vfs_fruit: Handling of empty resource fork.
502
503
504 o   Alexander Bokovoy <ab@samba.org>
505     * BUG 11265: auth/credentials: If credentials have principal set, they are
506       not anonymous anymore.
507
508
509 o   Günther Deschner <gd@samba.org>
510     * BUG 11373: s3-smbd: Reset protocol in smbXsrv_connection_init_tables
511       failure paths.
512
513
514 o   Amitay Isaacs <amitay@gmail.com>
515     * BUG 11398: ctdb-daemon: Return correct sequence number for
516       CONTROL_GET_DB_SEQNUM.
517     * BUG 11431: ctdb-daemon: Improve error handling for running event scripts.
518
519
520 o   Volker Lendecke <vl@samba.org>
521     * BUG 11316: lib: Fix rundown of open_socket_out().
522     * BUG 11488: Avoid quoting problems in user's DNs.
523
524
525 o   Justin Maggard <jmaggard@netgear.com>
526     * BUG 11320: s3-passdb: Respect LOOKUP_NAME_GROUP flag in sid lookup.
527
528
529 o   Roel van Meer <roel@1afa.com>
530     * BUG 11427: s3-util: Compare the maximum allowed length of a NetBIOS name.
531
532
533 o   Stefan Metzmacher <metze@samba.org>
534     * BUG 11316: s3:lib: Fix some corner cases of open_socket_out_cleanup().
535     * BUG 11454: Backport dcesrv_netr_DsRGetDCNameEx2 fixes.
536
537
538 o   Anubhav Rakshit <anubhav.rakshit@gmail.com>
539     * BUG 11361: s3:libsmb: Fix a bug in conversion of ea list to ea array.
540
541
542 o   Arvid Requate <requate@univention.de>
543     * BUG 11291: s4:rpc_server/netlogon: Fix for NetApp.
544
545
546 o   Andreas Schneider <asn@samba.org>
547     * BUG 9862: s3-auth: Fix "map to guest = Bad uid".
548     * BUG 11403: s3-smbd: Leave sys_disk_free() if dfree command is used.
549     * BUG 11404: s3-auth: Fix a possible null pointer dereference.
550
551
552 o   Martin Schwenke <martin@meltin.net>
553     * BUG 11399: ctdb-scripts: Support monitoring of interestingly named VLANs
554       on bonds.
555     * BUG 11432: ctdb-daemon: Check if updates are in flight when releasing all
556       IPs.
557     * BUG 11435: ctdb-build: Fix building of PCP PMDA module.
558
559
560 o   Wei Zhong <wweyeww@gmail.com>
561     * BUG 10823: s3: winbindd: Fix TALLOC_FREE of uninitialized groups variable.
562
563
564 #######################################
565 Reporting bugs & Development Discussion
566 #######################################
567
568 Please discuss this release on the samba-technical mailing list or by
569 joining the #samba-technical IRC channel on irc.freenode.net.
570
571 If you do report problems then please try to send high quality
572 feedback. If you don't provide vital information to help us track down
573 the problem then you will probably be ignored.  All bug reports should
574 be filed under the Samba 4.2 product in the project's Bugzilla
575 database (https://bugzilla.samba.org/).
576
577
578 ======================================================================
579 == Our Code, Our Bugs, Our Responsibility.
580 == The Samba Team
581 ======================================================================
582
583
584 ----------------------------------------------------------------------
585
586
587                    =============================
588                    Release Notes for Samba 4.2.3
589                            July 14, 2015
590                    =============================
591
592
593 This is the latest stable release of Samba 4.2.
594
595
596 Changes since 4.2.2:
597 --------------------
598
599 o   Michael Adam <obnox@samba.org>
600     * BUG 11366: docs: Overhaul the description of "smb encrypt" to include SMB3
601       encryption.
602
603
604 o   Jeremy Allison <jra@samba.org>
605     * BUG 11068: s3: lib: util: Ensure we read a hex number as %x, not %u.
606     * BUG 11295: Excessive cli_resolve_path() usage can slow down transmission.
607     * BUG 11328: winbindd: winbindd_raw_kerberos_login - ensure logon_info
608       exists in PAC.
609     * BUG 11339: s3: smbd: Use separate flag to track
610       become_root()/unbecome_root() state.
611     * BUG 11342: s3: smbd: Codenomicon crash in do_smb_load_module().
612
613
614 o   Christian Ambach <ambi@samba.org>
615     * BUG 11170: s3:param/loadparm: Fix 'testparm --show-all-parameters'.
616
617
618 o   Andrew Bartlett <abartlet@samba.org>
619     * BUG 10991: winbindd: Sync secrets.ldb into secrets.tdb on startup.
620
621
622 o   Ralph Boehme <slow@samba.org>
623     * BUG 11277: s3:smb2: Add padding to last command in compound requests.
624     * BUG 11305: vfs_fruit: Add option "veto_appledouble".
625     * BUG 11323: smbd/trans2: Add a useful diagnostic for files with bad
626       encoding.
627     * BUG 11363: vfs_fruit: Check offset and length for AFP_AfpInfo read
628       requests.
629     * BUG 11371: ncacn_http: Fix GNUism.
630
631
632 o   Günther Deschner <gd@samba.org>
633     * BUG 11245: s3-rpc_server: Fix rpc_create_tcpip_sockets() processing of
634       interfaces.
635
636
637 o   Alexander Drozdov <al.drozdov@gmail.com>
638     * BUG 11331: tdb: version 1.3.5: ABI change: tdb_chainlock_read_nonblock()
639       has been added.
640
641
642 o   Evangelos Foutras <evangelos@foutrelis.com>
643     * BUG 8780: s4:lib/tls: Fix build with gnutls 3.4.
644
645
646 o   David Holder <david.holder@erion.co.uk>
647     * BUG 11281: Add IPv6 support to ADS client side LDAP connects.
648     * BUG 11282: Add IPv6 support for determining FQDN during ADS join.
649     * BUG 11283: s3: IPv6 enabled DNS connections for ADS client.
650
651
652 o   Steve Howells <steve.howells@moscowfirst.com>
653     * BUG 10924: s4.2/fsmo.py: Fixed fsmo transfer exception.
654
655
656 o   Amitay Isaacs <amitay@gmail.com>
657     * BUG 11293: Fix invalid write in ctdb_lock_context_destructor.
658
659
660 o   Volker Lendecke <vl@samba.org>
661     * BUG 11218: smbd: Fix a use-after-free.
662     * BUG 11312: tstream: Make socketpair nonblocking.
663     * BUG 11330: tevent: Fix CID 1035381 Unchecked return value.
664     * BUG 11331: tdb: Fix CID 1034842 and 1034841 Resource leaks.
665
666
667 o   Stefan Metzmacher <metze@samba.org>
668     * BUG 11061: Logon via MS Remote Desktop hangs.
669     * BUG 11141: tevent: Add a note to tevent_add_fd().
670     * BUG 11293: Fix invalid write in ctdb_lock_context_destructor.
671     * BUG 11316: tevent_fd needs to be destroyed before closing the fd.
672     * BUG 11319: Build fails on Solaris 11 with "‘PTHREAD_MUTEX_ROBUST’
673       undeclared".
674     * BUG 11326: Robust mutex support broken in 1.3.5.
675     * BUG 11329: s3:smb2_setinfo: Fix memory leak in the defer_rename case.
676     * BUG 11330: Backport tevent-0.9.25.
677     * BUG 11331: Backport tdb-1.3.6.
678     * BUG 11367: s3:auth_domain: Fix talloc problem in
679       connect_to_domain_password_server().
680
681
682 o   Marc Muehlfeld <mmuehlfeld@samba.org>
683     * BUG 11315: Group creation: Add msSFU30Name only when --nis-domain was
684       given.
685
686 o   Matthieu Patou <mat@matws.net>
687     * BUG 11356: pidl: Make the compilation of PIDL producing the same results
688       if the content hasn't change.
689
690
691 o   Noel Power <noel.power@suse.com>
692     * BUG 11328: Kerberos auth info3 should contain resource group ids available
693       from pac_logon.
694
695
696 o   Gordon Ross <gordon.w.ross@gmail.com>
697     * BUG 11330: lib: tevent: Fix compile error in Solaris ports backend.
698
699
700 o   Christof Schmitt <cs@samba.org>
701     * BUG 11313: idmap_rfc2307: Fix wbinfo '--gid-to-sid' query.
702     * BUG 11324: Change sharesec output back to previous format.
703
704
705 o   Uri Simchoni <urisimchoni@gmail.com>
706     * BUG 11358: winbindd: Disconnect child process if request is cancelled at
707       main process.
708
709
710 o   Petr Viktorin <pviktori@redhat.com>
711     * BUG 11330: Backport tevent-0.9.25.
712
713
714 o   Youzhong Yang <yyang@mathworks.com>
715     * BUG 11217: s3-unix_msg: Remove socket file after closing socket fd.
716
717
718 #######################################
719 Reporting bugs & Development Discussion
720 #######################################
721
722 Please discuss this release on the samba-technical mailing list or by
723 joining the #samba-technical IRC channel on irc.freenode.net.
724
725 If you do report problems then please try to send high quality
726 feedback. If you don't provide vital information to help us track down
727 the problem then you will probably be ignored.  All bug reports should
728 be filed under the Samba 4.2 product in the project's Bugzilla
729 database (https://bugzilla.samba.org/).
730
731
732 ======================================================================
733 == Our Code, Our Bugs, Our Responsibility.
734 == The Samba Team
735 ======================================================================
736
737
738 ----------------------------------------------------------------------
739
740
741                    =============================
742                    Release Notes for Samba 4.2.2
743                            May 27, 2015
744                    =============================
745
746
747 This is the latest stable release of Samba 4.2.
748
749
750 Changes since 4.2.1:
751 --------------------
752
753 o   Michael Adam <obnox@samba.org>
754     * BUG 11182: s3:smbXsrv: refactor duplicate code into
755       smbXsrv_session_clear_and_logoff().
756     * BUG 11260: gencache: don't fail gencache_stabilize if there were records
757       to delete.
758
759
760 o   Jeremy Allison <jra@samba.org>
761     * BUG 11186: s3: libsmbclient: After getting attribute server, ensure main
762       srv pointer is still valid.
763     * BUG 11236: s4: rpc: Refactor dcesrv_alter() function into setup and send
764       steps.
765     * BUG 11240: s3: smbd: Incorrect file size returned in the response of
766       "FILE_SUPERSEDE Create".
767     * BUG 11249: Mangled names do not work with acl_xattr.
768     * BUG 11254: nmbd rewrites browse.dat when not required.
769
770
771 o   Ralph Boehme <slow@samba.org>
772     * BUG 11213: vfs_fruit: add option "nfs_aces" that controls the NFS ACEs
773       stuff.
774     * BUG 11224: s3:smbd: Add missing tevent_req_nterror.
775     * BUG 11243: vfs: kernel_flock and named streams.
776     * BUG 11244: vfs_gpfs: Error code path doesn't call END_PROFILE.
777
778
779 o   Alexander Bokovoy <ab@samba.org>
780     * BUG 11284: s4: libcli/finddcs_cldap: continue processing CLDAP until all
781       addresses are used.
782
783
784 o   David Disseldorp <ddiss@samba.org>
785     * BUG 11201: ctdb: check for talloc_asprintf() failure.:w
786     * BUG 11210: spoolss: purge the printer name cache on name change.
787
788
789 o   Amitay Isaacs <amitay@gmail.com>
790     * BUG 11204: CTDB statd-callout does not scale.
791
792
793 o   Björn Jacke <bj@sernet.de>
794     * BUG 11221: vfs_fruit: also map characters below 0x20.
795
796
797 o   Rajesh Joseph <rjoseph@redhat.com>
798     * BUG 11201: ctdb: Coverity fix for CID 1291643.
799
800
801 o   Julien Kerihuel <j.kerihuel@openchange.org>
802     * BUG 11225: Multiplexed RPC connections are not handled by DCERPC server.
803     * BUG 11226: Fix terminate connection behavior for asynchronous endpoint
804       with PUSH notification flavors.
805
806
807 o   Led <ledest@gmail.com>
808     * BUG 11007: ctdb-scripts: Fix bashism in ctdbd_wrapper script.
809
810
811 o   Volker Lendecke <vl@samba.org>
812     * BUG 11201: ctdb: Fix CIDs 1125615, 1125634, 1125613, 1288201 and 1125553.
813     * BUG 11257: SMB2 should cancel pending NOTIFY calls with DELETE_PENDING if
814       the directory is deleted.
815
816
817 o   Stefan Metzmacher <metze@samba.org>
818     * BUG 11141: s3:winbindd: make sure we remove pending io requests before
819       closing client sockets.
820     * BUG 11182: Fix panic triggered by smbd_smb2_request_notify_done() ->
821       smbXsrv_session_find_channel() in smbd.
822
823
824 o   Christof Schmitt <cs@samba.org>
825     * BUG 11237: 'sharesec' output no longer matches input format.
826
827
828 o   Andreas Schneider <asn@samba.org>
829     * BUG 11200: waf: Fix systemd detection.
830
831
832 o   Martin Schwenke <martin@meltin.net>
833     * BUG 11202: CTDB: Fix portability issues.
834     * BUG 11203: CTDB: Fix some IPv6-related issues.
835     * BUG 11204: CTDB statd-callout does not scale.
836
837
838 o   Richard Sharpe <rsharpe@nutanix.com>
839     * BUG 11234: 'net ads dns gethostbyname' crashes with an error in TALLOC_FREE
840       if you enter invalid values.
841
842
843 o   Uri Simchoni <urisimchoni@gmail.com>
844     * BUG 11267: libads: record service ticket endtime for sealed ldap
845       connections.
846
847
848 o   Lukas Slebodnik <lslebodn@redhat.com>
849     * BUG 11033: lib/util: Include DEBUG macro in internal header files before
850       samba_util.h.
851
852
853 #######################################
854 Reporting bugs & Development Discussion
855 #######################################
856
857 Please discuss this release on the samba-technical mailing list or by
858 joining the #samba-technical IRC channel on irc.freenode.net.
859
860 If you do report problems then please try to send high quality
861 feedback. If you don't provide vital information to help us track down
862 the problem then you will probably be ignored.  All bug reports should
863 be filed under the Samba 4.2 product in the project's Bugzilla
864 database (https://bugzilla.samba.org/).
865
866
867 ======================================================================
868 == Our Code, Our Bugs, Our Responsibility.
869 == The Samba Team
870 ======================================================================
871
872
873 ----------------------------------------------------------------------
874
875
876                    =============================
877                    Release Notes for Samba 4.2.1
878                            April 15, 2015
879                    =============================
880
881
882 This is the latest stable release of Samba 4.2.
883
884
885 Changes since 4.2.0:
886 --------------------
887
888 o   Michael Adam <obnox@samba.org>
889     * BUG 8905: s3:winbind:grent: Don't stop group enumeration when a group has
890       no gid.
891     * BUG 10476: build:wafadmin: Fix use of spaces instead of tabs.
892     * BUG 11143: s3-winbind: Fix cached user group lookup of trusted domains.
893
894
895 o   Jeremy Allison <jra@samba.org>
896     * BUG 10016: s3: lib: ntlmssp: If NTLMSSP_NEGOTIATE_TARGET_INFO isn't set,
897       cope with servers that don't send the 2 unused fields.
898     * BUG 10888: s3: client: "client use spnego principal = yes" code checks
899       wrong name.
900     * BUG 11079: s3: lib: libsmbclient: If reusing a server struct, check every
901       cli->timout miliseconds if it's still valid before use.
902     * BUG 11173: s3: libcli: smb1: Ensure we correctly finish a tevent req if
903       the writev fails in the SMB1 case.
904     * BUG 11175: Fix lots of winbindd zombie processes on Solaris platform.
905     * BUG 11177: s3: libsmbclient: Add missing talloc stackframe.
906
907
908 o   Andrew Bartlett <abartlet@samba.org>
909     * BUG 11135: backupkey: Explicitly link to gnutls and gcrypt.
910     * BUG 11174: backupkey: Use ndr_pull_struct_blob_all().
911
912
913 o   Ralph Boehme <slow@samba.org>
914     * BUG 11125: vfs_fruit: Enhance handling of malformed AppleDouble files.
915
916
917 o   Samuel Cabrero <samuelcabrero@kernevil.me>
918     * BUG 9791: Initialize dwFlags field of DNS_RPC_NODE structure.
919
920
921 o   David Disseldorp <ddiss@samba.org>
922     * BUG 11169: docs/idmap_rid: Remove deprecated base_rid from example.
923
924
925 o   Volker Lendecke <vl@samba.org>
926     * BUG 10476: waf: Fix the build on openbsd.
927
928
929 o   Stefan Metzmacher <metze@samba.org>
930     * BUG 11144: talloc: Version 2.1.2.
931     * BUG 11164: s4:auth/gensec_gssapi: Let gensec_gssapi_update() return
932       NT_STATUS_LOGON_FAILURE for unknown errors.
933
934
935 o   Matthew Newton <matthew-git@newtoncomputing.co.uk>
936     * BUG 11149: Update libwbclient version to 0.12.
937
938
939 o   Andreas Schneider <asn@samba.org>
940     * BUG 11018: spoolss: Retrieve published printer GUID if not in registry.
941     * BUG 11135: replace: Remove superfluous check for gcrypt header.
942     * BUG 11180: s4-process_model: Do not close random fds while forking.
943     * BUG 11185: s3-passdb: Fix 'force user' with winbind default domain.
944
945
946 o   Christof Schmitt <cs@samba.org>
947     * BUG 11153: brlock: Use 0 instead of empty initializer list.
948
949
950 o   Thomas Schulz <schulz@adi.com>
951     * BUG 11092: lib: texpect: Fix the build on Solaris.
952     * BUG 11140: libcli/auth: Match Declaration of
953       netlogon_creds_cli_context_tmp with implementation.
954
955
956 o   Jelmer Vernooij <jelmer@samba.org>
957     * BUG 11137: Backport subunit changes.
958
959
960 #######################################
961 Reporting bugs & Development Discussion
962 #######################################
963
964 Please discuss this release on the samba-technical mailing list or by
965 joining the #samba-technical IRC channel on irc.freenode.net.
966
967 If you do report problems then please try to send high quality
968 feedback. If you don't provide vital information to help us track down
969 the problem then you will probably be ignored.  All bug reports should
970 be filed under the Samba 4.2 product in the project's Bugzilla
971 database (https://bugzilla.samba.org/).
972
973
974 ======================================================================
975 == Our Code, Our Bugs, Our Responsibility.
976 == The Samba Team
977 ======================================================================
978
979
980 ----------------------------------------------------------------------
981
982
983                    =============================
984                    Release Notes for Samba 4.2.0
985                            March 04, 2015
986                    =============================
987
988
989 This is is the first stable release of Samba 4.2.
990
991 Samba 4.2 will be the next version of the Samba suite.
992
993
994 Samba User Survey 2015
995 ======================
996
997 https://www.surveygizmo.com/s3/2020369/Samba-User-Survey-2015
998
999 Please take our survey. It will help us improve Samba by understanding
1000 your knowledge and needs. The survey runs until end of March 2015 and
1001 won't ask for any personal info. The full results will be shared with
1002 the Samba Team, and statistical summaries will be shared with the
1003 Samba community after the SambaXP conference (http://sambaxp.org).
1004
1005
1006 IMPORTANT NOTE ABOUT THE SUPPORT END OF SAMBA 3
1007 =================================================
1008
1009 With the final release of Samba 4.2, the last series of Samba 3 has
1010 been discontinued! People still running 3.6.x or earlier,should
1011 consider moving to a more recent and maintained version (4.0 - 4.2).
1012 One of the common misconceptions is that Samba 4.x automatically
1013 means "Active Directory only": This is wrong!
1014
1015 Acting as an Active Directory Domain Controller is just one of the
1016 enhancements included in Samba 4.0 and later. Version 4.0 was just the
1017 next release after the 3.6 series and contains all the features of the
1018 previous ones - including the NT4-style (classic) domain support. This
1019 means you can update a Samba 3.x NT4-style PDC to 4.x, just as you've
1020 updated in the past (e.g. from 3.4.x to 3.5.x). You don't have to move
1021 your NT4-style domain to an Active Directory!
1022
1023 And of course the possibility remains unchanged, to setup a new NT4-style
1024 PDC with Samba 4.x, like done in the past (e.g. with openLDAP backend).
1025 Active Directory support in Samba 4 is additional and does not replace
1026 any of these features. We do understand the difficulty presented by
1027 existing LDAP structures and for that reason there isn't a plan to
1028 decommission the classic PDC support. It remains tested by the continuous
1029 integration system.
1030
1031 The code that supports the classic Domain Controller is also the same
1032 code that supports the internal 'Domain' of standalone servers and
1033 Domain Member Servers. This means that we still use this code, even
1034 when not acting as an AD Domain Controller. It is also the basis for
1035 some of the features of FreeIPA and so it gets development attention
1036 from that direction as well.
1037
1038
1039 UPGRADING
1040 =========
1041
1042 Read the "Winbindd/Netlogon improvements" section (below) carefully!
1043
1044
1045 NEW FEATURES
1046 ============
1047
1048 Transparent File Compression
1049 ============================
1050
1051 Samba 4.2.0 adds support for the manipulation of file and folder
1052 compression flags on the Btrfs filesystem.
1053 With the Btrfs Samba VFS module enabled, SMB2+ compression flags can
1054 be set remotely from the Windows Explorer File->Properties->Advanced
1055 dialog. Files flagged for compression are transparently compressed
1056 and uncompressed when accessed or modified.
1057
1058 Previous File Versions with Snapper
1059 ===================================
1060
1061 The newly added Snapper VFS module exposes snapshots managed by
1062 Snapper for use by Samba. This provides the ability for remote
1063 clients to access shadow-copies via Windows Explorer using the
1064 "previous versions" dialog.
1065
1066 Winbindd/Netlogon improvements
1067 ==============================
1068
1069 The whole concept of maintaining the netlogon secure channel
1070 to (other) domain controllers was rewritten in order to maintain
1071 global state in a netlogon_creds_cli.tdb. This is the proper fix
1072 for a large number of bugs:
1073
1074   https://bugzilla.samba.org/show_bug.cgi?id=6563
1075   https://bugzilla.samba.org/show_bug.cgi?id=7944
1076   https://bugzilla.samba.org/show_bug.cgi?id=7945
1077   https://bugzilla.samba.org/show_bug.cgi?id=7568
1078   https://bugzilla.samba.org/show_bug.cgi?id=8599
1079
1080 In addition a strong session key is now required by default,
1081 which means that communication to older servers or clients
1082 might be rejected by default.
1083
1084 For the client side we have the following new options:
1085 "require strong key" (yes by default), "reject md5 servers" (no by default).
1086 E.g. for Samba 3.0.37 you need "require strong key = no" and
1087 for NT4 DCs you need "require strong key = no" and "client NTLMv2 auth = no",
1088
1089 On the server side (as domain controller) we have the following new options:
1090 "allow nt4 crypto" (no by default), "reject md5 client" (no by default).
1091 E.g. in order to allow Samba < 3.0.27 or NT4 members to work
1092 you need "allow nt4 crypto = yes"
1093
1094 winbindd does not list group memberships for display purposes
1095 (e.g. getent group <domain\<group>) anymore by default.
1096 The new default is "winbind expand groups = 0" now,
1097 the reason for this is the same as for "winbind enum users = no"
1098 and "winbind enum groups = no". Providing this information is not always
1099 reliably possible, e.g. if there are trusted domains.
1100
1101 Please consult the smb.conf manpage for more details on these new options.
1102
1103 Winbindd use on the Samba AD DC
1104 ===============================
1105
1106 Winbindd is now used on the Samba AD DC by default, replacing the
1107 partial rewrite used for winbind operations in Samba 4.0 and 4.1.
1108
1109 This allows more code to be shared, more options to be honoured, and
1110 paves the way for support for trusted domains in the AD DC.
1111
1112 If required the old internal winbind can be activated by setting
1113 'server services = +winbind -winbindd'.  Upgrading users with a server
1114 services parameter specified should ensure they change 'winbind' to
1115 'winbindd' to obtain the new functionality.
1116
1117 The 'samba' binary still manages the starting of this service, there
1118 is no need to start the winbindd binary manually.
1119
1120 Winbind now requires secured connections
1121 ========================================
1122
1123 To improve protection against rogue domain controllers we now require
1124 that when we connect to an AD DC in our forest, that the connection be
1125 signed using SMB Signing.  Set 'client signing = off' in the smb.conf
1126 to disable.
1127
1128 Also and DCE/RPC pipes must be sealed, set 'require strong key =
1129 false' and 'winbind sealed pipes = false' to disable.
1130
1131 Finally, the default for 'client ldap sasl wrapping' has been set to
1132 'sign', to ensure the integrity of LDAP connections.  Set 'client ldap
1133 sasl wrapping = plain' to disable.
1134
1135 Larger IO sizes for SMB2/3 by default
1136 =====================================
1137
1138 The default values for "smb2 max read", "smb2 max write" and "smb2 max trans"
1139 have been changed to 8388608 (8MiB) in order to match the default of
1140 Windows 2012R2.
1141
1142 SMB2 leases
1143 ===========
1144
1145 The SMB2 protocol allows clients to aggressively cache files
1146 locally above and beyond the caching allowed by SMB1 and SMB2 oplocks.
1147
1148 Called SMB2 leases, this can greatly reduce traffic on an SMB2
1149 connection. Samba 4.2 now implements SMB2 leases.
1150
1151 It can be turned on by setting the parameter "smb2 leases = yes"
1152 in the [global] section of your smb.conf. This parameter is set
1153 to off by default until the SMB2 leasing code is declared fully stable.
1154
1155 Improved DCERPC man in the middle detection
1156 ===========================================
1157
1158 The DCERPC header signing has been implemented
1159 in addition to the dcerpc_sec_verification_trailer
1160 protection.
1161
1162 Overhauled "net idmap" command
1163 ==============================
1164
1165 The command line interface of the "net idmap" command has been
1166 made systematic, and subcommands for reading and writing the autorid idmap
1167 database have been added. Note that the writing commands should be
1168 used with great care. See the net(8) manual page for details.
1169
1170 tdb improvements
1171 ================
1172
1173 The tdb library, our core mechanism to store Samba-specific data on disk and
1174 share it between processes, has been improved to support process shared robust
1175 mutexes on Linux. These mutexes are available on Linux and Solaris and
1176 significantly reduce the overhead involved with tdb. To enable mutexes for
1177 tdb, set
1178
1179 dbwrap_tdb_mutexes:* = yes
1180
1181 in the [global] section of your smb.conf.
1182
1183 Tdb file space management has also been made more efficient. This
1184 will lead to smaller and less fragmented databases.
1185
1186 Messaging improvements
1187 ======================
1188
1189 Our internal messaging subsystem, used for example for things like oplock
1190 break messages between smbds or setting a process debug level dynamically, has
1191 been rewritten to use unix domain datagram messages.
1192
1193 Clustering support
1194 ==================
1195
1196 Samba's file server clustering component CTDB is now integrated in the
1197 Samba tree.  This avoids the confusion of compatibility of Samba and CTDB
1198 versions as existed previously.
1199
1200 To build the Samba file server with cluster support, use the configure
1201 command line option --with-cluster-support.  This will build clustered
1202 file server against the in-tree CTDB and will also build CTDB.
1203 Building clustered samba with previous versions of CTDB is no longer
1204 supported.
1205
1206 Samba Registry Editor
1207 =====================
1208
1209 The utitlity to browse the samba registry has been overhauled by our Google
1210 Summer of Code student Chris Davis. Now samba-regedit has a
1211 Midnight-Commander-like theme and UI experience. You can browse keys and edit
1212 the diffent value types. For a data value type a hexeditor has been
1213 implemented.
1214
1215 Bad Password Lockout in the AD DC
1216 =================================
1217
1218 Samba's AD DC now implements bad password lockout (on a per-DC basis).
1219
1220 That is, incorrect password attempts are tracked, and accounts locked
1221 out if too many bad passwords are submitted.  There is also a grace
1222 period of 60 minutes on the previous password when used for NTLM
1223 authentication (matching Windows 2003 SP1: https://support2.microsoft.com/kb/906305).
1224
1225 The relevant settings can be seen using 'samba-tool domain
1226 passwordsettings show' (the new settings being highlighted):
1227
1228 Password informations for domain 'DC=samba,DC=example,DC=com'
1229
1230 Password complexity: on
1231 Store plaintext passwords: off
1232 Password history length: 24
1233 Minimum password length: 7
1234 Minimum password age (days): 1
1235 Maximum password age (days): 42
1236 * Account lockout duration (mins): 30     *
1237 * Account lockout threshold (attempts): 0 *
1238 * Reset account lockout after (mins): 30  *
1239
1240 These values can be set using 'samba-tool domain passwordsettings set'.
1241
1242 Correct defaults in the smb.conf manpages
1243 =========================================
1244
1245 The default values for smb.conf parameters are now correctly specified
1246 in the smb.conf manpage, even when they refer to build-time specified
1247 paths.  Provided Samba is built on a system with the right tools
1248 (xsltproc in particular) required to generate our man pages, then
1249 these will be built with the exact same embedded paths as used by the
1250 configuration parser at runtime.  Additionally, the default values
1251 read from the smb.conf manpage are checked by our test suite to match
1252 the values seen in testparm and used by the running binaries.
1253
1254 Consistent behaviour between samba-tool testparm and testparm
1255 =============================================================
1256
1257 With the exception of the registry backend, which remains only
1258 available in the file server, the behaviour of the smb.conf parser and
1259 the tools 'samba-tool testparm' and 'testparm' is now consistent,
1260 particularly with regard to default values.  Except with regard to
1261 registry shares, it is no longer needed to use one tool on the AD
1262 DC, and another on the file server.
1263
1264 VFS WORM module
1265 ===============
1266
1267 A VFS module for basic WORM (Write once read many) support has been
1268 added. It allows an additional layer on top of a Samba share, that provides
1269 a basic set of WORM functionality on the client side, to control the
1270 writeability of files and folders.
1271
1272 As the module is simply an additional layer, share access and permissions
1273 work like expected - only WORM functionality is added on top. Removing the
1274 module from the share configuration, removes this layer again. The
1275 filesystem ACLs are not affected in any way from the module and treated
1276 as usual.
1277
1278 The module does not provide complete WORM functions, like some archiving
1279 products do! It is not audit-proof, because the WORM function is only
1280 available on the client side, when accessing a share through SMB! If
1281 the same folder is shared by other services like NFS, the access only
1282 depends on the underlying filesystem ACLs. Equally if you access the
1283 content directly on the server.
1284
1285 For additional information, see
1286 https://wiki.samba.org/index.php/VFS/vfs_worm
1287
1288 vfs_fruit, a VFS module for OS X clients
1289 ========================================
1290
1291 A new VFS module that provides enhanced compatibility with Apple SMB
1292 clients and interoperability with a Netatalk 3 AFP fileserver.
1293
1294 The module features enhanced performance with reliable named streams
1295 support, interoperability with special characters commonly used by OS
1296 X client (eg '*', '/'), integrated file locking and Mac metadata
1297 access with Netatalk 3 and enhanced performance by implementing
1298 Apple's SMB2 extension codenamed "AAPL".
1299
1300 The modules behaviour is fully configurable, please refer to the
1301 manpage vfs_fruit for further details.
1302
1303 smbclient archival improvements
1304 ===============================
1305
1306 Archive creation and extraction support in smbclient has been rewritten
1307 to use libarchive. This fixes a number of outstanding bugs in Samba's
1308 previous custom tar implementation and also adds support for the
1309 extraction of zipped archives.
1310 smbclient archive support can be enabled or disabled at build time with
1311 corresponding --with[out]-libarchive configure parameters.
1312
1313
1314 ######################################################################
1315 Changes
1316 #######
1317
1318 smb.conf changes
1319 ----------------
1320
1321    Parameter Name                       Description     Default
1322    --------------                       -----------     -------
1323
1324    allow nt4 crypto                     New             no
1325    neutralize nt4 emulation             New             no
1326    reject md5 client                    New             no
1327    reject md5 servers                   New             no
1328    require strong key                   New             yes
1329    smb2 max read                        Changed default 8388608
1330    smb2 max write                       Changed default 8388608
1331    smb2 max trans                       Changed default 8388608
1332    winbind expand groups                Changed default 0
1333
1334
1335 CHANGES SINCE 4.2.0rc5
1336 ======================
1337
1338 o   Michael Adam <obnox@samba.org>
1339     * BUG 11117: doc:man:vfs_glusterfs: improve the configuration section.
1340
1341
1342 o   Jeremy Allison <jra@samba.org>
1343     * BUG 11118: tevent: Ignore unexpected signal events in the same way the
1344       epoll backend does.
1345
1346
1347 o   Andrew Bartlett <abartlet@samba.org>
1348     * BUG 11100: debug: Set close-on-exec for the main log file FD.
1349     * BUG 11097: Fix Win8.1 Credentials Manager issue after KB2992611 on Samba
1350       domain.
1351
1352
1353 o   Ira Cooper <ira@samba.org>
1354     * BUG 1115: smbd: Stop using vfs_Chdir after SMB_VFS_DISCONNECT.
1355
1356
1357 o   Günther Deschner <gd@samba.org>
1358     * BUG 11088: vfs: Add a brief vfs_ceph manpage.
1359
1360
1361 o   David Disseldorp <ddiss@samba.org>
1362     * BUG 11118: tevent: version 0.9.24.
1363
1364
1365 o   Amitay Isaacs <amitay@gmail.com>
1366     * BUG 11124: ctdb-io: Do not use sys_write to write to client sockets.
1367
1368
1369 o   Volker Lendecke <vl@samba.org>
1370     * BUG 11119: snprintf: Try to support %j.
1371
1372
1373 o   Garming Sam <garming@catalyst.net.nz>
1374     * BUG 11097: Fix Win8.1 Credentials Manager issue after KB2992611 on Samba
1375       domain.
1376
1377
1378 o   Andreas Schneider <asn@samba.org>
1379     * BUG 11127: doc-xml: Add 'sharesec' reference to 'access based share
1380       enum'.
1381
1382
1383 CHANGES SINCE 4.2.0rc4
1384 ======================
1385
1386 o   Michael Adam <obnox@samba.org>
1387     * BUG 11032: Enable mutexes in gencache_notrans.tdb.
1388     * BUG 11058: cli_connect_nb_send: Don't segfault on host == NULL.
1389
1390
1391 o   Jeremy Allison <jra@samba.org>
1392     * BUG 10849: s3: lib, s3: modules: Fix compilation on Solaris.
1393     * BUG 11044: Fix authentication using Kerberos (not AD).
1394     * BUG 11077: CVE-2015-0240: s3: netlogon: Ensure we don't call talloc_free
1395       on an uninitialized pointer.
1396     * BUG 11094: s3: smbclient: Allinfo leaves the file handle open.
1397     * BUG 11102: s3: smbd: leases - losen paranoia check. Stat opens can grant
1398       leases.
1399     * BUG 11104: s3: smbd: SMB2 close. If a file has delete on close, store the
1400       return info before deleting.
1401
1402
1403 o   Ira Cooper <ira@samba.org>
1404     * BUG 11069: vfs_glusterfs: Add comments to the pipe(2) code.
1405
1406
1407 o   Günther Deschner <gd@samba.org>
1408     * BUG 11070: s3-vfs: Fix developer build of vfs_ceph module.
1409
1410
1411 o   David Disseldorp <ddiss@samba.org>
1412     * BUG 10808: printing/cups: Pack requested-attributes with IPP_TAG_KEYWORD.
1413     * BUG 11055: vfs_snapper: Correctly handles multi-byte DBus strings.
1414     * BUG 11059: libsmb: Provide authinfo domain for encrypted session
1415       referrals.
1416
1417
1418 o   Poornima G <pgurusid@redhat.com>
1419     * BUG 11069: vfs_glusterfs: Implement AIO support.
1420
1421
1422 o   Volker Lendecke <vl@samba.org>
1423     * BUG 11032: Enable mutexes in gencache_notrans.tdb.
1424
1425
1426 o   Stefan Metzmacher <metze@samba.org>
1427     * BUG 9299: nsswitch: Fix soname of linux nss_*.so.2 modules.
1428     * BUG 9702: s3:smb2_server: protect against integer wrap with "smb2 max
1429       credits = 65535".
1430     * BUG 9810: Make validate_ldb of String(Generalized-Time) accept
1431       millisecond format ".000Z".
1432     * BUG 10112: Use -R linker flag on Solaris, not -rpath.
1433
1434
1435 o   Marc Muehlfeld <mmuehlfeld@samba.org>
1436     * BUG 10909: samba-tool: Create NIS enabled users and unixHomeDirectory
1437       attribute.
1438
1439
1440 o   Garming Sam <garming@catalyst.net.nz>
1441     * BUG 11022: Make Sharepoint search show user documents.
1442
1443
1444 o   Christof Schmitt <cs@samba.org>
1445     * BUG 11032: Enable mutexes in gencache_notrans.tdb.
1446
1447
1448 o   Andreas Schneider <asn@samba.org>
1449     * BUG 11058: utils: Fix 'net time' segfault.
1450     * BUG 11066: s3-pam_smbpass: Fix memory leak in pam_sm_authenticate().
1451     * BUG 11077: CVE-2015-0240: s3-netlogon: Make sure we do not deference a
1452       NULL pointer.
1453
1454
1455 o   Raghavendra Talur <raghavendra.talur@gmail.com>
1456     * BUG 11069: vfs/glusterfs: Change xattr key to match gluster key.
1457
1458
1459 CHANGES SINCE 4.2.0rc3
1460 ======================
1461
1462 o   Andrew Bartlett <abartlet@samba.org>
1463     * BUG 10993: CVE-2014-8143: dsdb-samldb: Check for extended access
1464       rights before we allow changes to userAccountControl.
1465
1466
1467 o   Günther Deschner <gd@samba.org>
1468     * BUG 10240: vfs: Add glusterfs manpage.
1469
1470
1471 o   David Disseldorp <ddiss@samba.org>
1472     * BUG 10984: Fix spoolss IDL response marshalling when returning error
1473       without clearing info.
1474
1475
1476 o   Amitay Isaacs <amitay@gmail.com>
1477     * BUG 11000: ctdb-daemon: Use correct tdb flags when enabling robust mutex
1478       support.
1479
1480
1481 o   Volker Lendecke <vl@samba.org>
1482     * BUG 11032: tdb_wrap: Make mutexes easier to use.
1483     * BUG 11039: vfs_fruit: Fix base_fsp name conversion.
1484     * BUG 11040: vfs_fruit: mmap under FreeBSD needs PROT_READ.
1485     * BUG 11051: net: Fix sam addgroupmem.
1486
1487
1488 o   Stefan Metzmacher <metze@samba.org>
1489     * BUG 10940: s3:passdb: fix logic in pdb_set_pw_history().
1490     * BUG 11004: tdb: version 1.3.4.
1491
1492
1493 o   Christof Schmitt <cs@samba.org>
1494     * BUG 11034: winbind: Retry after SESSION_EXPIRED error in ping-dc.
1495
1496
1497 o   Andreas Schneider <asn@samba.org>
1498     * BUG 11008: s3-util: Fix authentication with long hostnames.
1499     * BUG 11026: nss_wrapper: check for nss.h.
1500     * BUG 11033: lib/util: Avoid collision which alread defined consumer DEBUG
1501       macro.
1502     * BUG 11037: s3-libads: Fix a possible segfault in kerberos_fetch_pac().
1503
1504
1505 CHANGES SINCE 4.2.0rc2
1506 ======================
1507
1508 o   Michael Adam <obnox@samba.org>
1509     * BUG 10892: Integrate CTDB into top-level Samba build.
1510
1511
1512 o   Jeremy Allison <jra@samba.org>
1513     * BUG 10851: lib: uid_wrapper: Fix setgroups and syscall detection on a
1514       system without native uid_wrapper library.
1515     * BUG 10896: s3-nmbd: Fix netbios name truncation.
1516     * BUG 10904: Fix smbclient loops doing a directory listing against Mac OS X 10
1517       server with a non-wildcard path.
1518     * BUG 10911: Add support for SMB2 leases.
1519     * BUG 10920: s3: nmbd: Ensure NetBIOS names are only 15 characters stored.
1520     * BUG 10966: libcli: SMB2: Pure SMB2-only negprot fix to make us behave as a
1521       Windows client does.
1522     * BUG 10982: s3: smbd: Fix *allocate* calls to follow POSIX error return
1523       convention.
1524
1525
1526 o   Christian Ambach <ambi@samba.org>
1527     * BUG 9629: Make 'profiles' work again.
1528
1529
1530 o   Björn Baumbach <bb@sernet.de>
1531     * BUG 11014: ctdb-build: Fix build without xsltproc.
1532
1533
1534 o   Ralph Boehme <slow@samba.org>
1535     * BUG 10834: Don't build vfs_snapper on FreeBSD.
1536     * BUG 10971: vfs_streams_xattr: Check stream type.
1537     * BUG 10983: vfs_fruit: Add support for AAPL.
1538     * BUG 11005: vfs_streams_xattr: Add missing call to SMB_VFS_NEXT_CONNECT.
1539
1540
1541 o   Günther Deschner <gd@samba.org>
1542     * BUG 9056: pam_winbind: fix warn_pwd_expire implementation.
1543     * BUG 10942: Cleanup add_string_to_array and usage.
1544
1545
1546 o   David Disseldorp <ddiss@samba.org>
1547     * BUG 10898: spoolss: Fix handling of bad EnumJobs levels.
1548     * BUG 10905: Fix print job enumeration.
1549
1550
1551 o   Amitay Isaacs <amitay@gmail.com>
1552     * BUG 10620: s4-dns: Add support for BIND 9.10.
1553     * BUG 10892: Integrate CTDB into top-level Samba build.
1554     * BUG 10996: Fix IPv6 support in CTDB.
1555     * BUG 11014: packaging: Include CTDB man pages in the tarball.
1556
1557
1558 o   Björn Jacke <bj@sernet.de>
1559     * BUG 10835: nss_winbind: Add getgroupmembership for FreeBSD.
1560
1561
1562 o   Guenter Kukkukk <linux@kukkukk.com>
1563     * BUG 10952: Fix 'samba-tool dns serverinfo <server>' for IPv6.
1564
1565
1566 o   Volker Lendecke <vl@samba.org>
1567     * BUG 10932: pdb_tdb: Fix a TALLOC/SAFE_FREE mixup.
1568     * BUG 10942: dbwrap_ctdb: Pass on mutex flags to tdb_open.
1569
1570
1571 o   Justin Maggard <jmaggard10@gmail.com>
1572     * BUG 10852: winbind3: Fix pwent variable substitution.
1573
1574
1575 o   Kamen Mazdrashki <kamenim@samba.org>
1576     * BUG 10975: ldb: version 1.1.18
1577
1578
1579 o   Stefan Metzmacher <metze@samba.org>
1580     * BUG 10781: tdb: version 1.3.3
1581     * BUG 10911: Add support for SMB2 leases.
1582     * BUG 10921: s3:smbd: Fix file corruption using "write cache size != 0".
1583     * BUG 10949: Fix RootDSE search with extended dn control.
1584     * BUG 10958: libcli/smb: only force signing of smb2 session setups when
1585       binding a new session.
1586     * BUG 10975: ldb: version 1.1.18
1587     * BUG 11016: pdb_get_trusteddom_pw() fails with non valid UTF16 random
1588       passwords.
1589
1590
1591 o   Marc Muehlfeld <mmuehlfeld@samba.org>
1592     * BUG 10895: samba-tool group add: Add option '--nis-domain' and '--gid'.
1593
1594
1595 o   Noel Power <noel.power@suse.com>
1596     * BUG 10918: btrfs: Don't leak opened directory handle.
1597
1598
1599 o   Matt Rogers <mrogers@redhat.com>
1600     * BUG 10933: s3-keytab: fix keytab array NULL termination.
1601
1602
1603 o   Garming Sam <garming@catalyst.net.nz>
1604     * BUG 10355: pdb: Fix build issues with shared modules.
1605     * BUG 10720: idmap: Return the correct id type to *id_to_sid methods.
1606     * BUG 10864: Fix testparm to show hidden share defaults.
1607
1608
1609 o   Andreas Schneider <asn@samba.org>
1610     * BUG 10279: Make 'smbclient' use cached creds.
1611     * BUG 10960: s3-smbclient: Return success if we listed the shares.
1612     * BUG 10961: s3-smbstatus: Fix exit code of profile output.
1613     * BUG 10965: socket_wrapper: Add missing prototype check for eventfd.
1614
1615
1616 o   Martin Schwenke <martin@meltin.net>
1617     * BUG 10892: Integrate CTDB into top-level Samba build.
1618     * BUG 10996: Fix IPv6 support in CTDB.
1619
1620
1621 CHANGES SINCE 4.2.0rc1
1622 ======================
1623
1624 o   Jeremy Allison <jra@samba.org>
1625     * BUG 10848: s3: smb2cli: query info return length check was reversed.
1626
1627
1628 o   Björn Baumbach <bb@sernet.de>
1629     * BUG 10862: build: Do not install 'texpect' binary anymore.
1630
1631
1632 o   Chris Davis <cd.rattan@gmail.com>
1633     * BUG 10859: Improve samba-regedit.
1634
1635
1636 o   Jakub Hrozek <jakub.hrozek@gmail.com>
1637     * BUG 10861: Fix build of socket_wrapper on systems without SO_PROTOCOL.
1638
1639
1640 o   Volker Lendecke <vl@samba.org>
1641     * BUG 10860: registry: Don't leave dangling transactions.
1642
1643
1644 o   Stefan Metzmacher <metze@samba.org>
1645     * BUG 10866: libcli/smb: Fix smb2cli_validate_negotiate_info with
1646       min=PROTOCOL_NT1 max=PROTOCOL_SMB2_02.
1647
1648
1649 o   Christof Schmitt <cs@samba.org>
1650     * BUG 10837: idmap_rfc2307: Fix a crash after connection problem to DC.
1651
1652
1653 #######################################
1654 Reporting bugs & Development Discussion
1655 #######################################
1656
1657 Please discuss this release on the samba-technical mailing list or by
1658 joining the #samba-technical IRC channel on irc.freenode.net.
1659
1660 If you do report problems then please try to send high quality
1661 feedback. If you don't provide vital information to help us track down
1662 the problem then you will probably be ignored.  All bug reports should
1663 be filed under the Samba 4.2 product in the project's Bugzilla
1664 database (https://bugzilla.samba.org/).
1665
1666
1667 ======================================================================
1668 == Our Code, Our Bugs, Our Responsibility.
1669 == The Samba Team
1670 ======================================================================
1671