1 =============================
2 Release Notes for Samba 3.0.6
4 =============================
6 This is the latest stable release of Samba. This is the version
7 that production Samba servers should be running for all
8 current bug-fixes. There have been several issues fixes since
9 the 3.0.4/5 release and new features have been added as well.
10 See the "Changes" section for details on exact updates.
12 Common bugs fixed in 3.0.6 include:
14 o Schannel failure in winbindd.
15 o Numerous memory leaks.
16 o Incompatibilities between the 'write list' and 'force user'
18 o Premature optimization of the open_directory() internal
19 function that broke tools such as the ArcServe backup
20 agent, Macromedia HomeSite, and Robocopy.
21 o Corrupt workgroup names in nmbd's browse.dat.
22 o Sharing violation errors commonly seen when opening
23 when serving Microsoft Office documents from a Samba
25 o Browsing problems caused by an apostrophe (') in the
26 computer's description field.
27 o Problems creating special file types from UNIX CIFS
28 clients and enabling 'unix extensions'.
29 o Fix stalls in smbd caused by inaccessible LDAP servers.
30 o Remove various memory leaks.
31 o Fix issues in the password lockout feature.
33 New features introduced in this release include:
35 O Support symlinks created by CIFS clients which
36 can be followed on the server.
37 o Using a cups server other than localhost.
38 o Maintaining the service principal entry in the system
39 keytab for integration with other kerberized services.
40 Please refer to the 'use kerberos keytab' entry in
41 smb.conf(5). When using the heimdal kerberos libraries,
42 you must also specify the following in /etc/krb5.conf:
44 default_keytab_name = FILE:/etc/krb5.keytab
45 o Support for maintaining individual printer names
46 stored separately from the printer's sharename.
47 o Support for maintaining user password history.
48 o Support for honoring the logon times for user in a
51 --------------------------------------------
52 unix extensions = yes (default) and symlinks
53 --------------------------------------------
55 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1),
56 clients supporting the UNIX extensions to the CIFS protocol
57 can create symlinks to absolute paths which will be **followed**
58 by the server. This functionality has been requested in order
59 to correctly support certain applications when the user's home
60 directory is mounted using some type of CIFS client (e.g. the
61 cifsvfs in the Linux 2.6 kernel).
63 If this behavior is not acceptable for your production environment
64 you can set 'wide links = no' in the specific share declaration in
65 the server's smb.conf. Be aware that disabling wide link support
66 out of a share in Samba may impact the server's performance due
67 to the fact that smbd will now have to check each path additional
68 times before traversing it.
70 ------------------------
71 Password History Support
72 ------------------------
74 The new password history feature allows smbd to check the new
75 password in password change requests against a list of the user's
76 previous passwords. The number of previous passwords to save can
77 be set using pdbedit (4 in this example):
79 root# pdbedit -P "password history" -C 4
81 When using the ldapsam passdb backend, it is vital to secure the
82 following attributes from access by non-administrative users:
86 * sambaPasswordHistory
88 You should refer to your directory server's documentation on how
89 to implement this restriction.
92 ######################################################################
96 Changes since 3.0.6rc2
97 ----------------------
99 o Jeremy Allison <jra@samba.org>
100 * Ensure we return the same ACL revision on the wire that
102 * BUG 1578: Hardcode replacement for invalid characters as '_'
103 (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
104 * Fix hashed password history for LDAP backends.
105 * Enforce logon hours restrictions if confiogured (based on code
106 from Richard Renard <rrenard@idealx.com>).
107 * BUG 1606: Force smbd to disable sendfile with DOS clients
108 and ensure that the chained header is filled in for ...&X
110 * BUG 1602: Fix access to shares when all symlink support
114 o Gerald (Jerry) Carter <jerry@samba.org>
115 * Tighten the cache consistency with the ntprinters.tdb entry
116 an the in memory cache associated with open printer handles.
117 * Make sure that register_messages_flags() doesn't overwrite
118 the originally registered flags.
121 o Guenther Deschner <gd@sernet.de>
122 * Correct infinite loop in pam_winbind's verification of
123 group membership in the 'other sids' field in the user_info3
127 o Steve French <sfrench@us.ibm.com>
128 * prevent infinite recusion in reopen_logs() when expanding
129 the smb.conf variable %I.
132 o Volker Lendecke <vl@samba.org>
133 * Improved NT->AFS ACL mapping VFS module.
136 o Buchan Milne <bgmilne@mandrake.org>
137 * Mandrake packaging fixes.
140 o Lars Mueller <lmuelle@suse.de>
141 * Fix compiler warnings in the kerberos client code.
144 o James Peach <jpeach@sgi.com>
145 * Prevent smbd from attempting to use sendfile at all if it is
146 not supported by the server's OS.
147 * Allow SWAT to search for index.html when serving html files
151 o Jelmer Vernooij <jelmer@samba.org>
152 * BUG 1474: Fix build of --with-expsam stuff on Solaris.
161 Parameter Name Action
162 -------------- ------
164 defer sharing violations New
165 force unknown acl user New
167 printcap cache time New
168 use kerberos keytab New
172 o Jeremy Allison <jra@samba.org>
173 * Correct path parsing bug that broke DeletePrinterDriverEx().
174 * Fix bugs in check_path_syntax() caught by asserts.
175 * Internal change - rearrange internal global case setting
176 variables to a per connection basis.
177 * BUG 1345: Fix premature optimization in unix_convert().
178 * Allow clients to truncate a locked file.
179 * BUG 1319: Always check to see if a user as write access
180 to a share, even when 'force user' is set.
181 * Fix specific case of open that doesn't cause oplock break,
183 * Correct sid type is WKN_GROUP, not alias. Added some
184 more known types (inspired by patch from Jianliang Lu).
185 * Allow creation of absolute symlink paths via CIFS clients.
186 * Fix charset bug in when invoking send_mailslot().
187 * When using widelinks = no, use realpath to canonicalize
188 the connection path on connection create for the user.
189 * Enhance stat open code.
190 * Fix unix extensions mknod code path.
191 * Allow unix domain socket creation via unix extensions.
192 * Auto disable the 'store dos attribute' parameter if the
193 underlying filesystem doesn't support EAs.
194 * Implement deferred open code to fix a bug with Excel files
196 * BUG 1427: Catch bad path errors at the right point. Ensure
197 all our pathname parsing is consistent.
198 * Fix SMB signing error introduced by the new deferred open
200 * Change default setting for case sensitivity to "auto". (see
201 commit message -- r1154 -- for details).
202 * Add new remote client arch -- CIFSFS.
203 * Allow smbd to maintain the service principal entry in the
204 system keytab file (based on patch Dan Perry <dperry@pppl.gov>,
205 Guenther Deschner, et. al.).
206 * Fix longstanding memleak bug with logfile name.
207 * Fix incorrect type in printer publishing (struct uuid,
209 * Heimdal compile fixes after introduction of the new ketyab
211 * Ensure we check attributes correctly on rename request.
212 * Ensure we defer a sharing violation on rename correctly.
213 * BUG 607: Ensure we remove DNS and DNSFAIL records immediately
215 * Fix bogus error message when using "mangling method = hash"
217 * Turn on sendfile by default for non-Win9x clients.
218 * Handle non-io opens that cause oplock breaks correctly.
219 * Ensure ldap replication sleep time is not more than 5 seconds.
220 * Add support for storing a user's password history.
221 LDAP portion of the code was based on a patch from
222 Jianliang Lu <j.lu@tiesse.com>.
223 * Correct memory leaks found in the password change code.
224 * Fix support for the mknod command with the Linux CIFS client.
225 * Remove support for passing the new password to smbpasswd
226 on the command line without using the -s option.
227 * Ensure home directory service number is correctly reused
228 (inspired by patches from Michael Collin Nielsen
229 <michael@hum.aau.dk>).
230 * Fix to stop printing accounts from resetting the bas
231 password and account lockout flags.
232 * If a account was locked out by an admin (and has a bad
233 password count of zero) leave it locked out until an admin
234 unlocks it (but log a message).
237 o Tom Alsberg <alsbergt@cs.huji.ac.il>
238 * Allow pdbedit to export a single user from a passdb backend.
241 o Andrew Bartlett <abartlet@samba.org>
242 * Fix parsing bug in GetDomPwInfo().
243 * Fix segfault in 'ntlm_auth --diagnostics'.
244 * Re-enable code to allow sid_to_gid() to perform a group
245 mapping lookup before checking with winbindd.
246 * Fix memory leak in the trans2 signing code.
247 * Allow more flexible GSS-SPENGO client and server operation
249 * Improve smbd's internal random number generation.
250 * Fix a few outstanding long password changes in smbd.
251 * Fix LANMAN2 session setup code.
254 o Eric Boehm <boehm@nortelnetworks.com>
255 BUG 703: Final touches on netgroup case lookups.
258 o Jerome Borsboom <j.borsboom@erasmusmc.nl>
259 * Ensure error status codes don't get overwritten in
260 lsa_lookup_sids() server code.
261 * Correct bug that caused smbd to overwrite certain error
262 codes when returning up the call stack.
263 * Ensure the correct sid type returned for builtin sids.
266 o Gerald Carter <jerry@samba.org>
267 * Fix a few bugs in the Fedora Packaging files.
268 * Fix for setting the called name to by our IP if the
269 called name was *SMBSERVER and *SMBSERV. Fixes issue
270 with connecting to printers via \\ip.ad.dr.ess\printer
272 * BUG 1315: fix for schannel client connections to servers
273 when we haven't specifically negotiated AUTH_PIPE_SEAL.
274 * Allow PrinterDriverData valuenames with embedded backslashes
275 (Fixes bug with one of the Konica Fiery drivers).
276 * Fixed string length miscalculation in netbios names that
277 resulted in corrupt workgroup names in browse.dat.
278 * When running smbd as a daemon, launch child smbd to update
279 the lpq cache listing in the background.
280 * Allow printers "Printers..." folder to be renamed to a string
281 other than the share name.
282 * Allow winbindd to use domain trust account passwords when
283 running on a Samba DC to establish an schannel to remote
285 * Fix bad merge and ensure that we always use tdb_open_log()
286 instead of tdb_open_ex() (the former call enforce the 'use
288 * BUG 1221: revert old change that used single and double
289 quotes as delimeters in next_token(), and change
290 print_parameter() to print out parm values surrounded by
291 double quotes (instead of single quotes).
292 * Prevent home directories added during the SMBsesssetup&X from
293 being removed as unused services.
294 * Invalidate the print object cache for open printer handles when
295 smbd receives a message that an attribute on a given printer
297 * Cause the configure script to exit if --enable-cups[=yes] is
298 defined and the system does not have the cups devel files
300 * BUG 1297: Prevent map_username() from being called twice
302 * Ensure that we use the userPrincipalName AD attribute
303 value for LDAP SASL binds.
304 * Ensure we remove the tdb entry when deleting a job that
306 * BUG 1520: Work around bug in Windows XP SP2 RC2 where the
307 client sends a FindNextPrintChangeNotify() request without
308 previously sending a FindFirstPrintChangeNotify(). Return
309 the same error code as Windows 2000 SP4.
310 * BUG 1516: Manually declare ldap_open_with_timeout() to
311 workaround compiler errors on IRIX (or other systems without
313 * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from
315 * Corrected syntax error in the OID for sambaUnixIdPool,
316 sambaSidEntry, & sambaIdmapEntry object classes.
319 o Fabien Chevalier <fabien.chevalier@supelec.fr>
320 * Debian BUG 252591: Ensure that the return value from the
321 number of available interfaces is initialized in case no
322 interfaces are actually available.
325 o Guenther Deschner <gd@sernet.de>
326 * Implement 'rpcclient setprintername'.
327 * Add local groups to the user's NT_TOKEN since they are
328 actually supported now.
329 * Heimdal compile fixes after introduction of the new keytab
331 * Correctly honor the info level parameter in 'rpcclient
333 * Reintroduce 'force unknown acl user' parameter. When getting a
334 security descriptor for a file, if the owner sid is not known,
335 the owner uid is set to the current uid. Same for group sid.
336 * Ensure that REG_SZ values in the SetPrinterData actually
337 get written in UNICODE strings rather than ASCII.
338 * Ensure that the last kerberos error return is not invalid.
339 * Display share ACL entries from rpcclient.
342 o Fabian Franz <FabianFranz@gmx.de>
343 * Support specifying a port in the device URL passed to smbspool.
346 o Steve French <sfrench@us.ibm.com>
347 * Handle -S and user mount parms in mount.cifs.
348 * Fix user unmount of shares mount with suid mount.cifs.
351 o Bjoern Jacke <bj@sernet.de>
352 * Install libsmbclient into $(LIBDIR), not into hard coded
353 ${prefix}/lib. This helps amd64 systems with /lib and /lib64
354 and an explicit configure --libdir setting.
357 o <kawasa_r@itg.hitachi.co.jp>
358 * Correct more memory leaks and initialization bugs.
359 * Fix bug that prevented core dumps from being generated
361 * Connect to the winbind pipe in non-blocking mode to
362 prevent processes from hanging.
366 o Stephan Kulow <coolo@suse.de>
367 * Fix crash bug in libsmbclient.
370 o Volker Lendecke <vl@samba.org>
371 * Added vfs_full_audit module.
372 * Add vfs_afsacl.c which can display & set AFS acls via
373 the NT security editor.
374 * Fix crash bug caused by trying to Base64 encode a NULL string.
375 * Fix DOS error code bug in reply_chkpath().
376 * Correct misunderstanding of the max_size field in
377 cli_samr_enum_als_groups; it is more like an account_control
378 field with individual bits what to retrieve.
379 * Implement 'net rpc group rename' -- rename domain groups.
380 * Implement the 'cups server' option. This makes it possible
381 to have virtual smbd's connect to different cups daemons.
382 * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
383 * Fix sid_to_gid() calls in winbindd to prevent loops.
384 * Ensure that local_sid_to_gid() sets the type of the group on
386 * Make sure that the clients are given back the IP address to
387 which they connected in the case of a multi-homed host. Only
388 affects strings the spoolss printing replies.
389 * Fix the bad password lockout. This has not worked as pdb_ldap.c
390 did not ask for the modifyTimestamp attribute, so it could
391 not find it. Try not to regress by not putting that attrib
392 in the main list but append it manually for the relevant searches.
393 * Fix two memleaks in login_cache.c.
394 * fixes memory bloat when unmarshalling strings.
395 * Fix compile errors using gcc 3.2 on SuSE 8.2.
396 * Fix the build for systems without kerberos headers.
397 * Allow winbindd to handle authentication requests only when
398 started without either an 'idmap uid' or 'idmap gid' range.
399 * Fix the build for systems without ldap headers.
400 * Fix interaction between share security descriptor and the
401 'read only' smb.conf option.
402 * Fix bug that caused _samr_lookupsids() with more than 32 (
403 MAX_REF_DOMAINS) SIDs to fail.
404 * Allow the 'idmap backend' parameter to accept a list of
405 LDAP servers for failover purposes.
406 * Revert code in smbd to remove a tdb when it has become
408 * Add paranoid checks when mapping SIDs to a uid/gid to
409 ensure that the type is correct.
410 * Initial work on getting client support for sending mailslot
412 * Add 'ldap timeout' parameter.
413 * Dont always uppercase 'afs username map'.
414 * Expand aliases for getusersids as well.
417 o Herb Lewis <herb@samba.org>
418 * Add the acls debug class.
419 * Fix logic bug in netbios name truncate routine.
420 * Fix smbd crash caused by smbtorture IOCTL test.
421 * Fix errno tromping before calling iconv to reset the
423 * need to leave empty dacl so we can remove last ACE.
426 o Jianliang Lu <Jianliang.Lu@getronics.com>
427 * Fix to stop smbd hanging on missing group member in
429 * Make sure Samba returns the correct group types.
430 * Reset the bad password count password counts upon a successful login.
433 o Jim McDonough <jmcd@us.ibm.com>
434 * BUG 1279: SMBjobid fix for Samba print servers running on
435 Big-Endian platforms.
438 o Joe Meadows <jameadows@webopolis.com>
439 * Add optional timeout parameter to ldap open calls.
440 * Allow get_dc_list() to check the negative cache.
443 o Jason Mader <jason@ncac.gwu.edu>
444 * BUG 1385: Don't use non-consts in a structure initialization.
447 o Stefan Metzmacher <metze@samba.org>
448 * fix a configure logic bug for linux/XFS quotas when
449 using --with-sys-quotas.
450 * Use quota debug class in quota code.
451 * print out the SVN revision by configure,
454 o Lars Mueller <lmuelle@suse.de>
455 * BUG 1279: Added 'printcap cache time' parameter.
456 * Fix afs related build issues on SuSE.
459 o James Peach <jpeach@sgi.com>
460 * More iconv detection fixes for IRIX.
461 * Compile fixed for systems that do not have C99/UNIX98 compliant
462 vsnprintf by default.
466 * Implement NFS quota support on FreeBSD.
469 o Tim Potter <tpot@samba.org>
470 * BUG 1360: Use -Bsymbolic when creating shared libraries to
471 avoid conflicts with identical symbols in the global namespace
472 when loading libnss_wins.so.
475 o Richard Renard <rrenard@idealx.com>
476 * Save the current password as it is being changed into the
477 password history list.
480 o Richard Sharpe <rsharpe@samba.org>
481 * Fix error return codes on some lock messages.
482 * BUG 1178: Make the libsmbclient routines callable
484 * BUG 1333: Make sure we return an error code when
486 * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when
487 share mode locking requests fail.
490 o Simo Source <idra@samba.org>
491 * Update Debian stable & unstable packaging.
492 * Tidy up parametric options in testparm output.
495 o Richard Sharpe <rsharpe@samba.org>
496 * Add sigchild handling to winbindd to restart the child
500 o Tom Shaw <tomisfaraway@gmail.com>
501 * Use winbindd_fill_pwent() consistently.
504 o Nick Thompson <nickthompson@agere.com>
505 * Protect smbd against broken filesystems which return zero
509 o Andrew Tridgell <tridge@samba.org>
510 * Fixed bug in handling of timeout in socket connections.
513 o Nick Wellnhofer <wellnhofer@aevum.de>
514 * Prevent lp_interfaces() list from being corrupted. Fixes
515 bug where nmbd would lose the list of network interfaces
516 on the system and consequently shutdown.
519 o James Wilkinson <jwilk@alumni.cse.ucsc.edu>
520 * Fix ntlm_auth memory leaks.
523 o Jelmer Vernooij <jelmer@samba.org>
524 * Additional NT status to unix error mappings.
525 * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't
526 get duplicate symbol errors.
527 * Return an error when the last command read from stdin
529 * Prepare for better error checking in tar.
532 Changes for older versions follow below:
534 --------------------------------------------------
536 =============================
537 Release Notes for Samba 3.0.5
539 =============================
541 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with
542 the exception of correcting the two security issues outlined
545 ######################## SECURITY RELEASE ########################
547 Summary: Multiple Potential Buffer Overruns in Samba 3.0.x
548 CVE ID: CAN-2004-0600, CAN-2004-0686
549 (http://cve.mitre.org/)
552 This is the latest stable release of Samba. This is the version
553 that production Samba servers should be running for all current
556 It has been confirmed that versions of Samba 3 prior to v3.0.4
557 are vulnerable to two potential buffer overruns. The individual
558 details are given below.
564 Affected Versions: Samba 3.0.2 and later
566 The internal routine used by the Samba Web Administration
567 Tool (SWAT v3.0.2 and later) to decode the base64 data
568 during HTTP basic authentication is subject to a buffer
569 overrun caused by an invalid base64 character. It is
570 recommended that all Samba v3.0.2 or later installations
571 running SWAT either (a) upgrade to v3.0.5, or (b) disable
572 the swat administration service as a temporary workaround.
574 This same code is used internally to decode the
575 sambaMungedDial attribute value when using the ldapsam
576 passdb backend. While we do not believe that the base64
577 decoding routines used by the ldapsam passdb backend can
578 be exploited, sites using an LDAP directory service with
579 Samba are strongly encouraged to verify that the DIT only
580 allows write access to sambaSamAccount attributes by a
581 sufficiently authorized user.
583 The Samba Team would like to heartily thank Evgeny Demidov
584 for analyzing and reporting this bug.
590 Affected Versions: Samba 3.0.0 and later
592 A buffer overrun has been located in the code used to support
593 the 'mangling method = hash' smb.conf option. Please be aware
594 that the default setting for this parameter is 'mangling method
595 = hash2' and therefore not vulnerable.
597 Affected Samba 3 installations can avoid this possible security
598 bug by using the default hash2 mangling method. Server
599 installations requiring the hash mangling method are encouraged
600 to upgrade to Samba 3.0.5.
603 ##################################################################
605 --------------------------------------------------
607 =============================
608 Release Notes for Samba 3.0.4
610 =============================
612 Common bugs fixed in Samba 3.0.4 include:
614 o Password changing after applying the patch described in
615 the Microsoft KB828741 article to Windows clients.
617 o Managing print jobs via Windows on Big-Endian servers.
618 o Several memory leaks in winbindd and smbd.
619 o Compile issues on AIX and *BSD.
627 o Jeremy Allison <jra@samba.org>
628 * Fix path processing for DeletePrinterDriverEx().
629 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
633 o Andrew Bartlett <abartlet@samba.org>
634 * Fix alignment bug in GetDomPwInfo().
637 o Alexander Bokovoy <ab@samba.org>
638 * Fix utime[s]() issues in smbwrapper on systems
639 that can boot both the 2.4 and 2.6 Linux kernels.
642 o Gerald Carter <jerry@samba.org>
643 * Fedora packaging fixes.
644 * BUG 1302: Fix seg fault by not trying to optimize a list of
645 invalid gids using the wrong array size.
646 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
647 seen when 'security = share'.
648 * Fix problems when using IBM's compiler on AIX.
649 * Link Developer's Guide, Example Guide, and multi-page HOWTO
650 into SWAT's welcome page.
651 * BUG 1293: fix double free in printer publishing code.
654 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
655 * Fix for handling timeouts in socket connections.
658 o Michel Gravey <michel.gravey@optogone.com>
659 * BUG 483: patch from to fix password hash creation in SWAT.
662 o Volker Lendecke <vl@samba.org>
663 * Close the open NT pipes before the tdis.
664 * Fix AFS related build issues.
665 * Handle error conditions when base64 encoding a blob of 0 bytes.
668 o Herb Lewis <herb@samba.org>
669 * Added 'acls' debug class.
671 o kawasa_r@itg.hitachi.co.jp
672 * Multiple variable initialization and memory leak fixes.
675 o Stephan Kulow <coolo@suse.de>
676 * Fix string length bug in libsmbclient that caused KDE's
678 * BUG 429: More libsmbclient fixes.
681 o Jim McDonough <jmcd@us.ibm.com>
682 * BUG 1007, 1279: Store the print job using a little-endian key.
686 o Compile fix for OpenBSD (ENOTSUP not supported).
689 o Stefan Metzmacher <metze@samba.org>
690 * Correct bug in disks quota views from explorer.
693 o Tim Potter <tpot@samba.org>
694 BUG 1305: Correct debug output.
697 o Richard Sharpe <rsharpe@samba.org>
698 * Fix incorrect error code mapping.
701 o Jelmer Vernooij <jelmer@samba.org>
702 * Add additional NT_STATUS errorm mappings.
705 Changes for older versions follow below:
707 --------------------------------------------------
709 =============================
710 Release Notes for Samba 3.0.3
712 =============================
715 Common bugs fixed in Samba 3.0.3 include:
717 o Crash bugs and change notify issues in Samba's printing code.
718 o Honoring secondary group membership on domain member servers.
719 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
720 o Substitution errors for %[UuGg] in smb.conf.
721 o winbindd crashes when using ADS security mode.
722 o SMB signing errors.
723 o Delays in winbindd startup caused by unnecessary
724 connections to trusted domain controllers.
725 o Various small memory leaks.
726 o Winbindd failing due to expired Kerberos tickets.
728 New features introduced in Samba 3.0.3 include:
730 o Improved support for i18n character sets.
731 o Support for account lockout policy based on
732 bad password attempts.
733 o Improved support for long password changes (>14
734 characters) and strong password enforcement.
735 o Support for Windows aliases (i.e. nested groups).
736 o Experimental support for storing DOS attribute on files
737 and folders in Extended Attributes.
738 o Support for local nested groups via winbindd.
739 o Specifying options to be passed directly to the CUPS libraries.
741 Please be aware that the Samba source code repository was
742 migrated from CVS to Subversion on April 4, 2004. Details on
743 accessing the Samba source tree via anonymous svn can be found
744 at http://svn.samba.org/samba/subversion.html.
752 Parameter Name Action
753 -------------- ------
757 store dos attributes New
759 winbind nested groups New
765 o Jeremy Allison <jra@samba.org>
766 * Ensure that Kerberos mutex is always properly unlocked.
767 * Removed Heimdal "in-memory keytab" support.
768 * Fixup the 'multiple-vuids' bugs in our server code.
769 * Correct return code from lsa_lookup_sids() on unmapped
770 sids (based on work by vl@samba.org).
771 * Fix the "too many fcntl locks" scalability problem
773 * Fixup correct (as per W2K3) returns for lookupsids
774 as well as lookupnames.
775 * Fixups for delete-on-close semantics as per Win2k3 behavior.
776 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
777 * Fix "unable to initialize" bug when smbd hasn't been run with
778 new system and a user is being added via pdbedit/smbpasswd.
779 * Added NTrename SMB (0xA5).
780 * Fixup correct timeout values for blocking lock timeouts.
781 * Fix various bugs reported by 'gentest'.
782 * More locking fixes in the case where we own the lock.
783 * Fix up regression in IS_NAME_VALID and renames.
784 * Don't set allocation size on directories.
785 * Return correct error code on fail if file exists and target
787 * Added client "hardlink" comment to test doing NT rename with
788 hard links. Added hardlink_internals() code - UNIX extensions
789 now use this as well.
790 * Use a common function to parse all pathnames from the wire for
791 much closer emulation of Win2k3 error return codes.
792 * Implement check_path_syntax() and rewrite string sub
793 functions for better multibyte support.
794 * Ensure msdfs referrals are multibyte safe.
795 * Allow msdfs symlink syntax to be more forgiving.
796 eg. sym_link -> msdfs://server/share/path/in/share
797 or sym_link -> msdfs:\\server\share\path\in\share.
798 * Cleanup multibyte netbios name support in nmbd ( based on patch
799 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
800 * Fix check_path_syntax() for multibyte encodings which have
801 no '\' as second byte (based on work by ab@samba.org.
802 * Fix the "dfs self-referrals as anonymous user" problem
803 (based on patch from vl@samba.org).
804 * BUG 1064: Ensure truncate attribute checking is done correctly
805 on "hidden" dot files.
806 * Fix bug in anonymous dfs self-referrals again.
807 * Fix get/set of EA's in client library
808 * Added support for OS/2 EA's in smbd server.
809 * Added 'ea support' parameter to smb.conf.
810 * Added 'store dos attributes' parameter to smb.conf.
811 * Fix wildcard identical rename.
812 * Fix reply_ctemp - make compatible with w2k3.
813 * Fix wildcard unlink.
814 * Fix wildcard src with wildcard dest renames.
815 * BUG 1139: Fix based on suggestion by jdev@panix.com.
816 swap lookups for user and group - group will do an
817 algorithmic lookup if it fails, user won't.
818 * Make EA's lookups case independent.
819 * Fix SETPATHINFO in 'unix extensions' support.
820 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
821 the UNIX info levels, and the short case preserve names.
824 o Timur Bakeyev <timur@com.bat.ru>
825 * BUG 1144: only set --with-fhs when the argument is 'yes'
826 * BUG 1152: Allow python modules to build despite libraries added
827 to LDFLAGS instead of LDPATH.
828 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
831 o Craig Barratt <cbarratt@users.sourceforge.net>
832 * BUG 389: Allow multiple exclude arguments with smbclient
833 tar -Xr options (better support for Amanda backup client).
836 o Andrew Bartlett <abartlet@samba.org>
837 * Include support for linking with cracklib for enforcing strong
839 * Add support for >14 character password changes from Windows
841 * Add 'admin set password' capability to 'net rpc'.
842 * Allow 'net rpc samdump' to work with any joined domain
843 regardless of smb.conf settings.
844 * Use an allocated buffer for count_chars.
845 * Add sanity checks for changes in the domain SID in an
847 * Implement python unit tests for Samba's multibyte string
849 * Remove 'unicode' smb.conf option.
850 * BUG 1138: Fix support for 'optional' SMB signing and other
852 * BUG 169: Fix NTLMv2-only behavior.
853 * Ensure 'net' honors the 'netbios name' in the smb.conf by
855 * Support SMB signing on connections using only the LANMAN
856 password and generate the correct the 'session key' for these
858 * Implement --required-membership-of=, an ntlm_auth option
859 that restricts all authentication to members of this particular
861 * Improve our fall back code for password changes.
862 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
863 after the server had said something (such as an error).
864 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
867 o Alexander Bokovoy <ab@samba.org>
868 * Fix incorrect size calculation of the directory name
870 * Fix problems with very long filenames in both smbd and smbclient
871 caused by truncating paths during character conversions.
872 * Fix smbfs problem with Tree Disconnect issued before smbfs
876 o Gerald Carter <jerry@samba.org>
877 * BUG 850: Fix 'make installmodules' bug on True64.
878 * BUG 66: mark 'only user' deprecated.
879 * Remove corrupt tdb and shutdown (only for printing tdbs,
880 connections, sessionid & locking).
881 * decrement smbd counter in connections.tdb in smb_panic().
882 * RedHat specfile updates.
883 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
884 * BUG 1147; bad pointer case in get_stored_queue_info()
886 * BUG 761: read the config file before initialized default
887 values for printing options; don't default to bsd printing
889 * Allow the 'printing' parameter to be set on a per share basis.
890 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
891 * BUG 848: don't create winbind local users/groups that already
893 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
895 * BUG 488: fix the 'show client in col 1' button and correctly
896 enumerate active connections.
897 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
898 problem when storing the updating pid for the lpq cache.
899 * BUG 1007 (partial): Fix print change notify bugs.
900 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
901 and winbind use default domain = yes. Also ensures that
902 * BUG 1151: Ensure that winbindd users are passed through
904 * Fix client rpc binds for ASU derived servers (pc netlink,
906 * BUG 417, 1128: Ensure that the current_user_info is set
907 consistently so that %[UuGg] is expanded correctly.
908 * BUG 1195: Fix crash in winbindd when the ADS server is
910 * BUG 1185: Set reconnect time to be the same as the
911 'winbind cache time'.
912 * Ensure that we return the sec_desc in smb_io_printer_info_2.
913 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
914 * BUG 1095: Honor the '-l' option in smbclient.
915 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
917 * Ensure server schannel uses the auth level requested by the
919 * Removed --with-cracklib option due to potential crash issue.
920 * Fix -lcrypto linking problem with wbinfo.
921 * BUG 761: allow printing parameter to set defaults on a per
923 * Add 'cups options' parameter to allow raw printing without
924 changing /etc/cups/cupsd.conf.
925 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
927 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
928 * BUG 1288: resolve any machine netbios name (0x00) and not just
930 * BUG 1199: Fix potential symlink issue in
931 examples/printing/smbprint.
934 o Robert Dahlem <Robert.Dahlem@gmx.net>
935 * BUG 1048: Don't return short names when when 'mangled names = no'
938 o Guenther Deschner <gd@suse.com>
939 * Remove hard coded attribute name in the ads ranged retrieval
941 * Add --with-libdir and --with-mandir to autoconf script.
944 o Bostjan Golob <golob@gimb.org>
945 * BUG 1046: Fix getpwent_list() so that the username is not
946 overwritten by other fields.
949 o Landon Fuller <landonf@opendarwin.org>
950 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
951 to fix user/group enumeration on systems whose libc does not
952 call setgrent() before trying to enumerate users (i.e.
956 o Steve French <sfrench@us.ibm.com>
957 * Update mount.cifs to version 1.1.
958 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
959 * Fixes to minor security bug in the mount helper.
960 * Fix credential file mounting for cifs vfs.
961 * Fix free of incremented pointer in cifsvfs mount helper.
962 * Fix path canonicalization of the mount target path and help
963 text display in the cifs mount helper.
964 * Add missing guest mount option for mount.cifs.
967 o SATOH Fumiyasu <fumiya@miraclelinux.com>
968 * BUG 1055; formatting fixes for 'net share'.
969 * BUG 692: correct truncation of share names and workgroup
971 * BUG 1088: use strchr_m() for query_host (smbclient -L).
972 * Patch from to internally count characters correctly.
975 o Paul Green <paulg@samba.org>
976 * Update VOS _POSIX_C_SOURCE macro to 200112L.
977 * Fix bug in configure.ion by moving the first use of
978 AC_CHECK_HEADERS so it is always executed.
979 * Fix configure.in to only use $BLDSHARED to select whether to
980 build static or shared libraries.
983 o Pat Haywarrd <Pat.Hayward@propero.net>
984 * Make the session_users list dynamic (max of 128K).
987 o Cal Heldenbrand <calzplace@yahoo.com>
988 * Fix for for 'pam_smbpass migrate' functionality.
991 o Chris Hertel <crh@samba.org>
992 * fix enumeration of shares 12 characters in length via
996 o Ulrich Holeschak <ulrich@holeschak.de>
997 * BUG 932: fix local password change using pam_smbpass
1000 o Krischan Jodies <kj@sernet.de>
1001 * Implement 'net rpc group delete'
1004 o John Klinger <john.klinger@lmco.com>
1005 * Return NSS_SUCCESS once the max number of gids possible
1006 has been found in initgroups() on Solaris.
1007 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1010 o Volker Lendecke <vl@samba.org>
1011 * Fix success message for net groupmap modify.
1012 * Fix errors when enumerating members of groups in 'net rpc'.
1013 * Match Windows behavior in samr_lookup_names() by returning
1014 ALIAS(4) when you search in BUILTIN.
1015 * Fix server SAMR code to be able to set alias info for
1017 * Fix duplication of logic when creating groups via smbd.
1018 * Ensure that the HWM values are set correctly after running
1020 * Add 'net rpc group add'.
1021 * Implement 'net groupmap set' and 'net groupmap cleanup'.
1022 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1023 * Fix wb_delgrpmem (wbinfo -o).
1024 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1025 * Fix sambaUserWorkstations on a Samba DC.
1026 * Implement wbinfo -k: Have winbind generate an AFS token after
1027 authenticating the user.
1028 * Add expand_msdfs VFS module for providing referrals based on the
1029 the client's IP address.
1030 * Implement client side NETLOGON GetDCName function.
1031 * Fix caching of name->sid lookups.
1032 * Add support in winbindd for expanding nested local groups.
1033 * Fix memleak in winbindd.
1035 * Don't list domain groups from BUILTIN.
1036 * Fix memleak in policy handle utility functions.
1037 * Decrease winbindd startup time by only contacting trusted
1038 domains as necessary.
1039 * Allow winbindd to ask the DC for its domain for a trusted
1041 * Fix Netscape DS schema based on comments from
1042 <thomas.mueller@christ-wasser.de>.
1043 * Correct case where adding a domain user to a XP local group
1044 did a lsalookupname on the user without domain prefix, and
1046 * Fix segfault in winbindd caused by 'wbinfo -a'.
1049 o Herb Lewis <herb@samba.org>
1050 * Fix typo for tag in proto file.
1051 * Add missing #ifdef HAVE_BICONV stuff.
1052 * Truncate Samba's netbios name at the first '.' (not
1056 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1057 * Bug fixes and enhancements to libsmbclient library.
1060 o Jianliang Lu <j.lu@tiesse.com>
1061 * Enforce the 'user must change password at next login' flag.
1062 * Decode meaning of 'fields present' flags (improves support
1065 * Don't force an upper case domain name in the ntlmssp code.
1068 o L. Lucius <ib@digicron.com>.
1072 o Jim McDonough <jmcd@us.ibm.com>
1073 * Add versioning support to tdbsam.
1074 * Update the IBM Directory Server schema with the OpenLDAP
1076 * Various decoding fixes to improve usrmgr.exe support.
1077 * Fix statfs redeclaration of statfs struct on ppc
1078 * Implement support for password lockout of Samba domain
1079 controllers and standalone servers.
1080 * Get MungedDial attribute actually working with full TS
1081 strings in it for pdb_ldap.
1082 * BUG 1208 (partial): Improvements for working with expired krb5
1083 tickets in winbindd.
1084 * Use timegm, or our already existing replacement instead of
1085 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1086 * Remove modifyTimestamp from list of our attributes.
1087 * Fix lsalookupnames to check for domain users as well as local
1089 * Merge struct uuid replacement for GUID from trunk.
1090 * BUG 1208: Finish support for handling expired tickets in
1091 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1094 o Stefan Metzmacher <metze@samba.org>
1095 * Implement new VERSION schema based on subversion revision
1097 * Add shadow_copy vfs module.
1098 * Fix segault in login_cache support.
1101 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1102 o BUG 979 -- Fix quota display on AIX.
1105 o James Peach <jpeach@sgi.com>
1106 * Correct check for printf() format when using the SGI MIPSPro
1108 * BUG 1038: support backtrace for 'panic action' on IRIX.
1109 * BUG 768: Accept profileing arg to IRIX init script.
1110 * BUG 748: Relax arg parsing to sambalp script (IRIX).
1111 * BUG 758: Fix pdma build.
1112 * Search IRIX ABI paths for libiconv. Based on initial fix from
1116 o Kurt Pfeifle <kpfeifle@danka.de>
1117 * Add example shell script for migrating drivers and printers
1118 from a Windows print server to a Samba print server using
1119 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1122 o Tim Potter <tpot@samba.org>
1123 * Fix logic bug in tdb non-blocking lock routines when
1125 * BUG 1025: Include sys/acl.h in check for broken nisplus
1127 * BUG 1066: s/printf/d_printf/g in SWAT.
1128 * BUG 1098: rename internal msleep() function to fix build
1130 * BUG 1112: Fix for writable printerdata problem in python bindings.
1131 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1132 * BUG 1155: enclose use of fchown() with guards.
1133 * Relicense tdb python module as LGPL.
1136 o Richard Sharpe <rsharpe@samba.org>
1137 * Add support to smbclient for multiple logins on the same
1138 session (based on work by abartlet@samba.org).
1139 * Correct blocking condition in smbd's use of accept() on IRIX.
1140 * Add support for printing out the MAC address on nmblookup.
1143 o Simo Source <idra@samba.org>
1144 * Replace unknown_3 with fields_present in SAMR code.
1145 * More length checks in strlcat().
1148 o Andrew Tridgell <tridge@samba.org>
1149 * Rewrote the AIX UESS backend for winbindd.
1150 * Fixed compilation with --enable-dmalloc.
1151 * Change tdb license to LGPL (see source/tdb/tdb.c).
1152 * Force winbindd to use schannel in clients connections to
1156 o Jelmer Vernooij <jelmer@samba.org>
1157 * Fix ETA Calculation when resuming downloads in smbget.
1158 * Add -O (for writing downloaded files to standard out)
1159 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1160 * Fix syntax error in example mysql table
1163 o TAKEDA yasuma <yasuma@miraclelinux.com>
1164 * BUG 900: fix token processing in cmd_symlink, cmd_link,
1165 cmd_chown, cmd_chmod smbclient functions.
1168 o Shiro Yamada <shiro@miraclelinux.com>
1169 * BUG 1129: install image files for SWAT.
1172 --------------------------------------------------
1174 ==============================
1175 Release Notes for Samba 3.0.2a
1177 ==============================
1179 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1180 to address, in particular, a problem when using pdbedit to
1181 sanitize (--force-initialized-passwords) Samba's tdbsam
1182 backend. This is the latest stable release of Samba. This
1183 is the version that all production Samba servers should be
1184 running for all current bug-fixes.
1186 ******************* Attention! Achtung! Kree! *********************
1188 Beginning with Samba 3.0.2, passwords for accounts with a last
1189 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1190 ldapsam, etc...) of zero (0) will be regarded as uninitialized
1191 strings. This will cause authentication to fail for such
1192 accounts. If you have valid passwords that meet this criteria,
1193 you must update the last change time to a non-zero value. If you
1194 do not, then 'pdbedit --force-initialized-passwords' will disable
1195 these accounts and reset the password hashes to a string of X's.
1197 ******************* Attention! Achtung! Kree! *********************
1206 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1207 details. The list of changes per contributor are as follows:
1210 o Jeremy Allison <jra@samba.org>
1211 * Added paranoia checks in parsing code.
1214 o Andrew Bartlett <abartlet@samba.org>
1215 * Ensure that changes to uninitialized passwords in ldapsam
1216 are written to the DIT.
1219 o Gerald (Jerry) Carter <jerry@samba.org>
1220 * Fixed iterator in tdbsam.
1221 * Fix bug that disabled accounts with a valid NT password
1222 hash, but no LanMan hash.
1225 o Steve French <sfrench@us.ibm.com>
1226 * Added missing nosetuid and noexec options.
1229 o Bostjan Golob <golob@gimb.org>
1230 * BUG 1046: Don't overwrite usernames of entries returned
1234 o Sebastian Krahmer <krahmer@suse.de>
1235 * Fixed potential crash bug in NTLMSSP parsing code.
1238 o Tim Potter <tpot@samba.org>
1239 * Fixed logic in tdb_brlock error checking.
1242 o Urban Widmark <urban@teststation.com>
1243 * Set nosuid,nodev flags in smbmnt by default.
1246 --------------------------------------------------
1248 =============================
1249 Release Notes for Samba 3.0.2
1251 =============================
1253 It has been confirmed that previous versions of Samba 3.0 are
1254 susceptible to a password initialization bug that could grant an
1255 attacker unauthorized access to a user account created by the
1256 mksmbpasswd.sh shell script.
1258 The Common Vulnerabilities and Exposures project (cve.mitre.org)
1259 has assigned the name CAN-2004-0082 to this issue.
1261 Samba administrators not wishing to upgrade to the current
1262 version should download the 3.0.2 release, build the pdbedit
1265 root# pdbedit-3.0.2 --force-initialized-passwords
1267 This will disable all accounts not possessing a valid password
1268 (e.g. the password field has been set a string of X's).
1270 Samba servers running 3.0.2 are not vulnerable to this bug
1271 regardless of whether or not pdbedit has been used to sanitize
1274 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1277 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1278 o Logging onto a Samba domain from Windows XP clients.
1279 o Problems with the %U and %u smb.conf variables in relation to
1280 Windows 9x/ME clients.
1281 o Kerberos failures due to an invalid in memory keytab detection
1283 o Updates to the ntlm_auth tool.
1284 o Fixes for various SMB signing errors.
1285 o Better separation of WINS and DNS queries for domain controllers.
1286 o Issues with nss_winbind FreeBSD and Solaris.
1287 o Several crash bugs in smbd and winbindd.
1288 o Output formatting fixes for smbclient for better compatibility
1289 with scripts based on the 2.2 version.
1298 Parameter Name Action
1299 -------------- ------
1300 ldap replication sleep New
1301 read size removed (unused)
1302 source environment removed (unused)
1308 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1309 details. The list of changes per contributor are as follows:
1311 o Jeremy Allison <jra@samba.org>
1312 * Revert change that broke Exchange clear text samlogons.
1313 * Fix gcc 3.4 warning in MS-DFS code.
1314 * Tidy up of NTLMSSP code.
1315 * Fixes for SMB signing errors
1316 * BUG 815: Workaround NT4 bug to support plaintext
1317 password logins and UNICODE.
1318 * Fix SMB signing bug when copying large files.
1319 * Correct error logic in mkdir_internals() (caused a panic
1320 when combined with --enable-developer).
1321 * BUG 830: Protect against crashes due to bad character
1325 o Petri Asikainen <paca@sci.fi>
1326 * BUG 330, 387:Fix single valued attribute updates when
1327 working with Novell NDS.
1330 o Andrew Bartlett <abartlet@samba.org>
1331 * Correctly handle per-pipe NTLMSSP inside a NULL session.
1332 * Fix segfault in gencache
1333 * Fix early free() of encrypted_session_key.
1334 * Change DC lookup routines to more carefully separate
1335 DNS names (realms) from NetBIOS domain names.
1336 * Add new sid_to_dn() function for internal winbindd use.
1337 * Refactor cli_ds_enum_domain_trusts().
1338 * BUG 707: Implement range retrieval of ADS attributes (based
1339 on work from Volker <vl@samba.org> and Guenther Deschner
1341 * Automatically initialize the signing engine if a session key
1343 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
1344 encoded strings, only form input in SWAT.
1345 * Resets the NTLMSSP state for new negotiate packets.
1346 * Add 2-byte alignments in net_samlogon() queries to parse
1347 odd-length plain text passwords.
1348 * Allow Windows groups with no members in winbindd.
1349 * Allow normal authentication in the absence of a server
1350 generated session key.
1351 * More optimizations for looking up UNIX group lists.
1352 * Clean up error codes and return values for pam_winbindd
1353 and winbindd PAM interface.
1354 * Fix string return values in ntlm_auth tool.
1355 * Fix segfault when 'security = ads' but no realm is defined.
1356 * BUG 722: Allow winbindd to map machine accounts to uids.
1357 * More cleanups for winbindd's find_our_domain().
1358 * More clearly detect whether a domain controller is an NT4
1359 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1360 * Increase separation between DNS queries for hosts and queries
1361 for AD domain controllers.
1362 * Include additional NT_STATUS to PAM error mappings.
1363 * Password initialization fixes.
1366 o Justin Baugh <justin.baugh@request.com>
1367 * BUG 948: Implement missing functions required for FreeBSD
1368 nss_winbind support.
1371 o Alexander Bokovoy <ab@samba.org>
1372 * BUG 922: Make sure enable fast path for strlower_m() and
1376 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
1377 * Fix crash when using 'security = server' and 'encrypt
1378 passwords = no' by always initializing the session key.
1381 o Dmitry Butskoj <buc@odusz.elektra.ru>
1382 * Fix for special files being hidden from admins.
1385 o Gerald (Jerry) Carter <jerry@samba.org>
1386 * Fix bug in the lanman session key generation. Caused
1387 "decode_pw: incorrect password length" error messages.
1388 * Save the right case for the located user name in
1389 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
1390 * BUG 897: Add well known rid for pre win2k compatible access
1392 * BUG 887: Correct typo in delete user script example.
1393 * Use short lived TALLOC_CTX* for allocating printer objects
1394 from the print handle cache.
1395 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
1396 * Fix several warnings reported by the SUN Forte C compiler.
1397 * Fully control DNS queries for AD DC's using 'name resolve order'.
1398 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
1399 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
1400 * BUG 936: fix bind credentials for schannel binds in smbd.
1401 * BUG 446: Fix output of smbclient for better compatibility
1402 with scripts based on the 2.2 version (including Amanda).
1403 * BUG 891, 949: Fedora packaging fixes.
1404 * Fix bug that caused rpcclient to incorrectly retrieve
1405 the SID for a server (this causing all calls that required
1406 this information to fail).
1407 * BUG 977: Don't create a homes share for a user if a static
1408 share already exists by the same name.
1409 * Removed unused smb.conf options.
1410 * Password initialization fixes.
1411 * Set the disable flag for template accounts created by
1413 * Disable any account has no passwords and does not have the
1414 ACB_PWNOTREQ bit set.
1417 o Guenther Deschner <gd@suse.com>
1418 * Install smbwrapper.so should be put into the $(libdir)
1420 * Add the capability to specify the new user password
1421 for "net ads password" on the command line.
1422 * Correctly detect AFS headers on SuSE.
1425 o James Flemer <jflemer@uvm.edu>
1426 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
1427 HAVE_SYS_ATTRIBUTES_H.
1430 o Luke Howard <lukeh@PADL.COM>
1431 * Fix segfault in session setup reply caused by a early free().
1434 o Stoian Ivanov <sdr@bultra.com>
1435 * Implement grepable output for smbclient -L.
1438 o LaMont Jones <lamont@debian.org>
1439 * BUG 225328 (Debian): Correct false failure LFS test that resulted
1440 in _GNU_SOURCE not being defined (thus resulting in strndup()
1444 o Volker Lendecke <vl@samba.org>
1445 * BUG 583: Ensure that user names always contain the short
1446 version of the domain name.
1447 * Fix our parsing of the LDAP uri.
1448 * Don't show the 'afs username map' in the SWAT basic view.
1449 * Fix SMB signing issues in relation to failed NTLMSSP logins.
1450 * BUG 924: Fix return codes in smbtorture harness.
1451 * Always lower-case usernames before handing it to AFS code.
1452 * Add a German translation for SWAT.
1453 * Fix a segfaults in winbindd.
1454 * Fix the user's domain passed to register_vuid() from
1455 reply_spnego_kerberos().
1456 * Add NSS example code in nss_winbind to convert UNIX
1457 id's <-> Windows SIDs.
1458 * Display more descriptive error messages for login via 'net'.
1459 * Fix compiler warning in the net tool.
1460 * Fix length bug when decoding base64 strings.
1461 * Ensure we don't call getpwnam() inside a loop that is iterating
1462 over users with getpwent(). This broke on glibc 2.3.2.
1465 o Herb Lewis <herb@samba.org>
1466 * Fix bit rot in psec.
1469 o Jianliang Lu <j.lu@tiesse.com>
1470 * Ensure we delete the group mapping before calling the delete
1472 * Define well known RID for managing the "Power Users" group.
1473 * BUG 381: check builtin (not local) group SID when updating
1475 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
1479 o John Klinger <john.klinger@lmco.com>
1480 * Implement initgroups() call in nss_winbind on Solaris.
1483 o Jim McDonough <jmcd@us.ibm.com>
1484 * Fix regression in net rpc join caused by recent changes
1485 to cli_lsa_query_info_policy().
1486 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
1490 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
1491 * BUG 570: Ensure that configure honors the LDFLAGS variable.
1494 o Stefan Metzmacher <metze@samba.org>
1495 * Implement LDAP rebind sleep patch.
1496 * Revert to 2.2 quota code because of so many broken quota files
1498 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
1499 XFS_USER_QUOTA -> USRQUOTA
1500 XFS_GROUP_QUOTA -> GRPQUOTA
1501 * Fix disk_free calculation with group quotas.
1502 * Add debug class 'quota' and a lot of DEBUG()'s
1504 * Fix sys_chown() when no chown() is present.
1505 * Add SIGABRT to fault handling in order to catch got a
1506 backtrace if an error occurs the OpenLDAP client libs.
1510 * Allow an existing LDAP machine account to be re-used when
1511 joining an AD domain.
1514 o James Peach <jpeach@sgi.com>
1515 * BUG 889: Change smbd to use pread/pwrite on platforms that
1516 support these calls. Can lead to a significant speed increase.
1519 o Tim Potter <tpot@samba.org>
1520 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
1521 * BUG 924: Fix typo in RW2 torture test.
1524 o Richard Sharpe <rsharpe@samba.org>
1525 * Small fixes to torture.c to cleanup the error handling
1526 and prevent crashes.
1529 o J. Tournier <jerome.tournier@IDEALX.com>
1530 * Small fixes for the smbldap-tool scripts.
1533 o Andrew Tridgell <tridge@samba.org>
1534 * Fix src len check in pull_usc2().
1537 o Jelmer Vernooij <jelmer@samba.org>
1538 * Put functions for generating SQL queries in pdb_sql.c
1539 * Add pgSQL backend (based on patch by Hamish Friedlander)
1540 * BUG 908: Fix -s option to smbcontrol.
1541 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
1542 * Fix for libnss_wins on IRIX platforms.
1543 * Fix swatdir for --with-fhs.
1546 --------------------------------------------------
1548 =============================
1549 Release Notes for Samba 3.0.1
1551 =============================
1553 Some of the more common bugs in 3.0.0 addressed in the release
1556 o Substitution problems with smb.conf variables.
1557 o Errors in return codes which caused some applications
1558 to fail to open files.
1559 o General Protection Faults on Windows 2000/XP clients
1560 using Samba point-n-print features.
1561 o Several miscellaneous crash bugs.
1562 o Access problems when enumerating group mappings are
1563 stored in an LDAP Directory.
1564 o Several common SWAT bugs when writing changes to
1566 o Internal inconsistencies when 'winbind use default
1572 ----------------------
1574 Parameter Name Action
1575 -------------- ------
1576 hide local users Removed
1577 mangled map Deprecated
1578 mangled stack Removed
1579 passwd chat timeout New
1585 o Change the interface for init_unistr2 to not take a length
1586 but a flags field. We were assuming that
1587 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
1588 o Allow d_printf() to handle strings with escaped quotation
1589 marks since the msg file includes the escape character (bug 489).
1590 o Fix bad html table row termination in SWAT wizard code (bug 413).
1591 o Fix to parse the level-2 strings.
1592 o Fix for "valid users = %S" in [homes]. Fix read/write
1594 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
1595 This is the same way AC_CHECK_LIB works (bug 508).
1596 o Testparm output fixes for clarity.
1597 o Fix broken wins hook functionality -- i18n bug (bug 528).
1598 o Take care of condition where DOS and NT error codes must differ.
1599 o Default to using only built-in charsets when a working iconv
1600 implementation cannot be located.
1601 o Wrap internals of sys_setgroups() so the sys_XX() call can
1602 be done unconditionally (bug 550).
1603 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1604 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1605 --enable-debug=[yes|no] works correctly.
1606 o Allow ^C to interrupt smbpasswd if using our getpass
1607 (e.g. smbpasswd command).
1608 o Support signing only on RPC's (bug 167).
1609 o Correct bug that prevented Excel 2000 clients from opening
1610 files marked as read-only.
1611 o Portability fix bugs 546 - 549).
1612 o Explicitly initialize the value of AR for vendor makes that don't
1613 do this (e.g. HPUX 11). (bug 552).
1614 o More i18n fixes for SWAT (bug 413).
1615 o Change the cwd before the postexec script to ensure that a
1616 umount will succeed.
1617 o Correct double free that caused winbindd to crash when a DC
1618 is rebooted (bug 437).
1619 o Fix incorrect mode sum (bug 562).
1620 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1621 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1622 o Add script to generate *msg files.
1623 o Add Dutch SWAT translation file.
1624 o Make sure to call get_user_groups() with the full winbindd
1625 name for a user if he/she has one (bug 406).
1626 o Fix up error code returns from Samba4 tester. Ensure invalid
1627 paths are validated the same way.
1628 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1629 o Refuse to configure if --with-expsam=$BACKEND was used but no
1630 libraries were found for $BACKEND.
1631 o Move sysquotas autoconf tests to a separate file.
1632 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1634 o Make sure that the files that contain the static_init_$subsystem;
1635 macro get recompiled after configure by removing the object
1637 o Ensure canceling a blocking lock returns the correct error
1639 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1640 o Updated Japanese welcome file in SWAT.
1641 o Fix to nt-time <-> unix-time functions reversible.
1642 o Ensure that winbindd uses the the escaped DN when querying
1644 o Fix portability issues when compiling (bug 505, 550)
1645 o Compile fix for tdbbackup when Samba needs to override
1646 non-C99 compliant implementations of snprintf().
1647 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1648 o Make sure we break out of samsync loop on error.
1649 o Ensure error code path doesn't free unmalloc()'d memory
1651 o Add configure test for krb5_keytab_entry keyblock vs key
1654 o Modified testparm so that all output so all debug output goes
1655 to stderr, and all file processing goes to stdout.
1656 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1658 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1659 we have a devmode before copying a string to the devicename.
1660 o Support mapping REALM.COM\user to a local user account (without
1661 running winbindd) for compatibility with 2.2.x release.
1662 o Ensure we don't use mmap() on blacklisted systems.
1663 o fixed a number of bugs and memory leaks in the AIX
1665 o Call initgroups() in SWAT before becomming the user so that
1666 secondary group permissions can be used when writing to
1668 o Fix signing problems when reverse connecting back to a
1669 client for printer notify
1670 o Fix signing problems caused by a miss-sequence bug.
1671 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1672 Fixes NEXUS tools running on Win9x clients (bug 64).
1673 o Don't leave the domain field uninitialized in cli_lsa.c if some
1674 SID could not be mapped.
1675 o Fix segfault in mount.cifs helper when there is no options
1676 specified during mount.
1677 o Change the \n after the password prompt to go to tty instead
1678 of stdout (bug 668).
1679 o Stop net -P from prompting for machine account password (bug 451).
1680 o Change in behavior to Not only change the effective uid but also
1681 the real uid when becoming unprivileged.
1682 o Cope with Exchange 5.5 cleartext pop password auth.
1683 o New files for support of initshutdown pipe. Win2k doesn't
1684 respond properly to all requests on the winreg pipe, so we need
1685 to handle this new pipe (bug 534).
1686 o Added more va_copy() checks in configure.in.
1687 o Include fixes for libsmbclient build problems.
1688 o Missing UNIX -> DOS codepage conversion in lanman.c.
1689 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1690 o Parameterize the listen backlog in smbd and make it larger by
1691 default. A backlog of 5 is way too small these days.
1692 o Check for an invalid fid before dereferencing the fsp pointer
1694 o Remove invalid memory frees and return codes in pdb_ldap.c.
1695 o Prompt for password when invoking --set-auth-user and no
1697 o Bind the nmbd sending socket to the 'socket address'.
1698 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1699 $LDFLAGS occurs before any library specification (bug 661).
1700 o Fix large number of printf() calls for 64-bit size_t.
1701 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1702 keyblock in the krb5 structs.
1703 o Remove #include <compat.h> in hopes to avoid problems with
1704 apache header files.
1705 o Correct winbindd build problems on HP-UX 11.
1706 o Lowercase netgroups lookups (bug 703).
1707 o Use the actual size of the buffer in strftime instead of a made
1708 up value which just happens to be less than sizeof(fstring).
1710 o Add ldaplibs to pdbedit link line (bug 651).
1711 o Fix crash bug in smbclient completion (bug 659).
1712 o Fix packet length for browse list reply (bug 771).
1713 o Fix coredump in cli_get_backup_list().
1714 o Make sure that we expand %N (bug 612).
1715 o Allow rpcclient adddriver command to specify printer driver
1717 o Compile tdbdump by default.
1718 o Apply patches to fix iconv detection for FreeBSD.
1719 o Do not allow the 'guest account' to be added to a passdb backend
1720 using smbpasswd or pdbedit (bug 624).
1721 o Save LDFLAGS during iconv detection (bug 57).
1722 o Run krb5 logins through the username map if the winbindd
1723 lookup fails (bug 698).
1724 o Add const for lp_set_name_resolve_order() to avoid compiler
1726 o Add support for the %i macro in smb.conf to stand in for the for
1727 the local IP address to which a client connected.
1728 o Allow winbindd to match local accounts to domain SID when
1729 'winbind trusted domains only = yes' (bug 680).
1730 o Remove code in idmap_ldap that searches the user suffix and group
1731 suffix. It's not needed and provides inconsistent functionality
1732 from the tdb backend.
1733 o Patch to handle munged dial string for Windows 2000 TSE.
1734 Thanks to Gaz de France, Direction de la Recherche, Service
1735 Informatique Métier for their supporting this work by Aurelien
1736 Degrémont <adegremont@idealx.com>.
1737 o Correct the "smbldap_open: cannot access when not root error"
1738 messages when looking up group information (bug 281).
1739 o Skip over the winbind separator when looking up a user.
1740 This fixes the bug that prevented local users from
1741 matching an AD user when not running winbindd (bug 698).
1742 o Fix a problem with configure on *BSD systems. Make sure
1743 we add -liconv etc to LDFLAGS.
1744 o Fix core dump bug when "security = server" and the authentication
1746 o Correct crash bug due to an empty munged dial string.
1747 o Show files locked by a specific user (smbstatus -u 'user')
1749 o Fix bug preventing print jobs from display in the queue
1750 monitor used by Windows NT and later clients (bug 660).
1751 o Fix several reported problems with point-n-print from
1752 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1753 reply (bug 338, 527 & 643).
1754 o Fix a handful of potential memory leaks in the LDAP code used
1755 by ldapsam[_compat] and the LDAP idmap backend.
1756 o Fix for pdbedit error code returns (bug 763).
1757 o Make sure we only enumerate group mapping entries (not
1758 /etc/group) even when doing local aliases.
1759 o Relax check on the pipe name in a dce/rpc bind response to work
1760 around issues with establishing trusts to a Windows 2003 domain.
1761 o Ensure we mangle names ending in '.' in hash2 mangling method.
1762 o Correct parsing issues with munged dial string.
1763 o Fix bugs in quota support for XFS.
1764 o Add a cleaner method for applications that need to provide
1765 name->SID mappings to do this via NSS rather than having to
1766 know the winbindd pipe protocol.
1767 o Adds a variant of the winbindd_getgroups() call called
1768 winbindd_getusersids() that provides direct SID->SIDs listing of
1769 a users supplementary groups. This is enough to allow non-Samba
1770 applications to do ACL checking.
1771 o Make sure we don't append the 'ldap suffix' when writing out the
1772 'ldap XXX suffix' values in SWAT (bug 328).
1773 o Fix renames across file systems.
1774 o Ensure that items in a list of strings containing whitespace are
1775 written out surrounded by single quotes. This means that both
1776 double and single quotes are now used to surround strings in
1778 o Enable SWAT to correctly determine if winbindd is running (bug
1780 o Include WWW-Authenticate field in 401 response for bad auth
1782 o Add support for NTLM2 (NTLMv2 session security).
1783 o Add support for variable-length session keys.
1784 o More privilege fixes for group enumeration in LDAP (bug 281).
1785 o Use the dns name (or IP) as the originating client name when
1786 using CUPS (bug 467).
1787 o Fix various SMB signing bugs.
1788 o Fix ACL propagation on a DFS root (bug 263).
1789 o Disable NTLM2 for RPC pipes.
1790 o Allow the client to specify the NTLM2 flags got NTLMSSP
1792 o Change the name of the job passed off to cups from "Test Page"
1793 to "smbprn.00000033 Test Page" so that we can get the smb
1794 jobid back. This allow users to delete jobs with cups printing
1795 backend (partial work on bug 770).
1796 o Fix build of winbindd with static pdb modules.
1797 o Retrieve the correct ACL group bits if the file has an ACL
1799 o Implement "net rpc group members": Get members of a domain group
1800 in human-readable format.
1801 o Add MacOSX (Darwin) specific charset module code.
1802 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1803 can include the full name in gecos field (bug 587).
1804 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1805 o Implement 'net rpc group list [global|local|builtin]*' for a
1806 select listing of the respective user databases.
1807 o Don't automatically set NT status code flag unless client tells
1809 o Add 'net status [sessions|shares] [parseable]'.
1810 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1812 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1814 o Fix inverted logic in hosts allow/deny checks caused by
1815 s/strcmp/strequal/ (bug 846).
1816 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1817 o Fix typo in 'hash' mangling algorithm.
1818 o Support munged dial for ldapsam (bug 800).
1819 o Fix process_incoming_data() to return the number of bytes handled
1820 this call whether we have a complete PDU or not; fixes bug
1821 with multiple PDU request rpc's broken over SMBwriteX calls
1823 o Fix incorrect smb flags2 for connections to pre-NT servers
1824 (causes smbclient to fail to OS2 for example) (bug 821).
1825 o Update version string in smbldap-tools Makefile to 0.8.2.
1826 o Correct a problem with "net rpc vampire" mis-parsing the
1827 alias member info reply.
1828 o Ensure the ${libdir} is created by the installclientlib script.
1829 o Fix detection of Windows 2003 client architecture in the smb.conf
1831 o Ensure that smbd calls the add user script for a missing UNIX
1832 user on kerberos auth call (bug 445).
1833 o Fix bugs in hosts allow/deny when using a mismatched
1834 network/netmask pair.
1835 o Protect alloc_sub_basic() from crashing when the source string
1836 is NULL (partial work on bug 687).
1837 o Fix spinlocks on IRIX.
1838 o Corrected some bad destination paths when running "configure
1840 o Add packaging files for Fedora Core 1.
1841 o Correct bug in SWAT install script for non-english languages.
1842 o Support character set ISO-8859-1 internally (bug 558).
1843 o Fixed more LDAP access errors when looking up group mappings
1845 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1846 resolution to fail on local files on on domain members
1848 o Fix uninitialized variable in passdb.c.
1849 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1850 o Fix problem mounting directories when mount.cifs is installed
1851 with the setuid bit on.
1852 o Fix bug that prevent --mandir from overriding the defaults
1853 given in the --with-fhs macro.
1854 o Fix bug in in-memory Kerberos keytab detection routines
1859 ######################################################################
1861 The original 3.0.0 release notes follow
1862 =======================================
1863 WHATS NEW IN Samba 3.0.0
1865 =======================================
1871 1) Active Directory support. Samba 3.0 is now able to
1872 join a ADS realm as a member server and authenticate
1873 users using LDAP/Kerberos.
1875 2) Unicode support. Samba will now negotiate UNICODE on the wire
1876 and internally there is now a much better infrastructure for
1877 multi-byte and UNICODE character sets.
1879 3) New authentication system. The internal authentication system
1880 has been almost completely rewritten. Most of the changes are
1881 internal, but the new auth system is also very configurable.
1883 4) New default filename mangling system.
1885 5) A new "net" command has been added. It is somewhat similar to
1886 the "net" command in windows. Eventually we plan to replace
1887 numerous other utilities (such as smbpasswd) with subcommands
1890 6) Samba now negotiates NT-style status32 codes on the wire. This
1891 improves error handling a lot.
1893 7) Better Windows 2000/XP/2003 printing support including publishing
1894 printer attributes in active directory.
1896 8) New loadable module support for passdb backends and character
1899 9) New default dual-daemon winbindd support for better performance.
1901 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1902 domain and maintaining user, group and domain SIDs.
1904 11) Support for establishing trust relationships with Windows NT 4.0
1907 12) Initial support for a distributed Winbind architecture using
1908 an LDAP directory for storing SID to uid/gid mappings.
1910 13) Major updates to the Samba documentation tree.
1912 14) Full support for client and server SMB signing to ensure
1913 compatibility with default Windows 2003 security settings.
1915 15) Improvement of ACL mapping features based on code donated by
1916 Andreas Grünbacher.
1919 Plus lots of other improvements!
1922 Additional Documentation
1923 ------------------------
1925 Please refer to Samba documentation tree (included in the docs/
1926 subdirectory) for extensive explanations of installing, configuring
1927 and maintaining Samba 3.0 servers and clients. It is advised to
1928 begin with the Samba-HOWTO-Collection for overviews and specific
1929 tasks (the current book is up to approximately 400 pages) and to
1930 refer to the various man pages for information on individual options.
1932 We are very glad to be able to include the second edition of
1933 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1934 (O'Reilly & Associates) in this release. The book is available
1935 on-line at http://samba.org/samba/docs/ and is included with
1936 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1937 publisher for making "Using Samba" under the GNU Free Documentation
1941 ######################################################################
1942 Upgrading from a previous Samba 3.0 beta
1943 ########################################
1945 Beginning with Samba 3.0.0beta3, the RID allocation functions
1946 have been moved into winbindd. Previously these were handled
1947 by each passdb backend. This means that winbindd must be running
1948 to automatically allocate RIDs for users and/or groups. Otherwise,
1949 smbd will use the 2.2 algorithm for generating new RIDs.
1951 If you are using 'passdb backend = tdbsam' with a previous Samba
1952 3.0 beta release (or possibly alpha), it may be necessary to
1953 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1954 to winbindd_idmap.tdb. To do this:
1956 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
1958 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
1960 3) run: (note that 'tdb>' is the tool's prompt for input)
1962 root# ./tdbtool /usr/local/samba/private/passdb.tdb
1963 tdb> show RID_COUNTER
1967 [000] 0A 52 00 00 .R.
1969 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1973 If you are using 'passdb backend = ldapsam', it will be necessary to
1974 store idmap entries in the LDAP directory as well (i.e. idmap backend
1975 = ldap). Refer to the 'net idmap' command for more information on
1976 migrating SID<->UNIX id mappings from one backend to another.
1978 If the RID_COUNTER record does not exist, then these instructions are
1979 unneccessary and the new RID_COUNTER record will be correctly generated
1984 ########################
1985 Upgrading from Samba 2.2
1986 ########################
1988 This section is provided to help administrators understand the details
1989 involved with upgrading a Samba 2.2 server to Samba 3.0.
1995 Many of the options to the GNU autoconf script have been modified
1996 in the 3.0 release. The most noticeable are:
1998 * removal of --with-tdbsam (is now included by default; see section
1999 on passdb backends and authentication for more details)
2001 * --with-ldapsam is now on used to provided backward compatible
2002 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
2003 backend and authentication section for more details
2005 * inclusion of non-standard passdb modules may be enabled using
2006 --with-expsam. This includes an XML backend and a mysql backend.
2008 * removal of --with-msdfs (is now enabled by default)
2010 * removal of --with-ssl (no longer supported)
2012 * --with-utmp now defaults to 'yes' on supported systems
2014 * --with-sendfile-support is now enabled by default on supported
2021 This section contains a brief listing of changes to smb.conf options
2022 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
2023 complete descriptions of new or modified parameters.
2025 Removed Parameters (order alphabetically):
2028 * alternate permissions
2031 * code page directory
2033 * domain admin group
2034 * domain guest group
2035 * force unknown acl user
2041 * printer driver file
2042 * printer driver location
2044 * source environment
2052 New Parameters (new parameters have been grouped by function):
2056 * abort shutdown script
2059 User and Group Account Management
2060 ---------------------------------
2062 * add machine script
2063 * add user to group script
2064 * algorithmic rid base
2065 * delete group script
2066 * delete user from group script
2068 * set primary group script
2074 * passwd chat timeout
2078 * client lanman auth
2079 * client NTLMv2 auth
2085 * paranoid server security
2094 * hide special files
2095 * hide unwriteable files
2097 * kernel change notify
2107 * max reported print jobs
2109 UNICODE and Character Sets
2110 --------------------------
2116 SID to uid/gid Mappings
2117 -----------------------
2121 * winbind enable local accounts
2122 * winbind trusted domains only
2123 * template primary group
2124 * enable rid algorithm
2131 * ldap machine suffix
2133 * ldap replication sleep
2136 General Configuration
2137 ---------------------
2141 Modified Parameters (changes in behavior):
2143 * encrypt passwords (enabled by default)
2144 * mangling method (set to 'hash2' by default)
2147 * restrict anonymous (integer value)
2148 * security (new 'ads' value)
2149 * strict locking (enabled by default)
2150 * unix extensions (enabled by default)
2151 * winbind cache time (increased to 5 minutes)
2152 * winbind uid (deprecated in favor of 'idmap uid')
2153 * winbind gid (deprecated in favor of 'idmap gid')
2159 This section contains brief descriptions of any new databases
2160 introduced in Samba 3.0. Please remember to backup your existing
2161 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
2162 upgrade databases as they are opened (if necessary), but downgrading
2163 from 3.0 to 2.2 is an unsupported path.
2165 Name Description Backup?
2166 ---- ----------- -------
2167 account_policy User policy settings yes
2168 gencache Generic caching db no
2169 group_mapping Mapping table from Windows yes
2170 groups/SID to unix groups
2171 winbindd_idmap ID map table from SIDS to UNIX yes
2173 namecache Name resolution cache entries no
2174 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
2175 returned as part of a successful
2176 net_sam_logon request
2177 printing/*.tdb Cached output from 'lpq no
2178 command' created on a per print
2180 registry Read-only samba registry skeleton no
2181 that provides support for exporting
2182 various db tables via the winreg RPCs
2188 The following issues are known changes in behavior between Samba 2.2 and
2189 Samba 3.0 that may affect certain installations of Samba.
2191 1) When operating as a member of a Windows domain, Samba 2.2 would
2192 map any users authenticated by the remote DC to the 'guest account'
2193 if a uid could not be obtained via the getpwnam() call. Samba 3.0
2194 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
2195 current work around to re-establish the 2.2 behavior.
2197 2) When adding machines to a Samba 2.2 controlled domain, the
2198 'add user script' was used to create the UNIX identity of the
2199 machine trust account. Samba 3.0 introduces a new 'add machine
2200 script' that must be specified for this purpose. Samba 3.0 will
2201 not fall back to using the 'add user script' in the absence of
2202 an 'add machine script'
2205 ######################################################################
2206 Passdb Backends and Authentication
2207 ##################################
2209 There have been a few new changes that Samba administrators should be
2210 aware of when moving to Samba 3.0.
2212 1) encrypted passwords have been enabled by default in order to
2213 inter-operate better with out-of-the-box Windows client
2214 installations. This does mean that either (a) a samba account
2215 must be created for each user, or (b) 'encrypt passwords = no'
2216 must be explicitly defined in smb.conf.
2218 2) Inclusion of new 'security = ads' option for integration
2219 with an Active Directory domain using the native Windows
2220 Kerberos 5 and LDAP protocols.
2222 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
2223 type which is neccessary for servers on which the
2224 administrator password has not been changed, or kerberos-enabled
2225 SMB connections to servers that require Kerberos SMB signing.
2226 Besides this one difference, either MIT or Heimdal Kerberos
2227 distributions are usable by Samba 3.0.
2230 Samba 3.0 also includes the possibility of setting up chains
2231 of authentication methods (auth methods) and account storage
2232 backends (passdb backend). Please refer to the smb.conf(5)
2233 man page for details. While both parameters assume sane default
2234 values, it is likely that you will need to understand what the
2235 values actually mean in order to ensure Samba operates correctly.
2237 The recommended passdb backends at this time are
2239 * smbpasswd - 2.2 compatible flat file format
2240 * tdbsam - attribute rich database intended as an smbpasswd
2241 replacement for stand alone servers
2242 * ldapsam - attribute rich account storage and retrieval
2243 backend utilizing an LDAP directory.
2244 * ldapsam_compat - a 2.2 backward compatible LDAP account
2247 Certain functions of the smbpasswd(8) tool have been split between the
2248 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
2249 utility. See the respective man pages for details.
2252 ######################################################################
2256 This section outlines the new features affecting Samba / LDAP
2262 A new object class (sambaSamAccount) has been introduced to replace
2263 the old sambaAccount. This change aids us in the renaming of
2264 attributes to prevent clashes with attributes from other vendors.
2265 There is a conversion script (examples/LDAP/convertSambaAccount) to
2266 modify and LDIF file to the new schema.
2270 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2271 $ convertSambaAccount --sid=<Domain SID> \
2272 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2273 --changetype=[modify|add]
2275 The <DOM SID> can be obtained by running 'net getlocalsid
2276 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
2277 the format of the generated LDIF output--either create new entries
2278 or modify existing entries.
2280 The old sambaAccount schema may still be used by specifying the
2281 "ldapsam_compat" passdb backend. However, the sambaAccount and
2282 associated attributes have been moved to the historical section of
2283 the schema file and must be uncommented before use if needed.
2284 The 2.2 object class declaration for a sambaAccount has not changed
2285 in the 3.0 samba.schema file.
2287 Other new object classes and their uses include:
2289 * sambaDomain - domain information used to allocate rids
2290 for users and groups as necessary. The attributes are added
2291 in 'ldap suffix' directory entry automatically if
2292 an idmap uid/gid range has been set and the 'ldapsam'
2293 passdb backend has been selected.
2295 * sambaGroupMapping - an object representing the
2296 relationship between a posixGroup and a Windows
2297 group/SID. These entries are stored in the 'ldap
2298 group suffix' and managed by the 'net groupmap' command.
2300 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
2301 automatically and contains the next available 'idmap uid' and
2304 * sambaIdmapEntry - object storing a mapping between a
2305 SID and a UNIX uid/gid. These objects are created by the
2306 idmap_ldap module as needed.
2308 * sambaSidEntry - object representing a SID alone, as a Structural
2309 class on which to build the sambaIdmapEntry.
2312 New Suffix for Searching
2313 ------------------------
2315 The following new smb.conf parameters have been added to aid in directing
2316 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2319 * ldap suffix - used to search for user and computer accounts
2320 * ldap user suffix - used to store user accounts
2321 * ldap machine suffix - used to store machine trust accounts
2322 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
2323 * ldap idmap suffix - location of sambaIdmapEntry objects
2325 If an 'ldap suffix' is defined, it will be appended to all of the
2326 remaining sub-suffix parameters. In this case, the order of the suffix
2327 listings in smb.conf is important. Always place the 'ldap suffix' first
2330 Due to a limitation in Samba's smb.conf parsing, you should not surround
2331 the DN's with quotation marks.
2337 Samba 3.0 supports an ldap backend for the idmap subsystem. The
2338 following options would inform Samba that the idmap table should be
2339 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2344 idmap backend = ldap:ldap://onterose/
2345 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2346 idmap uid = 40000-50000
2347 idmap gid = 40000-50000
2349 This configuration allows winbind installations on multiple servers to
2350 share a uid/gid number space, thus avoiding the interoperability problems
2351 with NFS that were present in Samba 2.2.
2355 ######################################################################
2356 Trust Relationships and a Samba Domain
2357 ######################################
2359 Samba 3.0.0beta2 is able to utilize winbindd as the means of
2360 allocating uids and gids to trusted users and groups. More
2361 information regarding Samba's support for establishing trust
2362 relationships can be found in the Samba-HOWTO-Collection included
2363 in the docs/ directory of this release.
2365 First create your Samba PDC and ensure that everything is
2366 working correctly before moving on the trusts.
2368 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2369 4.0 domain named WINDOWS:
2371 1) create the trust account for SAMBA in "User Manager for Domains"
2372 2) connect the trust from the Samba domain using
2373 'net rpc trustdom establish GLASS'
2375 To create a trustlationship with SAMBA as the trusted domain:
2377 1) create the initial trust account for GLASS using
2378 'smbpasswd -a -i GLASS'. You may need to create a UNIX
2379 account for GLASS$ prior to this step (depending on your
2380 local configuration).
2381 2) connect the trust from a WINDOWS DC using "User Manager
2384 Now join winbindd on the Samba PDC to the SAMBA domain using
2385 the normal steps for adding a Samba server to an NT4 domain:
2386 (note that smbd & nmbd must be running at this point)
2388 root# net rpc join -U root
2389 Password: <enter root password from smbpasswd file here>
2391 Start winbindd and test the join with 'wbinfo -t'.
2393 Now test the trust relationship by connecting to the SAMBA DC
2394 (e.g. POGO) as a user from the WINDOWS domain:
2396 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
2399 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
2401 $ smbclient //crystal/netlogon -U root -W WINDOWS
2404 ######################################################################
2408 Beginning with Samba3.0.0beta3, winbindd has been given new account
2409 manage functionality equivalent to the 'add user script' family of
2410 smb.conf parameters. The idmap design has also been changed to
2411 centralize control of foreign SID lookups and matching to UNIX
2415 Brief Description of Changes
2416 ----------------------------
2418 1) The sid_to_uid() family of functions (smbd/uid.c) have been
2419 reverted to the 2.2.x design. This means that when resolving a
2420 SID to a UID or similar mapping:
2422 a) First consult winbindd
2423 b) perform a local lookup only if winbindd fails to
2424 return a successful answer
2426 There are some variations to this, but these two rules generally
2429 2) All idmap lookups have been moved into winbindd. This means that
2430 a server must run winbindd (and support NSS) in order to achieve
2431 any mappings of SID to dynamically allocated UNIX ids. This was
2432 a conscious design choice.
2434 3) New functions have been added to winbindd to emulate the 'add user
2435 script' family of smbd functions without requiring that external
2436 scripts be defined. This functionality is controlled by the 'winbind
2437 enable local accounts' smb.conf parameter (enabled by default).
2439 However, this account management functionality is only supported
2440 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
2441 must be shared among multiple Samba servers (such as a PDC and BDCs),
2442 it will be necessary to define your own 'add user script', et. al.
2443 programs that place the accounts/groups in some form of directory
2444 such as NIS or LDAP. This requirement was deemed beyond the scope
2445 of winbind's account management functions. Solutions for
2446 distributing UNIX system information have been deployed and tested
2447 for many years. We saw no need to reinvent the wheel.
2449 4) A member of a Samba controlled domain running winbindd is now able
2450 to map domain users directly onto existing UNIX accounts while still
2451 automatically creating accounts for trusted users and groups. This
2452 behavior is controlled by the 'winbind trusted domains only' smb.conf
2453 parameter (disabled by default to provide 2.2.x winbind behavior).
2455 5) Group mapping support is wrapped in the local_XX_to_XX() functions
2456 in smbd/uid.c. The reason that group mappings are not included
2457 in winbindd is because the purpose of Samba's group map is to
2458 match any Windows SID with an existing UNIX group. These UNIX
2459 groups can be created by winbindd (see next section), but the
2460 SID<->gid mapping is retreived by smbd, not winbindd.
2466 * security = server running winbindd to allocate accounts on demand
2468 * Samba PDC running winbindd to handle the automatic creation of UNIX
2469 identities for machine trust accounts
2471 * Automtically creating UNIX user and groups when migrating a Windows NT
2472 4.0 PDC to a Samba PDC. Winbindd must be running when executing
2473 'net rpc vampire' for this to work.
2476 ######################################################################
2480 * There are several bugs currently logged against the 3.0 codebase
2481 that affect the use of NT 4.0 GUI domain management tools when run
2482 against a Samba 3.0 PDC. This bugs should be released in an early
2485 Please refer to https://bugzilla.samba.org/ for a current list of bugs
2486 filed against the Samba 3.0 codebase.
2489 ######################################################################
2490 Reporting bugs & Development Discussion
2491 #######################################
2493 Please discuss this release on the samba-technical mailing list or by
2494 joining the #samba-technical IRC channel on irc.freenode.net.
2496 If you do report problems then please try to send high quality
2497 feedback. If you don't provide vital information to help us track down
2498 the problem then you will probably be ignored.
2500 A new bugzilla installation has been established to help support the
2501 Samba 3.0 community of users. This server, located at
2502 https://bugzilla.samba.org/, has replaced the older jitterbug server
2503 previously located at http://bugs.samba.org/.