1 =================================
2 Release Notes for Samba 3.0.3pre3
4 =================================
6 This is a preview release of the Samba 3.0.3 code base and is
7 provided for testing only. This release is *not* intended for
8 production servers. Use at your own risk.
10 There have been several bug fixes since the 3.0.2a release that
11 we feel are important to make available to the Samba community
12 for wider testings. See the "Changes" section for details on
15 Common bugs fixed in this preview release include:
20 ######################################################################
24 Changes since 3.0.3pre1
25 -----------------------
31 winbind nested groups New
37 o Jeremy Allison <jra@samba.org>
40 o Andrew Bartlet <abartlet@samba.org>
43 o Gerald Carter <jerry@samba.org>
44 * Ensure server schannel uses the auth level requested by the
48 o Steve French <sfrench@us.ibm.com>
51 o Krischan Jodies <kj@sernet.de>
52 * Implement 'net rpc group delete'
55 o Volker Lendecke <vl@samba.org>
56 * Add support in winbindd for expanding nested local groups.
59 o Jianliang Lu <j.lu@tiesse.com>
62 o Jim McDonough <jmcd@us.ibm.com>
65 o Andrew Tridgell <tridge@samba.org>
66 * Force winbindd to use schannel in clients connections to
71 Changes for older versions follow below:
73 --------------------------------------------------
75 =================================
76 Release Notes for Samba 3.0.3pre2
78 =================================
80 This is a preview release of the Samba 3.0.3 code base and is
81 provided for testing only. This release is *not* intended for
82 production servers. Use at your own risk.
84 There have been several bug fixes since the 3.0.2a release that
85 we feel are important to make available to the Samba community
86 for wider testings. See the "Changes" section for details on
89 Common bugs fixed in this preview release include:
91 o Substitution errors for %[UuGg] in smb.conf.
92 o winbindd crashes when using ADS security mode.
95 New features introduced in this preview release include:
97 o Experimental support for storing DOS attribute on files
98 and folders in Extended Attributes.
101 Changes since 3.0.3pre1
102 -----------------------
106 Parameter Name Action
107 -------------- ------
110 store dos attributes New
116 o Jeremy Allison <jra@samba.org>
117 * BUG 1064: Ensure truncate attribute checking is done correctly
118 on "hidden" dot files.
119 * Fix bug in anonymous dfs self-referrals again.
120 * Fix get/set of EA's in client library
121 * Added support for OS/2 EA's in smbd server.
122 * Added 'ea support' parameter to smb.conf.
123 * Added 'store dos attributes' parameter to smb.conf.
124 * Fix wildcard identical rename.
125 * Fix reply_ctemp - make compatible with w2k3.
126 * Fix wildcard unlink.
127 * Fix wildcard src with wildcard dest renames.
130 o Andrew Bartlet <abartlet@samba.org>
131 * Remove 'unicode' smb.conf option.
132 * BUG 1138: Fix support for 'optional' SMB signing and other
134 * BUG 169: Fix NTLMv2-only behavior.
137 o Timur Bakeyev <timur@com.bat.ru>
138 * BUG 1152: Allow python modules to build despite libraries added
139 to LDFLAGS instead of LDPATH.
142 o Gerald Carter <jerry@samba.org>
143 * BUG 417, 1128: Ensure that the current_user_info is set
144 consistently so that %[UuGg] is expanded correctly.
145 * BUG 1195: Fix crash in winbindd when the ADS server is
147 * BUG 1185: Set reconnect time to be the same as the
148 'winbind cache time'.
149 * Ensure that we return the sec_desc in smb_io_printer_info_2.
150 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
151 * BUG 1095: Honor the '-l' option in smbclient.
152 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
156 o Steve French <sfrench@us.ibm.com>
157 * Fix credential file mounting for cifs vfs.
160 o Richard Garnish <rabies@meep.org>
161 * Correct blocking condition in smbd's use of accept() on IRIX.
164 o Volker Lendecke <vl@samba.org>
165 * Implement wbinfo -k: Have winbind generate an AFS token after
166 authenticating the user.
167 * Add expand_msdfs VFS module for providing referrals based on the
168 the client's IP address.
169 * Implement client side NETLOGON GetDCName function.
170 * Fix caching of name->sid lookups.
173 o Jianliang Lu <j.lu@tiesse.com>
177 o Jim McDonough <jmcd@us.ibm.com>
178 * BUG 1208 (partial): Improvements for working with expired krb5
180 * Use timegm, or our already existing replacement instead of
181 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
184 o Andrew Tridgell <tridge@samba.org>
185 * Change tdb license to LGPL (see source/tdb/tdb.c).
188 --------------------------------------------------
190 =================================
191 Release Notes for Samba 3.0.3pre1
193 =================================
196 Common bugs fixed in this preview release include:
198 o Crash bugs and change notify issues in Samba's
200 o Honoring secondary group membership on domain
202 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST
205 New features introduced in this preview release include:
207 o Improved support for i18n character sets.
208 o Support for account lockout policy based on
209 bad password attempts.
210 o Improved support for long password changes (>14
211 characters) and strong password enforcement.
212 o Continued work on support Windows aliases (i.e.
221 Parameter Name Action
222 -------------- ------
227 Please refer to the CVS log for the SAMBA_3_0 branch for complete
228 details. The list of changes per contributor are as follows:
234 o Jeremy Allison <jra@samba.org>
235 * Ensure that Kerberos mutex is always properly unlocked.
236 * Removed Heimdal "in-memory keytab" support.
237 * Fixup the 'multiple-vuids' bugs in our server code.
238 * Correct return code from lsa_lookup_sids() on unmapped
239 sids (based on work by vl@samba.org).
240 * Fix the "too many fcntl locks" scalability problem
242 * Fixup correct (as per W2K3) returns for lookupsids
243 as well as lookupnames.
244 * Fixups for delete-on-close semantics as per Win2k3 behavior.
245 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
246 * Fix "unable to initialize" bug when smbd hasn't been run with
247 new system and a user is being added via pdbedit/smbpasswd.
248 * Added NTrename SMB (0xA5).
249 * Fixup correct timeout values for blocking lock timeouts.
250 * Fix various bugs reported by 'gentest'.
251 * More locking fixes in the case where we own the lock.
252 * Fix up regression in IS_NAME_VALID and renames.
253 * Don't set allocation size on directories.
254 * Return correct error code on fail if file exists and target
256 * Added client "hardlink" comment to test doing NT rename with
257 hard links. Added hardlink_internals() code - UNIX extensions
258 now use this as well.
259 * Use a common function to parse all pathnames from the wire for
260 much closer emulation of Win2k3 error return codes.
261 * Implement check_path_syntax() and rewrite string sub
262 functions for better multibyte support.
263 * Ensure msdfs referrals are multibyte safe.
264 * Allow msdfs symlink syntax to be more forgiving.
265 eg. sym_link -> msdfs://server/share/path/in/share
266 or sym_link -> msdfs:\\server\share\path\in\share.
267 * Cleanup multibyte netbios name support in nmbd ( based on patch
268 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
269 * Fix check_path_syntax() for multibyte encodings which have
270 no '\' as second byte (based on work by ab@samba.org.
271 * Fix the "dfs self-referrals as anonymous user" problem
272 (based on patch from vl@samba.org).
275 o Timur Bakeyev <timur@com.bat.ru>
276 * BUG 1144: only set --with-fhs when the argument is 'yes'
279 o Craig Barratt <cbarratt@users.sourceforge.net>
280 * BUG 389: Allow multiple exclude arguments with smbclient
281 tar -Xr options (better support for Amanda backup client).
284 o Andrew Bartlet <abartlet@samba.org>
285 * Include support for linking with cracklib for enforcing strong
287 * Add support for >14 character password changes from Windows
289 * Add 'admin set password' capability to 'net rpc'.
290 * Allow 'net rpc samdump' to work with any joined domain
291 regardless of smb.conf settings.
292 * Use an allocated buffer for count_chars.
293 * Add sanity checks for changes in the domain SID in an
295 * Implement python unit tests for Samba's multibyte string
299 o Alexander Bokovoy <ab@samba.org>
300 * Fix incorrect size calculation of the directory name
302 * Fix problems with very long filenames in both smbd and smbclient
303 caused by truncating paths during character conversions.
306 o Gerald (Jerry) Carter <jerry@samba.org>
307 * BUG 850: Fix 'make installmodules' bug on True64.
308 * BUG 66: mark 'only user' deprecated.
309 * Remove corrupt tdb and shutdown (only for printing tdbs,
310 connections, sessionid & locking).
311 * decrement smbd counter in connections.tdb in smb_panic().
312 * RedHat specfile updates.
313 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
314 * BUG 1147; bad pointer case in get_stored_queue_info()
316 * BUG 761: read the config file before initialized default
317 values for printing options; don't default to bsd printing
319 * Allow the 'printing' parameter to be set on a per share basis.
320 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
321 * BUG 848: don't create winbind local users/groups that already
323 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
325 * BUG 488: fix the 'show client in col 1' button and correctly
326 enumerate active connections.
327 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
328 problem when storing the updating pid for the lpq cache.
329 * BUG 1007 (partial): Fix print change notify bugs.
330 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
331 and winbind use default domain = yes. Also ensures that
332 * BUG 1151: Ensure that winbindd users are passed through
334 * Fix client rpc binds for ASU derived servers (pc netlink,
338 o Robert Dahlem <Robert.Dahlem@gmx.net>
339 * BUG 1048: Don't return short names when when 'mangled names = no'
342 o Guenther Deschner <gd@suse.com>
343 * Remove hard coded attribute name in the ads ranged retrieval
345 * Add --with-libdir and --with-mandir to autoconf script.
348 o Bostjan Golob <golob@gimb.org>
349 * BUG 1046: Fix getpwent_list() so that the username is not
350 overwritten by other fields.
353 o Steve French <sfrench@us.ibm.com>
354 * Update mount.cifs to version 1.1.
355 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
356 * Fixes to minor security bug in the mount helper.
359 o SATOH Fumiyasu <fumiya@miraclelinux.com>
360 * BUG 1055; formatting fixes for 'net share'.
361 * BUG 692: correct truncation of share names and workgroup
363 * BUG 1088: use strchr_m() for query_host (smbclient -L).
364 * Patch from to internally count characters correctly.
367 o Chris Hertel <crh@samba.org>
368 * fix enumeration of shares 12 characters in length via
371 o Ulrich Holeschak <ulrich@holeschak.de>
372 * BUG 932: fix local password change using pam_smbpass
375 o John Klinger <john.klinger@lmco.com>
376 * Return NSS_SUCCESS once the max number of gids possible
377 has been found in initgroups() on Solaris.
378 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
381 o Volker Lendecke <vl@samba.org>
382 * Fix success message for net groupmap modify.
383 * Fix errors when enumerating members of groups in 'net rpc'.
384 * Match Windows behavior in samr_lookup_names() by returning
385 ALIAS(4) when you search in BUILTIN.
386 * Fix server SAMR code to be able to set alias info for
388 * Fix duplication of logic when creating groups via smbd.
389 * Ensure that the HWM values are set correctly after running
391 * Add 'net rpc group add'.
392 * Implement 'net groupmap set' and 'net groupmap cleanup'.
393 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
394 * Fix wb_delgrpmem (wbinfo -o).
395 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
396 * Fix sambaUserWorkstations on a Samba DC.
399 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
400 * Bug fixes and enhancements to libsmbclient library.
403 o Herb Lewis <herb@samba.org>
404 * Fix typo for tag in proto file.
405 * Add missing #ifdef HAVE_BICONV stuff.
406 * Truncate Samba's netbios name at the first '.' (not
410 o Jianliang Lu <j.lu@tiesse.com>
411 * Enforce the 'user must change password at next login' flag.
412 * Decode meaning of 'fields present' flags (improves support
416 o L. Lucius <ib@digicron.com>.
420 o Jim McDonough <jmcd@us.ibm.com>
421 * Add versioning support to tdbsam.
422 * Update the IBM Directory Server schema with the OpenLDAP
424 * Various decoding fixes to improve usrmgr.exe support.
425 * Fix statfs redeclaration of statfs struct on ppc
426 * Implement support for password lockout of Samba domain
427 controllers and standalone servers.
428 * Get MungedDial attribute actually working with full TS
429 strings in it for pdb_ldap.
432 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
433 o BUG 979 -- Fix quota display on AIX.
436 o James Peach <jpeach@sgi.com>
437 * Correct check for printf() format when using the SGI MIPSPro
439 * BUG 1038: support backtrace for 'panic action' on IRIX.
440 * BUG 768: Accept profileing arg to IRIX init script.
441 * BUG 748: Relax arg parsing to sambalp script (IRIX).
442 * BUG 758: Fix pdma build.
445 o Tim Potter <tpot@samba.org>
446 * Fix logic bug in tdb non-blocking lock routines when
448 * BUG 1025: Include sys/acl.h in check for broken nisplus
450 * BUG 1066: s/printf/d_printf/g in SWAT.
451 * BUG 1098: rename internal msleep() function to fix build
453 * BUG 1112: Fix for writable printerdata problem in python bindings.
454 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
455 * BUG 1155: enclose use of fchown() with guards.
458 o Simo Source <idra@samba.org>
459 * Replace unknown_3 with fields_present in SAMR code.
460 * More length checks in strlcat().
463 o Richard Sharpe <rsharpe@samba.org>
464 * Add support to smbclient for multiple logins on the same
465 session (based on work by abartlet@samba.org).
468 o Andrew Tridgell <tridge@samba.org>
469 * Rewrote the AIX UESS backend for winbindd.
470 * Fixed compilation with --enable-dmalloc.
473 o Jelmer Vernooij <jelmer@samba.org>
474 * Fix ETA Calculation when resuming downloads in smbget.
475 * Add -O (for writing downloaded files to standard out)
476 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
479 o TAKEDA yasuma <yasuma@miraclelinux.com>
480 * BUG 900: fix token processing in cmd_symlink, cmd_link,
481 cmd_chown, cmd_chmod smbclient functions.
484 o Shiro Yamada <shiro@miraclelinux.com>
485 * BUG 1129: install image files for SWAT.
488 --------------------------------------------------
490 ==============================
491 Release Notes for Samba 3.0.2a
493 ==============================
495 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
496 to address, in particular, a problem when using pdbedit to
497 sanitize (--force-initialized-passwords) Samba's tdbsam
498 backend. This is the latest stable release of Samba. This
499 is the version that all production Samba servers should be
500 running for all current bug-fixes.
502 ******************* Attention! Achtung! Kree! *********************
504 Beginning with Samba 3.0.2, passwords for accounts with a last
505 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
506 ldapsam, etc...) of zero (0) will be regarded as uninitialized
507 strings. This will cause authentication to fail for such
508 accounts. If you have valid passwords that meet this criteria,
509 you must update the last change time to a non-zero value. If you
510 do not, then 'pdbedit --force-initialized-passwords' will disable
511 these accounts and reset the password hashes to a string of X's.
513 ******************* Attention! Achtung! Kree! *********************
522 Please refer to the CVS log for the SAMBA_3_0 branch for complete
523 details. The list of changes per contributor are as follows:
526 o Jeremy Allison <jra@samba.org>
527 * Added paranoia checks in parsing code.
530 o Andrew Bartlet <abartlet@samba.org>
531 * Ensure that changes to uninitialized passwords in ldapsam
532 are written to the DIT.
535 o Gerald (Jerry) Carter <jerry@samba.org>
536 * Fixed iterator in tdbsam.
537 * Fix bug that disabled accounts with a valid NT password
538 hash, but no LanMan hash.
541 o Steve French <sfrench@us.ibm.com>
542 * Added missing nosetuid and noexec options.
545 o Bostjan Golob <golob@gimb.org>
546 * BUG 1046: Don't overwrite usernames of entries returned
550 o Sebastian Krahmer <krahmer@suse.de>
551 * Fixed potential crash bug in NTLMSSP parsing code.
554 o Tim Potter <tpot@samba.org>
555 * Fixed logic in tdb_brlock error checking.
558 o Urban Widmark <urban@teststation.com>
559 * Set nosuid,nodev flags in smbmnt by default.
562 --------------------------------------------------
564 =============================
565 Release Notes for Samba 3.0.2
567 =============================
569 It has been confirmed that previous versions of Samba 3.0 are
570 susceptible to a password initialization bug that could grant an
571 attacker unauthorized access to a user account created by the
572 mksmbpasswd.sh shell script.
574 The Common Vulnerabilities and Exposures project (cve.mitre.org)
575 has assigned the name CAN-2004-0082 to this issue.
577 Samba administrators not wishing to upgrade to the current
578 version should download the 3.0.2 release, build the pdbedit
581 root# pdbedit-3.0.2 --force-initialized-passwords
583 This will disable all accounts not possessing a valid password
584 (e.g. the password field has been set a string of X's).
586 Samba servers running 3.0.2 are not vulnerable to this bug
587 regardless of whether or not pdbedit has been used to sanitize
590 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
593 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
594 o Logging onto a Samba domain from Windows XP clients.
595 o Problems with the %U and %u smb.conf variables in relation to
596 Windows 9x/ME clients.
597 o Kerberos failures due to an invalid in memory keytab detection
599 o Updates to the ntlm_auth tool.
600 o Fixes for various SMB signing errors.
601 o Better separation of WINS and DNS queries for domain controllers.
602 o Issues with nss_winbind FreeBSD and Solaris.
603 o Several crash bugs in smbd and winbindd.
604 o Output formatting fixes for smbclient for better compatibility
605 with scripts based on the 2.2 version.
614 Parameter Name Action
615 -------------- ------
616 ldap replication sleep New
617 read size removed (unused)
618 source environment removed (unused)
624 Please refer to the CVS log for the SAMBA_3_0 branch for complete
625 details. The list of changes per contributor are as follows:
627 o Jeremy Allison <jra@samba.org>
628 * Revert change that broke Exchange clear text samlogons.
629 * Fix gcc 3.4 warning in MS-DFS code.
630 * Tidy up of NTLMSSP code.
631 * Fixes for SMB signing errors
632 * BUG 815: Workaround NT4 bug to support plaintext
633 password logins and UNICODE.
634 * Fix SMB signing bug when copying large files.
635 * Correct error logic in mkdir_internals() (caused a panic
636 when combined with --enable-developer).
637 * BUG 830: Protect against crashes due to bad character
641 o Petri Asikainen <paca@sci.fi>
642 * BUG 330, 387:Fix single valued attribute updates when
643 working with Novell NDS.
646 o Andrew Bartlet <abartlet@samba.org>
647 * Correctly handle per-pipe NTLMSSP inside a NULL session.
648 * Fix segfault in gencache
649 * Fix early free() of encrypted_session_key.
650 * Change DC lookup routines to more carefully separate
651 DNS names (realms) from NetBIOS domain names.
652 * Add new sid_to_dn() function for internal winbindd use.
653 * Refactor cli_ds_enum_domain_trusts().
654 * BUG 707: Implement range retrieval of ADS attributes (based
655 on work from Volker <vl@samba.org> and Guenther Deschner
657 * Automatically initialize the signing engine if a session key
659 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
660 encoded strings, only form input in SWAT.
661 * Resets the NTLMSSP state for new negotiate packets.
662 * Add 2-byte alignments in net_samlogon() queries to parse
663 odd-length plain text passwords.
664 * Allow Windows groups with no members in winbindd.
665 * Allow normal authentication in the absence of a server
666 generated session key.
667 * More optimizations for looking up UNIX group lists.
668 * Clean up error codes and return values for pam_winbindd
669 and winbindd PAM interface.
670 * Fix string return values in ntlm_auth tool.
671 * Fix segfault when 'security = ads' but no realm is defined.
672 * BUG 722: Allow winbindd to map machine accounts to uids.
673 * More cleanups for winbindd's find_our_domain().
674 * More clearly detect whether a domain controller is an NT4
675 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
676 * Increase separation between DNS queries for hosts and queries
677 for AD domain controllers.
678 * Include additional NT_STATUS to PAM error mappings.
679 * Password initialization fixes.
682 o Justin Baugh <justin.baugh@request.com>
683 * BUG 948: Implement missing functions required for FreeBSD
687 o Alexander Bokovoy <ab@samba.org>
688 * BUG 922: Make sure enable fast path for strlower_m() and
692 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
693 * Fix crash when using 'security = server' and 'encrypt
694 passwords = no' by always initializing the session key.
697 o Dmitry Butskoj <buc@odusz.elektra.ru>
698 * Fix for special files being hidden from admins.
701 o Gerald (Jerry) Carter <jerry@samba.org>
702 * Fix bug in the lanman session key generation. Caused
703 "decode_pw: incorrect password length" error messages.
704 * Save the right case for the located user name in
705 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
706 * BUG 897: Add well known rid for pre win2k compatible access
708 * BUG 887: Correct typo in delete user script example.
709 * Use short lived TALLOC_CTX* for allocating printer objects
710 from the print handle cache.
711 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
712 * Fix several warnings reported by the SUN Forte C compiler.
713 * Fully control DNS queries for AD DC's using 'name resolve order'.
714 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
715 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
716 * BUG 936: fix bind credentials for schannel binds in smbd.
717 * BUG 446: Fix output of smbclient for better compatibility
718 with scripts based on the 2.2 version (including Amanda).
719 * BUG 891, 949: Fedora packaging fixes.
720 * Fix bug that caused rpcclient to incorrectly retrieve
721 the SID for a server (this causing all calls that required
722 this information to fail).
723 * BUG 977: Don't create a homes share for a user if a static
724 share already exists by the same name.
725 * Removed unused smb.conf options.
726 * Password initialization fixes.
727 * Set the disable flag for template accounts created by
729 * Disable any account has no passwords and does not have the
730 ACB_PWNOTREQ bit set.
733 o Guenther Deschner <gd@suse.com>
734 * Install smbwrapper.so should be put into the $(libdir)
736 * Add the capability to specify the new user password
737 for "net ads password" on the command line.
738 * Correctly detect AFS headers on SuSE.
741 o James Flemer <jflemer@uvm.edu>
742 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
743 HAVE_SYS_ATTRIBUTES_H.
746 o Luke Howard <lukeh@PADL.COM>
747 * Fix segfault in session setup reply caused by a early free().
750 o Stoian Ivanov <sdr@bultra.com>
751 * Implement grepable output for smbclient -L.
754 o LaMont Jones <lamont@debian.org>
755 * BUG 225328 (Debian): Correct false failure LFS test that resulted
756 in _GNU_SOURCE not being defined (thus resulting in strndup()
760 o Volker Lendecke <vl@samba.org>
761 * BUG 583: Ensure that user names always contain the short
762 version of the domain name.
763 * Fix our parsing of the LDAP uri.
764 * Don't show the 'afs username map' in the SWAT basic view.
765 * Fix SMB signing issues in relation to failed NTLMSSP logins.
766 * BUG 924: Fix return codes in smbtorture harness.
767 * Always lower-case usernames before handing it to AFS code.
768 * Add a German translation for SWAT.
769 * Fix a segfaults in winbindd.
770 * Fix the user's domain passed to register_vuid() from
771 reply_spnego_kerberos().
772 * Add NSS example code in nss_winbind to convert UNIX
773 id's <-> Windows SIDs.
774 * Display more descriptive error messages for login via 'net'.
775 * Fix compiler warning in the net tool.
776 * Fix length bug when decoding base64 strings.
777 * Ensure we don't call getpwnam() inside a loop that is iterating
778 over users with getpwent(). This broke on glibc 2.3.2.
781 o Herb Lewis <herb@samba.org>
782 * Fix bit rot in psec.
785 o Jianliang Lu <j.lu@tiesse.com>
786 * Ensure we delete the group mapping before calling the delete
788 * Define well known RID for managing the "Power Users" group.
789 * BUG 381: check builtin (not local) group SID when updating
791 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
795 o John Klinger <john.klinger@lmco.com>
796 * Implement initgroups() call in nss_winbind on Solaris.
799 o Jim McDonough <jmcd@us.ibm.com>
800 * Fix regression in net rpc join caused by recent changes
801 to cli_lsa_query_info_policy().
802 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
806 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
807 * BUG 570: Ensure that configure honors the LDFLAGS variable.
810 o Stefan Metzmacher <metze@samba.org>
811 * Implement LDAP rebind sleep patch.
812 * Revert to 2.2 quota code because of so many broken quota files
814 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
815 XFS_USER_QUOTA -> USRQUOTA
816 XFS_GROUP_QUOTA -> GRPQUOTA
817 * Fix disk_free calculation with group quotas.
818 * Add debug class 'quota' and a lot of DEBUG()'s
820 * Fix sys_chown() when no chown() is present.
821 * Add SIGABRT to fault handling in order to catch got a
822 backtrace if an error occurs the OpenLDAP client libs.
826 * Allow an existing LDAP machine account to be re-used when
827 joining an AD domain.
830 o James Peach <jpeach@sgi.com>
831 * BUG 889: Change smbd to use pread/pwrite on platforms that
832 support these calls. Can lead to a significant speed increase.
835 o Tim Potter <tpot@samba.org>
836 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
837 * BUG 924: Fix typo in RW2 torture test.
840 o Richard Sharpe <shape@samba.org>
841 * Small fixes to torture.c to cleanup the error handling
845 o J. Tournier <jerome.tournier@IDEALX.com>
846 * Small fixes for the smbldap-tool scripts.
849 o Andrew Tridgell <tridge@samba.org>
850 * Fix src len check in pull_usc2().
853 o Jelmer Vernooij <jelmer@samba.org>
854 * Put functions for generating SQL queries in pdb_sql.c
855 * Add pgSQL backend (based on patch by Hamish Friedlander)
856 * BUG 908: Fix -s option to smbcontrol.
857 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
858 * Fix for libnss_wins on IRIX platforms.
859 * Fix swatdir for --with-fhs.
862 --------------------------------------------------
864 =============================
865 Release Notes for Samba 3.0.1
867 =============================
869 Some of the more common bugs in 3.0.0 addressed in the release
872 o Substitution problems with smb.conf variables.
873 o Errors in return codes which caused some applications
874 to fail to open files.
875 o General Protection Faults on Windows 2000/XP clients
876 using Samba point-n-print features.
877 o Several miscellaneous crash bugs.
878 o Access problems when enumerating group mappings are
879 stored in an LDAP Directory.
880 o Several common SWAT bugs when writing changes to
882 o Internal inconsistencies when 'winbind use default
888 ----------------------
890 Parameter Name Action
891 -------------- ------
892 hide local users Removed
893 mangled map Deprecated
894 mangled stack Removed
895 passwd chat timeout New
901 o Change the interface for init_unistr2 to not take a length
902 but a flags field. We were assuming that
903 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
904 o Allow d_printf() to handle strings with escaped quotation
905 marks since the msg file includes the escape character (bug 489).
906 o Fix bad html table row termination in SWAT wizard code (bug 413).
907 o Fix to parse the level-2 strings.
908 o Fix for "valid users = %S" in [homes]. Fix read/write
910 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
911 This is the same way AC_CHECK_LIB works (bug 508).
912 o Testparm output fixes for clarity.
913 o Fix broken wins hook functionality -- i18n bug (bug 528).
914 o Take care of condition where DOS and NT error codes must differ.
915 o Default to using only built-in charsets when a working iconv
916 implementation cannot be located.
917 o Wrap internals of sys_setgroups() so the sys_XX() call can
918 be done unconditionally (bug 550).
919 o Remove duplicate smbspool link on SWAT's front page (bug 541).
920 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
921 --enable-debug=[yes|no] works correctly.
922 o Allow ^C to interrupt smbpasswd if using our getpass
923 (e.g. smbpasswd command).
924 o Support signing only on RPC's (bug 167).
925 o Correct bug that prevented Excel 2000 clients from opening
926 files marked as read-only.
927 o Portability fix bugs 546 - 549).
928 o Explicitly initialize the value of AR for vendor makes that don't
929 do this (e.g. HPUX 11). (bug 552).
930 o More i18n fixes for SWAT (bug 413).
931 o Change the cwd before the postexec script to ensure that a
933 o Correct double free that caused winbindd to crash when a DC
934 is rebooted (bug 437).
935 o Fix incorrect mode sum (bug 562).
936 o Canonicalize SMB_INFO_ALLOCATION in the same was as
937 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
938 o Add script to generate *msg files.
939 o Add Dutch SWAT translation file.
940 o Make sure to call get_user_groups() with the full winbindd
941 name for a user if he/she has one (bug 406).
942 o Fix up error code returns from Samba4 tester. Ensure invalid
943 paths are validated the same way.
944 o Allow Samba3 to pass the Samba4 RAW-READ tests.
945 o Refuse to configure if --with-expsam=$BACKEND was used but no
946 libraries were found for $BACKEND.
947 o Move sysquotas autoconf tests to a separate file.
948 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
950 o Make sure that the files that contain the static_init_$subsystem;
951 macro get recompiled after configure by removing the object
953 o Ensure canceling a blocking lock returns the correct error
955 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
956 o Updated Japanese welcome file in SWAT.
957 o Fix to nt-time <-> unix-time functions reversible.
958 o Ensure that winbindd uses the the escaped DN when querying
960 o Fix portability issues when compiling (bug 505, 550)
961 o Compile fix for tdbbackup when Samba needs to override
962 non-C99 compliant implementations of snprintf().
963 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
964 o Make sure we break out of samsync loop on error.
965 o Ensure error code path doesn't free unmalloc()'d memory
967 o Add configure test for krb5_keytab_entry keyblock vs key
970 o Modified testparm so that all output so all debug output goes
971 to stderr, and all file processing goes to stdout.
972 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
974 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
975 we have a devmode before copying a string to the devicename.
976 o Support mapping REALM.COM\user to a local user account (without
977 running winbindd) for compatibility with 2.2.x release.
978 o Ensure we don't use mmap() on blacklisted systems.
979 o fixed a number of bugs and memory leaks in the AIX
981 o Call initgroups() in SWAT before becomming the user so that
982 secondary group permissions can be used when writing to
984 o Fix signing problems when reverse connecting back to a
985 client for printer notify
986 o Fix signing problems caused by a miss-sequence bug.
987 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
988 Fixes NEXUS tools running on Win9x clients (bug 64).
989 o Don't leave the domain field uninitialized in cli_lsa.c if some
990 SID could not be mapped.
991 o Fix segfault in mount.cifs helper when there is no options
992 specified during mount.
993 o Change the \n after the password prompt to go to tty instead
995 o Stop net -P from prompting for machine account password (bug 451).
996 o Change in behavior to Not only change the effective uid but also
997 the real uid when becoming unprivileged.
998 o Cope with Exchange 5.5 cleartext pop password auth.
999 o New files for support of initshutdown pipe. Win2k doesn't
1000 respond properly to all requests on the winreg pipe, so we need
1001 to handle this new pipe (bug 534).
1002 o Added more va_copy() checks in configure.in.
1003 o Include fixes for libsmbclient build problems.
1004 o Missing UNIX -> DOS codepage conversion in lanman.c.
1005 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1006 o Parameterize the listen backlog in smbd and make it larger by
1007 default. A backlog of 5 is way too small these days.
1008 o Check for an invalid fid before dereferencing the fsp pointer
1010 o Remove invalid memory frees and return codes in pdb_ldap.c.
1011 o Prompt for password when invoking --set-auth-user and no
1013 o Bind the nmbd sending socket to the 'socket address'.
1014 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1015 $LDFLAGS occurs before any library specification (bug 661).
1016 o Fix large number of printf() calls for 64-bit size_t.
1017 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1018 keyblock in the krb5 structs.
1019 o Remove #include <compat.h> in hopes to avoid problems with
1020 apache header files.
1021 o Correct winbindd build problems on HP-UX 11.
1022 o Lowercase netgroups lookups (bug 703).
1023 o Use the actual size of the buffer in strftime instead of a made
1024 up value which just happens to be less than sizeof(fstring).
1026 o Add ldaplibs to pdbedit link line (bug 651).
1027 o Fix crash bug in smbclient completion (bug 659).
1028 o Fix packet length for browse list reply (bug 771).
1029 o Fix coredump in cli_get_backup_list().
1030 o Make sure that we expand %N (bug 612).
1031 o Allow rpcclient adddriver command to specify printer driver
1033 o Compile tdbdump by default.
1034 o Apply patches to fix iconv detection for FreeBSD.
1035 o Do not allow the 'guest account' to be added to a passdb backend
1036 using smbpasswd or pdbedit (bug 624).
1037 o Save LDFLAGS during iconv detection (bug 57).
1038 o Run krb5 logins through the username map if the winbindd
1039 lookup fails (bug 698).
1040 o Add const for lp_set_name_resolve_order() to avoid compiler
1042 o Add support for the %i macro in smb.conf to stand in for the for
1043 the local IP address to which a client connected.
1044 o Allow winbindd to match local accounts to domain SID when
1045 'winbind trusted domains only = yes' (bug 680).
1046 o Remove code in idmap_ldap that searches the user suffix and group
1047 suffix. It's not needed and provides inconsistent functionality
1048 from the tdb backend.
1049 o Patch to handle munged dial string for Windows 2000 TSE.
1050 Thanks to Gaz de France, Direction de la Recherche, Service
1051 Informatique Métier for their supporting this work by Aurelien
1052 Degrémont <adegremont@idealx.com>.
1053 o Correct the "smbldap_open: cannot access when not root error"
1054 messages when looking up group information (bug 281).
1055 o Skip over the winbind separator when looking up a user.
1056 This fixes the bug that prevented local users from
1057 matching an AD user when not running winbindd (bug 698).
1058 o Fix a problem with configure on *BSD systems. Make sure
1059 we add -liconv etc to LDFLAGS.
1060 o Fix core dump bug when "security = server" and the authentication
1062 o Correct crash bug due to an empty munged dial string.
1063 o Show files locked by a specific user (smbstatus -u 'user')
1065 o Fix bug preventing print jobs from display in the queue
1066 monitor used by Windows NT and later clients (bug 660).
1067 o Fix several reported problems with point-n-print from
1068 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1069 reply (bug 338, 527 & 643).
1070 o Fix a handful of potential memory leaks in the LDAP code used
1071 by ldapsam[_compat] and the LDAP idmap backend.
1072 o Fix for pdbedit error code returns (bug 763).
1073 o Make sure we only enumerate group mapping entries (not
1074 /etc/group) even when doing local aliases.
1075 o Relax check on the pipe name in a dce/rpc bind response to work
1076 around issues with establishing trusts to a Windows 2003 domain.
1077 o Ensure we mangle names ending in '.' in hash2 mangling method.
1078 o Correct parsing issues with munged dial string.
1079 o Fix bugs in quota support for XFS.
1080 o Add a cleaner method for applications that need to provide
1081 name->SID mappings to do this via NSS rather than having to
1082 know the winbindd pipe protocol.
1083 o Adds a variant of the winbindd_getgroups() call called
1084 winbindd_getusersids() that provides direct SID->SIDs listing of
1085 a users supplementary groups. This is enough to allow non-Samba
1086 applications to do ACL checking.
1087 o Make sure we don't append the 'ldap suffix' when writing out the
1088 'ldap XXX suffix' values in SWAT (bug 328).
1089 o Fix renames across file systems.
1090 o Ensure that items in a list of strings containing whitespace are
1091 written out surrounded by single quotes. This means that both
1092 double and single quotes are now used to surround strings in
1094 o Enable SWAT to correctly determine if winbindd is running (bug
1096 o Include WWW-Authenticate field in 401 response for bad auth
1098 o Add support for NTLM2 (NTLMv2 session security).
1099 o Add support for variable-length session keys.
1100 o More privilege fixes for group enumeration in LDAP (bug 281).
1101 o Use the dns name (or IP) as the originating client name when
1102 using CUPS (bug 467).
1103 o Fix various SMB signing bugs.
1104 o Fix ACL propagation on a DFS root (bug 263).
1105 o Disable NTLM2 for RPC pipes.
1106 o Allow the client to specify the NTLM2 flags got NTLMSSP
1108 o Change the name of the job passed off to cups from "Test Page"
1109 to "smbprn.00000033 Test Page" so that we can get the smb
1110 jobid back. This allow users to delete jobs with cups printing
1111 backend (partial work on bug 770).
1112 o Fix build of winbindd with static pdb modules.
1113 o Retrieve the correct ACL group bits if the file has an ACL
1115 o Implement "net rpc group members": Get members of a domain group
1116 in human-readable format.
1117 o Add MacOSX (Darwin) specific charset module code.
1118 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1119 can include the full name in gecos field (bug 587).
1120 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1121 o Implement 'net rpc group list [global|local|builtin]*' for a
1122 select listing of the respective user databases.
1123 o Don't automatically set NT status code flag unless client tells
1125 o Add 'net status [sessions|shares] [parseable]'.
1126 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1128 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1130 o Fix inverted logic in hosts allow/deny checks caused by
1131 s/strcmp/strequal/ (bug 846).
1132 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1133 o Fix typo in 'hash' mangling algorithm.
1134 o Support munged dial for ldapsam (bug 800).
1135 o Fix process_incoming_data() to return the number of bytes handled
1136 this call whether we have a complete PDU or not; fixes bug
1137 with multiple PDU request rpc's broken over SMBwriteX calls
1139 o Fix incorrect smb flags2 for connections to pre-NT servers
1140 (causes smbclient to fail to OS2 for example) (bug 821).
1141 o Update version string in smbldap-tools Makefile to 0.8.2.
1142 o Correct a problem with "net rpc vampire" mis-parsing the
1143 alias member info reply.
1144 o Ensure the ${libdir} is created by the installclientlib script.
1145 o Fix detection of Windows 2003 client architecture in the smb.conf
1147 o Ensure that smbd calls the add user script for a missing UNIX
1148 user on kerberos auth call (bug 445).
1149 o Fix bugs in hosts allow/deny when using a mismatched
1150 network/netmask pair.
1151 o Protect alloc_sub_basic() from crashing when the source string
1152 is NULL (partial work on bug 687).
1153 o Fix spinlocks on IRIX.
1154 o Corrected some bad destination paths when running "configure
1156 o Add packaging files for Fedora Core 1.
1157 o Correct bug in SWAT install script for non-english languages.
1158 o Support character set ISO-8859-1 internally (bug 558).
1159 o Fixed more LDAP access errors when looking up group mappings
1161 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1162 resolution to fail on local files on on domain members
1164 o Fix uninitialized variable in passdb.c.
1165 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1166 o Fix problem mounting directories when mount.cifs is installed
1167 with the setuid bit on.
1168 o Fix bug that prevent --mandir from overriding the defaults
1169 given in the --with-fhs macro.
1170 o Fix bug in in-memory Kerberos keytab detection routines
1175 ######################################################################
1177 The original 3.0.0 release notes follow
1178 =======================================
1179 WHATS NEW IN Samba 3.0.0
1181 =======================================
1187 1) Active Directory support. Samba 3.0 is now able to
1188 join a ADS realm as a member server and authenticate
1189 users using LDAP/Kerberos.
1191 2) Unicode support. Samba will now negotiate UNICODE on the wire
1192 and internally there is now a much better infrastructure for
1193 multi-byte and UNICODE character sets.
1195 3) New authentication system. The internal authentication system
1196 has been almost completely rewritten. Most of the changes are
1197 internal, but the new auth system is also very configurable.
1199 4) New default filename mangling system.
1201 5) A new "net" command has been added. It is somewhat similar to
1202 the "net" command in windows. Eventually we plan to replace
1203 numerous other utilities (such as smbpasswd) with subcommands
1206 6) Samba now negotiates NT-style status32 codes on the wire. This
1207 improves error handling a lot.
1209 7) Better Windows 2000/XP/2003 printing support including publishing
1210 printer attributes in active directory.
1212 8) New loadable module support for passdb backends and character
1215 9) New default dual-daemon winbindd support for better performance.
1217 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1218 domain and maintaining user, group and domain SIDs.
1220 11) Support for establishing trust relationships with Windows NT 4.0
1223 12) Initial support for a distributed Winbind architecture using
1224 an LDAP directory for storing SID to uid/gid mappings.
1226 13) Major updates to the Samba documentation tree.
1228 14) Full support for client and server SMB signing to ensure
1229 compatibility with default Windows 2003 security settings.
1231 15) Improvement of ACL mapping features based on code donated by
1232 Andreas Grünbacher.
1235 Plus lots of other improvements!
1238 Additional Documentation
1239 ------------------------
1241 Please refer to Samba documentation tree (included in the docs/
1242 subdirectory) for extensive explanations of installing, configuring
1243 and maintaining Samba 3.0 servers and clients. It is advised to
1244 begin with the Samba-HOWTO-Collection for overviews and specific
1245 tasks (the current book is up to approximately 400 pages) and to
1246 refer to the various man pages for information on individual options.
1248 We are very glad to be able to include the second edition of
1249 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1250 (O'Reilly & Associates) in this release. The book is available
1251 on-line at http://samba.org/samba/docs/ and is included with
1252 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1253 publisher for making "Using Samba" under the GNU Free Documentation
1257 ######################################################################
1258 Upgrading from a previous Samba 3.0 beta
1259 ########################################
1261 Beginning with Samba 3.0.0beta3, the RID allocation functions
1262 have been moved into winbindd. Previously these were handled
1263 by each passdb backend. This means that winbindd must be running
1264 to automatically allocate RIDs for users and/or groups. Otherwise,
1265 smbd will use the 2.2 algorithm for generating new RIDs.
1267 If you are using 'passdb backend = tdbsam' with a previous Samba
1268 3.0 beta release (or possibly alpha), it may be necessary to
1269 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1270 to winbindd_idmap.tdb. To do this:
1272 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
1274 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
1276 3) run: (note that 'tdb>' is the tool's prompt for input)
1278 root# ./tdbtool /usr/local/samba/private/passdb.tdb
1279 tdb> show RID_COUNTER
1283 [000] 0A 52 00 00 .R.
1285 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1289 If you are using 'passdb backend = ldapsam', it will be necessary to
1290 store idmap entries in the LDAP directory as well (i.e. idmap backend
1291 = ldap). Refer to the 'net idmap' command for more information on
1292 migrating SID<->UNIX id mappings from one backend to another.
1294 If the RID_COUNTER record does not exist, then these instructions are
1295 unneccessary and the new RID_COUNTER record will be correctly generated
1300 ########################
1301 Upgrading from Samba 2.2
1302 ########################
1304 This section is provided to help administrators understand the details
1305 involved with upgrading a Samba 2.2 server to Samba 3.0.
1311 Many of the options to the GNU autoconf script have been modified
1312 in the 3.0 release. The most noticeable are:
1314 * removal of --with-tdbsam (is now included by default; see section
1315 on passdb backends and authentication for more details)
1317 * --with-ldapsam is now on used to provided backward compatible
1318 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
1319 backend and authentication section for more details
1321 * inclusion of non-standard passdb modules may be enabled using
1322 --with-expsam. This includes an XML backend and a mysql backend.
1324 * removal of --with-msdfs (is now enabled by default)
1326 * removal of --with-ssl (no longer supported)
1328 * --with-utmp now defaults to 'yes' on supported systems
1330 * --with-sendfile-support is now enabled by default on supported
1337 This section contains a brief listing of changes to smb.conf options
1338 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
1339 complete descriptions of new or modified parameters.
1341 Removed Parameters (order alphabetically):
1344 * alternate permissions
1347 * code page directory
1349 * domain admin group
1350 * domain guest group
1351 * force unknown acl user
1357 * printer driver file
1358 * printer driver location
1360 * source environment
1368 New Parameters (new parameters have been grouped by function):
1372 * abort shutdown script
1375 User and Group Account Management
1376 ---------------------------------
1378 * add machine script
1379 * add user to group script
1380 * algorithmic rid base
1381 * delete group script
1382 * delete user from group script
1384 * set primary group script
1390 * passwd chat timeout
1394 * client lanman auth
1395 * client NTLMv2 auth
1401 * paranoid server security
1410 * hide special files
1411 * hide unwriteable files
1413 * kernel change notify
1423 * max reported print jobs
1425 UNICODE and Character Sets
1426 --------------------------
1432 SID to uid/gid Mappings
1433 -----------------------
1437 * winbind enable local accounts
1438 * winbind trusted domains only
1439 * template primary group
1440 * enable rid algorithm
1447 * ldap machine suffix
1449 * ldap replication sleep
1452 General Configuration
1453 ---------------------
1457 Modified Parameters (changes in behavior):
1459 * encrypt passwords (enabled by default)
1460 * mangling method (set to 'hash2' by default)
1463 * restrict anonymous (integer value)
1464 * security (new 'ads' value)
1465 * strict locking (enabled by default)
1466 * unix extensions (enabled by default)
1467 * winbind cache time (increased to 5 minutes)
1468 * winbind uid (deprecated in favor of 'idmap uid')
1469 * winbind gid (deprecated in favor of 'idmap gid')
1475 This section contains brief descriptions of any new databases
1476 introduced in Samba 3.0. Please remember to backup your existing
1477 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
1478 upgrade databases as they are opened (if necessary), but downgrading
1479 from 3.0 to 2.2 is an unsupported path.
1481 Name Description Backup?
1482 ---- ----------- -------
1483 account_policy User policy settings yes
1484 gencache Generic caching db no
1485 group_mapping Mapping table from Windows yes
1486 groups/SID to unix groups
1487 winbindd_idmap ID map table from SIDS to UNIX yes
1489 namecache Name resolution cache entries no
1490 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1491 returned as part of a successful
1492 net_sam_logon request
1493 printing/*.tdb Cached output from 'lpq no
1494 command' created on a per print
1496 registry Read-only samba registry skeleton no
1497 that provides support for exporting
1498 various db tables via the winreg RPCs
1504 The following issues are known changes in behavior between Samba 2.2 and
1505 Samba 3.0 that may affect certain installations of Samba.
1507 1) When operating as a member of a Windows domain, Samba 2.2 would
1508 map any users authenticated by the remote DC to the 'guest account'
1509 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1510 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1511 current work around to re-establish the 2.2 behavior.
1513 2) When adding machines to a Samba 2.2 controlled domain, the
1514 'add user script' was used to create the UNIX identity of the
1515 machine trust account. Samba 3.0 introduces a new 'add machine
1516 script' that must be specified for this purpose. Samba 3.0 will
1517 not fall back to using the 'add user script' in the absence of
1518 an 'add machine script'
1521 ######################################################################
1522 Passdb Backends and Authentication
1523 ##################################
1525 There have been a few new changes that Samba administrators should be
1526 aware of when moving to Samba 3.0.
1528 1) encrypted passwords have been enabled by default in order to
1529 inter-operate better with out-of-the-box Windows client
1530 installations. This does mean that either (a) a samba account
1531 must be created for each user, or (b) 'encrypt passwords = no'
1532 must be explicitly defined in smb.conf.
1534 2) Inclusion of new 'security = ads' option for integration
1535 with an Active Directory domain using the native Windows
1536 Kerberos 5 and LDAP protocols.
1538 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1539 type which is neccessary for servers on which the
1540 administrator password has not been changed, or kerberos-enabled
1541 SMB connections to servers that require Kerberos SMB signing.
1542 Besides this one difference, either MIT or Heimdal Kerberos
1543 distributions are usable by Samba 3.0.
1546 Samba 3.0 also includes the possibility of setting up chains
1547 of authentication methods (auth methods) and account storage
1548 backends (passdb backend). Please refer to the smb.conf(5)
1549 man page for details. While both parameters assume sane default
1550 values, it is likely that you will need to understand what the
1551 values actually mean in order to ensure Samba operates correctly.
1553 The recommended passdb backends at this time are
1555 * smbpasswd - 2.2 compatible flat file format
1556 * tdbsam - attribute rich database intended as an smbpasswd
1557 replacement for stand alone servers
1558 * ldapsam - attribute rich account storage and retrieval
1559 backend utilizing an LDAP directory.
1560 * ldapsam_compat - a 2.2 backward compatible LDAP account
1563 Certain functions of the smbpasswd(8) tool have been split between the
1564 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1565 utility. See the respective man pages for details.
1568 ######################################################################
1572 This section outlines the new features affecting Samba / LDAP
1578 A new object class (sambaSamAccount) has been introduced to replace
1579 the old sambaAccount. This change aids us in the renaming of
1580 attributes to prevent clashes with attributes from other vendors.
1581 There is a conversion script (examples/LDAP/convertSambaAccount) to
1582 modify and LDIF file to the new schema.
1586 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1587 $ convertSambaAccount --sid=<Domain SID> \
1588 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1589 --changetype=[modify|add]
1591 The <DOM SID> can be obtained by running 'net getlocalsid
1592 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
1593 the format of the generated LDIF output--either create new entries
1594 or modify existing entries.
1596 The old sambaAccount schema may still be used by specifying the
1597 "ldapsam_compat" passdb backend. However, the sambaAccount and
1598 associated attributes have been moved to the historical section of
1599 the schema file and must be uncommented before use if needed.
1600 The 2.2 object class declaration for a sambaAccount has not changed
1601 in the 3.0 samba.schema file.
1603 Other new object classes and their uses include:
1605 * sambaDomain - domain information used to allocate rids
1606 for users and groups as necessary. The attributes are added
1607 in 'ldap suffix' directory entry automatically if
1608 an idmap uid/gid range has been set and the 'ldapsam'
1609 passdb backend has been selected.
1611 * sambaGroupMapping - an object representing the
1612 relationship between a posixGroup and a Windows
1613 group/SID. These entries are stored in the 'ldap
1614 group suffix' and managed by the 'net groupmap' command.
1616 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1617 automatically and contains the next available 'idmap uid' and
1620 * sambaIdmapEntry - object storing a mapping between a
1621 SID and a UNIX uid/gid. These objects are created by the
1622 idmap_ldap module as needed.
1624 * sambaSidEntry - object representing a SID alone, as a Structural
1625 class on which to build the sambaIdmapEntry.
1628 New Suffix for Searching
1629 ------------------------
1631 The following new smb.conf parameters have been added to aid in directing
1632 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1635 * ldap suffix - used to search for user and computer accounts
1636 * ldap user suffix - used to store user accounts
1637 * ldap machine suffix - used to store machine trust accounts
1638 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1639 * ldap idmap suffix - location of sambaIdmapEntry objects
1641 If an 'ldap suffix' is defined, it will be appended to all of the
1642 remaining sub-suffix parameters. In this case, the order of the suffix
1643 listings in smb.conf is important. Always place the 'ldap suffix' first
1646 Due to a limitation in Samba's smb.conf parsing, you should not surround
1647 the DN's with quotation marks.
1653 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1654 following options would inform Samba that the idmap table should be
1655 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1660 idmap backend = ldap:ldap://onterose/
1661 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1662 idmap uid = 40000-50000
1663 idmap gid = 40000-50000
1665 This configuration allows winbind installations on multiple servers to
1666 share a uid/gid number space, thus avoiding the interoperability problems
1667 with NFS that were present in Samba 2.2.
1671 ######################################################################
1672 Trust Relationships and a Samba Domain
1673 ######################################
1675 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1676 allocating uids and gids to trusted users and groups. More
1677 information regarding Samba's support for establishing trust
1678 relationships can be found in the Samba-HOWTO-Collection included
1679 in the docs/ directory of this release.
1681 First create your Samba PDC and ensure that everything is
1682 working correctly before moving on the trusts.
1684 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1685 4.0 domain named WINDOWS:
1687 1) create the trust account for SAMBA in "User Manager for Domains"
1688 2) connect the trust from the Samba domain using
1689 'net rpc trustdom establish GLASS'
1691 To create a trustlationship with SAMBA as the trusted domain:
1693 1) create the initial trust account for GLASS using
1694 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1695 account for GLASS$ prior to this step (depending on your
1696 local configuration).
1697 2) connect the trust from a WINDOWS DC using "User Manager
1700 Now join winbindd on the Samba PDC to the SAMBA domain using
1701 the normal steps for adding a Samba server to an NT4 domain:
1702 (note that smbd & nmbd must be running at this point)
1704 root# net rpc join -U root
1705 Password: <enter root password from smbpasswd file here>
1707 Start winbindd and test the join with 'wbinfo -t'.
1709 Now test the trust relationship by connecting to the SAMBA DC
1710 (e.g. POGO) as a user from the WINDOWS domain:
1712 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1715 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1717 $ smbclient //crystal/netlogon -U root -W WINDOWS
1720 ######################################################################
1724 Beginning with Samba3.0.0beta3, winbindd has been given new account
1725 manage functionality equivalent to the 'add user script' family of
1726 smb.conf parameters. The idmap design has also been changed to
1727 centralize control of foreign SID lookups and matching to UNIX
1731 Brief Description of Changes
1732 ----------------------------
1734 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1735 reverted to the 2.2.x design. This means that when resolving a
1736 SID to a UID or similar mapping:
1738 a) First consult winbindd
1739 b) perform a local lookup only if winbindd fails to
1740 return a successful answer
1742 There are some variations to this, but these two rules generally
1745 2) All idmap lookups have been moved into winbindd. This means that
1746 a server must run winbindd (and support NSS) in order to achieve
1747 any mappings of SID to dynamically allocated UNIX ids. This was
1748 a conscious design choice.
1750 3) New functions have been added to winbindd to emulate the 'add user
1751 script' family of smbd functions without requiring that external
1752 scripts be defined. This functionality is controlled by the 'winbind
1753 enable local accounts' smb.conf parameter (enabled by default).
1755 However, this account management functionality is only supported
1756 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1757 must be shared among multiple Samba servers (such as a PDC and BDCs),
1758 it will be necessary to define your own 'add user script', et. al.
1759 programs that place the accounts/groups in some form of directory
1760 such as NIS or LDAP. This requirement was deemed beyond the scope
1761 of winbind's account management functions. Solutions for
1762 distributing UNIX system information have been deployed and tested
1763 for many years. We saw no need to reinvent the wheel.
1765 4) A member of a Samba controlled domain running winbindd is now able
1766 to map domain users directly onto existing UNIX accounts while still
1767 automatically creating accounts for trusted users and groups. This
1768 behavior is controlled by the 'winbind trusted domains only' smb.conf
1769 parameter (disabled by default to provide 2.2.x winbind behavior).
1771 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1772 in smbd/uid.c. The reason that group mappings are not included
1773 in winbindd is because the purpose of Samba's group map is to
1774 match any Windows SID with an existing UNIX group. These UNIX
1775 groups can be created by winbindd (see next section), but the
1776 SID<->gid mapping is retreived by smbd, not winbindd.
1782 * security = server running winbindd to allocate accounts on demand
1784 * Samba PDC running winbindd to handle the automatic creation of UNIX
1785 identities for machine trust accounts
1787 * Automtically creating UNIX user and groups when migrating a Windows NT
1788 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1789 'net rpc vampire' for this to work.
1792 ######################################################################
1796 * There are several bugs currently logged against the 3.0 codebase
1797 that affect the use of NT 4.0 GUI domain management tools when run
1798 against a Samba 3.0 PDC. This bugs should be released in an early
1801 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1802 filed against the Samba 3.0 codebase.
1805 ######################################################################
1806 Reporting bugs & Development Discussion
1807 #######################################
1809 Please discuss this release on the samba-technical mailing list or by
1810 joining the #samba-technical IRC channel on irc.freenode.net.
1812 If you do report problems then please try to send high quality
1813 feedback. If you don't provide vital information to help us track down
1814 the problem then you will probably be ignored.
1816 A new bugzilla installation has been established to help support the
1817 Samba 3.0 community of users. This server, located at
1818 https://bugzilla.samba.org/, has replaced the older jitterbug server
1819 previously located at http://bugs.samba.org/.