1 ================================
2 Release Notes for Samba 3.0.6rc2
4 ================================
6 This is a release candidate snapshot of the Samba 3.0.5 code
7 base and should be considered for testing only. A release
8 candidate (RC) means that we are close to the final, stable
9 release and in provided for Quality Assurance (QA) purposes.
10 This release is *not* intended for production servers. Use
13 There have been several bug fixes since the 3.0.4 release that
14 we feel are important to make available to the Samba community
15 for wider testings. See the "Changes" section for details on
18 Common bugs fixed in 3.0.6rc2 include:
20 o Fix stalls in smbd caused by inaccessible LDAP servers.
21 o Remove various memory leaks.
22 o Fix issues in the password lockout feature.
23 o Merge security fixes for CAN-2004-0600, CAN-2004-0686
26 New features introduced in this release include:
28 o Support for maintaining user password history.
30 ------------------------
31 Password History Support
32 ------------------------
34 The new password history feature allows smbd to check the new
35 password in password change requests against a list of the user's
36 previous passwords. The number of previous passwords to save can be
37 set using pdbedit (4 in this example):
39 root# pdbedit -P "password history" -C 4
41 When using the ldapsam passdb backend, it is vital to secure
42 the following attributes from access by non-administrative
47 * sambaPasswordHistory
49 You should refer to your directory server's documentation on how
50 to implement this restriction).
52 ######################################################################
56 Changes since 3.0.6rc1
57 (formally referred to as 3.0.5rc1)
58 ----------------------------------
70 o Jeremy Allison <jra@samba.org>
71 * Add support for storing a user's password history.
72 LDAP portion of the code was based on a patch from
73 Jianliang Lu <j.lu@tiesse.com>.
74 * Correct memory leaks found in the password change code.
75 * Fix support for the mknod command with the Linux CIFS client.
76 * Remove support for passing the new password to smbpasswd
77 on the command line without using the -s option.
78 * Ensure home directory service number is correctly reused
79 (inspired by patches from Michael Collin Nielsen
80 <michael@hum.aau.dk>).
81 * Fix to stop printing accounts from resetting the bas
82 password and account lockout flags.
83 * If a account was locked out by an admin (and has a bad
84 password count of zero) leave it locked out until an admin
85 unlocks it (but log a message).
88 o Tom Alsberg <alsbergt@cs.huji.ac.il>
89 * Allow pdbedit to export a single user from a passdb backend.
92 o Andrew Bartlett <abartlet@samba.org>
93 * Improve smbd's internal random number generation.
94 * Fix a few outstanding long password changes in smbd.
95 * Fix LANMAN2 session setup code.
98 o Gerald Carter <jerry@samba.org>
99 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
100 client sends a FindNextPrintChangeNotify() request without
101 previously sending a FindFirstPrintChangeNotify(). Return
102 the same error code as Windows 2000 SP4.
103 * BUG 1516: Manually declare ldap_open_with_timeout() to
104 workaround compiler errors on IRIX (or other systems without
106 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
108 * Corrected syntax error in the OID for sambaUnixIdPool,
109 sambaSidEntry, & sambaIdmapEntry object classes.
113 o Fabien Chevalier <fabien.chevalier@supelec.fr>
114 * Debian BUG 252591: Ensure that the return value from the
115 number of available interfaces is initialized in case no
116 interfaces are actually available.
119 o Guenther Deschner <gd@sernet.de>
120 * Display share ACL entries from rpcclient.
123 o Steve French <sfrench@us.ibm.com>
124 * Fix user unmount of shares mount with suid mount.cifs.
127 o Volker Lendecke <vl@samba.org>
128 * Allow the 'idmap backend' parameter to accept a list of
129 LDAP servers for failover purposes.
130 * Revert code in smbd to remove a tdb when it has become
132 * Add paranoid checks when mapping SIDs to a uid/gid to
133 ensure that the type is correct.
134 * Initial work on getting client support for sending mailslot
136 * Add 'ldap timeout' parameter.
137 * Dont always uppercase 'afs username map'.
138 * Expand aliases for getusersids as well.
141 o James Peach <jpeach@sgi.com>
142 * More iconv detection fixes for IRIX.
143 * Compile fixed for systems that do not have C99/UNIX98 compliant
144 vsnprintf by default.
147 o Tim Potter <tpot@samba.org>
148 * BUG 1360: Use -Bsymbolic when creating shared libraries to
149 avoid conflicts with identical symbols in the global namespace
150 when loading libnss_wins.so.
153 o Richard Renard <rrenard@idealx.com>
154 * Save the current password as it is being changed into the
155 password history list.
158 o Simo Source <idra@samba.org>
159 * Tidy up parametric options in testparm output.
162 o Richard Sharpe <rsharpe@samba.org>
163 * Add sigchild handling to winbindd to restart the child
167 o Tom Shaw <tomisfaraway@gmail.com>
168 * Use winbindd_fill_pwent() consistently.
171 o Nick Thompson <nickthompson@agere.com>
172 * Protect smbd against broken filesystems which return zero
176 Changes for older versions follow below:
178 --------------------------------------------------
180 =============================
181 Release Notes for Samba 3.0.5
183 =============================
185 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
186 the exception of correcting the two security issues outlined
189 ######################## SECURITY RELEASE ########################
191 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
192 CVE ID: CAN-2004-0600, CAN-2004-0686
193 (http://cve.mitre.org/)
196 This is the latest stable release of Samba. This is the version
197 that production Samba servers should be running for all current
200 It has been confirmed that versions of Samba 3 prior to v3.0.4
201 are vulnerable to two potential buffer overruns. The individual
202 details are given below.
208 Affected Versions: Samba 3.0.2 and later
210 The internal routine used by the Samba Web Administration
211 Tool (SWAT v3.0.2 and later) to decode the base64 data
212 during HTTP basic authentication is subject to a buffer
213 overrun caused by an invalid base64 character. It is
214 recommended that all Samba v3.0.2 or later installations
215 running SWAT either (a) upgrade to v3.0.5, or (b) disable
216 the swat administration service as a temporary workaround.
218 This same code is used internally to decode the
219 sambaMungedDial attribute value when using the ldapsam
220 passdb backend. While we do not believe that the base64
221 decoding routines used by the ldapsam passdb backend can
222 be exploited, sites using an LDAP directory service with
223 Samba are strongly encouraged to verify that the DIT only
224 allows write access to sambaSamAccount attributes by a
225 sufficiently authorized user.
227 The Samba Team would like to heartily thank Evgeny Demidov
228 for analyzing and reporting this bug.
234 Affected Versions: Samba 3.0.0 and later
236 A buffer overrun has been located in the code used to support
237 the 'mangling method = hash' smb.conf option. Please be aware
238 that the default setting for this parameter is 'mangling method
239 = hash2' and therefore not vulnerable.
241 Affected Samba 3 installations can avoid this possible security
242 bug by using the default hash2 mangling method. Server
243 installations requiring the hash mangling method are encouraged
244 to upgrade to Samba 3.0.5.
247 ##################################################################
250 --------------------------------------------------
252 ================================
253 Release Notes for Samba 3.0.5rc1
255 ================================
257 Common bugs fixed in this 3.0.5rc1 include:
259 o Corrupt workgroup names in nmbd's browse.dat.
261 o Sharing violation errors commonly seen when opening
262 when serving Microsoft Office documents from a Samba
265 o Browsing problems caused by an apostrophe (') in the
266 computer's description field.
268 o Problems creating special file types from UNIX CIFS
269 clients and enabling 'unix extensions'.
272 New features introduced in this release include:
274 o Using a cups server other than localhost.
276 o Maintaining the service principal entry in the system
277 keytab for integration with other kerberized services.
278 Please refer to the 'use kerberos keytab' entry in
279 smb.conf(5). When using the heimdal kerberos libraries,
280 you must also specify the following in /etc/krb5.conf:
282 default_keytab_name = FILE:/etc/krb5.keytab
284 o Support for maintaining individual printer names
285 stored separately from the printer's sharename.
288 ######################################################################
292 Changes since 3.0.5pre1
293 -----------------------
298 Parameter Name Action
299 -------------- ------
301 defer sharing violations New
302 force unknown acl user New
304 use kerberos keytab New
308 o Jeremy Allison <jra@samba.org>
309 * Fix charset bug in when invoking send_mailslot().
310 * When using widelinks = no, use realpath to canonicalize
311 the connection path on connection create for the user.
312 * Enhance stat open code.
313 * Fix unix extensions mknod code path.
314 * Allow unix domain socket creation via unix extensions.
315 * Auto disable the 'store dos attribute' parameter if the
316 underlying filesystem doesn't support EAs.
317 * Implement deferred open code to fix a bug with Excel files
319 * BUG 1427: Catch bad path errors at the right point. Ensure
320 all our pathname parsing is consistent.
321 * Fix SMB signing error introduced by the new deferred open
323 * Change default setting for case sensitivity to "auto". (see
324 commit message -- r1154 -- for details).
325 * Add new remote client arch -- CIFSFS.
326 * Allow smbd to maintain the service principal entry in the
327 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
328 Guenther Deschner, et. al.).
329 * Fix longstanding memleak bug with logfile name.
330 * Fix incorrect type in printer publishing (struct uuid,
332 * Heimdal compile fixes after introduction of the new ketyab
334 * Ensure we check attributes correctly on rename request.
335 * Ensure we defer a sharing violation on rename correctly.
336 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
338 * Fix bogus error message when using "mangling method = hash"
340 * Turn on sendfile by default for non-Win9x clients.
341 * Handle non-io opens that cause oplock breaks correctly.
342 * Ensure ldap replication sleep time is not more than 5 seconds.
345 o Andrew Bartlett <abartlet@samba.org>
346 * Re-enable code to allow sid_to_gid() to perform a group
347 mapping lookup before checking with winbindd.
348 * Fix memory leak in the trans2 signing code.
349 * Allow more flexible GSS-SPENGO client and server operation
353 o Eric Boehm <boehm@nortelnetworks.com>
354 BUG 703: Final touches on netgroup case lookups.
357 o Jerome Borsboom" <j.borsboom@erasmusmc.nl>
358 * Correct bug that caused smbd to overwrite certain error
359 codes when returning up the call stack.
360 * Ensure the correct sid type returned for builtin sids.
363 o Gerald Carter <jerry@samba.org>
364 * Fixed string length miscalculation in netbios names that
365 resulted in corrupt workgroup names in browse.dat.
366 * When running smbd as a daemon, launch child smbd to update
367 the lpq cache listing in the background.
368 * Allow printers "Printers..." folder to be renamed to a string
369 other than the share name.
370 * Allow winbindd to use domain trust account passwords when
371 running on a Samba DC to establish an schannel to remote
373 * Fix bad merge and ensure that we always use tdb_open_log()
374 instead of tdb_open_ex() (the former call enforce the 'use
376 * BUG 1221: revert old change that used single and double
377 quotes as delimeters in next_token(), and change
378 print_parameter() to print out parm values surrounded by
379 double quotes (instead of single quotes).
380 * Prevent home directories added during the SMBsesssetup&X from
381 being removed as unused services.
382 * Invalidate the print object cache for open printer handles when
383 smbd receives a message that an attribute on a given printer
385 * Cause the configure script to exit if --enable-cups[=yes] is
386 defined and the system does not have the cups devel files
388 * BUG 1297: Prevent map_username() from being called twice
390 * Ensure that we use the userPrincipalName AD attribute
391 value for LDAP SASL binds.
392 * Ensure we remove the tdb entry when deleting a job that
396 o Guenther Deschner <gd@sernet.de>
397 * Implement 'rpcclient setprintername'.
398 * Add local groups to the user's NT_TOKEN since they are
399 actually supported now.
400 * Heimdal compile fixes after introduction of the new keytab
402 * Correctly honor the info level parameter in 'rpcclient
404 * Reintroduce 'force unknown acl user' parameter. When getting a
405 security descriptor for a file, if the owner sid is not known,
406 the owner uid is set to the current uid. Same for group sid.
407 * Ensure that REG_SZ values in the SetPrinterData actually
408 get written in UNICODE strings rather than ASCII.
409 * Ensure that the last kerberos error return is not invalid.
412 o Fabian Franz <FabianFranz@gmx.de>
413 * Support specifying a port in the device URL passed to smbspool.
416 o Bjoern Jacke <bj@sernet.de>
417 * Install libsmbclient into $(LIBDIR), not into hard coded
418 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
419 and an explicit configure --libdir setting.
422 o <kawasa_r@itg.hitachi.co.jp>
426 o Volker Lendecke <vl@samba.org>
427 * Fix DOS error code bug in reply_chkpath().
428 * Correct misunderstanding of the max_size field in
429 cli_samr_enum_als_groups; it is more like an account_control
430 field with individual bits what to retrieve.
431 * Implement 'net rpc group rename' -- rename domain groups.
432 * Implement the 'cups server' option. This makes it possible
433 to have virtual smbd's connect to different cups daemons.
434 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
435 * Fix sid_to_gid() calls in winbindd to prevent loops.
436 * Ensure that local_sid_to_gid() sets the type of the group on
438 * Make sure that the clients are given back the IP address to
439 which they connected in the case of a multi-homed host. Only
440 affects strings the spoolss printing replies.
441 * Fix the bad password lockout. This has not worked as pdb_ldap.c
442 did not ask for the modifyTimestamp attribute, so it could
443 not find it. Try not to regress by not putting that attrib
444 in the main list but append it manually for the relevant searches.
445 * Fix two memleaks in login_cache.c.
446 * fixes memory bloat when unmarshalling strings.
447 * Fix compile errors using gcc 3.2 on SuSE 8.2.
448 * Fix the build for systems without kerberos headers.
449 * Allow winbindd to handle authentication requests only when
450 started without either an 'idmap uid' or 'idmap gid' range.
451 * Fix the build for systems without ldap headers.
452 * Fix interaction between share security descriptor and the
453 'read only' smb.conf option.
454 * Fix bug that caused _samr_lookupsids() with more than 32 (
455 MAX_REF_DOMAINS) SIDs to fail.
458 o Herb Lewis <herb@samba.org>
459 * Fix errno tromping before calling iconv to reset the
461 * need to leave empty dacl so we can remove last ACE.
464 o Jianliang Lu <Jianliang.Lu@getronics.com>
465 * Reset the bad password count password counts upon a successful login.
468 o Joe Meadows "Joe Meadows" <jameadows@webopolis.com>
469 * Add optional timeout parameter to ldap open calls.
470 * Allow get_dc_list() to check the negative cache.
473 o Jason Mader <jason@ncac.gwu.edu>
474 * BUG 1385: Don't use non-consts in a structure initialization.
477 o Stefan Metzmacher <metze@samba.org>
478 * print out the SVN revision by configure,
481 o Lars Mueller <lmuelle@suse.de>
482 * Fix afs related build issues on SuSE.
486 * Implement NFS quota support on FreeBSD.
489 o Nick Wellnhofer <wellnhofer@aevum.de>
490 * Prevent lp_interfaces() list from being corrupted. Fixes
491 bug where nmbd would lose the list of network interfaces
492 on the system and consequently shutdown.
495 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
496 * Fix ntlm_auth memory leaks.
499 o Jelmer Vernooij <jelmer@samba.org>
500 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
501 get duplicate symbol errors.
502 * Return an error when the last command read from stdin
504 * Prepare for better error checking in tar.
507 --------------------------------------------------
509 =================================
510 Release Notes for Samba 3.0.5pre1
512 =================================
514 Common bugs fixed in this preview release include:
516 o Schannel failure in winbindd.
517 o Numerous memory leaks.
518 o Incompatibilities between the 'write list' and 'force user'
520 o Premature optimization of the open_directory() internal
521 function that broke tools such as the ArcServe backup
522 agent, Macromedia HomeSite, and Robocopy.
525 ATTENTION! NEW BEHAVIOR!
526 -------------------------
528 Beginning with Samba 3.0.5pre1, clients supporting the UNIX
529 extensions to the CIFS protocol can create symlinks to
530 absolute paths which will be **followed** by the server. This
531 functionality has been requested in order to correctly support
532 certain applications when the user's home directory is mounted
533 using some type of CIFS client (e.g. the cifsvfs in the Linux
536 If this behavior is not acceptable for your production environment
537 you can set 'wide links = no' in the specific share declaration in
538 the server's smb.conf. Be aware that disabling wide link support
539 out of a share in Samba may impact the server's performance due
540 to the fact that smbd will now have to check each path additional
541 times before traversing it.
549 Parameter Name Action
550 -------------- ------
551 printcap cache time New
556 o Jeremy Allison <jra@samba.org>
557 * Correct path parsing bug that broke DeletePrinterDriverEx().
558 * Fix bugs in check_path_syntax() caught by asserts.
559 * Internal change - rearrange internal global case setting
560 variables to a per connection basis.
561 * BUG 1345: Fix premature optimization in unix_convert().
562 * Allow clients to truncate a locked file.
563 * BUG 1319: Always check to see if a user as write access
564 to a share, even when 'force user' is set.
565 * Fix specific case of open that doesn't cause oplock break,
567 * Correct sid type is WKN_GROUP, not alias. Added some
568 more known types (inspired by patch from Jianliang Lu).
569 * Allow creation of absolute symlink paths via CIFS clients.
572 o Andrew Bartlett <abartlet@samba.org>
573 * Fix parsing bug in GetDomPwInfo().
574 * Fix segfault in 'ntlm_auth --diagnostics'.
577 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
578 * Ensure error status codes don't get overwritten in
579 lsa_lookup_sids() server code.
582 o Gerald Carter <jerry@samba.org>
583 * Fix a few bugs in the Fedora Packaging files.
584 * Fix for setting the called name to by our IP if the
585 called name was *SMBSERVER and *SMBSERV. Fixes issue
586 with connecting to printers via \\ip.ad.dr.ess\printer
588 * BUG 1315: fix for schannel client connections to servers
589 when we haven't specifically negotiated AUTH_PIPE_SEAL.
590 * Allow PrinterDriverData valuenames with embedded backslashes
591 (Fixes bug with one of the Konica Fiery drivers).
594 o Steve French <sfrench@us.ibm.com>
595 * Handle -S and user mount parms in mount.cifs.
598 o kawasa_r@itg.hitachi.co.jp
599 * Correct more memory leaks and initialization bugs.
600 * Fix bug that prevented core dumps from being generated
602 * Connect to the winbind pipe in non-blocking mode to
603 prevent processes from hanging.
606 o Stephan Kulow <coolo@suse.de>
607 * Fix crash bug in libsmbclient.
610 o Volker Lendecke <vl@samba.org>
611 * Added vfs_full_audit module.
612 * Add vfs_afsacl.c which can display & set AFS acls via
613 the NT security editor.
614 * Fix crash bug caused by trying to Base64 encode a NULL string.
617 o Herb Lewis <herb@samba.org>
618 * Add the acls debug class.
619 * Fix logic bug in netbios name truncate routine.
620 * Fix smbd crash caused by smbtorture IOCTL test.
623 o Jianliang Lu <j.lu@tiesse.com>
624 * Fix to stop smbd hanging on missing group member in
626 * Make sure Samba returns the correct group types.
629 o Jim McDonough <jmcd@us.ibm.com>
630 * BUG 1279: SMBjobid fix for Samba print servers running on
631 Big-Endian platforms.
634 o Stefan Metzmacher <metze@samba.org>
635 * fix a configure logic bug for linux/XFS quotas when
636 using --with-sys-quotas.
637 * Use quota debug class in quota code.
640 o Lars Müller <lmuelle@suse.de>
641 * BUG 1279: Added 'printcap cache time' parameter.
644 o Richard Sharpe <rsharpe@samba.org>
645 * Fix error return codes on some lock messages.
646 * BUG 1178: Make the libsmbclient routines callable
648 * BUG 1333: Make sure we return an error code when
650 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
651 share mode locking requests fail.
654 o Simo Source <idra@samba.org>
655 * Update Debian stable & unstable packaging.
658 o Andrew Tridgell <tridge@samba.org>
659 * Fixed bug in handling of timeout in socket connections.
662 o Jelmer Vernooij <jelmer@samba.org>
663 * Additional NT status to unix error mappings.
666 --------------------------------------------------
667 =============================
668 Release Notes for Samba 3.0.4
670 =============================
672 Common bugs fixed in Samba 3.0.4 include:
674 o Password changing after applying the patch described in
675 the Microsoft KB828741 article to Windows clients.
677 o Managing print jobs via Windows on Big-Endian servers.
678 o Several memory leaks in winbindd and smbd.
679 o Compile issues on AIX and *BSD.
687 o Jeremy Allison <jra@samba.org>
688 * Fix path processing for DeletePrinterDriverEx().
689 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
693 o Andrew Bartlett <abartlet@samba.org>
694 * Fix alignment bug in GetDomPwInfo().
697 o Alexander Bokovoy <ab@samba.org>
698 * Fix utime[s]() issues in smbwrapper on systems
699 that can boot both the 2.4 and 2.6 Linux kernels.
702 o Gerald Carter <jerry@samba.org>
703 * Fedora packaging fixes.
704 * BUG 1302: Fix seg fault by not trying to optimize a list of
705 invalid gids using the wrong array size.
706 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
707 seen when 'security = share'.
708 * Fix problems when using IBM's compiler on AIX.
709 * Link Developer's Guide, Example Guide, and multi-page HOWTO
710 into SWAT's welcome page.
711 * BUG 1293: fix double free in printer publishing code.
714 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
715 * Fix for handling timeouts in socket connections.
718 o Michel Gravey <michel.gravey@optogone.com>
719 * BUG 483: patch from to fix password hash creation in SWAT.
722 o Volker Lendecke <vl@samba.org>
723 * Close the open NT pipes before the tdis.
724 * Fix AFS related build issues.
725 * Handle error conditions when base64 encoding a blob of 0 bytes.
728 o Herb Lewis <herb@samba.org>
729 * Added 'acls' debug class.
731 o kawasa_r@itg.hitachi.co.jp
732 * Multiple variable initialization and memory leak fixes.
735 o Stephan Kulow <coolo@suse.de>
736 * Fix string length bug in libsmbclient that caused KDE's
738 * BUG 429: More libsmbclient fixes.
741 o Jim McDonough <jmcd@us.ibm.com>
742 * BUG 1007, 1279: Store the print job using a little-endian key.
746 o Compile fix for OpenBSD (ENOTSUP not supported).
749 o Stefan Metzmacher <metze@samba.org>
750 * Correct bug in disks quota views from explorer.
753 o Tim Potter <tpot@samba.org>
754 BUG 1305: Correct debug output.
757 o Richard Sharpe <rsharpe@samba.org>
758 * Fix incorrect error code mapping.
761 o Jelmer Vernooij <jelmer@samba.org>
762 * Add additional NT_STATUS errorm mappings.
765 Changes for older versions follow below:
767 --------------------------------------------------
769 =============================
770 Release Notes for Samba 3.0.3
772 =============================
775 Common bugs fixed in Samba 3.0.3 include:
777 o Crash bugs and change notify issues in Samba's printing code.
778 o Honoring secondary group membership on domain member servers.
779 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
780 o Substitution errors for %[UuGg] in smb.conf.
781 o winbindd crashes when using ADS security mode.
782 o SMB signing errors.
783 o Delays in winbindd startup caused by unnecessary
784 connections to trusted domain controllers.
785 o Various small memory leaks.
786 o Winbindd failing due to expired Kerberos tickets.
788 New features introduced in Samba 3.0.3 include:
790 o Improved support for i18n character sets.
791 o Support for account lockout policy based on
792 bad password attempts.
793 o Improved support for long password changes (>14
794 characters) and strong password enforcement.
795 o Support for Windows aliases (i.e. nested groups).
796 o Experimental support for storing DOS attribute on files
797 and folders in Extended Attributes.
798 o Support for local nested groups via winbindd.
799 o Specifying options to be passed directly to the CUPS libraries.
801 Please be aware that the Samba source code repository was
802 migrated from CVS to Subversion on April 4, 2004. Details on
803 accessing the Samba source tree via anonymous svn can be found
804 at http://svn.samba.org/samba/subversion.html.
812 Parameter Name Action
813 -------------- ------
817 store dos attributes New
819 winbind nested groups New
825 o Jeremy Allison <jra@samba.org>
826 * Ensure that Kerberos mutex is always properly unlocked.
827 * Removed Heimdal "in-memory keytab" support.
828 * Fixup the 'multiple-vuids' bugs in our server code.
829 * Correct return code from lsa_lookup_sids() on unmapped
830 sids (based on work by vl@samba.org).
831 * Fix the "too many fcntl locks" scalability problem
833 * Fixup correct (as per W2K3) returns for lookupsids
834 as well as lookupnames.
835 * Fixups for delete-on-close semantics as per Win2k3 behavior.
836 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
837 * Fix "unable to initialize" bug when smbd hasn't been run with
838 new system and a user is being added via pdbedit/smbpasswd.
839 * Added NTrename SMB (0xA5).
840 * Fixup correct timeout values for blocking lock timeouts.
841 * Fix various bugs reported by 'gentest'.
842 * More locking fixes in the case where we own the lock.
843 * Fix up regression in IS_NAME_VALID and renames.
844 * Don't set allocation size on directories.
845 * Return correct error code on fail if file exists and target
847 * Added client "hardlink" comment to test doing NT rename with
848 hard links. Added hardlink_internals() code - UNIX extensions
849 now use this as well.
850 * Use a common function to parse all pathnames from the wire for
851 much closer emulation of Win2k3 error return codes.
852 * Implement check_path_syntax() and rewrite string sub
853 functions for better multibyte support.
854 * Ensure msdfs referrals are multibyte safe.
855 * Allow msdfs symlink syntax to be more forgiving.
856 eg. sym_link -> msdfs://server/share/path/in/share
857 or sym_link -> msdfs:\\server\share\path\in\share.
858 * Cleanup multibyte netbios name support in nmbd ( based on patch
859 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
860 * Fix check_path_syntax() for multibyte encodings which have
861 no '\' as second byte (based on work by ab@samba.org.
862 * Fix the "dfs self-referrals as anonymous user" problem
863 (based on patch from vl@samba.org).
864 * BUG 1064: Ensure truncate attribute checking is done correctly
865 on "hidden" dot files.
866 * Fix bug in anonymous dfs self-referrals again.
867 * Fix get/set of EA's in client library
868 * Added support for OS/2 EA's in smbd server.
869 * Added 'ea support' parameter to smb.conf.
870 * Added 'store dos attributes' parameter to smb.conf.
871 * Fix wildcard identical rename.
872 * Fix reply_ctemp - make compatible with w2k3.
873 * Fix wildcard unlink.
874 * Fix wildcard src with wildcard dest renames.
875 * BUG 1139: Fix based on suggestion by jdev@panix.com.
876 swap lookups for user and group - group will do an
877 algorithmic lookup if it fails, user won't.
878 * Make EA's lookups case independent.
879 * Fix SETPATHINFO in 'unix extensions' support.
880 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
881 the UNIX info levels, and the short case preserve names.
884 o Timur Bakeyev <timur@com.bat.ru>
885 * BUG 1144: only set --with-fhs when the argument is 'yes'
886 * BUG 1152: Allow python modules to build despite libraries added
887 to LDFLAGS instead of LDPATH.
888 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
891 o Craig Barratt <cbarratt@users.sourceforge.net>
892 * BUG 389: Allow multiple exclude arguments with smbclient
893 tar -Xr options (better support for Amanda backup client).
896 o Andrew Bartlett <abartlet@samba.org>
897 * Include support for linking with cracklib for enforcing strong
899 * Add support for >14 character password changes from Windows
901 * Add 'admin set password' capability to 'net rpc'.
902 * Allow 'net rpc samdump' to work with any joined domain
903 regardless of smb.conf settings.
904 * Use an allocated buffer for count_chars.
905 * Add sanity checks for changes in the domain SID in an
907 * Implement python unit tests for Samba's multibyte string
909 * Remove 'unicode' smb.conf option.
910 * BUG 1138: Fix support for 'optional' SMB signing and other
912 * BUG 169: Fix NTLMv2-only behavior.
913 * Ensure 'net' honors the 'netbios name' in the smb.conf by
915 * Support SMB signing on connections using only the LANMAN
916 password and generate the correct the 'session key' for these
918 * Implement --required-membership-of=, an ntlm_auth option
919 that restricts all authentication to members of this particular
921 * Improve our fall back code for password changes.
922 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
923 after the server had said something (such as an error).
924 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
927 o Alexander Bokovoy <ab@samba.org>
928 * Fix incorrect size calculation of the directory name
930 * Fix problems with very long filenames in both smbd and smbclient
931 caused by truncating paths during character conversions.
932 * Fix smbfs problem with Tree Disconnect issued before smbfs
936 o Gerald Carter <jerry@samba.org>
937 * BUG 850: Fix 'make installmodules' bug on True64.
938 * BUG 66: mark 'only user' deprecated.
939 * Remove corrupt tdb and shutdown (only for printing tdbs,
940 connections, sessionid & locking).
941 * decrement smbd counter in connections.tdb in smb_panic().
942 * RedHat specfile updates.
943 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
944 * BUG 1147; bad pointer case in get_stored_queue_info()
946 * BUG 761: read the config file before initialized default
947 values for printing options; don't default to bsd printing
949 * Allow the 'printing' parameter to be set on a per share basis.
950 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
951 * BUG 848: don't create winbind local users/groups that already
953 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
955 * BUG 488: fix the 'show client in col 1' button and correctly
956 enumerate active connections.
957 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
958 problem when storing the updating pid for the lpq cache.
959 * BUG 1007 (partial): Fix print change notify bugs.
960 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
961 and winbind use default domain = yes. Also ensures that
962 * BUG 1151: Ensure that winbindd users are passed through
964 * Fix client rpc binds for ASU derived servers (pc netlink,
966 * BUG 417, 1128: Ensure that the current_user_info is set
967 consistently so that %[UuGg] is expanded correctly.
968 * BUG 1195: Fix crash in winbindd when the ADS server is
970 * BUG 1185: Set reconnect time to be the same as the
971 'winbind cache time'.
972 * Ensure that we return the sec_desc in smb_io_printer_info_2.
973 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
974 * BUG 1095: Honor the '-l' option in smbclient.
975 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
977 * Ensure server schannel uses the auth level requested by the
979 * Removed --with-cracklib option due to potential crash issue.
980 * Fix -lcrypto linking problem with wbinfo.
981 * BUG 761: allow printing parameter to set defaults on a per
983 * Add 'cups options' parameter to allow raw printing without
984 changing /etc/cups/cupsd.conf.
985 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
987 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
988 * BUG 1288: resolve any machine netbios name (0x00) and not just
990 * BUG 1199: Fix potential symlink issue in
991 examples/printing/smbprint.
994 o Robert Dahlem <Robert.Dahlem@gmx.net>
995 * BUG 1048: Don't return short names when when 'mangled names = no'
998 o Guenther Deschner <gd@suse.com>
999 * Remove hard coded attribute name in the ads ranged retrieval
1001 * Add --with-libdir and --with-mandir to autoconf script.
1004 o Bostjan Golob <golob@gimb.org>
1005 * BUG 1046: Fix getpwent_list() so that the username is not
1006 overwritten by other fields.
1009 o Landon Fuller <landonf@opendarwin.org>
1010 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
1011 to fix user/group enumeration on systems whose libc does not
1012 call setgrent() before trying to enumerate users (i.e.
1016 o Steve French <sfrench@us.ibm.com>
1017 * Update mount.cifs to version 1.1.
1018 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
1019 * Fixes to minor security bug in the mount helper.
1020 * Fix credential file mounting for cifs vfs.
1021 * Fix free of incremented pointer in cifsvfs mount helper.
1022 * Fix path canonicalization of the mount target path and help
1023 text display in the cifs mount helper.
1024 * Add missing guest mount option for mount.cifs.
1027 o SATOH Fumiyasu <fumiya@miraclelinux.com>
1028 * BUG 1055; formatting fixes for 'net share'.
1029 * BUG 692: correct truncation of share names and workgroup
1031 * BUG 1088: use strchr_m() for query_host (smbclient -L).
1032 * Patch from to internally count characters correctly.
1035 o Paul Green <paulg@samba.org>
1036 * Update VOS _POSIX_C_SOURCE macro to 200112L.
1037 * Fix bug in configure.ion by moving the first use of
1038 AC_CHECK_HEADERS so it is always executed.
1039 * Fix configure.in to only use $BLDSHARED to select whether to
1040 build static or shared libraries.
1043 o Pat Haywarrd <Pat.Hayward@propero.net>
1044 * Make the session_users list dynamic (max of 128K).
1047 o Cal Heldenbrand <calzplace@yahoo.com>
1048 * Fix for for 'pam_smbpass migrate' functionality.
1051 o Chris Hertel <crh@samba.org>
1052 * fix enumeration of shares 12 characters in length via
1056 o Ulrich Holeschak <ulrich@holeschak.de>
1057 * BUG 932: fix local password change using pam_smbpass
1060 o Krischan Jodies <kj@sernet.de>
1061 * Implement 'net rpc group delete'
1064 o John Klinger <john.klinger@lmco.com>
1065 * Return NSS_SUCCESS once the max number of gids possible
1066 has been found in initgroups() on Solaris.
1067 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1070 o Volker Lendecke <vl@samba.org>
1071 * Fix success message for net groupmap modify.
1072 * Fix errors when enumerating members of groups in 'net rpc'.
1073 * Match Windows behavior in samr_lookup_names() by returning
1074 ALIAS(4) when you search in BUILTIN.
1075 * Fix server SAMR code to be able to set alias info for
1077 * Fix duplication of logic when creating groups via smbd.
1078 * Ensure that the HWM values are set correctly after running
1080 * Add 'net rpc group add'.
1081 * Implement 'net groupmap set' and 'net groupmap cleanup'.
1082 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1083 * Fix wb_delgrpmem (wbinfo -o).
1084 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1085 * Fix sambaUserWorkstations on a Samba DC.
1086 * Implement wbinfo -k: Have winbind generate an AFS token after
1087 authenticating the user.
1088 * Add expand_msdfs VFS module for providing referrals based on the
1089 the client's IP address.
1090 * Implement client side NETLOGON GetDCName function.
1091 * Fix caching of name->sid lookups.
1092 * Add support in winbindd for expanding nested local groups.
1093 * Fix memleak in winbindd.
1095 * Don't list domain groups from BUILTIN.
1096 * Fix memleak in policy handle utility functions.
1097 * Decrease winbindd startup time by only contacting trusted
1098 domains as necessary.
1099 * Allow winbindd to ask the DC for its domain for a trusted
1101 * Fix Netscape DS schema based on comments from
1102 <thomas.mueller@christ-wasser.de>.
1103 * Correct case where adding a domain user to a XP local group
1104 did a lsalookupname on the user without domain prefix, and
1106 * Fix segfault in winbindd caused by 'wbinfo -a'.
1109 o Herb Lewis <herb@samba.org>
1110 * Fix typo for tag in proto file.
1111 * Add missing #ifdef HAVE_BICONV stuff.
1112 * Truncate Samba's netbios name at the first '.' (not
1116 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1117 * Bug fixes and enhancements to libsmbclient library.
1120 o Jianliang Lu <j.lu@tiesse.com>
1121 * Enforce the 'user must change password at next login' flag.
1122 * Decode meaning of 'fields present' flags (improves support
1125 * Don't force an upper case domain name in the ntlmssp code.
1128 o L. Lucius <ib@digicron.com>.
1132 o Jim McDonough <jmcd@us.ibm.com>
1133 * Add versioning support to tdbsam.
1134 * Update the IBM Directory Server schema with the OpenLDAP
1136 * Various decoding fixes to improve usrmgr.exe support.
1137 * Fix statfs redeclaration of statfs struct on ppc
1138 * Implement support for password lockout of Samba domain
1139 controllers and standalone servers.
1140 * Get MungedDial attribute actually working with full TS
1141 strings in it for pdb_ldap.
1142 * BUG 1208 (partial): Improvements for working with expired krb5
1143 tickets in winbindd.
1144 * Use timegm, or our already existing replacement instead of
1145 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1146 * Remove modifyTimestamp from list of our attributes.
1147 * Fix lsalookupnames to check for domain users as well as local
1149 * Merge struct uuid replacement for GUID from trunk.
1150 * BUG 1208: Finish support for handling expired tickets in
1151 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1154 o Stefan Metzmacher <metze@samba.org>
1155 * Implement new VERSION schema based on subversion revision
1157 * Add shadow_copy vfs module.
1158 * Fix segault in login_cache support.
1161 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1162 o BUG 979 -- Fix quota display on AIX.
1165 o James Peach <jpeach@sgi.com>
1166 * Correct check for printf() format when using the SGI MIPSPro
1168 * BUG 1038: support backtrace for 'panic action' on IRIX.
1169 * BUG 768: Accept profileing arg to IRIX init script.
1170 * BUG 748: Relax arg parsing to sambalp script (IRIX).
1171 * BUG 758: Fix pdma build.
1172 * Search IRIX ABI paths for libiconv. Based on initial fix from
1176 o Kurt Pfeifle <kpfeifle@danka.de>
1177 * Add example shell script for migrating drivers and printers
1178 from a Windows print server to a Samba print server using
1179 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1182 o Tim Potter <tpot@samba.org>
1183 * Fix logic bug in tdb non-blocking lock routines when
1185 * BUG 1025: Include sys/acl.h in check for broken nisplus
1187 * BUG 1066: s/printf/d_printf/g in SWAT.
1188 * BUG 1098: rename internal msleep() function to fix build
1190 * BUG 1112: Fix for writable printerdata problem in python bindings.
1191 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1192 * BUG 1155: enclose use of fchown() with guards.
1193 * Relicense tdb python module as LGPL.
1196 o Richard Sharpe <rsharpe@samba.org>
1197 * Add support to smbclient for multiple logins on the same
1198 session (based on work by abartlet@samba.org).
1199 * Correct blocking condition in smbd's use of accept() on IRIX.
1200 * Add support for printing out the MAC address on nmblookup.
1203 o Simo Source <idra@samba.org>
1204 * Replace unknown_3 with fields_present in SAMR code.
1205 * More length checks in strlcat().
1208 o Andrew Tridgell <tridge@samba.org>
1209 * Rewrote the AIX UESS backend for winbindd.
1210 * Fixed compilation with --enable-dmalloc.
1211 * Change tdb license to LGPL (see source/tdb/tdb.c).
1212 * Force winbindd to use schannel in clients connections to
1216 o Jelmer Vernooij <jelmer@samba.org>
1217 * Fix ETA Calculation when resuming downloads in smbget.
1218 * Add -O (for writing downloaded files to standard out)
1219 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1220 * Fix syntax error in example mysql table
1223 o TAKEDA yasuma <yasuma@miraclelinux.com>
1224 * BUG 900: fix token processing in cmd_symlink, cmd_link,
1225 cmd_chown, cmd_chmod smbclient functions.
1228 o Shiro Yamada <shiro@miraclelinux.com>
1229 * BUG 1129: install image files for SWAT.
1232 --------------------------------------------------
1234 ==============================
1235 Release Notes for Samba 3.0.2a
1237 ==============================
1239 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1240 to address, in particular, a problem when using pdbedit to
1241 sanitize (--force-initialized-passwords) Samba's tdbsam
1242 backend. This is the latest stable release of Samba. This
1243 is the version that all production Samba servers should be
1244 running for all current bug-fixes.
1246 ******************* Attention! Achtung! Kree! *********************
1248 Beginning with Samba 3.0.2, passwords for accounts with a last
1249 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1250 ldapsam, etc...) of zero (0) will be regarded as uninitialized
1251 strings. This will cause authentication to fail for such
1252 accounts. If you have valid passwords that meet this criteria,
1253 you must update the last change time to a non-zero value. If you
1254 do not, then 'pdbedit --force-initialized-passwords' will disable
1255 these accounts and reset the password hashes to a string of X's.
1257 ******************* Attention! Achtung! Kree! *********************
1266 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1267 details. The list of changes per contributor are as follows:
1270 o Jeremy Allison <jra@samba.org>
1271 * Added paranoia checks in parsing code.
1274 o Andrew Bartlett <abartlet@samba.org>
1275 * Ensure that changes to uninitialized passwords in ldapsam
1276 are written to the DIT.
1279 o Gerald (Jerry) Carter <jerry@samba.org>
1280 * Fixed iterator in tdbsam.
1281 * Fix bug that disabled accounts with a valid NT password
1282 hash, but no LanMan hash.
1285 o Steve French <sfrench@us.ibm.com>
1286 * Added missing nosetuid and noexec options.
1289 o Bostjan Golob <golob@gimb.org>
1290 * BUG 1046: Don't overwrite usernames of entries returned
1294 o Sebastian Krahmer <krahmer@suse.de>
1295 * Fixed potential crash bug in NTLMSSP parsing code.
1298 o Tim Potter <tpot@samba.org>
1299 * Fixed logic in tdb_brlock error checking.
1302 o Urban Widmark <urban@teststation.com>
1303 * Set nosuid,nodev flags in smbmnt by default.
1306 --------------------------------------------------
1308 =============================
1309 Release Notes for Samba 3.0.2
1311 =============================
1313 It has been confirmed that previous versions of Samba 3.0 are
1314 susceptible to a password initialization bug that could grant an
1315 attacker unauthorized access to a user account created by the
1316 mksmbpasswd.sh shell script.
1318 The Common Vulnerabilities and Exposures project (cve.mitre.org)
1319 has assigned the name CAN-2004-0082 to this issue.
1321 Samba administrators not wishing to upgrade to the current
1322 version should download the 3.0.2 release, build the pdbedit
1325 root# pdbedit-3.0.2 --force-initialized-passwords
1327 This will disable all accounts not possessing a valid password
1328 (e.g. the password field has been set a string of X's).
1330 Samba servers running 3.0.2 are not vulnerable to this bug
1331 regardless of whether or not pdbedit has been used to sanitize
1334 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1337 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1338 o Logging onto a Samba domain from Windows XP clients.
1339 o Problems with the %U and %u smb.conf variables in relation to
1340 Windows 9x/ME clients.
1341 o Kerberos failures due to an invalid in memory keytab detection
1343 o Updates to the ntlm_auth tool.
1344 o Fixes for various SMB signing errors.
1345 o Better separation of WINS and DNS queries for domain controllers.
1346 o Issues with nss_winbind FreeBSD and Solaris.
1347 o Several crash bugs in smbd and winbindd.
1348 o Output formatting fixes for smbclient for better compatibility
1349 with scripts based on the 2.2 version.
1358 Parameter Name Action
1359 -------------- ------
1360 ldap replication sleep New
1361 read size removed (unused)
1362 source environment removed (unused)
1368 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1369 details. The list of changes per contributor are as follows:
1371 o Jeremy Allison <jra@samba.org>
1372 * Revert change that broke Exchange clear text samlogons.
1373 * Fix gcc 3.4 warning in MS-DFS code.
1374 * Tidy up of NTLMSSP code.
1375 * Fixes for SMB signing errors
1376 * BUG 815: Workaround NT4 bug to support plaintext
1377 password logins and UNICODE.
1378 * Fix SMB signing bug when copying large files.
1379 * Correct error logic in mkdir_internals() (caused a panic
1380 when combined with --enable-developer).
1381 * BUG 830: Protect against crashes due to bad character
1385 o Petri Asikainen <paca@sci.fi>
1386 * BUG 330, 387:Fix single valued attribute updates when
1387 working with Novell NDS.
1390 o Andrew Bartlett <abartlet@samba.org>
1391 * Correctly handle per-pipe NTLMSSP inside a NULL session.
1392 * Fix segfault in gencache
1393 * Fix early free() of encrypted_session_key.
1394 * Change DC lookup routines to more carefully separate
1395 DNS names (realms) from NetBIOS domain names.
1396 * Add new sid_to_dn() function for internal winbindd use.
1397 * Refactor cli_ds_enum_domain_trusts().
1398 * BUG 707: Implement range retrieval of ADS attributes (based
1399 on work from Volker <vl@samba.org> and Guenther Deschner
1401 * Automatically initialize the signing engine if a session key
1403 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
1404 encoded strings, only form input in SWAT.
1405 * Resets the NTLMSSP state for new negotiate packets.
1406 * Add 2-byte alignments in net_samlogon() queries to parse
1407 odd-length plain text passwords.
1408 * Allow Windows groups with no members in winbindd.
1409 * Allow normal authentication in the absence of a server
1410 generated session key.
1411 * More optimizations for looking up UNIX group lists.
1412 * Clean up error codes and return values for pam_winbindd
1413 and winbindd PAM interface.
1414 * Fix string return values in ntlm_auth tool.
1415 * Fix segfault when 'security = ads' but no realm is defined.
1416 * BUG 722: Allow winbindd to map machine accounts to uids.
1417 * More cleanups for winbindd's find_our_domain().
1418 * More clearly detect whether a domain controller is an NT4
1419 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1420 * Increase separation between DNS queries for hosts and queries
1421 for AD domain controllers.
1422 * Include additional NT_STATUS to PAM error mappings.
1423 * Password initialization fixes.
1426 o Justin Baugh <justin.baugh@request.com>
1427 * BUG 948: Implement missing functions required for FreeBSD
1428 nss_winbind support.
1431 o Alexander Bokovoy <ab@samba.org>
1432 * BUG 922: Make sure enable fast path for strlower_m() and
1436 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
1437 * Fix crash when using 'security = server' and 'encrypt
1438 passwords = no' by always initializing the session key.
1441 o Dmitry Butskoj <buc@odusz.elektra.ru>
1442 * Fix for special files being hidden from admins.
1445 o Gerald (Jerry) Carter <jerry@samba.org>
1446 * Fix bug in the lanman session key generation. Caused
1447 "decode_pw: incorrect password length" error messages.
1448 * Save the right case for the located user name in
1449 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
1450 * BUG 897: Add well known rid for pre win2k compatible access
1452 * BUG 887: Correct typo in delete user script example.
1453 * Use short lived TALLOC_CTX* for allocating printer objects
1454 from the print handle cache.
1455 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
1456 * Fix several warnings reported by the SUN Forte C compiler.
1457 * Fully control DNS queries for AD DC's using 'name resolve order'.
1458 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
1459 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
1460 * BUG 936: fix bind credentials for schannel binds in smbd.
1461 * BUG 446: Fix output of smbclient for better compatibility
1462 with scripts based on the 2.2 version (including Amanda).
1463 * BUG 891, 949: Fedora packaging fixes.
1464 * Fix bug that caused rpcclient to incorrectly retrieve
1465 the SID for a server (this causing all calls that required
1466 this information to fail).
1467 * BUG 977: Don't create a homes share for a user if a static
1468 share already exists by the same name.
1469 * Removed unused smb.conf options.
1470 * Password initialization fixes.
1471 * Set the disable flag for template accounts created by
1473 * Disable any account has no passwords and does not have the
1474 ACB_PWNOTREQ bit set.
1477 o Guenther Deschner <gd@suse.com>
1478 * Install smbwrapper.so should be put into the $(libdir)
1480 * Add the capability to specify the new user password
1481 for "net ads password" on the command line.
1482 * Correctly detect AFS headers on SuSE.
1485 o James Flemer <jflemer@uvm.edu>
1486 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
1487 HAVE_SYS_ATTRIBUTES_H.
1490 o Luke Howard <lukeh@PADL.COM>
1491 * Fix segfault in session setup reply caused by a early free().
1494 o Stoian Ivanov <sdr@bultra.com>
1495 * Implement grepable output for smbclient -L.
1498 o LaMont Jones <lamont@debian.org>
1499 * BUG 225328 (Debian): Correct false failure LFS test that resulted
1500 in _GNU_SOURCE not being defined (thus resulting in strndup()
1504 o Volker Lendecke <vl@samba.org>
1505 * BUG 583: Ensure that user names always contain the short
1506 version of the domain name.
1507 * Fix our parsing of the LDAP uri.
1508 * Don't show the 'afs username map' in the SWAT basic view.
1509 * Fix SMB signing issues in relation to failed NTLMSSP logins.
1510 * BUG 924: Fix return codes in smbtorture harness.
1511 * Always lower-case usernames before handing it to AFS code.
1512 * Add a German translation for SWAT.
1513 * Fix a segfaults in winbindd.
1514 * Fix the user's domain passed to register_vuid() from
1515 reply_spnego_kerberos().
1516 * Add NSS example code in nss_winbind to convert UNIX
1517 id's <-> Windows SIDs.
1518 * Display more descriptive error messages for login via 'net'.
1519 * Fix compiler warning in the net tool.
1520 * Fix length bug when decoding base64 strings.
1521 * Ensure we don't call getpwnam() inside a loop that is iterating
1522 over users with getpwent(). This broke on glibc 2.3.2.
1525 o Herb Lewis <herb@samba.org>
1526 * Fix bit rot in psec.
1529 o Jianliang Lu <j.lu@tiesse.com>
1530 * Ensure we delete the group mapping before calling the delete
1532 * Define well known RID for managing the "Power Users" group.
1533 * BUG 381: check builtin (not local) group SID when updating
1535 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
1539 o John Klinger <john.klinger@lmco.com>
1540 * Implement initgroups() call in nss_winbind on Solaris.
1543 o Jim McDonough <jmcd@us.ibm.com>
1544 * Fix regression in net rpc join caused by recent changes
1545 to cli_lsa_query_info_policy().
1546 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
1550 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
1551 * BUG 570: Ensure that configure honors the LDFLAGS variable.
1554 o Stefan Metzmacher <metze@samba.org>
1555 * Implement LDAP rebind sleep patch.
1556 * Revert to 2.2 quota code because of so many broken quota files
1558 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
1559 XFS_USER_QUOTA -> USRQUOTA
1560 XFS_GROUP_QUOTA -> GRPQUOTA
1561 * Fix disk_free calculation with group quotas.
1562 * Add debug class 'quota' and a lot of DEBUG()'s
1564 * Fix sys_chown() when no chown() is present.
1565 * Add SIGABRT to fault handling in order to catch got a
1566 backtrace if an error occurs the OpenLDAP client libs.
1570 * Allow an existing LDAP machine account to be re-used when
1571 joining an AD domain.
1574 o James Peach <jpeach@sgi.com>
1575 * BUG 889: Change smbd to use pread/pwrite on platforms that
1576 support these calls. Can lead to a significant speed increase.
1579 o Tim Potter <tpot@samba.org>
1580 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
1581 * BUG 924: Fix typo in RW2 torture test.
1584 o Richard Sharpe <rsharpe@samba.org>
1585 * Small fixes to torture.c to cleanup the error handling
1586 and prevent crashes.
1589 o J. Tournier <jerome.tournier@IDEALX.com>
1590 * Small fixes for the smbldap-tool scripts.
1593 o Andrew Tridgell <tridge@samba.org>
1594 * Fix src len check in pull_usc2().
1597 o Jelmer Vernooij <jelmer@samba.org>
1598 * Put functions for generating SQL queries in pdb_sql.c
1599 * Add pgSQL backend (based on patch by Hamish Friedlander)
1600 * BUG 908: Fix -s option to smbcontrol.
1601 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
1602 * Fix for libnss_wins on IRIX platforms.
1603 * Fix swatdir for --with-fhs.
1606 --------------------------------------------------
1608 =============================
1609 Release Notes for Samba 3.0.1
1611 =============================
1613 Some of the more common bugs in 3.0.0 addressed in the release
1616 o Substitution problems with smb.conf variables.
1617 o Errors in return codes which caused some applications
1618 to fail to open files.
1619 o General Protection Faults on Windows 2000/XP clients
1620 using Samba point-n-print features.
1621 o Several miscellaneous crash bugs.
1622 o Access problems when enumerating group mappings are
1623 stored in an LDAP Directory.
1624 o Several common SWAT bugs when writing changes to
1626 o Internal inconsistencies when 'winbind use default
1632 ----------------------
1634 Parameter Name Action
1635 -------------- ------
1636 hide local users Removed
1637 mangled map Deprecated
1638 mangled stack Removed
1639 passwd chat timeout New
1645 o Change the interface for init_unistr2 to not take a length
1646 but a flags field. We were assuming that
1647 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
1648 o Allow d_printf() to handle strings with escaped quotation
1649 marks since the msg file includes the escape character (bug 489).
1650 o Fix bad html table row termination in SWAT wizard code (bug 413).
1651 o Fix to parse the level-2 strings.
1652 o Fix for "valid users = %S" in [homes]. Fix read/write
1654 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
1655 This is the same way AC_CHECK_LIB works (bug 508).
1656 o Testparm output fixes for clarity.
1657 o Fix broken wins hook functionality -- i18n bug (bug 528).
1658 o Take care of condition where DOS and NT error codes must differ.
1659 o Default to using only built-in charsets when a working iconv
1660 implementation cannot be located.
1661 o Wrap internals of sys_setgroups() so the sys_XX() call can
1662 be done unconditionally (bug 550).
1663 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1664 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1665 --enable-debug=[yes|no] works correctly.
1666 o Allow ^C to interrupt smbpasswd if using our getpass
1667 (e.g. smbpasswd command).
1668 o Support signing only on RPC's (bug 167).
1669 o Correct bug that prevented Excel 2000 clients from opening
1670 files marked as read-only.
1671 o Portability fix bugs 546 - 549).
1672 o Explicitly initialize the value of AR for vendor makes that don't
1673 do this (e.g. HPUX 11). (bug 552).
1674 o More i18n fixes for SWAT (bug 413).
1675 o Change the cwd before the postexec script to ensure that a
1676 umount will succeed.
1677 o Correct double free that caused winbindd to crash when a DC
1678 is rebooted (bug 437).
1679 o Fix incorrect mode sum (bug 562).
1680 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1681 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1682 o Add script to generate *msg files.
1683 o Add Dutch SWAT translation file.
1684 o Make sure to call get_user_groups() with the full winbindd
1685 name for a user if he/she has one (bug 406).
1686 o Fix up error code returns from Samba4 tester. Ensure invalid
1687 paths are validated the same way.
1688 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1689 o Refuse to configure if --with-expsam=$BACKEND was used but no
1690 libraries were found for $BACKEND.
1691 o Move sysquotas autoconf tests to a separate file.
1692 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1694 o Make sure that the files that contain the static_init_$subsystem;
1695 macro get recompiled after configure by removing the object
1697 o Ensure canceling a blocking lock returns the correct error
1699 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1700 o Updated Japanese welcome file in SWAT.
1701 o Fix to nt-time <-> unix-time functions reversible.
1702 o Ensure that winbindd uses the the escaped DN when querying
1704 o Fix portability issues when compiling (bug 505, 550)
1705 o Compile fix for tdbbackup when Samba needs to override
1706 non-C99 compliant implementations of snprintf().
1707 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1708 o Make sure we break out of samsync loop on error.
1709 o Ensure error code path doesn't free unmalloc()'d memory
1711 o Add configure test for krb5_keytab_entry keyblock vs key
1714 o Modified testparm so that all output so all debug output goes
1715 to stderr, and all file processing goes to stdout.
1716 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1718 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1719 we have a devmode before copying a string to the devicename.
1720 o Support mapping REALM.COM\user to a local user account (without
1721 running winbindd) for compatibility with 2.2.x release.
1722 o Ensure we don't use mmap() on blacklisted systems.
1723 o fixed a number of bugs and memory leaks in the AIX
1725 o Call initgroups() in SWAT before becomming the user so that
1726 secondary group permissions can be used when writing to
1728 o Fix signing problems when reverse connecting back to a
1729 client for printer notify
1730 o Fix signing problems caused by a miss-sequence bug.
1731 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1732 Fixes NEXUS tools running on Win9x clients (bug 64).
1733 o Don't leave the domain field uninitialized in cli_lsa.c if some
1734 SID could not be mapped.
1735 o Fix segfault in mount.cifs helper when there is no options
1736 specified during mount.
1737 o Change the \n after the password prompt to go to tty instead
1738 of stdout (bug 668).
1739 o Stop net -P from prompting for machine account password (bug 451).
1740 o Change in behavior to Not only change the effective uid but also
1741 the real uid when becoming unprivileged.
1742 o Cope with Exchange 5.5 cleartext pop password auth.
1743 o New files for support of initshutdown pipe. Win2k doesn't
1744 respond properly to all requests on the winreg pipe, so we need
1745 to handle this new pipe (bug 534).
1746 o Added more va_copy() checks in configure.in.
1747 o Include fixes for libsmbclient build problems.
1748 o Missing UNIX -> DOS codepage conversion in lanman.c.
1749 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1750 o Parameterize the listen backlog in smbd and make it larger by
1751 default. A backlog of 5 is way too small these days.
1752 o Check for an invalid fid before dereferencing the fsp pointer
1754 o Remove invalid memory frees and return codes in pdb_ldap.c.
1755 o Prompt for password when invoking --set-auth-user and no
1757 o Bind the nmbd sending socket to the 'socket address'.
1758 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1759 $LDFLAGS occurs before any library specification (bug 661).
1760 o Fix large number of printf() calls for 64-bit size_t.
1761 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1762 keyblock in the krb5 structs.
1763 o Remove #include <compat.h> in hopes to avoid problems with
1764 apache header files.
1765 o Correct winbindd build problems on HP-UX 11.
1766 o Lowercase netgroups lookups (bug 703).
1767 o Use the actual size of the buffer in strftime instead of a made
1768 up value which just happens to be less than sizeof(fstring).
1770 o Add ldaplibs to pdbedit link line (bug 651).
1771 o Fix crash bug in smbclient completion (bug 659).
1772 o Fix packet length for browse list reply (bug 771).
1773 o Fix coredump in cli_get_backup_list().
1774 o Make sure that we expand %N (bug 612).
1775 o Allow rpcclient adddriver command to specify printer driver
1777 o Compile tdbdump by default.
1778 o Apply patches to fix iconv detection for FreeBSD.
1779 o Do not allow the 'guest account' to be added to a passdb backend
1780 using smbpasswd or pdbedit (bug 624).
1781 o Save LDFLAGS during iconv detection (bug 57).
1782 o Run krb5 logins through the username map if the winbindd
1783 lookup fails (bug 698).
1784 o Add const for lp_set_name_resolve_order() to avoid compiler
1786 o Add support for the %i macro in smb.conf to stand in for the for
1787 the local IP address to which a client connected.
1788 o Allow winbindd to match local accounts to domain SID when
1789 'winbind trusted domains only = yes' (bug 680).
1790 o Remove code in idmap_ldap that searches the user suffix and group
1791 suffix. It's not needed and provides inconsistent functionality
1792 from the tdb backend.
1793 o Patch to handle munged dial string for Windows 2000 TSE.
1794 Thanks to Gaz de France, Direction de la Recherche, Service
1795 Informatique Métier for their supporting this work by Aurelien
1796 Degrémont <adegremont@idealx.com>.
1797 o Correct the "smbldap_open: cannot access when not root error"
1798 messages when looking up group information (bug 281).
1799 o Skip over the winbind separator when looking up a user.
1800 This fixes the bug that prevented local users from
1801 matching an AD user when not running winbindd (bug 698).
1802 o Fix a problem with configure on *BSD systems. Make sure
1803 we add -liconv etc to LDFLAGS.
1804 o Fix core dump bug when "security = server" and the authentication
1806 o Correct crash bug due to an empty munged dial string.
1807 o Show files locked by a specific user (smbstatus -u 'user')
1809 o Fix bug preventing print jobs from display in the queue
1810 monitor used by Windows NT and later clients (bug 660).
1811 o Fix several reported problems with point-n-print from
1812 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1813 reply (bug 338, 527 & 643).
1814 o Fix a handful of potential memory leaks in the LDAP code used
1815 by ldapsam[_compat] and the LDAP idmap backend.
1816 o Fix for pdbedit error code returns (bug 763).
1817 o Make sure we only enumerate group mapping entries (not
1818 /etc/group) even when doing local aliases.
1819 o Relax check on the pipe name in a dce/rpc bind response to work
1820 around issues with establishing trusts to a Windows 2003 domain.
1821 o Ensure we mangle names ending in '.' in hash2 mangling method.
1822 o Correct parsing issues with munged dial string.
1823 o Fix bugs in quota support for XFS.
1824 o Add a cleaner method for applications that need to provide
1825 name->SID mappings to do this via NSS rather than having to
1826 know the winbindd pipe protocol.
1827 o Adds a variant of the winbindd_getgroups() call called
1828 winbindd_getusersids() that provides direct SID->SIDs listing of
1829 a users supplementary groups. This is enough to allow non-Samba
1830 applications to do ACL checking.
1831 o Make sure we don't append the 'ldap suffix' when writing out the
1832 'ldap XXX suffix' values in SWAT (bug 328).
1833 o Fix renames across file systems.
1834 o Ensure that items in a list of strings containing whitespace are
1835 written out surrounded by single quotes. This means that both
1836 double and single quotes are now used to surround strings in
1838 o Enable SWAT to correctly determine if winbindd is running (bug
1840 o Include WWW-Authenticate field in 401 response for bad auth
1842 o Add support for NTLM2 (NTLMv2 session security).
1843 o Add support for variable-length session keys.
1844 o More privilege fixes for group enumeration in LDAP (bug 281).
1845 o Use the dns name (or IP) as the originating client name when
1846 using CUPS (bug 467).
1847 o Fix various SMB signing bugs.
1848 o Fix ACL propagation on a DFS root (bug 263).
1849 o Disable NTLM2 for RPC pipes.
1850 o Allow the client to specify the NTLM2 flags got NTLMSSP
1852 o Change the name of the job passed off to cups from "Test Page"
1853 to "smbprn.00000033 Test Page" so that we can get the smb
1854 jobid back. This allow users to delete jobs with cups printing
1855 backend (partial work on bug 770).
1856 o Fix build of winbindd with static pdb modules.
1857 o Retrieve the correct ACL group bits if the file has an ACL
1859 o Implement "net rpc group members": Get members of a domain group
1860 in human-readable format.
1861 o Add MacOSX (Darwin) specific charset module code.
1862 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1863 can include the full name in gecos field (bug 587).
1864 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1865 o Implement 'net rpc group list [global|local|builtin]*' for a
1866 select listing of the respective user databases.
1867 o Don't automatically set NT status code flag unless client tells
1869 o Add 'net status [sessions|shares] [parseable]'.
1870 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1872 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1874 o Fix inverted logic in hosts allow/deny checks caused by
1875 s/strcmp/strequal/ (bug 846).
1876 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1877 o Fix typo in 'hash' mangling algorithm.
1878 o Support munged dial for ldapsam (bug 800).
1879 o Fix process_incoming_data() to return the number of bytes handled
1880 this call whether we have a complete PDU or not; fixes bug
1881 with multiple PDU request rpc's broken over SMBwriteX calls
1883 o Fix incorrect smb flags2 for connections to pre-NT servers
1884 (causes smbclient to fail to OS2 for example) (bug 821).
1885 o Update version string in smbldap-tools Makefile to 0.8.2.
1886 o Correct a problem with "net rpc vampire" mis-parsing the
1887 alias member info reply.
1888 o Ensure the ${libdir} is created by the installclientlib script.
1889 o Fix detection of Windows 2003 client architecture in the smb.conf
1891 o Ensure that smbd calls the add user script for a missing UNIX
1892 user on kerberos auth call (bug 445).
1893 o Fix bugs in hosts allow/deny when using a mismatched
1894 network/netmask pair.
1895 o Protect alloc_sub_basic() from crashing when the source string
1896 is NULL (partial work on bug 687).
1897 o Fix spinlocks on IRIX.
1898 o Corrected some bad destination paths when running "configure
1900 o Add packaging files for Fedora Core 1.
1901 o Correct bug in SWAT install script for non-english languages.
1902 o Support character set ISO-8859-1 internally (bug 558).
1903 o Fixed more LDAP access errors when looking up group mappings
1905 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1906 resolution to fail on local files on on domain members
1908 o Fix uninitialized variable in passdb.c.
1909 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1910 o Fix problem mounting directories when mount.cifs is installed
1911 with the setuid bit on.
1912 o Fix bug that prevent --mandir from overriding the defaults
1913 given in the --with-fhs macro.
1914 o Fix bug in in-memory Kerberos keytab detection routines
1919 ######################################################################
1921 The original 3.0.0 release notes follow
1922 =======================================
1923 WHATS NEW IN Samba 3.0.0
1925 =======================================
1931 1) Active Directory support. Samba 3.0 is now able to
1932 join a ADS realm as a member server and authenticate
1933 users using LDAP/Kerberos.
1935 2) Unicode support. Samba will now negotiate UNICODE on the wire
1936 and internally there is now a much better infrastructure for
1937 multi-byte and UNICODE character sets.
1939 3) New authentication system. The internal authentication system
1940 has been almost completely rewritten. Most of the changes are
1941 internal, but the new auth system is also very configurable.
1943 4) New default filename mangling system.
1945 5) A new "net" command has been added. It is somewhat similar to
1946 the "net" command in windows. Eventually we plan to replace
1947 numerous other utilities (such as smbpasswd) with subcommands
1950 6) Samba now negotiates NT-style status32 codes on the wire. This
1951 improves error handling a lot.
1953 7) Better Windows 2000/XP/2003 printing support including publishing
1954 printer attributes in active directory.
1956 8) New loadable module support for passdb backends and character
1959 9) New default dual-daemon winbindd support for better performance.
1961 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1962 domain and maintaining user, group and domain SIDs.
1964 11) Support for establishing trust relationships with Windows NT 4.0
1967 12) Initial support for a distributed Winbind architecture using
1968 an LDAP directory for storing SID to uid/gid mappings.
1970 13) Major updates to the Samba documentation tree.
1972 14) Full support for client and server SMB signing to ensure
1973 compatibility with default Windows 2003 security settings.
1975 15) Improvement of ACL mapping features based on code donated by
1976 Andreas Grünbacher.
1979 Plus lots of other improvements!
1982 Additional Documentation
1983 ------------------------
1985 Please refer to Samba documentation tree (included in the docs/
1986 subdirectory) for extensive explanations of installing, configuring
1987 and maintaining Samba 3.0 servers and clients. It is advised to
1988 begin with the Samba-HOWTO-Collection for overviews and specific
1989 tasks (the current book is up to approximately 400 pages) and to
1990 refer to the various man pages for information on individual options.
1992 We are very glad to be able to include the second edition of
1993 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1994 (O'Reilly & Associates) in this release. The book is available
1995 on-line at http://samba.org/samba/docs/ and is included with
1996 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1997 publisher for making "Using Samba" under the GNU Free Documentation
2001 ######################################################################
2002 Upgrading from a previous Samba 3.0 beta
2003 ########################################
2005 Beginning with Samba 3.0.0beta3, the RID allocation functions
2006 have been moved into winbindd. Previously these were handled
2007 by each passdb backend. This means that winbindd must be running
2008 to automatically allocate RIDs for users and/or groups. Otherwise,
2009 smbd will use the 2.2 algorithm for generating new RIDs.
2011 If you are using 'passdb backend = tdbsam' with a previous Samba
2012 3.0 beta release (or possibly alpha), it may be necessary to
2013 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
2014 to winbindd_idmap.tdb. To do this:
2016 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
2018 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
2020 3) run: (note that 'tdb>' is the tool's prompt for input)
2022 root# ./tdbtool /usr/local/samba/private/passdb.tdb
2023 tdb> show RID_COUNTER
2027 [000] 0A 52 00 00 .R.
2029 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
2033 If you are using 'passdb backend = ldapsam', it will be necessary to
2034 store idmap entries in the LDAP directory as well (i.e. idmap backend
2035 = ldap). Refer to the 'net idmap' command for more information on
2036 migrating SID<->UNIX id mappings from one backend to another.
2038 If the RID_COUNTER record does not exist, then these instructions are
2039 unneccessary and the new RID_COUNTER record will be correctly generated
2044 ########################
2045 Upgrading from Samba 2.2
2046 ########################
2048 This section is provided to help administrators understand the details
2049 involved with upgrading a Samba 2.2 server to Samba 3.0.
2055 Many of the options to the GNU autoconf script have been modified
2056 in the 3.0 release. The most noticeable are:
2058 * removal of --with-tdbsam (is now included by default; see section
2059 on passdb backends and authentication for more details)
2061 * --with-ldapsam is now on used to provided backward compatible
2062 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
2063 backend and authentication section for more details
2065 * inclusion of non-standard passdb modules may be enabled using
2066 --with-expsam. This includes an XML backend and a mysql backend.
2068 * removal of --with-msdfs (is now enabled by default)
2070 * removal of --with-ssl (no longer supported)
2072 * --with-utmp now defaults to 'yes' on supported systems
2074 * --with-sendfile-support is now enabled by default on supported
2081 This section contains a brief listing of changes to smb.conf options
2082 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
2083 complete descriptions of new or modified parameters.
2085 Removed Parameters (order alphabetically):
2088 * alternate permissions
2091 * code page directory
2093 * domain admin group
2094 * domain guest group
2095 * force unknown acl user
2101 * printer driver file
2102 * printer driver location
2104 * source environment
2112 New Parameters (new parameters have been grouped by function):
2116 * abort shutdown script
2119 User and Group Account Management
2120 ---------------------------------
2122 * add machine script
2123 * add user to group script
2124 * algorithmic rid base
2125 * delete group script
2126 * delete user from group script
2128 * set primary group script
2134 * passwd chat timeout
2138 * client lanman auth
2139 * client NTLMv2 auth
2145 * paranoid server security
2154 * hide special files
2155 * hide unwriteable files
2157 * kernel change notify
2167 * max reported print jobs
2169 UNICODE and Character Sets
2170 --------------------------
2176 SID to uid/gid Mappings
2177 -----------------------
2181 * winbind enable local accounts
2182 * winbind trusted domains only
2183 * template primary group
2184 * enable rid algorithm
2191 * ldap machine suffix
2193 * ldap replication sleep
2196 General Configuration
2197 ---------------------
2201 Modified Parameters (changes in behavior):
2203 * encrypt passwords (enabled by default)
2204 * mangling method (set to 'hash2' by default)
2207 * restrict anonymous (integer value)
2208 * security (new 'ads' value)
2209 * strict locking (enabled by default)
2210 * unix extensions (enabled by default)
2211 * winbind cache time (increased to 5 minutes)
2212 * winbind uid (deprecated in favor of 'idmap uid')
2213 * winbind gid (deprecated in favor of 'idmap gid')
2219 This section contains brief descriptions of any new databases
2220 introduced in Samba 3.0. Please remember to backup your existing
2221 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
2222 upgrade databases as they are opened (if necessary), but downgrading
2223 from 3.0 to 2.2 is an unsupported path.
2225 Name Description Backup?
2226 ---- ----------- -------
2227 account_policy User policy settings yes
2228 gencache Generic caching db no
2229 group_mapping Mapping table from Windows yes
2230 groups/SID to unix groups
2231 winbindd_idmap ID map table from SIDS to UNIX yes
2233 namecache Name resolution cache entries no
2234 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
2235 returned as part of a successful
2236 net_sam_logon request
2237 printing/*.tdb Cached output from 'lpq no
2238 command' created on a per print
2240 registry Read-only samba registry skeleton no
2241 that provides support for exporting
2242 various db tables via the winreg RPCs
2248 The following issues are known changes in behavior between Samba 2.2 and
2249 Samba 3.0 that may affect certain installations of Samba.
2251 1) When operating as a member of a Windows domain, Samba 2.2 would
2252 map any users authenticated by the remote DC to the 'guest account'
2253 if a uid could not be obtained via the getpwnam() call. Samba 3.0
2254 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
2255 current work around to re-establish the 2.2 behavior.
2257 2) When adding machines to a Samba 2.2 controlled domain, the
2258 'add user script' was used to create the UNIX identity of the
2259 machine trust account. Samba 3.0 introduces a new 'add machine
2260 script' that must be specified for this purpose. Samba 3.0 will
2261 not fall back to using the 'add user script' in the absence of
2262 an 'add machine script'
2265 ######################################################################
2266 Passdb Backends and Authentication
2267 ##################################
2269 There have been a few new changes that Samba administrators should be
2270 aware of when moving to Samba 3.0.
2272 1) encrypted passwords have been enabled by default in order to
2273 inter-operate better with out-of-the-box Windows client
2274 installations. This does mean that either (a) a samba account
2275 must be created for each user, or (b) 'encrypt passwords = no'
2276 must be explicitly defined in smb.conf.
2278 2) Inclusion of new 'security = ads' option for integration
2279 with an Active Directory domain using the native Windows
2280 Kerberos 5 and LDAP protocols.
2282 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
2283 type which is neccessary for servers on which the
2284 administrator password has not been changed, or kerberos-enabled
2285 SMB connections to servers that require Kerberos SMB signing.
2286 Besides this one difference, either MIT or Heimdal Kerberos
2287 distributions are usable by Samba 3.0.
2290 Samba 3.0 also includes the possibility of setting up chains
2291 of authentication methods (auth methods) and account storage
2292 backends (passdb backend). Please refer to the smb.conf(5)
2293 man page for details. While both parameters assume sane default
2294 values, it is likely that you will need to understand what the
2295 values actually mean in order to ensure Samba operates correctly.
2297 The recommended passdb backends at this time are
2299 * smbpasswd - 2.2 compatible flat file format
2300 * tdbsam - attribute rich database intended as an smbpasswd
2301 replacement for stand alone servers
2302 * ldapsam - attribute rich account storage and retrieval
2303 backend utilizing an LDAP directory.
2304 * ldapsam_compat - a 2.2 backward compatible LDAP account
2307 Certain functions of the smbpasswd(8) tool have been split between the
2308 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
2309 utility. See the respective man pages for details.
2312 ######################################################################
2316 This section outlines the new features affecting Samba / LDAP
2322 A new object class (sambaSamAccount) has been introduced to replace
2323 the old sambaAccount. This change aids us in the renaming of
2324 attributes to prevent clashes with attributes from other vendors.
2325 There is a conversion script (examples/LDAP/convertSambaAccount) to
2326 modify and LDIF file to the new schema.
2330 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2331 $ convertSambaAccount --sid=<Domain SID> \
2332 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2333 --changetype=[modify|add]
2335 The <DOM SID> can be obtained by running 'net getlocalsid
2336 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
2337 the format of the generated LDIF output--either create new entries
2338 or modify existing entries.
2340 The old sambaAccount schema may still be used by specifying the
2341 "ldapsam_compat" passdb backend. However, the sambaAccount and
2342 associated attributes have been moved to the historical section of
2343 the schema file and must be uncommented before use if needed.
2344 The 2.2 object class declaration for a sambaAccount has not changed
2345 in the 3.0 samba.schema file.
2347 Other new object classes and their uses include:
2349 * sambaDomain - domain information used to allocate rids
2350 for users and groups as necessary. The attributes are added
2351 in 'ldap suffix' directory entry automatically if
2352 an idmap uid/gid range has been set and the 'ldapsam'
2353 passdb backend has been selected.
2355 * sambaGroupMapping - an object representing the
2356 relationship between a posixGroup and a Windows
2357 group/SID. These entries are stored in the 'ldap
2358 group suffix' and managed by the 'net groupmap' command.
2360 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
2361 automatically and contains the next available 'idmap uid' and
2364 * sambaIdmapEntry - object storing a mapping between a
2365 SID and a UNIX uid/gid. These objects are created by the
2366 idmap_ldap module as needed.
2368 * sambaSidEntry - object representing a SID alone, as a Structural
2369 class on which to build the sambaIdmapEntry.
2372 New Suffix for Searching
2373 ------------------------
2375 The following new smb.conf parameters have been added to aid in directing
2376 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2379 * ldap suffix - used to search for user and computer accounts
2380 * ldap user suffix - used to store user accounts
2381 * ldap machine suffix - used to store machine trust accounts
2382 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
2383 * ldap idmap suffix - location of sambaIdmapEntry objects
2385 If an 'ldap suffix' is defined, it will be appended to all of the
2386 remaining sub-suffix parameters. In this case, the order of the suffix
2387 listings in smb.conf is important. Always place the 'ldap suffix' first
2390 Due to a limitation in Samba's smb.conf parsing, you should not surround
2391 the DN's with quotation marks.
2397 Samba 3.0 supports an ldap backend for the idmap subsystem. The
2398 following options would inform Samba that the idmap table should be
2399 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2404 idmap backend = ldap:ldap://onterose/
2405 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2406 idmap uid = 40000-50000
2407 idmap gid = 40000-50000
2409 This configuration allows winbind installations on multiple servers to
2410 share a uid/gid number space, thus avoiding the interoperability problems
2411 with NFS that were present in Samba 2.2.
2415 ######################################################################
2416 Trust Relationships and a Samba Domain
2417 ######################################
2419 Samba 3.0.0beta2 is able to utilize winbindd as the means of
2420 allocating uids and gids to trusted users and groups. More
2421 information regarding Samba's support for establishing trust
2422 relationships can be found in the Samba-HOWTO-Collection included
2423 in the docs/ directory of this release.
2425 First create your Samba PDC and ensure that everything is
2426 working correctly before moving on the trusts.
2428 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2429 4.0 domain named WINDOWS:
2431 1) create the trust account for SAMBA in "User Manager for Domains"
2432 2) connect the trust from the Samba domain using
2433 'net rpc trustdom establish GLASS'
2435 To create a trustlationship with SAMBA as the trusted domain:
2437 1) create the initial trust account for GLASS using
2438 'smbpasswd -a -i GLASS'. You may need to create a UNIX
2439 account for GLASS$ prior to this step (depending on your
2440 local configuration).
2441 2) connect the trust from a WINDOWS DC using "User Manager
2444 Now join winbindd on the Samba PDC to the SAMBA domain using
2445 the normal steps for adding a Samba server to an NT4 domain:
2446 (note that smbd & nmbd must be running at this point)
2448 root# net rpc join -U root
2449 Password: <enter root password from smbpasswd file here>
2451 Start winbindd and test the join with 'wbinfo -t'.
2453 Now test the trust relationship by connecting to the SAMBA DC
2454 (e.g. POGO) as a user from the WINDOWS domain:
2456 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
2459 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
2461 $ smbclient //crystal/netlogon -U root -W WINDOWS
2464 ######################################################################
2468 Beginning with Samba3.0.0beta3, winbindd has been given new account
2469 manage functionality equivalent to the 'add user script' family of
2470 smb.conf parameters. The idmap design has also been changed to
2471 centralize control of foreign SID lookups and matching to UNIX
2475 Brief Description of Changes
2476 ----------------------------
2478 1) The sid_to_uid() family of functions (smbd/uid.c) have been
2479 reverted to the 2.2.x design. This means that when resolving a
2480 SID to a UID or similar mapping:
2482 a) First consult winbindd
2483 b) perform a local lookup only if winbindd fails to
2484 return a successful answer
2486 There are some variations to this, but these two rules generally
2489 2) All idmap lookups have been moved into winbindd. This means that
2490 a server must run winbindd (and support NSS) in order to achieve
2491 any mappings of SID to dynamically allocated UNIX ids. This was
2492 a conscious design choice.
2494 3) New functions have been added to winbindd to emulate the 'add user
2495 script' family of smbd functions without requiring that external
2496 scripts be defined. This functionality is controlled by the 'winbind
2497 enable local accounts' smb.conf parameter (enabled by default).
2499 However, this account management functionality is only supported
2500 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
2501 must be shared among multiple Samba servers (such as a PDC and BDCs),
2502 it will be necessary to define your own 'add user script', et. al.
2503 programs that place the accounts/groups in some form of directory
2504 such as NIS or LDAP. This requirement was deemed beyond the scope
2505 of winbind's account management functions. Solutions for
2506 distributing UNIX system information have been deployed and tested
2507 for many years. We saw no need to reinvent the wheel.
2509 4) A member of a Samba controlled domain running winbindd is now able
2510 to map domain users directly onto existing UNIX accounts while still
2511 automatically creating accounts for trusted users and groups. This
2512 behavior is controlled by the 'winbind trusted domains only' smb.conf
2513 parameter (disabled by default to provide 2.2.x winbind behavior).
2515 5) Group mapping support is wrapped in the local_XX_to_XX() functions
2516 in smbd/uid.c. The reason that group mappings are not included
2517 in winbindd is because the purpose of Samba's group map is to
2518 match any Windows SID with an existing UNIX group. These UNIX
2519 groups can be created by winbindd (see next section), but the
2520 SID<->gid mapping is retreived by smbd, not winbindd.
2526 * security = server running winbindd to allocate accounts on demand
2528 * Samba PDC running winbindd to handle the automatic creation of UNIX
2529 identities for machine trust accounts
2531 * Automtically creating UNIX user and groups when migrating a Windows NT
2532 4.0 PDC to a Samba PDC. Winbindd must be running when executing
2533 'net rpc vampire' for this to work.
2536 ######################################################################
2540 * There are several bugs currently logged against the 3.0 codebase
2541 that affect the use of NT 4.0 GUI domain management tools when run
2542 against a Samba 3.0 PDC. This bugs should be released in an early
2545 Please refer to https://bugzilla.samba.org/ for a current list of bugs
2546 filed against the Samba 3.0 codebase.
2549 ######################################################################
2550 Reporting bugs & Development Discussion
2551 #######################################
2553 Please discuss this release on the samba-technical mailing list or by
2554 joining the #samba-technical IRC channel on irc.freenode.net.
2556 If you do report problems then please try to send high quality
2557 feedback. If you don't provide vital information to help us track down
2558 the problem then you will probably be ignored.
2560 A new bugzilla installation has been established to help support the
2561 Samba 3.0 community of users. This server, located at
2562 https://bugzilla.samba.org/, has replaced the older jitterbug server
2563 previously located at http://bugs.samba.org/.