1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
6 <title>Samba - Release Notes Archive</title>
11 <H2>Samba 3.0.7 Available for Download</H2>
15 =============================
16 Release Notes for Samba 3.0.7
18 =============================
20 This is the latest stable release of Samba. This is the version
21 that production Samba servers should be running for all
22 current bug-fixes. There have been several important issues
23 fixes since the 3.0.6 release. See the "Changes" section for
24 details on exact updates.
26 Common bugs fixed in 3.0.7 include:
28 o Fixes for two Denial of Service vulnerabalities
29 (CVE ID# CAN-2004-0807 & CAN-2004-0808).
30 o Winbind failure to return user entries under certain
32 o Syntax errors in the OpenLDAP schema file (samba.schema).
33 o Printing errors caused by not setting default values
34 for the various printing commands.
37 ######################################################################
43 winbind enable local accounts disabled by default
49 o Jeremy Allison <jra@samba.org>
50 * Fix parsing of names ending in dot and a few other error
52 * BUG 1674: Move the symlinks checks into reduce_name().
53 * Fix memleak when checking the valid names smb.conf option.
54 * Fix memleak on error return path in the file open code.
55 * More paranoia checks in the hash2 mangling code.
56 * Fix syntax error in configure.in.
57 * Match Win2k3's behavior for pathname parsing error returns.
58 * Make nmbd more robust against bad netbios packets
60 * Add more checks for invalid ASN.1 packets for SPNEGO packets
64 o Andrew Bartlett <abartlet@samba.org>
65 * Janitor work in loadparm.c -- remove unused parameters.
68 o Gerald Carter <jerry@samba.org>
69 * BUG 1464: Ensure that printing commands are initialized even
70 if the 'printing' parameter is not explicitly set.
71 * Resolve name conflict on DEC OSF-5.1 (inspired by patch from
72 Adharsh Praveen <rprav@india.hp.com>)
73 * Work around parsing error in the print change notify code.
74 * remove duplicate declaration of getprintprocdir from
76 * Only use sAMAccountName and not userPrincipalName when looking
77 up a username in AD since the breaks winbindd (lookup_name()
78 only works with the sAMAccountName).
79 * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not
80 filling in the username in the user_info3.
81 * Fix logic bug in the check for creating a user's home directory
82 in register_vuid(); caused home directory to be mismatched to
83 the first share in smb.conf under certain conditions.
84 * BUG 1656: rename auto.a to auto.smb.
85 * Ensure that we assign our pid to print jobs (and not our
86 parent's pid); ensures that spooling jobs from dead smbds
87 are removed from the tdb.
88 * Disable 'winbind enable local accounts' by default.
89 * Adding some initial checks for DragonFly (same as
93 o Guenther Deschner <gd@samba.org>
94 * Use SMB_ASSERT() to track down NULL printer names in
96 * Revert fix for BUG 1474 to avoid unnecessary packaging
100 o Olaf Flebbe <o.flebbe@science-computing.de>.
101 * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3
103 * BUG 1626: More compile fixes.
106 o Rob Foehl <rwf@loonybin.net>
107 * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset
108 by attempts to sanitize the defined attributes.
111 o SATOH Fumiyasu <fumiya@miraclelinux.com>
112 * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
115 o Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
116 * BUG 1657: Remove used initialized variable,
117 * BUG 1658: Add a little bit of const.
120 o Volker Lendecke <vl@samba.org>
121 * If there's garbage in the pidfile, we should not panic
122 but assume that no one else is around. We can't find the
126 o Jim McDonough <jmcd@us.ibm.com>
127 * Fixup format string in the tdb error messages.
130 o Jonas Olsson <lexicon@lysator.liu.se>
131 * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when
132 reporting the list in usrmgr.exe.
135 o Tim Potter <tpot@samba.org>
136 * Fix out-of-tree builds (problem with the script to generate
137 the svn version number).
138 * BUG 1360: Need to use -Wl when passing flags to the linker.
139 * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which
140 doesn't have one of its own.
143 o Simo Source <idra@samba.org>
144 * Fixup compile issues on AIX caused by broken strlen() and
146 * Update debian packaging files.
149 o Dimitri van der Spek <dwspek@aboveit.nl>
150 * Use the correct counter when copying group rids from the
151 user_info3 struct in pam_winbind.
154 o Qiao Yang <qyang@stbernard.com>
155 * BUG 1622: Only cache the user
158 Changes for older versions follow below:
160 --------------------------------------------------
162 =============================
163 Release Notes for Samba 3.0.6
165 =============================
167 Common bugs fixed in 3.0.6 include:
169 o Schannel failure in winbindd.
170 o Numerous memory leaks.
171 o Incompatibilities between the 'write list' and 'force user'
173 o Premature optimization of the open_directory() internal
174 function that broke tools such as the ArcServe backup
175 agent, Macromedia HomeSite, and Robocopy.
176 o Corrupt workgroup names in nmbd's browse.dat.
177 o Sharing violation errors commonly seen when opening
178 when serving Microsoft Office documents from a Samba
180 o Browsing problems caused by an apostrophe (') in the
181 computer's description field.
182 o Problems creating special file types from UNIX CIFS
183 clients and enabling 'unix extensions'.
184 o Fix stalls in smbd caused by inaccessible LDAP servers.
185 o Remove various memory leaks.
186 o Fix issues in the password lockout feature.
188 New features introduced in this release include:
190 O Support symlinks created by CIFS clients which
191 can be followed on the server.
192 o Using a cups server other than localhost.
193 o Maintaining the service principal entry in the system
194 keytab for integration with other kerberized services.
195 Please refer to the 'use kerberos keytab' entry in
196 smb.conf(5). When using the heimdal kerberos libraries,
197 you must also specify the following in /etc/krb5.conf:
199 default_keytab_name = FILE:/etc/krb5.keytab
200 o Support for maintaining individual printer names
201 stored separately from the printer's sharename.
202 o Support for maintaining user password history.
203 o Support for honoring the logon times for user in a
206 --------------------------------------------
207 unix extensions = yes (default) and symlinks
208 --------------------------------------------
210 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1),
211 clients supporting the UNIX extensions to the CIFS protocol
212 can create symlinks to absolute paths which will be **followed**
213 by the server. This functionality has been requested in order
214 to correctly support certain applications when the user's home
215 directory is mounted using some type of CIFS client (e.g. the
216 cifsvfs in the Linux 2.6 kernel).
218 If this behavior is not acceptable for your production environment
219 you can set 'wide links = no' in the specific share declaration in
220 the server's smb.conf. Be aware that disabling wide link support
221 out of a share in Samba may impact the server's performance due
222 to the fact that smbd will now have to check each path additional
223 times before traversing it.
225 ------------------------
226 Password History Support
227 ------------------------
229 The new password history feature allows smbd to check the new
230 password in password change requests against a list of the user's
231 previous passwords. The number of previous passwords to save can
232 be set using pdbedit (4 in this example):
234 root# pdbedit -P "password history" -C 4
236 When using the ldapsam passdb backend, it is vital to secure the
237 following attributes from access by non-administrative users:
241 * sambaPasswordHistory
243 You should refer to your directory server's documentation on how
244 to implement this restriction.
253 Parameter Name Action
254 -------------- ------
256 defer sharing violations New
257 force unknown acl user New
259 printcap cache time New
260 use kerberos keytab New
264 o Jeremy Allison <jra@samba.org>
265 * Correct path parsing bug that broke DeletePrinterDriverEx().
266 * Fix bugs in check_path_syntax() caught by asserts.
267 * Internal change - rearrange internal global case setting
268 variables to a per connection basis.
269 * BUG 1345: Fix premature optimization in unix_convert().
270 * Allow clients to truncate a locked file.
271 * BUG 1319: Always check to see if a user as write access
272 to a share, even when 'force user' is set.
273 * Fix specific case of open that doesn't cause oplock break,
275 * Correct sid type is WKN_GROUP, not alias. Added some
276 more known types (inspired by patch from Jianliang Lu).
277 * Allow creation of absolute symlink paths via CIFS clients.
278 * Fix charset bug in when invoking send_mailslot().
279 * When using widelinks = no, use realpath to canonicalize
280 the connection path on connection create for the user.
281 * Enhance stat open code.
282 * Fix unix extensions mknod code path.
283 * Allow unix domain socket creation via unix extensions.
284 * Auto disable the 'store dos attribute' parameter if the
285 underlying filesystem doesn't support EAs.
286 * Implement deferred open code to fix a bug with Excel files
288 * BUG 1427: Catch bad path errors at the right point. Ensure
289 all our pathname parsing is consistent.
290 * Fix SMB signing error introduced by the new deferred open
292 * Change default setting for case sensitivity to "auto". (see
293 commit message -- r1154 -- for details).
294 * Add new remote client arch -- CIFSFS.
295 * Allow smbd to maintain the service principal entry in the
296 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
297 Guenther Deschner, et. al.).
298 * Fix longstanding memleak bug with logfile name.
299 * Fix incorrect type in printer publishing (struct uuid,
301 * Heimdal compile fixes after introduction of the new ketyab
303 * Ensure we check attributes correctly on rename request.
304 * Ensure we defer a sharing violation on rename correctly.
305 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
307 * Fix bogus error message when using "mangling method = hash"
309 * Turn on sendfile by default for non-Win9x clients.
310 * Handle non-io opens that cause oplock breaks correctly.
311 * Ensure ldap replication sleep time is not more than 5 seconds.
312 * Add support for storing a user's password history.
313 LDAP portion of the code was based on a patch from
314 Jianliang Lu <j.lu@tiesse.com>.
315 * Correct memory leaks found in the password change code.
316 * Fix support for the mknod command with the Linux CIFS client.
317 * Remove support for passing the new password to smbpasswd
318 on the command line without using the -s option.
319 * Ensure home directory service number is correctly reused
320 (inspired by patches from Michael Collin Nielsen
321 <michael@hum.aau.dk>).
322 * Fix to stop printing accounts from resetting the bas
323 password and account lockout flags.
324 * If a account was locked out by an admin (and has a bad
325 password count of zero) leave it locked out until an admin
326 unlocks it (but log a message).
327 * Ensure we return the same ACL revision on the wire that
329 * BUG 1578: Hardcode replacement for invalid characters as '_'
330 (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
331 * Fix hashed password history for LDAP backends.
332 * Enforce logon hours restrictions if confiogured (based on code
333 from Richard Renard <rrenard@idealx.com>).
334 * BUG 1606: Force smbd to disable sendfile with DOS clients
335 and ensure that the chained header is filled in for ...&X
337 * BUG 1602: Fix access to shares when all symlink support
342 o Tom Alsberg <alsbergt@cs.huji.ac.il>
343 * Allow pdbedit to export a single user from a passdb backend.
346 o Andrew Bartlett <abartlet@samba.org>
347 * Fix parsing bug in GetDomPwInfo().
348 * Fix segfault in 'ntlm_auth --diagnostics'.
349 * Re-enable code to allow sid_to_gid() to perform a group
350 mapping lookup before checking with winbindd.
351 * Fix memory leak in the trans2 signing code.
352 * Allow more flexible GSS-SPENGO client and server operation
354 * Improve smbd's internal random number generation.
355 * Fix a few outstanding long password changes in smbd.
356 * Fix LANMAN2 session setup code.
359 o Eric Boehm <boehm@nortelnetworks.com>
360 BUG 703: Final touches on netgroup case lookups.
363 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
364 * Ensure error status codes don't get overwritten in
365 lsa_lookup_sids() server code.
366 * Correct bug that caused smbd to overwrite certain error
367 codes when returning up the call stack.
368 * Ensure the correct sid type returned for builtin sids.
371 o Gerald Carter <jerry@samba.org>
372 * Fix a few bugs in the Fedora Packaging files.
373 * Fix for setting the called name to by our IP if the
374 called name was *SMBSERVER and *SMBSERV. Fixes issue
375 with connecting to printers via \\ip.ad.dr.ess\printer
377 * BUG 1315: fix for schannel client connections to servers
378 when we haven't specifically negotiated AUTH_PIPE_SEAL.
379 * Allow PrinterDriverData valuenames with embedded backslashes
380 (Fixes bug with one of the Konica Fiery drivers).
381 * Fixed string length miscalculation in netbios names that
382 resulted in corrupt workgroup names in browse.dat.
383 * When running smbd as a daemon, launch child smbd to update
384 the lpq cache listing in the background.
385 * Allow printers "Printers..." folder to be renamed to a string
386 other than the share name.
387 * Allow winbindd to use domain trust account passwords when
388 running on a Samba DC to establish an schannel to remote
390 * Fix bad merge and ensure that we always use tdb_open_log()
391 instead of tdb_open_ex() (the former call enforce the 'use
393 * BUG 1221: revert old change that used single and double
394 quotes as delimeters in next_token(), and change
395 print_parameter() to print out parm values surrounded by
396 double quotes (instead of single quotes).
397 * Prevent home directories added during the SMBsesssetup&X from
398 being removed as unused services.
399 * Invalidate the print object cache for open printer handles when
400 smbd receives a message that an attribute on a given printer
402 * Cause the configure script to exit if --enable-cups[=yes] is
403 defined and the system does not have the cups devel files
405 * BUG 1297: Prevent map_username() from being called twice
407 * Ensure that we use the userPrincipalName AD attribute
408 value for LDAP SASL binds.
409 * Ensure we remove the tdb entry when deleting a job that
411 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
412 client sends a FindNextPrintChangeNotify() request without
413 previously sending a FindFirstPrintChangeNotify(). Return
414 the same error code as Windows 2000 SP4.
415 * BUG 1516: Manually declare ldap_open_with_timeout() to
416 workaround compiler errors on IRIX (or other systems without
418 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
420 * Corrected syntax error in the OID for sambaUnixIdPool,
421 sambaSidEntry, & sambaIdmapEntry object classes.
422 * Tighten the cache consistency with the ntprinters.tdb entry
423 an the in memory cache associated with open printer handles.
424 * Make sure that register_messages_flags() doesn't overwrite
425 the originally registered flags.
428 o Fabien Chevalier <fabien.chevalier@supelec.fr>
429 * Debian BUG 252591: Ensure that the return value from the
430 number of available interfaces is initialized in case no
431 interfaces are actually available.
434 o Guenther Deschner <gd@sernet.de>
435 * Implement 'rpcclient setprintername'.
436 * Add local groups to the user's NT_TOKEN since they are
437 actually supported now.
438 * Heimdal compile fixes after introduction of the new keytab
440 * Correctly honor the info level parameter in 'rpcclient
442 * Reintroduce 'force unknown acl user' parameter. When getting a
443 security descriptor for a file, if the owner sid is not known,
444 the owner uid is set to the current uid. Same for group sid.
445 * Ensure that REG_SZ values in the SetPrinterData actually
446 get written in UNICODE strings rather than ASCII.
447 * Ensure that the last kerberos error return is not invalid.
448 * Display share ACL entries from rpcclient.
449 * Correct infinite loop in pam_winbind's verification of
450 group membership in the 'other sids' field in the user_info3
454 o Fabian Franz <FabianFranz@gmx.de>
455 * Support specifying a port in the device URL passed to smbspool.
458 o Steve French <sfrench@us.ibm.com>
459 * Handle -S and user mount parms in mount.cifs.
460 * Fix user unmount of shares mount with suid mount.cifs.
461 * prevent infinite recusion in reopen_logs() when expanding
462 the smb.conf variable %I.
465 o Bjoern Jacke <bj@sernet.de>
466 * Install libsmbclient into $(LIBDIR), not into hard coded
467 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
468 and an explicit configure --libdir setting.
471 o <kawasa_r@itg.hitachi.co.jp>
472 * Correct more memory leaks and initialization bugs.
473 * Fix bug that prevented core dumps from being generated
475 * Connect to the winbind pipe in non-blocking mode to
476 prevent processes from hanging.
480 o Stephan Kulow <coolo@suse.de>
481 * Fix crash bug in libsmbclient.
484 o Volker Lendecke <vl@samba.org>
485 * Added vfs_full_audit module.
486 * Add vfs_afsacl.c which can display & set AFS acls via
487 the NT security editor.
488 * Fix crash bug caused by trying to Base64 encode a NULL string.
489 * Fix DOS error code bug in reply_chkpath().
490 * Correct misunderstanding of the max_size field in
491 cli_samr_enum_als_groups; it is more like an account_control
492 field with individual bits what to retrieve.
493 * Implement 'net rpc group rename' -- rename domain groups.
494 * Implement the 'cups server' option. This makes it possible
495 to have virtual smbd's connect to different cups daemons.
496 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
497 * Fix sid_to_gid() calls in winbindd to prevent loops.
498 * Ensure that local_sid_to_gid() sets the type of the group on
500 * Make sure that the clients are given back the IP address to
501 which they connected in the case of a multi-homed host. Only
502 affects strings the spoolss printing replies.
503 * Fix the bad password lockout. This has not worked as pdb_ldap.c
504 did not ask for the modifyTimestamp attribute, so it could
505 not find it. Try not to regress by not putting that attrib
506 in the main list but append it manually for the relevant searches.
507 * Fix two memleaks in login_cache.c.
508 * fixes memory bloat when unmarshalling strings.
509 * Fix compile errors using gcc 3.2 on SuSE 8.2.
510 * Fix the build for systems without kerberos headers.
511 * Allow winbindd to handle authentication requests only when
512 started without either an 'idmap uid' or 'idmap gid' range.
513 * Fix the build for systems without ldap headers.
514 * Fix interaction between share security descriptor and the
515 'read only' smb.conf option.
516 * Fix bug that caused _samr_lookupsids() with more than 32 (
517 MAX_REF_DOMAINS) SIDs to fail.
518 * Allow the 'idmap backend' parameter to accept a list of
519 LDAP servers for failover purposes.
520 * Revert code in smbd to remove a tdb when it has become
522 * Add paranoid checks when mapping SIDs to a uid/gid to
523 ensure that the type is correct.
524 * Initial work on getting client support for sending mailslot
526 * Add 'ldap timeout' parameter.
527 * Dont always uppercase 'afs username map'.
528 * Expand aliases for getusersids as well.
529 * Improved NT->AFS ACL mapping VFS module.
532 o Herb Lewis <herb@samba.org>
533 * Add the acls debug class.
534 * Fix logic bug in netbios name truncate routine.
535 * Fix smbd crash caused by smbtorture IOCTL test.
536 * Fix errno tromping before calling iconv to reset the
538 * need to leave empty dacl so we can remove last ACE.
541 o Jianliang Lu <Jianliang.Lu@getronics.com>
542 * Fix to stop smbd hanging on missing group member in
544 * Make sure Samba returns the correct group types.
545 * Reset the bad password count password counts upon a successful login.
548 o Jason Mader <jason@ncac.gwu.edu>
549 * BUG 1385: Don't use non-consts in a structure initialization.
552 o Jim McDonough <jmcd@us.ibm.com>
553 * BUG 1279: SMBjobid fix for Samba print servers running on
554 Big-Endian platforms.
557 o Joe Meadows <jameadows@webopolis.com>
558 * Add optional timeout parameter to ldap open calls.
559 * Allow get_dc_list() to check the negative cache.
562 o Stefan Metzmacher <metze@samba.org>
563 * fix a configure logic bug for linux/XFS quotas when
564 using --with-sys-quotas.
565 * Use quota debug class in quota code.
566 * print out the SVN revision by configure,
569 o Buchan Milne <bgmilne@mandrake.org>
570 * Mandrake packaging fixes.
573 o Lars Mueller <lmuelle@suse.de>
574 * BUG 1279: Added 'printcap cache time' parameter.
575 * Fix afs related build issues on SuSE.
576 * Fix compiler warnings in the kerberos client code.
579 o James Peach <jpeach@sgi.com>
580 * More iconv detection fixes for IRIX.
581 * Compile fixed for systems that do not have C99/UNIX98 compliant
582 vsnprintf by default.
583 * Prevent smbd from attempting to use sendfile at all if it is
584 not supported by the server's OS.
585 * Allow SWAT to search for index.html when serving html files
590 * Implement NFS quota support on FreeBSD.
593 o Tim Potter <tpot@samba.org>
594 * BUG 1360: Use -Bsymbolic when creating shared libraries to
595 avoid conflicts with identical symbols in the global namespace
596 when loading libnss_wins.so.
599 o Richard Renard <rrenard@idealx.com>
600 * Save the current password as it is being changed into the
601 password history list.
604 o Richard Sharpe <rsharpe@samba.org>
605 * Fix error return codes on some lock messages.
606 * BUG 1178: Make the libsmbclient routines callable
608 * BUG 1333: Make sure we return an error code when
610 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
611 share mode locking requests fail.
614 o Simo Source <idra@samba.org>
615 * Update Debian stable & unstable packaging.
616 * Tidy up parametric options in testparm output.
619 o Richard Sharpe <rsharpe@samba.org>
620 * Add sigchild handling to winbindd to restart the child
624 o Tom Shaw <tomisfaraway@gmail.com>
625 * Use winbindd_fill_pwent() consistently.
628 o Nick Thompson <nickthompson@agere.com>
629 * Protect smbd against broken filesystems which return zero
633 o Andrew Tridgell <tridge@samba.org>
634 * Fixed bug in handling of timeout in socket connections.
637 o Nick Wellnhofer <wellnhofer@aevum.de>
638 * Prevent lp_interfaces() list from being corrupted. Fixes
639 bug where nmbd would lose the list of network interfaces
640 on the system and consequently shutdown.
643 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
644 * Fix ntlm_auth memory leaks.
647 o Jelmer Vernooij <jelmer@samba.org>
648 * Additional NT status to unix error mappings.
649 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
650 get duplicate symbol errors.
651 * Return an error when the last command read from stdin
653 * Prepare for better error checking in tar.
654 * BUG 1474: Fix build of --with-expsam stuff on Solaris.
657 Changes for older versions follow below:
659 --------------------------------------------------
661 =============================
662 Release Notes for Samba 3.0.5
664 =============================
666 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
667 the exception of correcting the two security issues outlined
670 ######################## SECURITY RELEASE ########################
672 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
673 CVE ID: CAN-2004-0600, CAN-2004-0686
674 (http://cve.mitre.org/)
677 This is the latest stable release of Samba. This is the version
678 that production Samba servers should be running for all current
681 It has been confirmed that versions of Samba 3 prior to v3.0.4
682 are vulnerable to two potential buffer overruns. The individual
683 details are given below.
689 Affected Versions: Samba 3.0.2 and later
691 The internal routine used by the Samba Web Administration
692 Tool (SWAT v3.0.2 and later) to decode the base64 data
693 during HTTP basic authentication is subject to a buffer
694 overrun caused by an invalid base64 character. It is
695 recommended that all Samba v3.0.2 or later installations
696 running SWAT either (a) upgrade to v3.0.5, or (b) disable
697 the swat administration service as a temporary workaround.
699 This same code is used internally to decode the
700 sambaMungedDial attribute value when using the ldapsam
701 passdb backend. While we do not believe that the base64
702 decoding routines used by the ldapsam passdb backend can
703 be exploited, sites using an LDAP directory service with
704 Samba are strongly encouraged to verify that the DIT only
705 allows write access to sambaSamAccount attributes by a
706 sufficiently authorized user.
708 The Samba Team would like to heartily thank Evgeny Demidov
709 for analyzing and reporting this bug.
715 Affected Versions: Samba 3.0.0 and later
717 A buffer overrun has been located in the code used to support
718 the 'mangling method = hash' smb.conf option. Please be aware
719 that the default setting for this parameter is 'mangling method
720 = hash2' and therefore not vulnerable.
722 Affected Samba 3 installations can avoid this possible security
723 bug by using the default hash2 mangling method. Server
724 installations requiring the hash mangling method are encouraged
725 to upgrade to Samba 3.0.5.
728 ##################################################################
730 --------------------------------------------------
732 =============================
733 Release Notes for Samba 3.0.4
735 =============================
737 Common bugs fixed in Samba 3.0.4 include:
739 o Password changing after applying the patch described in
740 the Microsoft KB828741 article to Windows clients.
742 o Managing print jobs via Windows on Big-Endian servers.
743 o Several memory leaks in winbindd and smbd.
744 o Compile issues on AIX and *BSD.
752 o Jeremy Allison <jra@samba.org>
753 * Fix path processing for DeletePrinterDriverEx().
754 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
758 o Andrew Bartlett <abartlet@samba.org>
759 * Fix alignment bug in GetDomPwInfo().
762 o Alexander Bokovoy <ab@samba.org>
763 * Fix utime[s]() issues in smbwrapper on systems
764 that can boot both the 2.4 and 2.6 Linux kernels.
767 o Gerald Carter <jerry@samba.org>
768 * Fedora packaging fixes.
769 * BUG 1302: Fix seg fault by not trying to optimize a list of
770 invalid gids using the wrong array size.
771 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
772 seen when 'security = share'.
773 * Fix problems when using IBM's compiler on AIX.
774 * Link Developer's Guide, Example Guide, and multi-page HOWTO
775 into SWAT's welcome page.
776 * BUG 1293: fix double free in printer publishing code.
779 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
780 * Fix for handling timeouts in socket connections.
783 o Michel Gravey <michel.gravey@optogone.com>
784 * BUG 483: patch from to fix password hash creation in SWAT.
787 o Volker Lendecke <vl@samba.org>
788 * Close the open NT pipes before the tdis.
789 * Fix AFS related build issues.
790 * Handle error conditions when base64 encoding a blob of 0 bytes.
793 o Herb Lewis <herb@samba.org>
794 * Added 'acls' debug class.
796 o kawasa_r@itg.hitachi.co.jp
797 * Multiple variable initialization and memory leak fixes.
800 o Stephan Kulow <coolo@suse.de>
801 * Fix string length bug in libsmbclient that caused KDE's
803 * BUG 429: More libsmbclient fixes.
806 o Jim McDonough <jmcd@us.ibm.com>
807 * BUG 1007, 1279: Store the print job using a little-endian key.
811 o Compile fix for OpenBSD (ENOTSUP not supported).
814 o Stefan Metzmacher <metze@samba.org>
815 * Correct bug in disks quota views from explorer.
818 o Tim Potter <tpot@samba.org>
819 BUG 1305: Correct debug output.
822 o Richard Sharpe <rsharpe@samba.org>
823 * Fix incorrect error code mapping.
826 o Jelmer Vernooij <jelmer@samba.org>
827 * Add additional NT_STATUS errorm mappings.
830 Changes for older versions follow below:
832 --------------------------------------------------
834 =============================
835 Release Notes for Samba 3.0.3
837 =============================
840 Common bugs fixed in Samba 3.0.3 include:
842 o Crash bugs and change notify issues in Samba's printing code.
843 o Honoring secondary group membership on domain member servers.
844 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
845 o Substitution errors for %[UuGg] in smb.conf.
846 o winbindd crashes when using ADS security mode.
847 o SMB signing errors.
848 o Delays in winbindd startup caused by unnecessary
849 connections to trusted domain controllers.
850 o Various small memory leaks.
851 o Winbindd failing due to expired Kerberos tickets.
853 New features introduced in Samba 3.0.3 include:
855 o Improved support for i18n character sets.
856 o Support for account lockout policy based on
857 bad password attempts.
858 o Improved support for long password changes (>14
859 characters) and strong password enforcement.
860 o Support for Windows aliases (i.e. nested groups).
861 o Experimental support for storing DOS attribute on files
862 and folders in Extended Attributes.
863 o Support for local nested groups via winbindd.
864 o Specifying options to be passed directly to the CUPS libraries.
866 Please be aware that the Samba source code repository was
867 migrated from CVS to Subversion on April 4, 2004. Details on
868 accessing the Samba source tree via anonymous svn can be found
869 at http://svn.samba.org/samba/subversion.html.
877 Parameter Name Action
878 -------------- ------
882 store dos attributes New
884 winbind nested groups New
890 o Jeremy Allison <jra@samba.org>
891 * Ensure that Kerberos mutex is always properly unlocked.
892 * Removed Heimdal "in-memory keytab" support.
893 * Fixup the 'multiple-vuids' bugs in our server code.
894 * Correct return code from lsa_lookup_sids() on unmapped
895 sids (based on work by vl@samba.org).
896 * Fix the "too many fcntl locks" scalability problem
898 * Fixup correct (as per W2K3) returns for lookupsids
899 as well as lookupnames.
900 * Fixups for delete-on-close semantics as per Win2k3 behavior.
901 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
902 * Fix "unable to initialize" bug when smbd hasn't been run with
903 new system and a user is being added via pdbedit/smbpasswd.
904 * Added NTrename SMB (0xA5).
905 * Fixup correct timeout values for blocking lock timeouts.
906 * Fix various bugs reported by 'gentest'.
907 * More locking fixes in the case where we own the lock.
908 * Fix up regression in IS_NAME_VALID and renames.
909 * Don't set allocation size on directories.
910 * Return correct error code on fail if file exists and target
912 * Added client "hardlink" comment to test doing NT rename with
913 hard links. Added hardlink_internals() code - UNIX extensions
914 now use this as well.
915 * Use a common function to parse all pathnames from the wire for
916 much closer emulation of Win2k3 error return codes.
917 * Implement check_path_syntax() and rewrite string sub
918 functions for better multibyte support.
919 * Ensure msdfs referrals are multibyte safe.
920 * Allow msdfs symlink syntax to be more forgiving.
921 eg. sym_link -> msdfs://server/share/path/in/share
922 or sym_link -> msdfs:\\server\share\path\in\share.
923 * Cleanup multibyte netbios name support in nmbd ( based on patch
924 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
925 * Fix check_path_syntax() for multibyte encodings which have
926 no '\' as second byte (based on work by ab@samba.org.
927 * Fix the "dfs self-referrals as anonymous user" problem
928 (based on patch from vl@samba.org).
929 * BUG 1064: Ensure truncate attribute checking is done correctly
930 on "hidden" dot files.
931 * Fix bug in anonymous dfs self-referrals again.
932 * Fix get/set of EA's in client library
933 * Added support for OS/2 EA's in smbd server.
934 * Added 'ea support' parameter to smb.conf.
935 * Added 'store dos attributes' parameter to smb.conf.
936 * Fix wildcard identical rename.
937 * Fix reply_ctemp - make compatible with w2k3.
938 * Fix wildcard unlink.
939 * Fix wildcard src with wildcard dest renames.
940 * BUG 1139: Fix based on suggestion by jdev@panix.com.
941 swap lookups for user and group - group will do an
942 algorithmic lookup if it fails, user won't.
943 * Make EA's lookups case independent.
944 * Fix SETPATHINFO in 'unix extensions' support.
945 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
946 the UNIX info levels, and the short case preserve names.
949 o Timur Bakeyev <timur@com.bat.ru>
950 * BUG 1144: only set --with-fhs when the argument is 'yes'
951 * BUG 1152: Allow python modules to build despite libraries added
952 to LDFLAGS instead of LDPATH.
953 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
956 o Craig Barratt <cbarratt@users.sourceforge.net>
957 * BUG 389: Allow multiple exclude arguments with smbclient
958 tar -Xr options (better support for Amanda backup client).
961 o Andrew Bartlett <abartlet@samba.org>
962 * Include support for linking with cracklib for enforcing strong
964 * Add support for >14 character password changes from Windows
966 * Add 'admin set password' capability to 'net rpc'.
967 * Allow 'net rpc samdump' to work with any joined domain
968 regardless of smb.conf settings.
969 * Use an allocated buffer for count_chars.
970 * Add sanity checks for changes in the domain SID in an
972 * Implement python unit tests for Samba's multibyte string
974 * Remove 'unicode' smb.conf option.
975 * BUG 1138: Fix support for 'optional' SMB signing and other
977 * BUG 169: Fix NTLMv2-only behavior.
978 * Ensure 'net' honors the 'netbios name' in the smb.conf by
980 * Support SMB signing on connections using only the LANMAN
981 password and generate the correct the 'session key' for these
983 * Implement --required-membership-of=, an ntlm_auth option
984 that restricts all authentication to members of this particular
986 * Improve our fall back code for password changes.
987 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
988 after the server had said something (such as an error).
989 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
992 o Alexander Bokovoy <ab@samba.org>
993 * Fix incorrect size calculation of the directory name
995 * Fix problems with very long filenames in both smbd and smbclient
996 caused by truncating paths during character conversions.
997 * Fix smbfs problem with Tree Disconnect issued before smbfs
1001 o Gerald Carter <jerry@samba.org>
1002 * BUG 850: Fix 'make installmodules' bug on True64.
1003 * BUG 66: mark 'only user' deprecated.
1004 * Remove corrupt tdb and shutdown (only for printing tdbs,
1005 connections, sessionid & locking).
1006 * decrement smbd counter in connections.tdb in smb_panic().
1007 * RedHat specfile updates.
1008 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
1009 * BUG 1147; bad pointer case in get_stored_queue_info()
1011 * BUG 761: read the config file before initialized default
1012 values for printing options; don't default to bsd printing
1014 * Allow the 'printing' parameter to be set on a per share basis.
1015 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
1016 * BUG 848: don't create winbind local users/groups that already
1018 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
1020 * BUG 488: fix the 'show client in col 1' button and correctly
1021 enumerate active connections.
1022 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
1023 problem when storing the updating pid for the lpq cache.
1024 * BUG 1007 (partial): Fix print change notify bugs.
1025 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
1026 and winbind use default domain = yes. Also ensures that
1027 * BUG 1151: Ensure that winbindd users are passed through
1029 * Fix client rpc binds for ASU derived servers (pc netlink,
1031 * BUG 417, 1128: Ensure that the current_user_info is set
1032 consistently so that %[UuGg] is expanded correctly.
1033 * BUG 1195: Fix crash in winbindd when the ADS server is
1035 * BUG 1185: Set reconnect time to be the same as the
1036 'winbind cache time'.
1037 * Ensure that we return the sec_desc in smb_io_printer_info_2.
1038 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
1039 * BUG 1095: Honor the '-l' option in smbclient.
1040 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
1042 * Ensure server schannel uses the auth level requested by the
1044 * Removed --with-cracklib option due to potential crash issue.
1045 * Fix -lcrypto linking problem with wbinfo.
1046 * BUG 761: allow printing parameter to set defaults on a per
1048 * Add 'cups options' parameter to allow raw printing without
1049 changing /etc/cups/cupsd.conf.
1050 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
1052 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
1053 * BUG 1288: resolve any machine netbios name (0x00) and not just
1055 * BUG 1199: Fix potential symlink issue in
1056 examples/printing/smbprint.
1059 o Robert Dahlem <Robert.Dahlem@gmx.net>
1060 * BUG 1048: Don't return short names when when 'mangled names = no'
1063 o Guenther Deschner <gd@suse.com>
1064 * Remove hard coded attribute name in the ads ranged retrieval
1066 * Add --with-libdir and --with-mandir to autoconf script.
1069 o Bostjan Golob <golob@gimb.org>
1070 * BUG 1046: Fix getpwent_list() so that the username is not
1071 overwritten by other fields.
1074 o Landon Fuller <landonf@opendarwin.org>
1075 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
1076 to fix user/group enumeration on systems whose libc does not
1077 call setgrent() before trying to enumerate users (i.e.
1081 o Steve French <sfrench@us.ibm.com>
1082 * Update mount.cifs to version 1.1.
1083 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
1084 * Fixes to minor security bug in the mount helper.
1085 * Fix credential file mounting for cifs vfs.
1086 * Fix free of incremented pointer in cifsvfs mount helper.
1087 * Fix path canonicalization of the mount target path and help
1088 text display in the cifs mount helper.
1089 * Add missing guest mount option for mount.cifs.
1092 o SATOH Fumiyasu <fumiya@miraclelinux.com>
1093 * BUG 1055; formatting fixes for 'net share'.
1094 * BUG 692: correct truncation of share names and workgroup
1096 * BUG 1088: use strchr_m() for query_host (smbclient -L).
1097 * Patch from to internally count characters correctly.
1100 o Paul Green <paulg@samba.org>
1101 * Update VOS _POSIX_C_SOURCE macro to 200112L.
1102 * Fix bug in configure.ion by moving the first use of
1103 AC_CHECK_HEADERS so it is always executed.
1104 * Fix configure.in to only use $BLDSHARED to select whether to
1105 build static or shared libraries.
1108 o Pat Haywarrd <Pat.Hayward@propero.net>
1109 * Make the session_users list dynamic (max of 128K).
1112 o Cal Heldenbrand <calzplace@yahoo.com>
1113 * Fix for for 'pam_smbpass migrate' functionality.
1116 o Chris Hertel <crh@samba.org>
1117 * fix enumeration of shares 12 characters in length via
1121 o Ulrich Holeschak <ulrich@holeschak.de>
1122 * BUG 932: fix local password change using pam_smbpass
1125 o Krischan Jodies <kj@sernet.de>
1126 * Implement 'net rpc group delete'
1129 o John Klinger <john.klinger@lmco.com>
1130 * Return NSS_SUCCESS once the max number of gids possible
1131 has been found in initgroups() on Solaris.
1132 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1135 o Volker Lendecke <vl@samba.org>
1136 * Fix success message for net groupmap modify.
1137 * Fix errors when enumerating members of groups in 'net rpc'.
1138 * Match Windows behavior in samr_lookup_names() by returning
1139 ALIAS(4) when you search in BUILTIN.
1140 * Fix server SAMR code to be able to set alias info for
1142 * Fix duplication of logic when creating groups via smbd.
1143 * Ensure that the HWM values are set correctly after running
1145 * Add 'net rpc group add'.
1146 * Implement 'net groupmap set' and 'net groupmap cleanup'.
1147 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1148 * Fix wb_delgrpmem (wbinfo -o).
1149 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1150 * Fix sambaUserWorkstations on a Samba DC.
1151 * Implement wbinfo -k: Have winbind generate an AFS token after
1152 authenticating the user.
1153 * Add expand_msdfs VFS module for providing referrals based on the
1154 the client's IP address.
1155 * Implement client side NETLOGON GetDCName function.
1156 * Fix caching of name->sid lookups.
1157 * Add support in winbindd for expanding nested local groups.
1158 * Fix memleak in winbindd.
1160 * Don't list domain groups from BUILTIN.
1161 * Fix memleak in policy handle utility functions.
1162 * Decrease winbindd startup time by only contacting trusted
1163 domains as necessary.
1164 * Allow winbindd to ask the DC for its domain for a trusted
1166 * Fix Netscape DS schema based on comments from
1167 <thomas.mueller@christ-wasser.de>.
1168 * Correct case where adding a domain user to a XP local group
1169 did a lsalookupname on the user without domain prefix, and
1171 * Fix segfault in winbindd caused by 'wbinfo -a'.
1174 o Herb Lewis <herb@samba.org>
1175 * Fix typo for tag in proto file.
1176 * Add missing #ifdef HAVE_BICONV stuff.
1177 * Truncate Samba's netbios name at the first '.' (not
1181 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1182 * Bug fixes and enhancements to libsmbclient library.
1185 o Jianliang Lu <j.lu@tiesse.com>
1186 * Enforce the 'user must change password at next login' flag.
1187 * Decode meaning of 'fields present' flags (improves support
1190 * Don't force an upper case domain name in the ntlmssp code.
1193 o L. Lucius <ib@digicron.com>.
1197 o Jim McDonough <jmcd@us.ibm.com>
1198 * Add versioning support to tdbsam.
1199 * Update the IBM Directory Server schema with the OpenLDAP
1201 * Various decoding fixes to improve usrmgr.exe support.
1202 * Fix statfs redeclaration of statfs struct on ppc
1203 * Implement support for password lockout of Samba domain
1204 controllers and standalone servers.
1205 * Get MungedDial attribute actually working with full TS
1206 strings in it for pdb_ldap.
1207 * BUG 1208 (partial): Improvements for working with expired krb5
1208 tickets in winbindd.
1209 * Use timegm, or our already existing replacement instead of
1210 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1211 * Remove modifyTimestamp from list of our attributes.
1212 * Fix lsalookupnames to check for domain users as well as local
1214 * Merge struct uuid replacement for GUID from trunk.
1215 * BUG 1208: Finish support for handling expired tickets in
1216 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1219 o Stefan Metzmacher <metze@samba.org>
1220 * Implement new VERSION schema based on subversion revision
1222 * Add shadow_copy vfs module.
1223 * Fix segault in login_cache support.
1226 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1227 o BUG 979 -- Fix quota display on AIX.
1230 o James Peach <jpeach@sgi.com>
1231 * Correct check for printf() format when using the SGI MIPSPro
1233 * BUG 1038: support backtrace for 'panic action' on IRIX.
1234 * BUG 768: Accept profileing arg to IRIX init script.
1235 * BUG 748: Relax arg parsing to sambalp script (IRIX).
1236 * BUG 758: Fix pdma build.
1237 * Search IRIX ABI paths for libiconv. Based on initial fix from
1241 o Kurt Pfeifle <kpfeifle@danka.de>
1242 * Add example shell script for migrating drivers and printers
1243 from a Windows print server to a Samba print server using
1244 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1247 o Tim Potter <tpot@samba.org>
1248 * Fix logic bug in tdb non-blocking lock routines when
1250 * BUG 1025: Include sys/acl.h in check for broken nisplus
1252 * BUG 1066: s/printf/d_printf/g in SWAT.
1253 * BUG 1098: rename internal msleep() function to fix build
1255 * BUG 1112: Fix for writable printerdata problem in python bindings.
1256 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1257 * BUG 1155: enclose use of fchown() with guards.
1258 * Relicense tdb python module as LGPL.
1261 o Richard Sharpe <rsharpe@samba.org>
1262 * Add support to smbclient for multiple logins on the same
1263 session (based on work by abartlet@samba.org).
1264 * Correct blocking condition in smbd's use of accept() on IRIX.
1265 * Add support for printing out the MAC address on nmblookup.
1268 o Simo Source <idra@samba.org>
1269 * Replace unknown_3 with fields_present in SAMR code.
1270 * More length checks in strlcat().
1273 o Andrew Tridgell <tridge@samba.org>
1274 * Rewrote the AIX UESS backend for winbindd.
1275 * Fixed compilation with --enable-dmalloc.
1276 * Change tdb license to LGPL (see source/tdb/tdb.c).
1277 * Force winbindd to use schannel in clients connections to
1281 o Jelmer Vernooij <jelmer@samba.org>
1282 * Fix ETA Calculation when resuming downloads in smbget.
1283 * Add -O (for writing downloaded files to standard out)
1284 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1285 * Fix syntax error in example mysql table
1288 o TAKEDA yasuma <yasuma@miraclelinux.com>
1289 * BUG 900: fix token processing in cmd_symlink, cmd_link,
1290 cmd_chown, cmd_chmod smbclient functions.
1293 o Shiro Yamada <shiro@miraclelinux.com>
1294 * BUG 1129: install image files for SWAT.
1297 --------------------------------------------------
1299 ==============================
1300 Release Notes for Samba 3.0.2a
1302 ==============================
1304 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1305 to address, in particular, a problem when using pdbedit to
1306 sanitize (--force-initialized-passwords) Samba's tdbsam
1307 backend. This is the latest stable release of Samba. This
1308 is the version that all production Samba servers should be
1309 running for all current bug-fixes.
1311 ******************* Attention! Achtung! Kree! *********************
1313 Beginning with Samba 3.0.2, passwords for accounts with a last
1314 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1315 ldapsam, etc...) of zero (0) will be regarded as uninitialized
1316 strings. This will cause authentication to fail for such
1317 accounts. If you have valid passwords that meet this criteria,
1318 you must update the last change time to a non-zero value. If you
1319 do not, then 'pdbedit --force-initialized-passwords' will disable
1320 these accounts and reset the password hashes to a string of X's.
1322 ******************* Attention! Achtung! Kree! *********************
1331 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1332 details. The list of changes per contributor are as follows:
1335 o Jeremy Allison <jra@samba.org>
1336 * Added paranoia checks in parsing code.
1339 o Andrew Bartlett <abartlet@samba.org>
1340 * Ensure that changes to uninitialized passwords in ldapsam
1341 are written to the DIT.
1344 o Gerald (Jerry) Carter <jerry@samba.org>
1345 * Fixed iterator in tdbsam.
1346 * Fix bug that disabled accounts with a valid NT password
1347 hash, but no LanMan hash.
1350 o Steve French <sfrench@us.ibm.com>
1351 * Added missing nosetuid and noexec options.
1354 o Bostjan Golob <golob@gimb.org>
1355 * BUG 1046: Don't overwrite usernames of entries returned
1359 o Sebastian Krahmer <krahmer@suse.de>
1360 * Fixed potential crash bug in NTLMSSP parsing code.
1363 o Tim Potter <tpot@samba.org>
1364 * Fixed logic in tdb_brlock error checking.
1367 o Urban Widmark <urban@teststation.com>
1368 * Set nosuid,nodev flags in smbmnt by default.
1371 --------------------------------------------------
1373 =============================
1374 Release Notes for Samba 3.0.2
1376 =============================
1378 It has been confirmed that previous versions of Samba 3.0 are
1379 susceptible to a password initialization bug that could grant an
1380 attacker unauthorized access to a user account created by the
1381 mksmbpasswd.sh shell script.
1383 The Common Vulnerabilities and Exposures project (cve.mitre.org)
1384 has assigned the name CAN-2004-0082 to this issue.
1386 Samba administrators not wishing to upgrade to the current
1387 version should download the 3.0.2 release, build the pdbedit
1390 root# pdbedit-3.0.2 --force-initialized-passwords
1392 This will disable all accounts not possessing a valid password
1393 (e.g. the password field has been set a string of X's).
1395 Samba servers running 3.0.2 are not vulnerable to this bug
1396 regardless of whether or not pdbedit has been used to sanitize
1399 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1402 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1403 o Logging onto a Samba domain from Windows XP clients.
1404 o Problems with the %U and %u smb.conf variables in relation to
1405 Windows 9x/ME clients.
1406 o Kerberos failures due to an invalid in memory keytab detection
1408 o Updates to the ntlm_auth tool.
1409 o Fixes for various SMB signing errors.
1410 o Better separation of WINS and DNS queries for domain controllers.
1411 o Issues with nss_winbind FreeBSD and Solaris.
1412 o Several crash bugs in smbd and winbindd.
1413 o Output formatting fixes for smbclient for better compatibility
1414 with scripts based on the 2.2 version.
1423 Parameter Name Action
1424 -------------- ------
1425 ldap replication sleep New
1426 read size removed (unused)
1427 source environment removed (unused)
1433 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1434 details. The list of changes per contributor are as follows:
1436 o Jeremy Allison <jra@samba.org>
1437 * Revert change that broke Exchange clear text samlogons.
1438 * Fix gcc 3.4 warning in MS-DFS code.
1439 * Tidy up of NTLMSSP code.
1440 * Fixes for SMB signing errors
1441 * BUG 815: Workaround NT4 bug to support plaintext
1442 password logins and UNICODE.
1443 * Fix SMB signing bug when copying large files.
1444 * Correct error logic in mkdir_internals() (caused a panic
1445 when combined with --enable-developer).
1446 * BUG 830: Protect against crashes due to bad character
1450 o Petri Asikainen <paca@sci.fi>
1451 * BUG 330, 387:Fix single valued attribute updates when
1452 working with Novell NDS.
1455 o Andrew Bartlett <abartlet@samba.org>
1456 * Correctly handle per-pipe NTLMSSP inside a NULL session.
1457 * Fix segfault in gencache
1458 * Fix early free() of encrypted_session_key.
1459 * Change DC lookup routines to more carefully separate
1460 DNS names (realms) from NetBIOS domain names.
1461 * Add new sid_to_dn() function for internal winbindd use.
1462 * Refactor cli_ds_enum_domain_trusts().
1463 * BUG 707: Implement range retrieval of ADS attributes (based
1464 on work from Volker <vl@samba.org> and Guenther Deschner
1466 * Automatically initialize the signing engine if a session key
1468 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
1469 encoded strings, only form input in SWAT.
1470 * Resets the NTLMSSP state for new negotiate packets.
1471 * Add 2-byte alignments in net_samlogon() queries to parse
1472 odd-length plain text passwords.
1473 * Allow Windows groups with no members in winbindd.
1474 * Allow normal authentication in the absence of a server
1475 generated session key.
1476 * More optimizations for looking up UNIX group lists.
1477 * Clean up error codes and return values for pam_winbindd
1478 and winbindd PAM interface.
1479 * Fix string return values in ntlm_auth tool.
1480 * Fix segfault when 'security = ads' but no realm is defined.
1481 * BUG 722: Allow winbindd to map machine accounts to uids.
1482 * More cleanups for winbindd's find_our_domain().
1483 * More clearly detect whether a domain controller is an NT4
1484 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1485 * Increase separation between DNS queries for hosts and queries
1486 for AD domain controllers.
1487 * Include additional NT_STATUS to PAM error mappings.
1488 * Password initialization fixes.
1491 o Justin Baugh <justin.baugh@request.com>
1492 * BUG 948: Implement missing functions required for FreeBSD
1493 nss_winbind support.
1496 o Alexander Bokovoy <ab@samba.org>
1497 * BUG 922: Make sure enable fast path for strlower_m() and
1501 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
1502 * Fix crash when using 'security = server' and 'encrypt
1503 passwords = no' by always initializing the session key.
1506 o Dmitry Butskoj <buc@odusz.elektra.ru>
1507 * Fix for special files being hidden from admins.
1510 o Gerald (Jerry) Carter <jerry@samba.org>
1511 * Fix bug in the lanman session key generation. Caused
1512 "decode_pw: incorrect password length" error messages.
1513 * Save the right case for the located user name in
1514 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
1515 * BUG 897: Add well known rid for pre win2k compatible access
1517 * BUG 887: Correct typo in delete user script example.
1518 * Use short lived TALLOC_CTX* for allocating printer objects
1519 from the print handle cache.
1520 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
1521 * Fix several warnings reported by the SUN Forte C compiler.
1522 * Fully control DNS queries for AD DC's using 'name resolve order'.
1523 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
1524 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
1525 * BUG 936: fix bind credentials for schannel binds in smbd.
1526 * BUG 446: Fix output of smbclient for better compatibility
1527 with scripts based on the 2.2 version (including Amanda).
1528 * BUG 891, 949: Fedora packaging fixes.
1529 * Fix bug that caused rpcclient to incorrectly retrieve
1530 the SID for a server (this causing all calls that required
1531 this information to fail).
1532 * BUG 977: Don't create a homes share for a user if a static
1533 share already exists by the same name.
1534 * Removed unused smb.conf options.
1535 * Password initialization fixes.
1536 * Set the disable flag for template accounts created by
1538 * Disable any account has no passwords and does not have the
1539 ACB_PWNOTREQ bit set.
1542 o Guenther Deschner <gd@suse.com>
1543 * Install smbwrapper.so should be put into the $(libdir)
1545 * Add the capability to specify the new user password
1546 for "net ads password" on the command line.
1547 * Correctly detect AFS headers on SuSE.
1550 o James Flemer <jflemer@uvm.edu>
1551 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
1552 HAVE_SYS_ATTRIBUTES_H.
1555 o Luke Howard <lukeh@PADL.COM>
1556 * Fix segfault in session setup reply caused by a early free().
1559 o Stoian Ivanov <sdr@bultra.com>
1560 * Implement grepable output for smbclient -L.
1563 o LaMont Jones <lamont@debian.org>
1564 * BUG 225328 (Debian): Correct false failure LFS test that resulted
1565 in _GNU_SOURCE not being defined (thus resulting in strndup()
1569 o Volker Lendecke <vl@samba.org>
1570 * BUG 583: Ensure that user names always contain the short
1571 version of the domain name.
1572 * Fix our parsing of the LDAP uri.
1573 * Don't show the 'afs username map' in the SWAT basic view.
1574 * Fix SMB signing issues in relation to failed NTLMSSP logins.
1575 * BUG 924: Fix return codes in smbtorture harness.
1576 * Always lower-case usernames before handing it to AFS code.
1577 * Add a German translation for SWAT.
1578 * Fix a segfaults in winbindd.
1579 * Fix the user's domain passed to register_vuid() from
1580 reply_spnego_kerberos().
1581 * Add NSS example code in nss_winbind to convert UNIX
1582 id's <-> Windows SIDs.
1583 * Display more descriptive error messages for login via 'net'.
1584 * Fix compiler warning in the net tool.
1585 * Fix length bug when decoding base64 strings.
1586 * Ensure we don't call getpwnam() inside a loop that is iterating
1587 over users with getpwent(). This broke on glibc 2.3.2.
1590 o Herb Lewis <herb@samba.org>
1591 * Fix bit rot in psec.
1594 o Jianliang Lu <j.lu@tiesse.com>
1595 * Ensure we delete the group mapping before calling the delete
1597 * Define well known RID for managing the "Power Users" group.
1598 * BUG 381: check builtin (not local) group SID when updating
1600 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
1604 o John Klinger <john.klinger@lmco.com>
1605 * Implement initgroups() call in nss_winbind on Solaris.
1608 o Jim McDonough <jmcd@us.ibm.com>
1609 * Fix regression in net rpc join caused by recent changes
1610 to cli_lsa_query_info_policy().
1611 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
1615 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
1616 * BUG 570: Ensure that configure honors the LDFLAGS variable.
1619 o Stefan Metzmacher <metze@samba.org>
1620 * Implement LDAP rebind sleep patch.
1621 * Revert to 2.2 quota code because of so many broken quota files
1623 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
1624 XFS_USER_QUOTA -> USRQUOTA
1625 XFS_GROUP_QUOTA -> GRPQUOTA
1626 * Fix disk_free calculation with group quotas.
1627 * Add debug class 'quota' and a lot of DEBUG()'s
1629 * Fix sys_chown() when no chown() is present.
1630 * Add SIGABRT to fault handling in order to catch got a
1631 backtrace if an error occurs the OpenLDAP client libs.
1635 * Allow an existing LDAP machine account to be re-used when
1636 joining an AD domain.
1639 o James Peach <jpeach@sgi.com>
1640 * BUG 889: Change smbd to use pread/pwrite on platforms that
1641 support these calls. Can lead to a significant speed increase.
1644 o Tim Potter <tpot@samba.org>
1645 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
1646 * BUG 924: Fix typo in RW2 torture test.
1649 o Richard Sharpe <rsharpe@samba.org>
1650 * Small fixes to torture.c to cleanup the error handling
1651 and prevent crashes.
1654 o J. Tournier <jerome.tournier@IDEALX.com>
1655 * Small fixes for the smbldap-tool scripts.
1658 o Andrew Tridgell <tridge@samba.org>
1659 * Fix src len check in pull_usc2().
1662 o Jelmer Vernooij <jelmer@samba.org>
1663 * Put functions for generating SQL queries in pdb_sql.c
1664 * Add pgSQL backend (based on patch by Hamish Friedlander)
1665 * BUG 908: Fix -s option to smbcontrol.
1666 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
1667 * Fix for libnss_wins on IRIX platforms.
1668 * Fix swatdir for --with-fhs.
1671 --------------------------------------------------
1673 =============================
1674 Release Notes for Samba 3.0.1
1676 =============================
1678 Some of the more common bugs in 3.0.0 addressed in the release
1681 o Substitution problems with smb.conf variables.
1682 o Errors in return codes which caused some applications
1683 to fail to open files.
1684 o General Protection Faults on Windows 2000/XP clients
1685 using Samba point-n-print features.
1686 o Several miscellaneous crash bugs.
1687 o Access problems when enumerating group mappings are
1688 stored in an LDAP Directory.
1689 o Several common SWAT bugs when writing changes to
1691 o Internal inconsistencies when 'winbind use default
1697 ----------------------
1699 Parameter Name Action
1700 -------------- ------
1701 hide local users Removed
1702 mangled map Deprecated
1703 mangled stack Removed
1704 passwd chat timeout New
1710 o Change the interface for init_unistr2 to not take a length
1711 but a flags field. We were assuming that
1712 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
1713 o Allow d_printf() to handle strings with escaped quotation
1714 marks since the msg file includes the escape character (bug 489).
1715 o Fix bad html table row termination in SWAT wizard code (bug 413).
1716 o Fix to parse the level-2 strings.
1717 o Fix for "valid users = %S" in [homes]. Fix read/write
1719 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
1720 This is the same way AC_CHECK_LIB works (bug 508).
1721 o Testparm output fixes for clarity.
1722 o Fix broken wins hook functionality -- i18n bug (bug 528).
1723 o Take care of condition where DOS and NT error codes must differ.
1724 o Default to using only built-in charsets when a working iconv
1725 implementation cannot be located.
1726 o Wrap internals of sys_setgroups() so the sys_XX() call can
1727 be done unconditionally (bug 550).
1728 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1729 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1730 --enable-debug=[yes|no] works correctly.
1731 o Allow ^C to interrupt smbpasswd if using our getpass
1732 (e.g. smbpasswd command).
1733 o Support signing only on RPC's (bug 167).
1734 o Correct bug that prevented Excel 2000 clients from opening
1735 files marked as read-only.
1736 o Portability fix bugs 546 - 549).
1737 o Explicitly initialize the value of AR for vendor makes that don't
1738 do this (e.g. HPUX 11). (bug 552).
1739 o More i18n fixes for SWAT (bug 413).
1740 o Change the cwd before the postexec script to ensure that a
1741 umount will succeed.
1742 o Correct double free that caused winbindd to crash when a DC
1743 is rebooted (bug 437).
1744 o Fix incorrect mode sum (bug 562).
1745 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1746 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1747 o Add script to generate *msg files.
1748 o Add Dutch SWAT translation file.
1749 o Make sure to call get_user_groups() with the full winbindd
1750 name for a user if he/she has one (bug 406).
1751 o Fix up error code returns from Samba4 tester. Ensure invalid
1752 paths are validated the same way.
1753 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1754 o Refuse to configure if --with-expsam=$BACKEND was used but no
1755 libraries were found for $BACKEND.
1756 o Move sysquotas autoconf tests to a separate file.
1757 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1759 o Make sure that the files that contain the static_init_$subsystem;
1760 macro get recompiled after configure by removing the object
1762 o Ensure canceling a blocking lock returns the correct error
1764 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1765 o Updated Japanese welcome file in SWAT.
1766 o Fix to nt-time <-> unix-time functions reversible.
1767 o Ensure that winbindd uses the the escaped DN when querying
1769 o Fix portability issues when compiling (bug 505, 550)
1770 o Compile fix for tdbbackup when Samba needs to override
1771 non-C99 compliant implementations of snprintf().
1772 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1773 o Make sure we break out of samsync loop on error.
1774 o Ensure error code path doesn't free unmalloc()'d memory
1776 o Add configure test for krb5_keytab_entry keyblock vs key
1779 o Modified testparm so that all output so all debug output goes
1780 to stderr, and all file processing goes to stdout.
1781 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1783 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1784 we have a devmode before copying a string to the devicename.
1785 o Support mapping REALM.COM\user to a local user account (without
1786 running winbindd) for compatibility with 2.2.x release.
1787 o Ensure we don't use mmap() on blacklisted systems.
1788 o fixed a number of bugs and memory leaks in the AIX
1790 o Call initgroups() in SWAT before becomming the user so that
1791 secondary group permissions can be used when writing to
1793 o Fix signing problems when reverse connecting back to a
1794 client for printer notify
1795 o Fix signing problems caused by a miss-sequence bug.
1796 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1797 Fixes NEXUS tools running on Win9x clients (bug 64).
1798 o Don't leave the domain field uninitialized in cli_lsa.c if some
1799 SID could not be mapped.
1800 o Fix segfault in mount.cifs helper when there is no options
1801 specified during mount.
1802 o Change the \n after the password prompt to go to tty instead
1803 of stdout (bug 668).
1804 o Stop net -P from prompting for machine account password (bug 451).
1805 o Change in behavior to Not only change the effective uid but also
1806 the real uid when becoming unprivileged.
1807 o Cope with Exchange 5.5 cleartext pop password auth.
1808 o New files for support of initshutdown pipe. Win2k doesn't
1809 respond properly to all requests on the winreg pipe, so we need
1810 to handle this new pipe (bug 534).
1811 o Added more va_copy() checks in configure.in.
1812 o Include fixes for libsmbclient build problems.
1813 o Missing UNIX -> DOS codepage conversion in lanman.c.
1814 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1815 o Parameterize the listen backlog in smbd and make it larger by
1816 default. A backlog of 5 is way too small these days.
1817 o Check for an invalid fid before dereferencing the fsp pointer
1819 o Remove invalid memory frees and return codes in pdb_ldap.c.
1820 o Prompt for password when invoking --set-auth-user and no
1822 o Bind the nmbd sending socket to the 'socket address'.
1823 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1824 $LDFLAGS occurs before any library specification (bug 661).
1825 o Fix large number of printf() calls for 64-bit size_t.
1826 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1827 keyblock in the krb5 structs.
1828 o Remove #include <compat.h> in hopes to avoid problems with
1829 apache header files.
1830 o Correct winbindd build problems on HP-UX 11.
1831 o Lowercase netgroups lookups (bug 703).
1832 o Use the actual size of the buffer in strftime instead of a made
1833 up value which just happens to be less than sizeof(fstring).
1835 o Add ldaplibs to pdbedit link line (bug 651).
1836 o Fix crash bug in smbclient completion (bug 659).
1837 o Fix packet length for browse list reply (bug 771).
1838 o Fix coredump in cli_get_backup_list().
1839 o Make sure that we expand %N (bug 612).
1840 o Allow rpcclient adddriver command to specify printer driver
1842 o Compile tdbdump by default.
1843 o Apply patches to fix iconv detection for FreeBSD.
1844 o Do not allow the 'guest account' to be added to a passdb backend
1845 using smbpasswd or pdbedit (bug 624).
1846 o Save LDFLAGS during iconv detection (bug 57).
1847 o Run krb5 logins through the username map if the winbindd
1848 lookup fails (bug 698).
1849 o Add const for lp_set_name_resolve_order() to avoid compiler
1851 o Add support for the %i macro in smb.conf to stand in for the for
1852 the local IP address to which a client connected.
1853 o Allow winbindd to match local accounts to domain SID when
1854 'winbind trusted domains only = yes' (bug 680).
1855 o Remove code in idmap_ldap that searches the user suffix and group
1856 suffix. It's not needed and provides inconsistent functionality
1857 from the tdb backend.
1858 o Patch to handle munged dial string for Windows 2000 TSE.
1859 Thanks to Gaz de France, Direction de la Recherche, Service
1860 Informatique Métier for their supporting this work by Aurelien
1861 Degrémont <adegremont@idealx.com>.
1862 o Correct the "smbldap_open: cannot access when not root error"
1863 messages when looking up group information (bug 281).
1864 o Skip over the winbind separator when looking up a user.
1865 This fixes the bug that prevented local users from
1866 matching an AD user when not running winbindd (bug 698).
1867 o Fix a problem with configure on *BSD systems. Make sure
1868 we add -liconv etc to LDFLAGS.
1869 o Fix core dump bug when "security = server" and the authentication
1871 o Correct crash bug due to an empty munged dial string.
1872 o Show files locked by a specific user (smbstatus -u 'user')
1874 o Fix bug preventing print jobs from display in the queue
1875 monitor used by Windows NT and later clients (bug 660).
1876 o Fix several reported problems with point-n-print from
1877 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1878 reply (bug 338, 527 & 643).
1879 o Fix a handful of potential memory leaks in the LDAP code used
1880 by ldapsam[_compat] and the LDAP idmap backend.
1881 o Fix for pdbedit error code returns (bug 763).
1882 o Make sure we only enumerate group mapping entries (not
1883 /etc/group) even when doing local aliases.
1884 o Relax check on the pipe name in a dce/rpc bind response to work
1885 around issues with establishing trusts to a Windows 2003 domain.
1886 o Ensure we mangle names ending in '.' in hash2 mangling method.
1887 o Correct parsing issues with munged dial string.
1888 o Fix bugs in quota support for XFS.
1889 o Add a cleaner method for applications that need to provide
1890 name->SID mappings to do this via NSS rather than having to
1891 know the winbindd pipe protocol.
1892 o Adds a variant of the winbindd_getgroups() call called
1893 winbindd_getusersids() that provides direct SID->SIDs listing of
1894 a users supplementary groups. This is enough to allow non-Samba
1895 applications to do ACL checking.
1896 o Make sure we don't append the 'ldap suffix' when writing out the
1897 'ldap XXX suffix' values in SWAT (bug 328).
1898 o Fix renames across file systems.
1899 o Ensure that items in a list of strings containing whitespace are
1900 written out surrounded by single quotes. This means that both
1901 double and single quotes are now used to surround strings in
1903 o Enable SWAT to correctly determine if winbindd is running (bug
1905 o Include WWW-Authenticate field in 401 response for bad auth
1907 o Add support for NTLM2 (NTLMv2 session security).
1908 o Add support for variable-length session keys.
1909 o More privilege fixes for group enumeration in LDAP (bug 281).
1910 o Use the dns name (or IP) as the originating client name when
1911 using CUPS (bug 467).
1912 o Fix various SMB signing bugs.
1913 o Fix ACL propagation on a DFS root (bug 263).
1914 o Disable NTLM2 for RPC pipes.
1915 o Allow the client to specify the NTLM2 flags got NTLMSSP
1917 o Change the name of the job passed off to cups from "Test Page"
1918 to "smbprn.00000033 Test Page" so that we can get the smb
1919 jobid back. This allow users to delete jobs with cups printing
1920 backend (partial work on bug 770).
1921 o Fix build of winbindd with static pdb modules.
1922 o Retrieve the correct ACL group bits if the file has an ACL
1924 o Implement "net rpc group members": Get members of a domain group
1925 in human-readable format.
1926 o Add MacOSX (Darwin) specific charset module code.
1927 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1928 can include the full name in gecos field (bug 587).
1929 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1930 o Implement 'net rpc group list [global|local|builtin]*' for a
1931 select listing of the respective user databases.
1932 o Don't automatically set NT status code flag unless client tells
1934 o Add 'net status [sessions|shares] [parseable]'.
1935 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1937 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1939 o Fix inverted logic in hosts allow/deny checks caused by
1940 s/strcmp/strequal/ (bug 846).
1941 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1942 o Fix typo in 'hash' mangling algorithm.
1943 o Support munged dial for ldapsam (bug 800).
1944 o Fix process_incoming_data() to return the number of bytes handled
1945 this call whether we have a complete PDU or not; fixes bug
1946 with multiple PDU request rpc's broken over SMBwriteX calls
1948 o Fix incorrect smb flags2 for connections to pre-NT servers
1949 (causes smbclient to fail to OS2 for example) (bug 821).
1950 o Update version string in smbldap-tools Makefile to 0.8.2.
1951 o Correct a problem with "net rpc vampire" mis-parsing the
1952 alias member info reply.
1953 o Ensure the ${libdir} is created by the installclientlib script.
1954 o Fix detection of Windows 2003 client architecture in the smb.conf
1956 o Ensure that smbd calls the add user script for a missing UNIX
1957 user on kerberos auth call (bug 445).
1958 o Fix bugs in hosts allow/deny when using a mismatched
1959 network/netmask pair.
1960 o Protect alloc_sub_basic() from crashing when the source string
1961 is NULL (partial work on bug 687).
1962 o Fix spinlocks on IRIX.
1963 o Corrected some bad destination paths when running "configure
1965 o Add packaging files for Fedora Core 1.
1966 o Correct bug in SWAT install script for non-english languages.
1967 o Support character set ISO-8859-1 internally (bug 558).
1968 o Fixed more LDAP access errors when looking up group mappings
1970 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1971 resolution to fail on local files on on domain members
1973 o Fix uninitialized variable in passdb.c.
1974 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1975 o Fix problem mounting directories when mount.cifs is installed
1976 with the setuid bit on.
1977 o Fix bug that prevent --mandir from overriding the defaults
1978 given in the --with-fhs macro.
1979 o Fix bug in in-memory Kerberos keytab detection routines
1984 ######################################################################
1986 The original 3.0.0 release notes follow
1987 =======================================
1988 WHATS NEW IN Samba 3.0.0
1990 =======================================
1996 1) Active Directory support. Samba 3.0 is now able to
1997 join a ADS realm as a member server and authenticate
1998 users using LDAP/Kerberos.
2000 2) Unicode support. Samba will now negotiate UNICODE on the wire
2001 and internally there is now a much better infrastructure for
2002 multi-byte and UNICODE character sets.
2004 3) New authentication system. The internal authentication system
2005 has been almost completely rewritten. Most of the changes are
2006 internal, but the new auth system is also very configurable.
2008 4) New default filename mangling system.
2010 5) A new "net" command has been added. It is somewhat similar to
2011 the "net" command in windows. Eventually we plan to replace
2012 numerous other utilities (such as smbpasswd) with subcommands
2015 6) Samba now negotiates NT-style status32 codes on the wire. This
2016 improves error handling a lot.
2018 7) Better Windows 2000/XP/2003 printing support including publishing
2019 printer attributes in active directory.
2021 8) New loadable module support for passdb backends and character
2024 9) New default dual-daemon winbindd support for better performance.
2026 10) Support for migrating from a Windows NT 4.0 domain to a Samba
2027 domain and maintaining user, group and domain SIDs.
2029 11) Support for establishing trust relationships with Windows NT 4.0
2032 12) Initial support for a distributed Winbind architecture using
2033 an LDAP directory for storing SID to uid/gid mappings.
2035 13) Major updates to the Samba documentation tree.
2037 14) Full support for client and server SMB signing to ensure
2038 compatibility with default Windows 2003 security settings.
2040 15) Improvement of ACL mapping features based on code donated by
2041 Andreas Grünbacher.
2044 Plus lots of other improvements!
2047 Additional Documentation
2048 ------------------------
2050 Please refer to Samba documentation tree (included in the docs/
2051 subdirectory) for extensive explanations of installing, configuring
2052 and maintaining Samba 3.0 servers and clients. It is advised to
2053 begin with the Samba-HOWTO-Collection for overviews and specific
2054 tasks (the current book is up to approximately 400 pages) and to
2055 refer to the various man pages for information on individual options.
2057 We are very glad to be able to include the second edition of
2058 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
2059 (O'Reilly & Associates) in this release. The book is available
2060 on-line at http://samba.org/samba/docs/ and is included with
2061 the Samba Web Administration Tool (SWAT). Thanks to the authors and
2062 publisher for making "Using Samba" under the GNU Free Documentation
2066 ######################################################################
2067 Upgrading from a previous Samba 3.0 beta
2068 ########################################
2070 Beginning with Samba 3.0.0beta3, the RID allocation functions
2071 have been moved into winbindd. Previously these were handled
2072 by each passdb backend. This means that winbindd must be running
2073 to automatically allocate RIDs for users and/or groups. Otherwise,
2074 smbd will use the 2.2 algorithm for generating new RIDs.
2076 If you are using 'passdb backend = tdbsam' with a previous Samba
2077 3.0 beta release (or possibly alpha), it may be necessary to
2078 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
2079 to winbindd_idmap.tdb. To do this:
2081 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
2083 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
2085 3) run: (note that 'tdb>' is the tool's prompt for input)
2087 root# ./tdbtool /usr/local/samba/private/passdb.tdb
2088 tdb> show RID_COUNTER
2092 [000] 0A 52 00 00 .R.
2094 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
2098 If you are using 'passdb backend = ldapsam', it will be necessary to
2099 store idmap entries in the LDAP directory as well (i.e. idmap backend
2100 = ldap). Refer to the 'net idmap' command for more information on
2101 migrating SID<->UNIX id mappings from one backend to another.
2103 If the RID_COUNTER record does not exist, then these instructions are
2104 unneccessary and the new RID_COUNTER record will be correctly generated
2109 ########################
2110 Upgrading from Samba 2.2
2111 ########################
2113 This section is provided to help administrators understand the details
2114 involved with upgrading a Samba 2.2 server to Samba 3.0.
2120 Many of the options to the GNU autoconf script have been modified
2121 in the 3.0 release. The most noticeable are:
2123 * removal of --with-tdbsam (is now included by default; see section
2124 on passdb backends and authentication for more details)
2126 * --with-ldapsam is now on used to provided backward compatible
2127 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
2128 backend and authentication section for more details
2130 * inclusion of non-standard passdb modules may be enabled using
2131 --with-expsam. This includes an XML backend and a mysql backend.
2133 * removal of --with-msdfs (is now enabled by default)
2135 * removal of --with-ssl (no longer supported)
2137 * --with-utmp now defaults to 'yes' on supported systems
2139 * --with-sendfile-support is now enabled by default on supported
2146 This section contains a brief listing of changes to smb.conf options
2147 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
2148 complete descriptions of new or modified parameters.
2150 Removed Parameters (order alphabetically):
2153 * alternate permissions
2156 * code page directory
2158 * domain admin group
2159 * domain guest group
2160 * force unknown acl user
2166 * printer driver file
2167 * printer driver location
2169 * source environment
2177 New Parameters (new parameters have been grouped by function):
2181 * abort shutdown script
2184 User and Group Account Management
2185 ---------------------------------
2187 * add machine script
2188 * add user to group script
2189 * algorithmic rid base
2190 * delete group script
2191 * delete user from group script
2193 * set primary group script
2199 * passwd chat timeout
2203 * client lanman auth
2204 * client NTLMv2 auth
2210 * paranoid server security
2219 * hide special files
2220 * hide unwriteable files
2222 * kernel change notify
2232 * max reported print jobs
2234 UNICODE and Character Sets
2235 --------------------------
2241 SID to uid/gid Mappings
2242 -----------------------
2246 * winbind enable local accounts
2247 * winbind trusted domains only
2248 * template primary group
2249 * enable rid algorithm
2256 * ldap machine suffix
2258 * ldap replication sleep
2261 General Configuration
2262 ---------------------
2266 Modified Parameters (changes in behavior):
2268 * encrypt passwords (enabled by default)
2269 * mangling method (set to 'hash2' by default)
2272 * restrict anonymous (integer value)
2273 * security (new 'ads' value)
2274 * strict locking (enabled by default)
2275 * unix extensions (enabled by default)
2276 * winbind cache time (increased to 5 minutes)
2277 * winbind uid (deprecated in favor of 'idmap uid')
2278 * winbind gid (deprecated in favor of 'idmap gid')
2284 This section contains brief descriptions of any new databases
2285 introduced in Samba 3.0. Please remember to backup your existing
2286 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
2287 upgrade databases as they are opened (if necessary), but downgrading
2288 from 3.0 to 2.2 is an unsupported path.
2290 Name Description Backup?
2291 ---- ----------- -------
2292 account_policy User policy settings yes
2293 gencache Generic caching db no
2294 group_mapping Mapping table from Windows yes
2295 groups/SID to unix groups
2296 winbindd_idmap ID map table from SIDS to UNIX yes
2298 namecache Name resolution cache entries no
2299 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
2300 returned as part of a successful
2301 net_sam_logon request
2302 printing/*.tdb Cached output from 'lpq no
2303 command' created on a per print
2305 registry Read-only samba registry skeleton no
2306 that provides support for exporting
2307 various db tables via the winreg RPCs
2313 The following issues are known changes in behavior between Samba 2.2 and
2314 Samba 3.0 that may affect certain installations of Samba.
2316 1) When operating as a member of a Windows domain, Samba 2.2 would
2317 map any users authenticated by the remote DC to the 'guest account'
2318 if a uid could not be obtained via the getpwnam() call. Samba 3.0
2319 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
2320 current work around to re-establish the 2.2 behavior.
2322 2) When adding machines to a Samba 2.2 controlled domain, the
2323 'add user script' was used to create the UNIX identity of the
2324 machine trust account. Samba 3.0 introduces a new 'add machine
2325 script' that must be specified for this purpose. Samba 3.0 will
2326 not fall back to using the 'add user script' in the absence of
2327 an 'add machine script'
2330 ######################################################################
2331 Passdb Backends and Authentication
2332 ##################################
2334 There have been a few new changes that Samba administrators should be
2335 aware of when moving to Samba 3.0.
2337 1) encrypted passwords have been enabled by default in order to
2338 inter-operate better with out-of-the-box Windows client
2339 installations. This does mean that either (a) a samba account
2340 must be created for each user, or (b) 'encrypt passwords = no'
2341 must be explicitly defined in smb.conf.
2343 2) Inclusion of new 'security = ads' option for integration
2344 with an Active Directory domain using the native Windows
2345 Kerberos 5 and LDAP protocols.
2347 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
2348 type which is neccessary for servers on which the
2349 administrator password has not been changed, or kerberos-enabled
2350 SMB connections to servers that require Kerberos SMB signing.
2351 Besides this one difference, either MIT or Heimdal Kerberos
2352 distributions are usable by Samba 3.0.
2355 Samba 3.0 also includes the possibility of setting up chains
2356 of authentication methods (auth methods) and account storage
2357 backends (passdb backend). Please refer to the smb.conf(5)
2358 man page for details. While both parameters assume sane default
2359 values, it is likely that you will need to understand what the
2360 values actually mean in order to ensure Samba operates correctly.
2362 The recommended passdb backends at this time are
2364 * smbpasswd - 2.2 compatible flat file format
2365 * tdbsam - attribute rich database intended as an smbpasswd
2366 replacement for stand alone servers
2367 * ldapsam - attribute rich account storage and retrieval
2368 backend utilizing an LDAP directory.
2369 * ldapsam_compat - a 2.2 backward compatible LDAP account
2372 Certain functions of the smbpasswd(8) tool have been split between the
2373 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
2374 utility. See the respective man pages for details.
2377 ######################################################################
2381 This section outlines the new features affecting Samba / LDAP
2387 A new object class (sambaSamAccount) has been introduced to replace
2388 the old sambaAccount. This change aids us in the renaming of
2389 attributes to prevent clashes with attributes from other vendors.
2390 There is a conversion script (examples/LDAP/convertSambaAccount) to
2391 modify and LDIF file to the new schema.
2395 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2396 $ convertSambaAccount --sid=<Domain SID> \
2397 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2398 --changetype=[modify|add]
2400 The <DOM SID> can be obtained by running 'net getlocalsid
2401 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
2402 the format of the generated LDIF output--either create new entries
2403 or modify existing entries.
2405 The old sambaAccount schema may still be used by specifying the
2406 "ldapsam_compat" passdb backend. However, the sambaAccount and
2407 associated attributes have been moved to the historical section of
2408 the schema file and must be uncommented before use if needed.
2409 The 2.2 object class declaration for a sambaAccount has not changed
2410 in the 3.0 samba.schema file.
2412 Other new object classes and their uses include:
2414 * sambaDomain - domain information used to allocate rids
2415 for users and groups as necessary. The attributes are added
2416 in 'ldap suffix' directory entry automatically if
2417 an idmap uid/gid range has been set and the 'ldapsam'
2418 passdb backend has been selected.
2420 * sambaGroupMapping - an object representing the
2421 relationship between a posixGroup and a Windows
2422 group/SID. These entries are stored in the 'ldap
2423 group suffix' and managed by the 'net groupmap' command.
2425 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
2426 automatically and contains the next available 'idmap uid' and
2429 * sambaIdmapEntry - object storing a mapping between a
2430 SID and a UNIX uid/gid. These objects are created by the
2431 idmap_ldap module as needed.
2433 * sambaSidEntry - object representing a SID alone, as a Structural
2434 class on which to build the sambaIdmapEntry.
2437 New Suffix for Searching
2438 ------------------------
2440 The following new smb.conf parameters have been added to aid in directing
2441 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2444 * ldap suffix - used to search for user and computer accounts
2445 * ldap user suffix - used to store user accounts
2446 * ldap machine suffix - used to store machine trust accounts
2447 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
2448 * ldap idmap suffix - location of sambaIdmapEntry objects
2450 If an 'ldap suffix' is defined, it will be appended to all of the
2451 remaining sub-suffix parameters. In this case, the order of the suffix
2452 listings in smb.conf is important. Always place the 'ldap suffix' first
2455 Due to a limitation in Samba's smb.conf parsing, you should not surround
2456 the DN's with quotation marks.
2462 Samba 3.0 supports an ldap backend for the idmap subsystem. The
2463 following options would inform Samba that the idmap table should be
2464 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2469 idmap backend = ldap:ldap://onterose/
2470 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2471 idmap uid = 40000-50000
2472 idmap gid = 40000-50000
2474 This configuration allows winbind installations on multiple servers to
2475 share a uid/gid number space, thus avoiding the interoperability problems
2476 with NFS that were present in Samba 2.2.
2480 ######################################################################
2481 Trust Relationships and a Samba Domain
2482 ######################################
2484 Samba 3.0.0beta2 is able to utilize winbindd as the means of
2485 allocating uids and gids to trusted users and groups. More
2486 information regarding Samba's support for establishing trust
2487 relationships can be found in the Samba-HOWTO-Collection included
2488 in the docs/ directory of this release.
2490 First create your Samba PDC and ensure that everything is
2491 working correctly before moving on the trusts.
2493 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2494 4.0 domain named WINDOWS:
2496 1) create the trust account for SAMBA in "User Manager for Domains"
2497 2) connect the trust from the Samba domain using
2498 'net rpc trustdom establish GLASS'
2500 To create a trustlationship with SAMBA as the trusted domain:
2502 1) create the initial trust account for GLASS using
2503 'smbpasswd -a -i GLASS'. You may need to create a UNIX
2504 account for GLASS$ prior to this step (depending on your
2505 local configuration).
2506 2) connect the trust from a WINDOWS DC using "User Manager
2509 Now join winbindd on the Samba PDC to the SAMBA domain using
2510 the normal steps for adding a Samba server to an NT4 domain:
2511 (note that smbd & nmbd must be running at this point)
2513 root# net rpc join -U root
2514 Password: <enter root password from smbpasswd file here>
2516 Start winbindd and test the join with 'wbinfo -t'.
2518 Now test the trust relationship by connecting to the SAMBA DC
2519 (e.g. POGO) as a user from the WINDOWS domain:
2521 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
2524 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
2526 $ smbclient //crystal/netlogon -U root -W WINDOWS
2529 ######################################################################
2533 Beginning with Samba3.0.0beta3, winbindd has been given new account
2534 manage functionality equivalent to the 'add user script' family of
2535 smb.conf parameters. The idmap design has also been changed to
2536 centralize control of foreign SID lookups and matching to UNIX
2540 Brief Description of Changes
2541 ----------------------------
2543 1) The sid_to_uid() family of functions (smbd/uid.c) have been
2544 reverted to the 2.2.x design. This means that when resolving a
2545 SID to a UID or similar mapping:
2547 a) First consult winbindd
2548 b) perform a local lookup only if winbindd fails to
2549 return a successful answer
2551 There are some variations to this, but these two rules generally
2554 2) All idmap lookups have been moved into winbindd. This means that
2555 a server must run winbindd (and support NSS) in order to achieve
2556 any mappings of SID to dynamically allocated UNIX ids. This was
2557 a conscious design choice.
2559 3) New functions have been added to winbindd to emulate the 'add user
2560 script' family of smbd functions without requiring that external
2561 scripts be defined. This functionality is controlled by the 'winbind
2562 enable local accounts' smb.conf parameter (enabled by default).
2564 However, this account management functionality is only supported
2565 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
2566 must be shared among multiple Samba servers (such as a PDC and BDCs),
2567 it will be necessary to define your own 'add user script', et. al.
2568 programs that place the accounts/groups in some form of directory
2569 such as NIS or LDAP. This requirement was deemed beyond the scope
2570 of winbind's account management functions. Solutions for
2571 distributing UNIX system information have been deployed and tested
2572 for many years. We saw no need to reinvent the wheel.
2574 4) A member of a Samba controlled domain running winbindd is now able
2575 to map domain users directly onto existing UNIX accounts while still
2576 automatically creating accounts for trusted users and groups. This
2577 behavior is controlled by the 'winbind trusted domains only' smb.conf
2578 parameter (disabled by default to provide 2.2.x winbind behavior).
2580 5) Group mapping support is wrapped in the local_XX_to_XX() functions
2581 in smbd/uid.c. The reason that group mappings are not included
2582 in winbindd is because the purpose of Samba's group map is to
2583 match any Windows SID with an existing UNIX group. These UNIX
2584 groups can be created by winbindd (see next section), but the
2585 SID<->gid mapping is retreived by smbd, not winbindd.
2591 * security = server running winbindd to allocate accounts on demand
2593 * Samba PDC running winbindd to handle the automatic creation of UNIX
2594 identities for machine trust accounts
2596 * Automtically creating UNIX user and groups when migrating a Windows NT
2597 4.0 PDC to a Samba PDC. Winbindd must be running when executing
2598 'net rpc vampire' for this to work.
2601 ######################################################################
2605 * There are several bugs currently logged against the 3.0 codebase
2606 that affect the use of NT 4.0 GUI domain management tools when run
2607 against a Samba 3.0 PDC. This bugs should be released in an early
2610 Please refer to https://bugzilla.samba.org/ for a current list of bugs
2611 filed against the Samba 3.0 codebase.
2614 ######################################################################
2615 Reporting bugs & Development Discussion
2616 #######################################
2618 Please discuss this release on the samba-technical mailing list or by
2619 joining the #samba-technical IRC channel on irc.freenode.net.
2621 If you do report problems then please try to send high quality
2622 feedback. If you don't provide vital information to help us track down
2623 the problem then you will probably be ignored.
2625 A new bugzilla installation has been established to help support the
2626 Samba 3.0 community of users. This server, located at
2627 https://bugzilla.samba.org/, has replaced the older jitterbug server
2628 previously located at http://bugs.samba.org/.