1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
6 <title>Samba - Release Notes Archive</title>
11 <h2>Samba 3.0.3 Available for Download</h2>
15 This is the latest stable release of Samba. This is the version
16 that production Samba servers should be running for all
17 current bug-fixes. There have been several issues fixes since
18 the 3.0.2a release and new features have been added as well.
19 See the "Changes" section for details on exact updates.
21 Common bugs fixed in Samba 3.0.3 include:
23 o Crash bugs and change notify issues in Samba's
25 o Honoring secondary group membership on domain member
27 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST
29 o Substitution errors for %[UuGg] in smb.conf.
30 o winbindd crashes when using ADS security mode.
32 o Delays in winbindd startup caused by unnecessary
33 connections to trusted domain controllers.
34 o Various small memory leaks.
35 o Winbindd failing due to expired Kerberos tickets.
37 New features introduced in Samba 3.0.3 include:
39 o Improved support for i18n character sets.
40 o Support for account lockout policy based on
41 bad password attempts.
42 o Improved support for long password changes (>14
43 characters) and strong password enforcement.
44 o Support for Windows aliases (i.e. nested groups).
45 o Experimental support for storing DOS attribute on files
46 and folders in Extended Attributes.
47 o Support for local nested groups via winbindd.
48 o Specifying options to be passed directly to the CUPS
51 The source code can be downloaded from :
53 <a href="/samba/ftp/">http://download.samba.org/samba/ftp/</a>
55 The uncompressed tarball and patch file have been signed
56 using GnuPG. The Samba public key is available at
58 <a href="/samba/ftp/samba-pubkey.asc">http://download.samba.org/samba/ftp/samba-pubkey.asc</a>
60 Binary packages are available at
62 <a href="/samba/ftp/Binary_Packages/">http://download.samba.org/samba/ftp/Binary_Packages/</a>
64 The release notes are also available on-line at
66 <a href="/samba/whatsnew/samba-3.0.3.html">http://www.samba.org/samba/whatsnew/samba-3.0.3.html</a>
68 As always, all bugs (<a href="https://bugzilla.samba.org/">https://bugzilla.samba.org/</a>) are our
74 --------------------------------------------------
76 =============================
77 Release Notes for Samba 3.0.3
79 =============================
81 This is the latest stable release of Samba. This is the version
82 that production Samba servers should be running for all
83 current bug-fixes. There have been several issues fixes since
84 the 3.0.2a release and new features have been added as well.
85 See the "Changes" section for details on exact updates.
87 Common bugs fixed in Samba 3.0.3 include:
89 o Crash bugs and change notify issues in Samba's printing code.
90 o Honoring secondary group membership on domain member servers.
91 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
92 o Substitution errors for %[UuGg] in smb.conf.
93 o winbindd crashes when using ADS security mode.
95 o Delays in winbindd startup caused by unnecessary
96 connections to trusted domain controllers.
97 o Various small memory leaks.
98 o Winbindd failing due to expired Kerberos tickets.
100 New features introduced in Samba 3.0.3 include:
102 o Improved support for i18n character sets.
103 o Support for account lockout policy based on
104 bad password attempts.
105 o Improved support for long password changes (>14
106 characters) and strong password enforcement.
107 o Support for Windows aliases (i.e. nested groups).
108 o Experimental support for storing DOS attribute on files
109 and folders in Extended Attributes.
110 o Support for local nested groups via winbindd.
111 o Specifying options to be passed directly to the CUPS libraries.
113 Please be aware that the Samba source code repository was
114 migrated from CVS to Subversion on April 4, 2004. Details on
115 accessing the Samba source tree via anonymous svn can be found
116 at http://svn.samba.org/samba/subversion.html.
119 ######################################################################
123 Changes since 3.0.3rc1
124 ----------------------
129 o Timur Bakeyev <timur@com.bat.ru>
130 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
133 o Gerald Carter <jerry@samba.org>
134 * BUG 1288: resolve any machine netbios name (0x00) and not just
136 * BUG 1199: Fix potential symlink issue in
137 examples/printing/smbprint.
140 o Landon Fuller <landonf@opendarwin.org>
141 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
142 to fix user/group enumeration on systems whose libc does not
143 call setgrent() before trying to enumerate users (i.e.
147 o Volker Lendecke <vl@samba.org>
148 * Correct case where adding a domain user to a XP local group
149 did a lsalookupname on the user without domain prefix, and
151 * Fix segfault in winbindd caused by 'wbinfo -a'.
154 o Stefan Metzmacher <metze@samba.org>
155 * Add shadow_copy vfs module.
156 * Fix segault in login_cache support.
159 o Tim Potter <tpot@samba.org>
160 * Relicense tdb python module as LGPL.
163 o Jelmer Vernooij <jelmer@samba.org>
164 * Fix syntax error in example mysql table
173 Parameter Name Action
174 -------------- ------
178 store dos attributes New
180 winbind nested groups New
186 o Jeremy Allison <jra@samba.org>
187 * Ensure that Kerberos mutex is always properly unlocked.
188 * Removed Heimdal "in-memory keytab" support.
189 * Fixup the 'multiple-vuids' bugs in our server code.
190 * Correct return code from lsa_lookup_sids() on unmapped
191 sids (based on work by vl@samba.org).
192 * Fix the "too many fcntl locks" scalability problem
194 * Fixup correct (as per W2K3) returns for lookupsids
195 as well as lookupnames.
196 * Fixups for delete-on-close semantics as per Win2k3 behavior.
197 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
198 * Fix "unable to initialize" bug when smbd hasn't been run with
199 new system and a user is being added via pdbedit/smbpasswd.
200 * Added NTrename SMB (0xA5).
201 * Fixup correct timeout values for blocking lock timeouts.
202 * Fix various bugs reported by 'gentest'.
203 * More locking fixes in the case where we own the lock.
204 * Fix up regression in IS_NAME_VALID and renames.
205 * Don't set allocation size on directories.
206 * Return correct error code on fail if file exists and target
208 * Added client "hardlink" comment to test doing NT rename with
209 hard links. Added hardlink_internals() code - UNIX extensions
210 now use this as well.
211 * Use a common function to parse all pathnames from the wire for
212 much closer emulation of Win2k3 error return codes.
213 * Implement check_path_syntax() and rewrite string sub
214 functions for better multibyte support.
215 * Ensure msdfs referrals are multibyte safe.
216 * Allow msdfs symlink syntax to be more forgiving.
217 eg. sym_link -> msdfs://server/share/path/in/share
218 or sym_link -> msdfs:\\server\share\path\in\share.
219 * Cleanup multibyte netbios name support in nmbd ( based on patch
220 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
221 * Fix check_path_syntax() for multibyte encodings which have
222 no '\' as second byte (based on work by ab@samba.org.
223 * Fix the "dfs self-referrals as anonymous user" problem
224 (based on patch from vl@samba.org).
225 * BUG 1064: Ensure truncate attribute checking is done correctly
226 on "hidden" dot files.
227 * Fix bug in anonymous dfs self-referrals again.
228 * Fix get/set of EA's in client library
229 * Added support for OS/2 EA's in smbd server.
230 * Added 'ea support' parameter to smb.conf.
231 * Added 'store dos attributes' parameter to smb.conf.
232 * Fix wildcard identical rename.
233 * Fix reply_ctemp - make compatible with w2k3.
234 * Fix wildcard unlink.
235 * Fix wildcard src with wildcard dest renames.
236 * BUG 1139: Fix based on suggestion by jdev@panix.com.
237 swap lookups for user and group - group will do an
238 algorithmic lookup if it fails, user won't.
239 * Make EA's lookups case independent.
240 * Fix SETPATHINFO in 'unix extensions' support.
241 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
242 the UNIX info levels, and the short case preserve names.
245 o Timur Bakeyev <timur@com.bat.ru>
246 * BUG 1144: only set --with-fhs when the argument is 'yes'
247 * BUG 1152: Allow python modules to build despite libraries added
248 to LDFLAGS instead of LDPATH.
251 o Craig Barratt <cbarratt@users.sourceforge.net>
252 * BUG 389: Allow multiple exclude arguments with smbclient
253 tar -Xr options (better support for Amanda backup client).
256 o Andrew Bartlet <abartlet@samba.org>
257 * Include support for linking with cracklib for enforcing strong
259 * Add support for >14 character password changes from Windows
261 * Add 'admin set password' capability to 'net rpc'.
262 * Allow 'net rpc samdump' to work with any joined domain
263 regardless of smb.conf settings.
264 * Use an allocated buffer for count_chars.
265 * Add sanity checks for changes in the domain SID in an
267 * Implement python unit tests for Samba's multibyte string
269 * Remove 'unicode' smb.conf option.
270 * BUG 1138: Fix support for 'optional' SMB signing and other
272 * BUG 169: Fix NTLMv2-only behavior.
273 * Ensure 'net' honors the 'netbios name' in the smb.conf by
275 * Support SMB signing on connections using only the LANMAN
276 password and generate the correct the 'session key' for these
278 * Implement --required-membership-of=, an ntlm_auth option
279 that restricts all authentication to members of this particular
281 * Improve our fall back code for password changes.
282 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
283 after the server had said something (such as an error).
284 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
287 o Alexander Bokovoy <ab@samba.org>
288 * Fix incorrect size calculation of the directory name
290 * Fix problems with very long filenames in both smbd and smbclient
291 caused by truncating paths during character conversions.
292 * Fix smbfs problem with Tree Disconnect issued before smbfs
296 o Gerald Carter <jerry@samba.org>
297 * BUG 850: Fix 'make installmodules' bug on True64.
298 * BUG 66: mark 'only user' deprecated.
299 * Remove corrupt tdb and shutdown (only for printing tdbs,
300 connections, sessionid & locking).
301 * decrement smbd counter in connections.tdb in smb_panic().
302 * RedHat specfile updates.
303 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
304 * BUG 1147; bad pointer case in get_stored_queue_info()
306 * BUG 761: read the config file before initialized default
307 values for printing options; don't default to bsd printing
309 * Allow the 'printing' parameter to be set on a per share basis.
310 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
311 * BUG 848: don't create winbind local users/groups that already
313 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
315 * BUG 488: fix the 'show client in col 1' button and correctly
316 enumerate active connections.
317 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
318 problem when storing the updating pid for the lpq cache.
319 * BUG 1007 (partial): Fix print change notify bugs.
320 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
321 and winbind use default domain = yes. Also ensures that
322 * BUG 1151: Ensure that winbindd users are passed through
324 * Fix client rpc binds for ASU derived servers (pc netlink,
326 * BUG 417, 1128: Ensure that the current_user_info is set
327 consistently so that %[UuGg] is expanded correctly.
328 * BUG 1195: Fix crash in winbindd when the ADS server is
330 * BUG 1185: Set reconnect time to be the same as the
331 'winbind cache time'.
332 * Ensure that we return the sec_desc in smb_io_printer_info_2.
333 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
334 * BUG 1095: Honor the '-l' option in smbclient.
335 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
337 * Ensure server schannel uses the auth level requested by the
339 * Removed --with-cracklib option due to potential crash issue.
340 * Fix -lcrypto linking problem with wbinfo.
341 * BUG 761: allow printing parameter to set defaults on a per
343 * Add 'cups options' parameter to allow raw printing without
344 changing /etc/cups/cupsd.conf.
345 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
347 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
350 o Robert Dahlem <Robert.Dahlem@gmx.net>
351 * BUG 1048: Don't return short names when when 'mangled names = no'
354 o Guenther Deschner <gd@suse.com>
355 * Remove hard coded attribute name in the ads ranged retrieval
357 * Add --with-libdir and --with-mandir to autoconf script.
360 o Bostjan Golob <golob@gimb.org>
361 * BUG 1046: Fix getpwent_list() so that the username is not
362 overwritten by other fields.
365 o Steve French <sfrench@us.ibm.com>
366 * Update mount.cifs to version 1.1.
367 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
368 * Fixes to minor security bug in the mount helper.
369 * Fix credential file mounting for cifs vfs.
370 * Fix free of incremented pointer in cifsvfs mount helper.
371 * Fix path canonicalization of the mount target path and help
372 text display in the cifs mount helper.
373 * Add missing guest mount option for mount.cifs.
376 o SATOH Fumiyasu <fumiya@miraclelinux.com>
377 * BUG 1055; formatting fixes for 'net share'.
378 * BUG 692: correct truncation of share names and workgroup
380 * BUG 1088: use strchr_m() for query_host (smbclient -L).
381 * Patch from to internally count characters correctly.
384 o Paul Green <paulg@samba.org>
385 * Update VOS _POSIX_C_SOURCE macro to 200112L.
386 * Fix bug in configure.ion by moving the first use of
387 AC_CHECK_HEADERS so it is always executed.
388 * Fix configure.in to only use $BLDSHARED to select whether to
389 build static or shared libraries.
392 o Pat Haywarrd <Pat.Hayward@propero.net>
393 * Make the session_users list dynamic (max of 128K).
396 o Cal Heldenbrand <calzplace@yahoo.com>
397 * Fix for for 'pam_smbpass migrate' functionality.
400 o Chris Hertel <crh@samba.org>
401 * fix enumeration of shares 12 characters in length via
405 o Ulrich Holeschak <ulrich@holeschak.de>
406 * BUG 932: fix local password change using pam_smbpass
409 o Krischan Jodies <kj@sernet.de>
410 * Implement 'net rpc group delete'
413 o John Klinger <john.klinger@lmco.com>
414 * Return NSS_SUCCESS once the max number of gids possible
415 has been found in initgroups() on Solaris.
416 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
419 o Volker Lendecke <vl@samba.org>
420 * Fix success message for net groupmap modify.
421 * Fix errors when enumerating members of groups in 'net rpc'.
422 * Match Windows behavior in samr_lookup_names() by returning
423 ALIAS(4) when you search in BUILTIN.
424 * Fix server SAMR code to be able to set alias info for
426 * Fix duplication of logic when creating groups via smbd.
427 * Ensure that the HWM values are set correctly after running
429 * Add 'net rpc group add'.
430 * Implement 'net groupmap set' and 'net groupmap cleanup'.
431 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
432 * Fix wb_delgrpmem (wbinfo -o).
433 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
434 * Fix sambaUserWorkstations on a Samba DC.
435 * Implement wbinfo -k: Have winbind generate an AFS token after
436 authenticating the user.
437 * Add expand_msdfs VFS module for providing referrals based on the
438 the client's IP address.
439 * Implement client side NETLOGON GetDCName function.
440 * Fix caching of name->sid lookups.
441 * Add support in winbindd for expanding nested local groups.
442 * Fix memleak in winbindd.
444 * Don't list domain groups from BUILTIN.
445 * Fix memleak in policy handle utility functions.
446 * Decrease winbindd startup time by only contacting trusted
447 domains as necessary.
448 * Allow winbindd to ask the DC for its domain for a trusted
450 * Fix Netscape DS schema based on comments from
451 <thomas.mueller@christ-wasser.de>.
454 o Herb Lewis <herb@samba.org>
455 * Fix typo for tag in proto file.
456 * Add missing #ifdef HAVE_BICONV stuff.
457 * Truncate Samba's netbios name at the first '.' (not
461 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
462 * Bug fixes and enhancements to libsmbclient library.
465 o Jianliang Lu <j.lu@tiesse.com>
466 * Enforce the 'user must change password at next login' flag.
467 * Decode meaning of 'fields present' flags (improves support
470 * Don't force an upper case domain name in the ntlmssp code.
473 o L. Lucius <ib@digicron.com>.
477 o Jim McDonough <jmcd@us.ibm.com>
478 * Add versioning support to tdbsam.
479 * Update the IBM Directory Server schema with the OpenLDAP
481 * Various decoding fixes to improve usrmgr.exe support.
482 * Fix statfs redeclaration of statfs struct on ppc
483 * Implement support for password lockout of Samba domain
484 controllers and standalone servers.
485 * Get MungedDial attribute actually working with full TS
486 strings in it for pdb_ldap.
487 * BUG 1208 (partial): Improvements for working with expired krb5
489 * Use timegm, or our already existing replacement instead of
490 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
491 * Remove modifyTimestamp from list of our attributes.
492 * Fix lsalookupnames to check for domain users as well as local
494 * Merge struct uuid replacement for GUID from trunk.
495 * BUG 1208: Finish support for handling expired tickets in
496 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
499 o Stefan Metzmacher <metze@samba.org>
500 * Implement new VERSION schema based on subversion revision
504 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
505 o BUG 979 -- Fix quota display on AIX.
508 o James Peach <jpeach@sgi.com>
509 * Correct check for printf() format when using the SGI MIPSPro
511 * BUG 1038: support backtrace for 'panic action' on IRIX.
512 * BUG 768: Accept profileing arg to IRIX init script.
513 * BUG 748: Relax arg parsing to sambalp script (IRIX).
514 * BUG 758: Fix pdma build.
515 * Search IRIX ABI paths for libiconv. Based on initial fix from
519 o Kurt Pfeifle <kpfeifle@danka.de>
520 * Add example shell script for migrating drivers and printers
521 from a Windows print server to a Samba print server using
522 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
525 o Tim Potter <tpot@samba.org>
526 * Fix logic bug in tdb non-blocking lock routines when
528 * BUG 1025: Include sys/acl.h in check for broken nisplus
530 * BUG 1066: s/printf/d_printf/g in SWAT.
531 * BUG 1098: rename internal msleep() function to fix build
533 * BUG 1112: Fix for writable printerdata problem in python bindings.
534 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
535 * BUG 1155: enclose use of fchown() with guards.
538 o Richard Sharpe <rsharpe@samba.org>
539 * Add support to smbclient for multiple logins on the same
540 session (based on work by abartlet@samba.org).
541 * Correct blocking condition in smbd's use of accept() on IRIX.
542 * Add support for printing out the MAC address on nmblookup.
545 o Simo Source <idra@samba.org>
546 * Replace unknown_3 with fields_present in SAMR code.
547 * More length checks in strlcat().
550 o Andrew Tridgell <tridge@samba.org>
551 * Rewrote the AIX UESS backend for winbindd.
552 * Fixed compilation with --enable-dmalloc.
553 * Change tdb license to LGPL (see source/tdb/tdb.c).
554 * Force winbindd to use schannel in clients connections to
558 o Jelmer Vernooij <jelmer@samba.org>
559 * Fix ETA Calculation when resuming downloads in smbget.
560 * Add -O (for writing downloaded files to standard out)
561 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
564 o TAKEDA yasuma <yasuma@miraclelinux.com>
565 * BUG 900: fix token processing in cmd_symlink, cmd_link,
566 cmd_chown, cmd_chmod smbclient functions.
569 o Shiro Yamada <shiro@miraclelinux.com>
570 * BUG 1129: install image files for SWAT.
573 Changes for older versions follow below:
575 --------------------------------------------------
577 ==============================
578 Release Notes for Samba 3.0.2a
580 ==============================
582 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
583 to address, in particular, a problem when using pdbedit to
584 sanitize (--force-initialized-passwords) Samba's tdbsam
585 backend. This is the latest stable release of Samba. This
586 is the version that all production Samba servers should be
587 running for all current bug-fixes.
589 ******************* Attention! Achtung! Kree! *********************
591 Beginning with Samba 3.0.2, passwords for accounts with a last
592 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
593 ldapsam, etc...) of zero (0) will be regarded as uninitialized
594 strings. This will cause authentication to fail for such
595 accounts. If you have valid passwords that meet this criteria,
596 you must update the last change time to a non-zero value. If you
597 do not, then 'pdbedit --force-initialized-passwords' will disable
598 these accounts and reset the password hashes to a string of X's.
600 ******************* Attention! Achtung! Kree! *********************
609 Please refer to the CVS log for the SAMBA_3_0 branch for complete
610 details. The list of changes per contributor are as follows:
613 o Jeremy Allison <jra@samba.org>
614 * Added paranoia checks in parsing code.
617 o Andrew Bartlet <abartlet@samba.org>
618 * Ensure that changes to uninitialized passwords in ldapsam
619 are written to the DIT.
622 o Gerald (Jerry) Carter <jerry@samba.org>
623 * Fixed iterator in tdbsam.
624 * Fix bug that disabled accounts with a valid NT password
625 hash, but no LanMan hash.
628 o Steve French <sfrench@us.ibm.com>
629 * Added missing nosetuid and noexec options.
632 o Bostjan Golob <golob@gimb.org>
633 * BUG 1046: Don't overwrite usernames of entries returned
637 o Sebastian Krahmer <krahmer@suse.de>
638 * Fixed potential crash bug in NTLMSSP parsing code.
641 o Tim Potter <tpot@samba.org>
642 * Fixed logic in tdb_brlock error checking.
645 o Urban Widmark <urban@teststation.com>
646 * Set nosuid,nodev flags in smbmnt by default.
649 --------------------------------------------------
651 =============================
652 Release Notes for Samba 3.0.2
654 =============================
656 It has been confirmed that previous versions of Samba 3.0 are
657 susceptible to a password initialization bug that could grant an
658 attacker unauthorized access to a user account created by the
659 mksmbpasswd.sh shell script.
661 The Common Vulnerabilities and Exposures project (cve.mitre.org)
662 has assigned the name CAN-2004-0082 to this issue.
664 Samba administrators not wishing to upgrade to the current
665 version should download the 3.0.2 release, build the pdbedit
668 root# pdbedit-3.0.2 --force-initialized-passwords
670 This will disable all accounts not possessing a valid password
671 (e.g. the password field has been set a string of X's).
673 Samba servers running 3.0.2 are not vulnerable to this bug
674 regardless of whether or not pdbedit has been used to sanitize
677 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
680 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
681 o Logging onto a Samba domain from Windows XP clients.
682 o Problems with the %U and %u smb.conf variables in relation to
683 Windows 9x/ME clients.
684 o Kerberos failures due to an invalid in memory keytab detection
686 o Updates to the ntlm_auth tool.
687 o Fixes for various SMB signing errors.
688 o Better separation of WINS and DNS queries for domain controllers.
689 o Issues with nss_winbind FreeBSD and Solaris.
690 o Several crash bugs in smbd and winbindd.
691 o Output formatting fixes for smbclient for better compatibility
692 with scripts based on the 2.2 version.
701 Parameter Name Action
702 -------------- ------
703 ldap replication sleep New
704 read size removed (unused)
705 source environment removed (unused)
711 Please refer to the CVS log for the SAMBA_3_0 branch for complete
712 details. The list of changes per contributor are as follows:
714 o Jeremy Allison <jra@samba.org>
715 * Revert change that broke Exchange clear text samlogons.
716 * Fix gcc 3.4 warning in MS-DFS code.
717 * Tidy up of NTLMSSP code.
718 * Fixes for SMB signing errors
719 * BUG 815: Workaround NT4 bug to support plaintext
720 password logins and UNICODE.
721 * Fix SMB signing bug when copying large files.
722 * Correct error logic in mkdir_internals() (caused a panic
723 when combined with --enable-developer).
724 * BUG 830: Protect against crashes due to bad character
728 o Petri Asikainen <paca@sci.fi>
729 * BUG 330, 387:Fix single valued attribute updates when
730 working with Novell NDS.
733 o Andrew Bartlet <abartlet@samba.org>
734 * Correctly handle per-pipe NTLMSSP inside a NULL session.
735 * Fix segfault in gencache
736 * Fix early free() of encrypted_session_key.
737 * Change DC lookup routines to more carefully separate
738 DNS names (realms) from NetBIOS domain names.
739 * Add new sid_to_dn() function for internal winbindd use.
740 * Refactor cli_ds_enum_domain_trusts().
741 * BUG 707: Implement range retrieval of ADS attributes (based
742 on work from Volker <vl@samba.org> and Guenther Deschner
744 * Automatically initialize the signing engine if a session key
746 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
747 encoded strings, only form input in SWAT.
748 * Resets the NTLMSSP state for new negotiate packets.
749 * Add 2-byte alignments in net_samlogon() queries to parse
750 odd-length plain text passwords.
751 * Allow Windows groups with no members in winbindd.
752 * Allow normal authentication in the absence of a server
753 generated session key.
754 * More optimizations for looking up UNIX group lists.
755 * Clean up error codes and return values for pam_winbindd
756 and winbindd PAM interface.
757 * Fix string return values in ntlm_auth tool.
758 * Fix segfault when 'security = ads' but no realm is defined.
759 * BUG 722: Allow winbindd to map machine accounts to uids.
760 * More cleanups for winbindd's find_our_domain().
761 * More clearly detect whether a domain controller is an NT4
762 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
763 * Increase separation between DNS queries for hosts and queries
764 for AD domain controllers.
765 * Include additional NT_STATUS to PAM error mappings.
766 * Password initialization fixes.
769 o Justin Baugh <justin.baugh@request.com>
770 * BUG 948: Implement missing functions required for FreeBSD
774 o Alexander Bokovoy <ab@samba.org>
775 * BUG 922: Make sure enable fast path for strlower_m() and
779 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
780 * Fix crash when using 'security = server' and 'encrypt
781 passwords = no' by always initializing the session key.
784 o Dmitry Butskoj <buc@odusz.elektra.ru>
785 * Fix for special files being hidden from admins.
788 o Gerald (Jerry) Carter <jerry@samba.org>
789 * Fix bug in the lanman session key generation. Caused
790 "decode_pw: incorrect password length" error messages.
791 * Save the right case for the located user name in
792 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
793 * BUG 897: Add well known rid for pre win2k compatible access
795 * BUG 887: Correct typo in delete user script example.
796 * Use short lived TALLOC_CTX* for allocating printer objects
797 from the print handle cache.
798 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
799 * Fix several warnings reported by the SUN Forte C compiler.
800 * Fully control DNS queries for AD DC's using 'name resolve order'.
801 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
802 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
803 * BUG 936: fix bind credentials for schannel binds in smbd.
804 * BUG 446: Fix output of smbclient for better compatibility
805 with scripts based on the 2.2 version (including Amanda).
806 * BUG 891, 949: Fedora packaging fixes.
807 * Fix bug that caused rpcclient to incorrectly retrieve
808 the SID for a server (this causing all calls that required
809 this information to fail).
810 * BUG 977: Don't create a homes share for a user if a static
811 share already exists by the same name.
812 * Removed unused smb.conf options.
813 * Password initialization fixes.
814 * Set the disable flag for template accounts created by
816 * Disable any account has no passwords and does not have the
817 ACB_PWNOTREQ bit set.
820 o Guenther Deschner <gd@suse.com>
821 * Install smbwrapper.so should be put into the $(libdir)
823 * Add the capability to specify the new user password
824 for "net ads password" on the command line.
825 * Correctly detect AFS headers on SuSE.
828 o James Flemer <jflemer@uvm.edu>
829 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
830 HAVE_SYS_ATTRIBUTES_H.
833 o Luke Howard <lukeh@PADL.COM>
834 * Fix segfault in session setup reply caused by a early free().
837 o Stoian Ivanov <sdr@bultra.com>
838 * Implement grepable output for smbclient -L.
841 o LaMont Jones <lamont@debian.org>
842 * BUG 225328 (Debian): Correct false failure LFS test that resulted
843 in _GNU_SOURCE not being defined (thus resulting in strndup()
847 o Volker Lendecke <vl@samba.org>
848 * BUG 583: Ensure that user names always contain the short
849 version of the domain name.
850 * Fix our parsing of the LDAP uri.
851 * Don't show the 'afs username map' in the SWAT basic view.
852 * Fix SMB signing issues in relation to failed NTLMSSP logins.
853 * BUG 924: Fix return codes in smbtorture harness.
854 * Always lower-case usernames before handing it to AFS code.
855 * Add a German translation for SWAT.
856 * Fix a segfaults in winbindd.
857 * Fix the user's domain passed to register_vuid() from
858 reply_spnego_kerberos().
859 * Add NSS example code in nss_winbind to convert UNIX
860 id's <-> Windows SIDs.
861 * Display more descriptive error messages for login via 'net'.
862 * Fix compiler warning in the net tool.
863 * Fix length bug when decoding base64 strings.
864 * Ensure we don't call getpwnam() inside a loop that is iterating
865 over users with getpwent(). This broke on glibc 2.3.2.
868 o Herb Lewis <herb@samba.org>
869 * Fix bit rot in psec.
872 o Jianliang Lu <j.lu@tiesse.com>
873 * Ensure we delete the group mapping before calling the delete
875 * Define well known RID for managing the "Power Users" group.
876 * BUG 381: check builtin (not local) group SID when updating
878 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
882 o John Klinger <john.klinger@lmco.com>
883 * Implement initgroups() call in nss_winbind on Solaris.
886 o Jim McDonough <jmcd@us.ibm.com>
887 * Fix regression in net rpc join caused by recent changes
888 to cli_lsa_query_info_policy().
889 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
893 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
894 * BUG 570: Ensure that configure honors the LDFLAGS variable.
897 o Stefan Metzmacher <metze@samba.org>
898 * Implement LDAP rebind sleep patch.
899 * Revert to 2.2 quota code because of so many broken quota files
901 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
902 XFS_USER_QUOTA -> USRQUOTA
903 XFS_GROUP_QUOTA -> GRPQUOTA
904 * Fix disk_free calculation with group quotas.
905 * Add debug class 'quota' and a lot of DEBUG()'s
907 * Fix sys_chown() when no chown() is present.
908 * Add SIGABRT to fault handling in order to catch got a
909 backtrace if an error occurs the OpenLDAP client libs.
913 * Allow an existing LDAP machine account to be re-used when
914 joining an AD domain.
917 o James Peach <jpeach@sgi.com>
918 * BUG 889: Change smbd to use pread/pwrite on platforms that
919 support these calls. Can lead to a significant speed increase.
922 o Tim Potter <tpot@samba.org>
923 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
924 * BUG 924: Fix typo in RW2 torture test.
927 o Richard Sharpe <shape@samba.org>
928 * Small fixes to torture.c to cleanup the error handling
932 o J. Tournier <jerome.tournier@IDEALX.com>
933 * Small fixes for the smbldap-tool scripts.
936 o Andrew Tridgell <tridge@samba.org>
937 * Fix src len check in pull_usc2().
940 o Jelmer Vernooij <jelmer@samba.org>
941 * Put functions for generating SQL queries in pdb_sql.c
942 * Add pgSQL backend (based on patch by Hamish Friedlander)
943 * BUG 908: Fix -s option to smbcontrol.
944 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
945 * Fix for libnss_wins on IRIX platforms.
946 * Fix swatdir for --with-fhs.
949 --------------------------------------------------
951 =============================
952 Release Notes for Samba 3.0.1
954 =============================
956 Some of the more common bugs in 3.0.0 addressed in the release
959 o Substitution problems with smb.conf variables.
960 o Errors in return codes which caused some applications
961 to fail to open files.
962 o General Protection Faults on Windows 2000/XP clients
963 using Samba point-n-print features.
964 o Several miscellaneous crash bugs.
965 o Access problems when enumerating group mappings are
966 stored in an LDAP Directory.
967 o Several common SWAT bugs when writing changes to
969 o Internal inconsistencies when 'winbind use default
975 ----------------------
977 Parameter Name Action
978 -------------- ------
979 hide local users Removed
980 mangled map Deprecated
981 mangled stack Removed
982 passwd chat timeout New
988 o Change the interface for init_unistr2 to not take a length
989 but a flags field. We were assuming that
990 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
991 o Allow d_printf() to handle strings with escaped quotation
992 marks since the msg file includes the escape character (bug 489).
993 o Fix bad html table row termination in SWAT wizard code (bug 413).
994 o Fix to parse the level-2 strings.
995 o Fix for "valid users = %S" in [homes]. Fix read/write
997 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
998 This is the same way AC_CHECK_LIB works (bug 508).
999 o Testparm output fixes for clarity.
1000 o Fix broken wins hook functionality -- i18n bug (bug 528).
1001 o Take care of condition where DOS and NT error codes must differ.
1002 o Default to using only built-in charsets when a working iconv
1003 implementation cannot be located.
1004 o Wrap internals of sys_setgroups() so the sys_XX() call can
1005 be done unconditionally (bug 550).
1006 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1007 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1008 --enable-debug=[yes|no] works correctly.
1009 o Allow ^C to interrupt smbpasswd if using our getpass
1010 (e.g. smbpasswd command).
1011 o Support signing only on RPC's (bug 167).
1012 o Correct bug that prevented Excel 2000 clients from opening
1013 files marked as read-only.
1014 o Portability fix bugs 546 - 549).
1015 o Explicitly initialize the value of AR for vendor makes that don't
1016 do this (e.g. HPUX 11). (bug 552).
1017 o More i18n fixes for SWAT (bug 413).
1018 o Change the cwd before the postexec script to ensure that a
1019 umount will succeed.
1020 o Correct double free that caused winbindd to crash when a DC
1021 is rebooted (bug 437).
1022 o Fix incorrect mode sum (bug 562).
1023 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1024 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1025 o Add script to generate *msg files.
1026 o Add Dutch SWAT translation file.
1027 o Make sure to call get_user_groups() with the full winbindd
1028 name for a user if he/she has one (bug 406).
1029 o Fix up error code returns from Samba4 tester. Ensure invalid
1030 paths are validated the same way.
1031 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1032 o Refuse to configure if --with-expsam=$BACKEND was used but no
1033 libraries were found for $BACKEND.
1034 o Move sysquotas autoconf tests to a separate file.
1035 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1037 o Make sure that the files that contain the static_init_$subsystem;
1038 macro get recompiled after configure by removing the object
1040 o Ensure canceling a blocking lock returns the correct error
1042 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1043 o Updated Japanese welcome file in SWAT.
1044 o Fix to nt-time <-> unix-time functions reversible.
1045 o Ensure that winbindd uses the the escaped DN when querying
1047 o Fix portability issues when compiling (bug 505, 550)
1048 o Compile fix for tdbbackup when Samba needs to override
1049 non-C99 compliant implementations of snprintf().
1050 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1051 o Make sure we break out of samsync loop on error.
1052 o Ensure error code path doesn't free unmalloc()'d memory
1054 o Add configure test for krb5_keytab_entry keyblock vs key
1057 o Modified testparm so that all output so all debug output goes
1058 to stderr, and all file processing goes to stdout.
1059 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1061 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1062 we have a devmode before copying a string to the devicename.
1063 o Support mapping REALM.COM\user to a local user account (without
1064 running winbindd) for compatibility with 2.2.x release.
1065 o Ensure we don't use mmap() on blacklisted systems.
1066 o fixed a number of bugs and memory leaks in the AIX
1068 o Call initgroups() in SWAT before becomming the user so that
1069 secondary group permissions can be used when writing to
1071 o Fix signing problems when reverse connecting back to a
1072 client for printer notify
1073 o Fix signing problems caused by a miss-sequence bug.
1074 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1075 Fixes NEXUS tools running on Win9x clients (bug 64).
1076 o Don't leave the domain field uninitialized in cli_lsa.c if some
1077 SID could not be mapped.
1078 o Fix segfault in mount.cifs helper when there is no options
1079 specified during mount.
1080 o Change the \n after the password prompt to go to tty instead
1081 of stdout (bug 668).
1082 o Stop net -P from prompting for machine account password (bug 451).
1083 o Change in behavior to Not only change the effective uid but also
1084 the real uid when becoming unprivileged.
1085 o Cope with Exchange 5.5 cleartext pop password auth.
1086 o New files for support of initshutdown pipe. Win2k doesn't
1087 respond properly to all requests on the winreg pipe, so we need
1088 to handle this new pipe (bug 534).
1089 o Added more va_copy() checks in configure.in.
1090 o Include fixes for libsmbclient build problems.
1091 o Missing UNIX -> DOS codepage conversion in lanman.c.
1092 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1093 o Parameterize the listen backlog in smbd and make it larger by
1094 default. A backlog of 5 is way too small these days.
1095 o Check for an invalid fid before dereferencing the fsp pointer
1097 o Remove invalid memory frees and return codes in pdb_ldap.c.
1098 o Prompt for password when invoking --set-auth-user and no
1100 o Bind the nmbd sending socket to the 'socket address'.
1101 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1102 $LDFLAGS occurs before any library specification (bug 661).
1103 o Fix large number of printf() calls for 64-bit size_t.
1104 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1105 keyblock in the krb5 structs.
1106 o Remove #include <compat.h> in hopes to avoid problems with
1107 apache header files.
1108 o Correct winbindd build problems on HP-UX 11.
1109 o Lowercase netgroups lookups (bug 703).
1110 o Use the actual size of the buffer in strftime instead of a made
1111 up value which just happens to be less than sizeof(fstring).
1113 o Add ldaplibs to pdbedit link line (bug 651).
1114 o Fix crash bug in smbclient completion (bug 659).
1115 o Fix packet length for browse list reply (bug 771).
1116 o Fix coredump in cli_get_backup_list().
1117 o Make sure that we expand %N (bug 612).
1118 o Allow rpcclient adddriver command to specify printer driver
1120 o Compile tdbdump by default.
1121 o Apply patches to fix iconv detection for FreeBSD.
1122 o Do not allow the 'guest account' to be added to a passdb backend
1123 using smbpasswd or pdbedit (bug 624).
1124 o Save LDFLAGS during iconv detection (bug 57).
1125 o Run krb5 logins through the username map if the winbindd
1126 lookup fails (bug 698).
1127 o Add const for lp_set_name_resolve_order() to avoid compiler
1129 o Add support for the %i macro in smb.conf to stand in for the for
1130 the local IP address to which a client connected.
1131 o Allow winbindd to match local accounts to domain SID when
1132 'winbind trusted domains only = yes' (bug 680).
1133 o Remove code in idmap_ldap that searches the user suffix and group
1134 suffix. It's not needed and provides inconsistent functionality
1135 from the tdb backend.
1136 o Patch to handle munged dial string for Windows 2000 TSE.
1137 Thanks to Gaz de France, Direction de la Recherche, Service
1138 Informatique Métier for their supporting this work by Aurelien
1139 Degrémont <adegremont@idealx.com>.
1140 o Correct the "smbldap_open: cannot access when not root error"
1141 messages when looking up group information (bug 281).
1142 o Skip over the winbind separator when looking up a user.
1143 This fixes the bug that prevented local users from
1144 matching an AD user when not running winbindd (bug 698).
1145 o Fix a problem with configure on *BSD systems. Make sure
1146 we add -liconv etc to LDFLAGS.
1147 o Fix core dump bug when "security = server" and the authentication
1149 o Correct crash bug due to an empty munged dial string.
1150 o Show files locked by a specific user (smbstatus -u 'user')
1152 o Fix bug preventing print jobs from display in the queue
1153 monitor used by Windows NT and later clients (bug 660).
1154 o Fix several reported problems with point-n-print from
1155 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1156 reply (bug 338, 527 & 643).
1157 o Fix a handful of potential memory leaks in the LDAP code used
1158 by ldapsam[_compat] and the LDAP idmap backend.
1159 o Fix for pdbedit error code returns (bug 763).
1160 o Make sure we only enumerate group mapping entries (not
1161 /etc/group) even when doing local aliases.
1162 o Relax check on the pipe name in a dce/rpc bind response to work
1163 around issues with establishing trusts to a Windows 2003 domain.
1164 o Ensure we mangle names ending in '.' in hash2 mangling method.
1165 o Correct parsing issues with munged dial string.
1166 o Fix bugs in quota support for XFS.
1167 o Add a cleaner method for applications that need to provide
1168 name->SID mappings to do this via NSS rather than having to
1169 know the winbindd pipe protocol.
1170 o Adds a variant of the winbindd_getgroups() call called
1171 winbindd_getusersids() that provides direct SID->SIDs listing of
1172 a users supplementary groups. This is enough to allow non-Samba
1173 applications to do ACL checking.
1174 o Make sure we don't append the 'ldap suffix' when writing out the
1175 'ldap XXX suffix' values in SWAT (bug 328).
1176 o Fix renames across file systems.
1177 o Ensure that items in a list of strings containing whitespace are
1178 written out surrounded by single quotes. This means that both
1179 double and single quotes are now used to surround strings in
1181 o Enable SWAT to correctly determine if winbindd is running (bug
1183 o Include WWW-Authenticate field in 401 response for bad auth
1185 o Add support for NTLM2 (NTLMv2 session security).
1186 o Add support for variable-length session keys.
1187 o More privilege fixes for group enumeration in LDAP (bug 281).
1188 o Use the dns name (or IP) as the originating client name when
1189 using CUPS (bug 467).
1190 o Fix various SMB signing bugs.
1191 o Fix ACL propagation on a DFS root (bug 263).
1192 o Disable NTLM2 for RPC pipes.
1193 o Allow the client to specify the NTLM2 flags got NTLMSSP
1195 o Change the name of the job passed off to cups from "Test Page"
1196 to "smbprn.00000033 Test Page" so that we can get the smb
1197 jobid back. This allow users to delete jobs with cups printing
1198 backend (partial work on bug 770).
1199 o Fix build of winbindd with static pdb modules.
1200 o Retrieve the correct ACL group bits if the file has an ACL
1202 o Implement "net rpc group members": Get members of a domain group
1203 in human-readable format.
1204 o Add MacOSX (Darwin) specific charset module code.
1205 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1206 can include the full name in gecos field (bug 587).
1207 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1208 o Implement 'net rpc group list [global|local|builtin]*' for a
1209 select listing of the respective user databases.
1210 o Don't automatically set NT status code flag unless client tells
1212 o Add 'net status [sessions|shares] [parseable]'.
1213 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1215 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1217 o Fix inverted logic in hosts allow/deny checks caused by
1218 s/strcmp/strequal/ (bug 846).
1219 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1220 o Fix typo in 'hash' mangling algorithm.
1221 o Support munged dial for ldapsam (bug 800).
1222 o Fix process_incoming_data() to return the number of bytes handled
1223 this call whether we have a complete PDU or not; fixes bug
1224 with multiple PDU request rpc's broken over SMBwriteX calls
1226 o Fix incorrect smb flags2 for connections to pre-NT servers
1227 (causes smbclient to fail to OS2 for example) (bug 821).
1228 o Update version string in smbldap-tools Makefile to 0.8.2.
1229 o Correct a problem with "net rpc vampire" mis-parsing the
1230 alias member info reply.
1231 o Ensure the ${libdir} is created by the installclientlib script.
1232 o Fix detection of Windows 2003 client architecture in the smb.conf
1234 o Ensure that smbd calls the add user script for a missing UNIX
1235 user on kerberos auth call (bug 445).
1236 o Fix bugs in hosts allow/deny when using a mismatched
1237 network/netmask pair.
1238 o Protect alloc_sub_basic() from crashing when the source string
1239 is NULL (partial work on bug 687).
1240 o Fix spinlocks on IRIX.
1241 o Corrected some bad destination paths when running "configure
1243 o Add packaging files for Fedora Core 1.
1244 o Correct bug in SWAT install script for non-english languages.
1245 o Support character set ISO-8859-1 internally (bug 558).
1246 o Fixed more LDAP access errors when looking up group mappings
1248 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1249 resolution to fail on local files on on domain members
1251 o Fix uninitialized variable in passdb.c.
1252 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1253 o Fix problem mounting directories when mount.cifs is installed
1254 with the setuid bit on.
1255 o Fix bug that prevent --mandir from overriding the defaults
1256 given in the --with-fhs macro.
1257 o Fix bug in in-memory Kerberos keytab detection routines
1262 ######################################################################
1264 The original 3.0.0 release notes follow
1265 =======================================
1266 WHATS NEW IN Samba 3.0.0
1268 =======================================
1274 1) Active Directory support. Samba 3.0 is now able to
1275 join a ADS realm as a member server and authenticate
1276 users using LDAP/Kerberos.
1278 2) Unicode support. Samba will now negotiate UNICODE on the wire
1279 and internally there is now a much better infrastructure for
1280 multi-byte and UNICODE character sets.
1282 3) New authentication system. The internal authentication system
1283 has been almost completely rewritten. Most of the changes are
1284 internal, but the new auth system is also very configurable.
1286 4) New default filename mangling system.
1288 5) A new "net" command has been added. It is somewhat similar to
1289 the "net" command in windows. Eventually we plan to replace
1290 numerous other utilities (such as smbpasswd) with subcommands
1293 6) Samba now negotiates NT-style status32 codes on the wire. This
1294 improves error handling a lot.
1296 7) Better Windows 2000/XP/2003 printing support including publishing
1297 printer attributes in active directory.
1299 8) New loadable module support for passdb backends and character
1302 9) New default dual-daemon winbindd support for better performance.
1304 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1305 domain and maintaining user, group and domain SIDs.
1307 11) Support for establishing trust relationships with Windows NT 4.0
1310 12) Initial support for a distributed Winbind architecture using
1311 an LDAP directory for storing SID to uid/gid mappings.
1313 13) Major updates to the Samba documentation tree.
1315 14) Full support for client and server SMB signing to ensure
1316 compatibility with default Windows 2003 security settings.
1318 15) Improvement of ACL mapping features based on code donated by
1319 Andreas Grünbacher.
1322 Plus lots of other improvements!
1325 Additional Documentation
1326 ------------------------
1328 Please refer to Samba documentation tree (included in the docs/
1329 subdirectory) for extensive explanations of installing, configuring
1330 and maintaining Samba 3.0 servers and clients. It is advised to
1331 begin with the Samba-HOWTO-Collection for overviews and specific
1332 tasks (the current book is up to approximately 400 pages) and to
1333 refer to the various man pages for information on individual options.
1335 We are very glad to be able to include the second edition of
1336 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1337 (O'Reilly & Associates) in this release. The book is available
1338 on-line at http://samba.org/samba/docs/ and is included with
1339 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1340 publisher for making "Using Samba" under the GNU Free Documentation
1344 ######################################################################
1345 Upgrading from a previous Samba 3.0 beta
1346 ########################################
1348 Beginning with Samba 3.0.0beta3, the RID allocation functions
1349 have been moved into winbindd. Previously these were handled
1350 by each passdb backend. This means that winbindd must be running
1351 to automatically allocate RIDs for users and/or groups. Otherwise,
1352 smbd will use the 2.2 algorithm for generating new RIDs.
1354 If you are using 'passdb backend = tdbsam' with a previous Samba
1355 3.0 beta release (or possibly alpha), it may be necessary to
1356 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1357 to winbindd_idmap.tdb. To do this:
1359 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
1361 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
1363 3) run: (note that 'tdb>' is the tool's prompt for input)
1365 root# ./tdbtool /usr/local/samba/private/passdb.tdb
1366 tdb> show RID_COUNTER
1370 [000] 0A 52 00 00 .R.
1372 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1376 If you are using 'passdb backend = ldapsam', it will be necessary to
1377 store idmap entries in the LDAP directory as well (i.e. idmap backend
1378 = ldap). Refer to the 'net idmap' command for more information on
1379 migrating SID<->UNIX id mappings from one backend to another.
1381 If the RID_COUNTER record does not exist, then these instructions are
1382 unneccessary and the new RID_COUNTER record will be correctly generated
1387 ########################
1388 Upgrading from Samba 2.2
1389 ########################
1391 This section is provided to help administrators understand the details
1392 involved with upgrading a Samba 2.2 server to Samba 3.0.
1398 Many of the options to the GNU autoconf script have been modified
1399 in the 3.0 release. The most noticeable are:
1401 * removal of --with-tdbsam (is now included by default; see section
1402 on passdb backends and authentication for more details)
1404 * --with-ldapsam is now on used to provided backward compatible
1405 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
1406 backend and authentication section for more details
1408 * inclusion of non-standard passdb modules may be enabled using
1409 --with-expsam. This includes an XML backend and a mysql backend.
1411 * removal of --with-msdfs (is now enabled by default)
1413 * removal of --with-ssl (no longer supported)
1415 * --with-utmp now defaults to 'yes' on supported systems
1417 * --with-sendfile-support is now enabled by default on supported
1424 This section contains a brief listing of changes to smb.conf options
1425 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
1426 complete descriptions of new or modified parameters.
1428 Removed Parameters (order alphabetically):
1431 * alternate permissions
1434 * code page directory
1436 * domain admin group
1437 * domain guest group
1438 * force unknown acl user
1444 * printer driver file
1445 * printer driver location
1447 * source environment
1455 New Parameters (new parameters have been grouped by function):
1459 * abort shutdown script
1462 User and Group Account Management
1463 ---------------------------------
1465 * add machine script
1466 * add user to group script
1467 * algorithmic rid base
1468 * delete group script
1469 * delete user from group script
1471 * set primary group script
1477 * passwd chat timeout
1481 * client lanman auth
1482 * client NTLMv2 auth
1488 * paranoid server security
1497 * hide special files
1498 * hide unwriteable files
1500 * kernel change notify
1510 * max reported print jobs
1512 UNICODE and Character Sets
1513 --------------------------
1519 SID to uid/gid Mappings
1520 -----------------------
1524 * winbind enable local accounts
1525 * winbind trusted domains only
1526 * template primary group
1527 * enable rid algorithm
1534 * ldap machine suffix
1536 * ldap replication sleep
1539 General Configuration
1540 ---------------------
1544 Modified Parameters (changes in behavior):
1546 * encrypt passwords (enabled by default)
1547 * mangling method (set to 'hash2' by default)
1550 * restrict anonymous (integer value)
1551 * security (new 'ads' value)
1552 * strict locking (enabled by default)
1553 * unix extensions (enabled by default)
1554 * winbind cache time (increased to 5 minutes)
1555 * winbind uid (deprecated in favor of 'idmap uid')
1556 * winbind gid (deprecated in favor of 'idmap gid')
1562 This section contains brief descriptions of any new databases
1563 introduced in Samba 3.0. Please remember to backup your existing
1564 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
1565 upgrade databases as they are opened (if necessary), but downgrading
1566 from 3.0 to 2.2 is an unsupported path.
1568 Name Description Backup?
1569 ---- ----------- -------
1570 account_policy User policy settings yes
1571 gencache Generic caching db no
1572 group_mapping Mapping table from Windows yes
1573 groups/SID to unix groups
1574 winbindd_idmap ID map table from SIDS to UNIX yes
1576 namecache Name resolution cache entries no
1577 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1578 returned as part of a successful
1579 net_sam_logon request
1580 printing/*.tdb Cached output from 'lpq no
1581 command' created on a per print
1583 registry Read-only samba registry skeleton no
1584 that provides support for exporting
1585 various db tables via the winreg RPCs
1591 The following issues are known changes in behavior between Samba 2.2 and
1592 Samba 3.0 that may affect certain installations of Samba.
1594 1) When operating as a member of a Windows domain, Samba 2.2 would
1595 map any users authenticated by the remote DC to the 'guest account'
1596 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1597 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1598 current work around to re-establish the 2.2 behavior.
1600 2) When adding machines to a Samba 2.2 controlled domain, the
1601 'add user script' was used to create the UNIX identity of the
1602 machine trust account. Samba 3.0 introduces a new 'add machine
1603 script' that must be specified for this purpose. Samba 3.0 will
1604 not fall back to using the 'add user script' in the absence of
1605 an 'add machine script'
1608 ######################################################################
1609 Passdb Backends and Authentication
1610 ##################################
1612 There have been a few new changes that Samba administrators should be
1613 aware of when moving to Samba 3.0.
1615 1) encrypted passwords have been enabled by default in order to
1616 inter-operate better with out-of-the-box Windows client
1617 installations. This does mean that either (a) a samba account
1618 must be created for each user, or (b) 'encrypt passwords = no'
1619 must be explicitly defined in smb.conf.
1621 2) Inclusion of new 'security = ads' option for integration
1622 with an Active Directory domain using the native Windows
1623 Kerberos 5 and LDAP protocols.
1625 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1626 type which is neccessary for servers on which the
1627 administrator password has not been changed, or kerberos-enabled
1628 SMB connections to servers that require Kerberos SMB signing.
1629 Besides this one difference, either MIT or Heimdal Kerberos
1630 distributions are usable by Samba 3.0.
1633 Samba 3.0 also includes the possibility of setting up chains
1634 of authentication methods (auth methods) and account storage
1635 backends (passdb backend). Please refer to the smb.conf(5)
1636 man page for details. While both parameters assume sane default
1637 values, it is likely that you will need to understand what the
1638 values actually mean in order to ensure Samba operates correctly.
1640 The recommended passdb backends at this time are
1642 * smbpasswd - 2.2 compatible flat file format
1643 * tdbsam - attribute rich database intended as an smbpasswd
1644 replacement for stand alone servers
1645 * ldapsam - attribute rich account storage and retrieval
1646 backend utilizing an LDAP directory.
1647 * ldapsam_compat - a 2.2 backward compatible LDAP account
1650 Certain functions of the smbpasswd(8) tool have been split between the
1651 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1652 utility. See the respective man pages for details.
1655 ######################################################################
1659 This section outlines the new features affecting Samba / LDAP
1665 A new object class (sambaSamAccount) has been introduced to replace
1666 the old sambaAccount. This change aids us in the renaming of
1667 attributes to prevent clashes with attributes from other vendors.
1668 There is a conversion script (examples/LDAP/convertSambaAccount) to
1669 modify and LDIF file to the new schema.
1673 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1674 $ convertSambaAccount --sid=<Domain SID> \
1675 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1676 --changetype=[modify|add]
1678 The <DOM SID> can be obtained by running 'net getlocalsid
1679 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
1680 the format of the generated LDIF output--either create new entries
1681 or modify existing entries.
1683 The old sambaAccount schema may still be used by specifying the
1684 "ldapsam_compat" passdb backend. However, the sambaAccount and
1685 associated attributes have been moved to the historical section of
1686 the schema file and must be uncommented before use if needed.
1687 The 2.2 object class declaration for a sambaAccount has not changed
1688 in the 3.0 samba.schema file.
1690 Other new object classes and their uses include:
1692 * sambaDomain - domain information used to allocate rids
1693 for users and groups as necessary. The attributes are added
1694 in 'ldap suffix' directory entry automatically if
1695 an idmap uid/gid range has been set and the 'ldapsam'
1696 passdb backend has been selected.
1698 * sambaGroupMapping - an object representing the
1699 relationship between a posixGroup and a Windows
1700 group/SID. These entries are stored in the 'ldap
1701 group suffix' and managed by the 'net groupmap' command.
1703 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1704 automatically and contains the next available 'idmap uid' and
1707 * sambaIdmapEntry - object storing a mapping between a
1708 SID and a UNIX uid/gid. These objects are created by the
1709 idmap_ldap module as needed.
1711 * sambaSidEntry - object representing a SID alone, as a Structural
1712 class on which to build the sambaIdmapEntry.
1715 New Suffix for Searching
1716 ------------------------
1718 The following new smb.conf parameters have been added to aid in directing
1719 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1722 * ldap suffix - used to search for user and computer accounts
1723 * ldap user suffix - used to store user accounts
1724 * ldap machine suffix - used to store machine trust accounts
1725 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1726 * ldap idmap suffix - location of sambaIdmapEntry objects
1728 If an 'ldap suffix' is defined, it will be appended to all of the
1729 remaining sub-suffix parameters. In this case, the order of the suffix
1730 listings in smb.conf is important. Always place the 'ldap suffix' first
1733 Due to a limitation in Samba's smb.conf parsing, you should not surround
1734 the DN's with quotation marks.
1740 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1741 following options would inform Samba that the idmap table should be
1742 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1747 idmap backend = ldap:ldap://onterose/
1748 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1749 idmap uid = 40000-50000
1750 idmap gid = 40000-50000
1752 This configuration allows winbind installations on multiple servers to
1753 share a uid/gid number space, thus avoiding the interoperability problems
1754 with NFS that were present in Samba 2.2.
1758 ######################################################################
1759 Trust Relationships and a Samba Domain
1760 ######################################
1762 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1763 allocating uids and gids to trusted users and groups. More
1764 information regarding Samba's support for establishing trust
1765 relationships can be found in the Samba-HOWTO-Collection included
1766 in the docs/ directory of this release.
1768 First create your Samba PDC and ensure that everything is
1769 working correctly before moving on the trusts.
1771 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1772 4.0 domain named WINDOWS:
1774 1) create the trust account for SAMBA in "User Manager for Domains"
1775 2) connect the trust from the Samba domain using
1776 'net rpc trustdom establish GLASS'
1778 To create a trustlationship with SAMBA as the trusted domain:
1780 1) create the initial trust account for GLASS using
1781 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1782 account for GLASS$ prior to this step (depending on your
1783 local configuration).
1784 2) connect the trust from a WINDOWS DC using "User Manager
1787 Now join winbindd on the Samba PDC to the SAMBA domain using
1788 the normal steps for adding a Samba server to an NT4 domain:
1789 (note that smbd & nmbd must be running at this point)
1791 root# net rpc join -U root
1792 Password: <enter root password from smbpasswd file here>
1794 Start winbindd and test the join with 'wbinfo -t'.
1796 Now test the trust relationship by connecting to the SAMBA DC
1797 (e.g. POGO) as a user from the WINDOWS domain:
1799 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1802 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1804 $ smbclient //crystal/netlogon -U root -W WINDOWS
1807 ######################################################################
1811 Beginning with Samba3.0.0beta3, winbindd has been given new account
1812 manage functionality equivalent to the 'add user script' family of
1813 smb.conf parameters. The idmap design has also been changed to
1814 centralize control of foreign SID lookups and matching to UNIX
1818 Brief Description of Changes
1819 ----------------------------
1821 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1822 reverted to the 2.2.x design. This means that when resolving a
1823 SID to a UID or similar mapping:
1825 a) First consult winbindd
1826 b) perform a local lookup only if winbindd fails to
1827 return a successful answer
1829 There are some variations to this, but these two rules generally
1832 2) All idmap lookups have been moved into winbindd. This means that
1833 a server must run winbindd (and support NSS) in order to achieve
1834 any mappings of SID to dynamically allocated UNIX ids. This was
1835 a conscious design choice.
1837 3) New functions have been added to winbindd to emulate the 'add user
1838 script' family of smbd functions without requiring that external
1839 scripts be defined. This functionality is controlled by the 'winbind
1840 enable local accounts' smb.conf parameter (enabled by default).
1842 However, this account management functionality is only supported
1843 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1844 must be shared among multiple Samba servers (such as a PDC and BDCs),
1845 it will be necessary to define your own 'add user script', et. al.
1846 programs that place the accounts/groups in some form of directory
1847 such as NIS or LDAP. This requirement was deemed beyond the scope
1848 of winbind's account management functions. Solutions for
1849 distributing UNIX system information have been deployed and tested
1850 for many years. We saw no need to reinvent the wheel.
1852 4) A member of a Samba controlled domain running winbindd is now able
1853 to map domain users directly onto existing UNIX accounts while still
1854 automatically creating accounts for trusted users and groups. This
1855 behavior is controlled by the 'winbind trusted domains only' smb.conf
1856 parameter (disabled by default to provide 2.2.x winbind behavior).
1858 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1859 in smbd/uid.c. The reason that group mappings are not included
1860 in winbindd is because the purpose of Samba's group map is to
1861 match any Windows SID with an existing UNIX group. These UNIX
1862 groups can be created by winbindd (see next section), but the
1863 SID<->gid mapping is retreived by smbd, not winbindd.
1869 * security = server running winbindd to allocate accounts on demand
1871 * Samba PDC running winbindd to handle the automatic creation of UNIX
1872 identities for machine trust accounts
1874 * Automtically creating UNIX user and groups when migrating a Windows NT
1875 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1876 'net rpc vampire' for this to work.
1879 ######################################################################
1883 * There are several bugs currently logged against the 3.0 codebase
1884 that affect the use of NT 4.0 GUI domain management tools when run
1885 against a Samba 3.0 PDC. This bugs should be released in an early
1888 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1889 filed against the Samba 3.0 codebase.
1892 ######################################################################
1893 Reporting bugs & Development Discussion
1894 #######################################
1896 Please discuss this release on the samba-technical mailing list or by
1897 joining the #samba-technical IRC channel on irc.freenode.net.
1899 If you do report problems then please try to send high quality
1900 feedback. If you don't provide vital information to help us track down
1901 the problem then you will probably be ignored.
1903 A new bugzilla installation has been established to help support the
1904 Samba 3.0 community of users. This server, located at
1905 https://bugzilla.samba.org/, has replaced the older jitterbug server
1906 previously located at http://bugs.samba.org/.