1 ================================
2 Release Notes for Samba 3.0.3rc1
4 ================================
6 This is a release candidate snapshot of the Samba 3.0.3 code
7 base and should be considered for testing only. A release
8 candidate (RC) means that we are close to the final, stable
9 release and in provided for Quality Assurance (QA) purposes.
10 This release is *not* intended for production servers. Use
13 There have been several bug fixes since the 3.0.2a release that
14 we feel are important to make available to the Samba community
15 for wider testings. See the "Changes" section for details on
18 Common bugs fixed in this RC include:
20 o Delays in winbindd startup caused by unnecessary
21 connections to trusted domain controllers.
22 o Various small memory leaks.
23 o Winbindd failing due to expired Kerberos tickets.
25 New features introduced in this preview release include:
27 o Support for local nested groups via winbindd.
28 o Specifying options to be passed directly to
32 ######################################################################
36 Changes since 3.0.3pre2
37 -----------------------
45 winbind nested groups New
51 o Jeremy Allison <jra@samba.org>
52 * BUG 1139: Fix based on suggestion by jdev@panix.com.
53 swap lookups for user and group - group will do an
54 algorithmic lookup if it fails, user won't.
55 * Make EA's lookups case independent.
56 * Fix SETPATHINFO in 'unix extensions' support.
57 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
58 the UNIX info levels, and the short case preserve names.
61 o Andrew Bartlet <abartlet@samba.org>
62 * Ensure 'net' honors the 'netbios name' in the smb.conf by
64 * Support SMB signing on connections using only the LANMAN
65 password and generate the correct the 'session key' for these
67 * Implement --required-membership-of=, an ntlm_auth option
68 that restricts all authentication to members of this particular
70 * Improve our fall back code for password changes.
71 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
72 after the server had said something (such as an error).
73 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
76 o Alexander Bokovoy <ab@samba.org>
77 * Fix smbfs problem with Tree Disconnect issued before smbfs
81 o Gerald Carter <jerry@samba.org>
82 * Ensure server schannel uses the auth level requested by the
84 * Removed --with-cracklib option due to potential crash issue.
85 * Fix -lcrypto linking problem with wbinfo.
86 * BUG 761: allow printing parameter to set defaults on a per
88 * Add 'cups options' parameter to allow raw printing without
89 changing /etc/cups/cupsd.conf.
90 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
92 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
95 o Steve French <sfrench@us.ibm.com>
96 * Fix free of incremented pointer in cifsvfs mount helper.
97 * Fix path canonicalization of the mount target path and help
98 text display in the cifs mount helper.
99 * Add missing guest mount option for mount.cifs.
102 o Paul Green <paulg@samba.org>
103 * Update VOS _POSIX_C_SOURCE macro to 200112L.
104 * Fix bug in configure.ion by moving the first use of
105 AC_CHECK_HEADERS so it is always executed.
106 * Fix configure.in to only use $BLDSHARED to select whether to
107 build static or shared libraries.
109 o Pat Haywarrd <Pat.Hayward@propero.net>
110 * Make the session_users list dynamic (max of 128K).
113 o Cal Heldenbrand <calzplace@yahoo.com>
114 * Fix for for 'pam_smbpass migrate' functionality.
117 o Krischan Jodies <kj@sernet.de>
118 * Implement 'net rpc group delete'
121 o Volker Lendecke <vl@samba.org>
122 * Add support in winbindd for expanding nested local groups.
123 * Fix memleak in winbindd.
125 * Don't list domain groups from BUILTIN.
126 * Fix memleak in policy handle utility functions.
127 * Decrease winbindd startup time by only contacting trusted
128 domains as necessary.
129 * Allow winbindd to ask the DC for its domain for a trusted
131 * Fix Netscape DS schema based on comments from
132 <thomas.mueller@christ-wasser.de>.
135 o Jianliang Lu <j.lu@tiesse.com>
136 * Don't force an upper case domain name in the ntlmssp code.
139 o Jim McDonough <jmcd@us.ibm.com>
140 * Remove modifyTimestamp from list of our attributes.
141 * Fix lsalookupnames to check for domain users as well as local
143 * Merge struct uuid replacement for GUID from trunk.
144 * BUG 1208: Finish support for handling expired tickets in
145 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
148 o Stefan Metzmacher <metze@samba.org>
149 * Implement new VERSION schema based on subversion revision
153 o James Peach <jpeach@sgi.com>
154 * Search IRIX ABI paths for libiconv. Based on initial fix from
158 o Kurt Pfeifle <kpfeifle@danka.de>
159 * Add example shell script for migrating drivers and printers
160 from a Windows print server to a Samba print server using
161 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
164 o Richard Sharpe <rsharpe@samba.org>
165 * Add support for printing out the MAC address on nmblookup.
168 o Andrew Tridgell <tridge@samba.org>
169 * Force winbindd to use schannel in clients connections to
174 Changes for older versions follow below:
176 --------------------------------------------------
178 =================================
179 Release Notes for Samba 3.0.3pre2
181 =================================
183 This is a preview release of the Samba 3.0.3 code base and is
184 provided for testing only. This release is *not* intended for
185 production servers. Use at your own risk.
187 There have been several bug fixes since the 3.0.2a release that
188 we feel are important to make available to the Samba community
189 for wider testings. See the "Changes" section for details on
192 Common bugs fixed in this preview release include:
194 o Substitution errors for %[UuGg] in smb.conf.
195 o winbindd crashes when using ADS security mode.
196 o SMB signing errors.
198 New features introduced in this preview release include:
200 o Experimental support for storing DOS attribute on files
201 and folders in Extended Attributes.
204 Changes since 3.0.3pre1
205 -----------------------
209 Parameter Name Action
210 -------------- ------
213 store dos attributes New
219 o Jeremy Allison <jra@samba.org>
220 * BUG 1064: Ensure truncate attribute checking is done correctly
221 on "hidden" dot files.
222 * Fix bug in anonymous dfs self-referrals again.
223 * Fix get/set of EA's in client library
224 * Added support for OS/2 EA's in smbd server.
225 * Added 'ea support' parameter to smb.conf.
226 * Added 'store dos attributes' parameter to smb.conf.
227 * Fix wildcard identical rename.
228 * Fix reply_ctemp - make compatible with w2k3.
229 * Fix wildcard unlink.
230 * Fix wildcard src with wildcard dest renames.
233 o Andrew Bartlet <abartlet@samba.org>
234 * Remove 'unicode' smb.conf option.
235 * BUG 1138: Fix support for 'optional' SMB signing and other
237 * BUG 169: Fix NTLMv2-only behavior.
240 o Timur Bakeyev <timur@com.bat.ru>
241 * BUG 1152: Allow python modules to build despite libraries added
242 to LDFLAGS instead of LDPATH.
245 o Gerald Carter <jerry@samba.org>
246 * BUG 417, 1128: Ensure that the current_user_info is set
247 consistently so that %[UuGg] is expanded correctly.
248 * BUG 1195: Fix crash in winbindd when the ADS server is
250 * BUG 1185: Set reconnect time to be the same as the
251 'winbind cache time'.
252 * Ensure that we return the sec_desc in smb_io_printer_info_2.
253 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
254 * BUG 1095: Honor the '-l' option in smbclient.
255 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
259 o Steve French <sfrench@us.ibm.com>
260 * Fix credential file mounting for cifs vfs.
263 o Richard Garnish <rabies@meep.org>
264 * Correct blocking condition in smbd's use of accept() on IRIX.
267 o Volker Lendecke <vl@samba.org>
268 * Implement wbinfo -k: Have winbind generate an AFS token after
269 authenticating the user.
270 * Add expand_msdfs VFS module for providing referrals based on the
271 the client's IP address.
272 * Implement client side NETLOGON GetDCName function.
273 * Fix caching of name->sid lookups.
276 o Jianliang Lu <j.lu@tiesse.com>
280 o Jim McDonough <jmcd@us.ibm.com>
281 * BUG 1208 (partial): Improvements for working with expired krb5
283 * Use timegm, or our already existing replacement instead of
284 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
287 o Andrew Tridgell <tridge@samba.org>
288 * Change tdb license to LGPL (see source/tdb/tdb.c).
291 --------------------------------------------------
293 =================================
294 Release Notes for Samba 3.0.3pre1
296 =================================
299 Common bugs fixed in this preview release include:
301 o Crash bugs and change notify issues in Samba's
303 o Honoring secondary group membership on domain
305 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST
308 New features introduced in this preview release include:
310 o Improved support for i18n character sets.
311 o Support for account lockout policy based on
312 bad password attempts.
313 o Improved support for long password changes (>14
314 characters) and strong password enforcement.
315 o Continued work on support Windows aliases (i.e.
324 Parameter Name Action
325 -------------- ------
330 Please refer to the CVS log for the SAMBA_3_0 branch for complete
331 details. The list of changes per contributor are as follows:
337 o Jeremy Allison <jra@samba.org>
338 * Ensure that Kerberos mutex is always properly unlocked.
339 * Removed Heimdal "in-memory keytab" support.
340 * Fixup the 'multiple-vuids' bugs in our server code.
341 * Correct return code from lsa_lookup_sids() on unmapped
342 sids (based on work by vl@samba.org).
343 * Fix the "too many fcntl locks" scalability problem
345 * Fixup correct (as per W2K3) returns for lookupsids
346 as well as lookupnames.
347 * Fixups for delete-on-close semantics as per Win2k3 behavior.
348 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
349 * Fix "unable to initialize" bug when smbd hasn't been run with
350 new system and a user is being added via pdbedit/smbpasswd.
351 * Added NTrename SMB (0xA5).
352 * Fixup correct timeout values for blocking lock timeouts.
353 * Fix various bugs reported by 'gentest'.
354 * More locking fixes in the case where we own the lock.
355 * Fix up regression in IS_NAME_VALID and renames.
356 * Don't set allocation size on directories.
357 * Return correct error code on fail if file exists and target
359 * Added client "hardlink" comment to test doing NT rename with
360 hard links. Added hardlink_internals() code - UNIX extensions
361 now use this as well.
362 * Use a common function to parse all pathnames from the wire for
363 much closer emulation of Win2k3 error return codes.
364 * Implement check_path_syntax() and rewrite string sub
365 functions for better multibyte support.
366 * Ensure msdfs referrals are multibyte safe.
367 * Allow msdfs symlink syntax to be more forgiving.
368 eg. sym_link -> msdfs://server/share/path/in/share
369 or sym_link -> msdfs:\\server\share\path\in\share.
370 * Cleanup multibyte netbios name support in nmbd ( based on patch
371 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
372 * Fix check_path_syntax() for multibyte encodings which have
373 no '\' as second byte (based on work by ab@samba.org.
374 * Fix the "dfs self-referrals as anonymous user" problem
375 (based on patch from vl@samba.org).
378 o Timur Bakeyev <timur@com.bat.ru>
379 * BUG 1144: only set --with-fhs when the argument is 'yes'
382 o Craig Barratt <cbarratt@users.sourceforge.net>
383 * BUG 389: Allow multiple exclude arguments with smbclient
384 tar -Xr options (better support for Amanda backup client).
387 o Andrew Bartlet <abartlet@samba.org>
388 * Include support for linking with cracklib for enforcing strong
390 * Add support for >14 character password changes from Windows
392 * Add 'admin set password' capability to 'net rpc'.
393 * Allow 'net rpc samdump' to work with any joined domain
394 regardless of smb.conf settings.
395 * Use an allocated buffer for count_chars.
396 * Add sanity checks for changes in the domain SID in an
398 * Implement python unit tests for Samba's multibyte string
402 o Alexander Bokovoy <ab@samba.org>
403 * Fix incorrect size calculation of the directory name
405 * Fix problems with very long filenames in both smbd and smbclient
406 caused by truncating paths during character conversions.
409 o Gerald (Jerry) Carter <jerry@samba.org>
410 * BUG 850: Fix 'make installmodules' bug on True64.
411 * BUG 66: mark 'only user' deprecated.
412 * Remove corrupt tdb and shutdown (only for printing tdbs,
413 connections, sessionid & locking).
414 * decrement smbd counter in connections.tdb in smb_panic().
415 * RedHat specfile updates.
416 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
417 * BUG 1147; bad pointer case in get_stored_queue_info()
419 * BUG 761: read the config file before initialized default
420 values for printing options; don't default to bsd printing
422 * Allow the 'printing' parameter to be set on a per share basis.
423 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
424 * BUG 848: don't create winbind local users/groups that already
426 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
428 * BUG 488: fix the 'show client in col 1' button and correctly
429 enumerate active connections.
430 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
431 problem when storing the updating pid for the lpq cache.
432 * BUG 1007 (partial): Fix print change notify bugs.
433 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
434 and winbind use default domain = yes. Also ensures that
435 * BUG 1151: Ensure that winbindd users are passed through
437 * Fix client rpc binds for ASU derived servers (pc netlink,
441 o Robert Dahlem <Robert.Dahlem@gmx.net>
442 * BUG 1048: Don't return short names when when 'mangled names = no'
445 o Guenther Deschner <gd@suse.com>
446 * Remove hard coded attribute name in the ads ranged retrieval
448 * Add --with-libdir and --with-mandir to autoconf script.
451 o Bostjan Golob <golob@gimb.org>
452 * BUG 1046: Fix getpwent_list() so that the username is not
453 overwritten by other fields.
456 o Steve French <sfrench@us.ibm.com>
457 * Update mount.cifs to version 1.1.
458 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
459 * Fixes to minor security bug in the mount helper.
462 o SATOH Fumiyasu <fumiya@miraclelinux.com>
463 * BUG 1055; formatting fixes for 'net share'.
464 * BUG 692: correct truncation of share names and workgroup
466 * BUG 1088: use strchr_m() for query_host (smbclient -L).
467 * Patch from to internally count characters correctly.
470 o Chris Hertel <crh@samba.org>
471 * fix enumeration of shares 12 characters in length via
474 o Ulrich Holeschak <ulrich@holeschak.de>
475 * BUG 932: fix local password change using pam_smbpass
478 o John Klinger <john.klinger@lmco.com>
479 * Return NSS_SUCCESS once the max number of gids possible
480 has been found in initgroups() on Solaris.
481 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
484 o Volker Lendecke <vl@samba.org>
485 * Fix success message for net groupmap modify.
486 * Fix errors when enumerating members of groups in 'net rpc'.
487 * Match Windows behavior in samr_lookup_names() by returning
488 ALIAS(4) when you search in BUILTIN.
489 * Fix server SAMR code to be able to set alias info for
491 * Fix duplication of logic when creating groups via smbd.
492 * Ensure that the HWM values are set correctly after running
494 * Add 'net rpc group add'.
495 * Implement 'net groupmap set' and 'net groupmap cleanup'.
496 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
497 * Fix wb_delgrpmem (wbinfo -o).
498 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
499 * Fix sambaUserWorkstations on a Samba DC.
502 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
503 * Bug fixes and enhancements to libsmbclient library.
506 o Herb Lewis <herb@samba.org>
507 * Fix typo for tag in proto file.
508 * Add missing #ifdef HAVE_BICONV stuff.
509 * Truncate Samba's netbios name at the first '.' (not
513 o Jianliang Lu <j.lu@tiesse.com>
514 * Enforce the 'user must change password at next login' flag.
515 * Decode meaning of 'fields present' flags (improves support
519 o L. Lucius <ib@digicron.com>.
523 o Jim McDonough <jmcd@us.ibm.com>
524 * Add versioning support to tdbsam.
525 * Update the IBM Directory Server schema with the OpenLDAP
527 * Various decoding fixes to improve usrmgr.exe support.
528 * Fix statfs redeclaration of statfs struct on ppc
529 * Implement support for password lockout of Samba domain
530 controllers and standalone servers.
531 * Get MungedDial attribute actually working with full TS
532 strings in it for pdb_ldap.
535 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
536 o BUG 979 -- Fix quota display on AIX.
539 o James Peach <jpeach@sgi.com>
540 * Correct check for printf() format when using the SGI MIPSPro
542 * BUG 1038: support backtrace for 'panic action' on IRIX.
543 * BUG 768: Accept profileing arg to IRIX init script.
544 * BUG 748: Relax arg parsing to sambalp script (IRIX).
545 * BUG 758: Fix pdma build.
548 o Tim Potter <tpot@samba.org>
549 * Fix logic bug in tdb non-blocking lock routines when
551 * BUG 1025: Include sys/acl.h in check for broken nisplus
553 * BUG 1066: s/printf/d_printf/g in SWAT.
554 * BUG 1098: rename internal msleep() function to fix build
556 * BUG 1112: Fix for writable printerdata problem in python bindings.
557 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
558 * BUG 1155: enclose use of fchown() with guards.
561 o Simo Source <idra@samba.org>
562 * Replace unknown_3 with fields_present in SAMR code.
563 * More length checks in strlcat().
566 o Richard Sharpe <rsharpe@samba.org>
567 * Add support to smbclient for multiple logins on the same
568 session (based on work by abartlet@samba.org).
571 o Andrew Tridgell <tridge@samba.org>
572 * Rewrote the AIX UESS backend for winbindd.
573 * Fixed compilation with --enable-dmalloc.
576 o Jelmer Vernooij <jelmer@samba.org>
577 * Fix ETA Calculation when resuming downloads in smbget.
578 * Add -O (for writing downloaded files to standard out)
579 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
582 o TAKEDA yasuma <yasuma@miraclelinux.com>
583 * BUG 900: fix token processing in cmd_symlink, cmd_link,
584 cmd_chown, cmd_chmod smbclient functions.
587 o Shiro Yamada <shiro@miraclelinux.com>
588 * BUG 1129: install image files for SWAT.
591 --------------------------------------------------
593 ==============================
594 Release Notes for Samba 3.0.2a
596 ==============================
598 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
599 to address, in particular, a problem when using pdbedit to
600 sanitize (--force-initialized-passwords) Samba's tdbsam
601 backend. This is the latest stable release of Samba. This
602 is the version that all production Samba servers should be
603 running for all current bug-fixes.
605 ******************* Attention! Achtung! Kree! *********************
607 Beginning with Samba 3.0.2, passwords for accounts with a last
608 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
609 ldapsam, etc...) of zero (0) will be regarded as uninitialized
610 strings. This will cause authentication to fail for such
611 accounts. If you have valid passwords that meet this criteria,
612 you must update the last change time to a non-zero value. If you
613 do not, then 'pdbedit --force-initialized-passwords' will disable
614 these accounts and reset the password hashes to a string of X's.
616 ******************* Attention! Achtung! Kree! *********************
625 Please refer to the CVS log for the SAMBA_3_0 branch for complete
626 details. The list of changes per contributor are as follows:
629 o Jeremy Allison <jra@samba.org>
630 * Added paranoia checks in parsing code.
633 o Andrew Bartlet <abartlet@samba.org>
634 * Ensure that changes to uninitialized passwords in ldapsam
635 are written to the DIT.
638 o Gerald (Jerry) Carter <jerry@samba.org>
639 * Fixed iterator in tdbsam.
640 * Fix bug that disabled accounts with a valid NT password
641 hash, but no LanMan hash.
644 o Steve French <sfrench@us.ibm.com>
645 * Added missing nosetuid and noexec options.
648 o Bostjan Golob <golob@gimb.org>
649 * BUG 1046: Don't overwrite usernames of entries returned
653 o Sebastian Krahmer <krahmer@suse.de>
654 * Fixed potential crash bug in NTLMSSP parsing code.
657 o Tim Potter <tpot@samba.org>
658 * Fixed logic in tdb_brlock error checking.
661 o Urban Widmark <urban@teststation.com>
662 * Set nosuid,nodev flags in smbmnt by default.
665 --------------------------------------------------
667 =============================
668 Release Notes for Samba 3.0.2
670 =============================
672 It has been confirmed that previous versions of Samba 3.0 are
673 susceptible to a password initialization bug that could grant an
674 attacker unauthorized access to a user account created by the
675 mksmbpasswd.sh shell script.
677 The Common Vulnerabilities and Exposures project (cve.mitre.org)
678 has assigned the name CAN-2004-0082 to this issue.
680 Samba administrators not wishing to upgrade to the current
681 version should download the 3.0.2 release, build the pdbedit
684 root# pdbedit-3.0.2 --force-initialized-passwords
686 This will disable all accounts not possessing a valid password
687 (e.g. the password field has been set a string of X's).
689 Samba servers running 3.0.2 are not vulnerable to this bug
690 regardless of whether or not pdbedit has been used to sanitize
693 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
696 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
697 o Logging onto a Samba domain from Windows XP clients.
698 o Problems with the %U and %u smb.conf variables in relation to
699 Windows 9x/ME clients.
700 o Kerberos failures due to an invalid in memory keytab detection
702 o Updates to the ntlm_auth tool.
703 o Fixes for various SMB signing errors.
704 o Better separation of WINS and DNS queries for domain controllers.
705 o Issues with nss_winbind FreeBSD and Solaris.
706 o Several crash bugs in smbd and winbindd.
707 o Output formatting fixes for smbclient for better compatibility
708 with scripts based on the 2.2 version.
717 Parameter Name Action
718 -------------- ------
719 ldap replication sleep New
720 read size removed (unused)
721 source environment removed (unused)
727 Please refer to the CVS log for the SAMBA_3_0 branch for complete
728 details. The list of changes per contributor are as follows:
730 o Jeremy Allison <jra@samba.org>
731 * Revert change that broke Exchange clear text samlogons.
732 * Fix gcc 3.4 warning in MS-DFS code.
733 * Tidy up of NTLMSSP code.
734 * Fixes for SMB signing errors
735 * BUG 815: Workaround NT4 bug to support plaintext
736 password logins and UNICODE.
737 * Fix SMB signing bug when copying large files.
738 * Correct error logic in mkdir_internals() (caused a panic
739 when combined with --enable-developer).
740 * BUG 830: Protect against crashes due to bad character
744 o Petri Asikainen <paca@sci.fi>
745 * BUG 330, 387:Fix single valued attribute updates when
746 working with Novell NDS.
749 o Andrew Bartlet <abartlet@samba.org>
750 * Correctly handle per-pipe NTLMSSP inside a NULL session.
751 * Fix segfault in gencache
752 * Fix early free() of encrypted_session_key.
753 * Change DC lookup routines to more carefully separate
754 DNS names (realms) from NetBIOS domain names.
755 * Add new sid_to_dn() function for internal winbindd use.
756 * Refactor cli_ds_enum_domain_trusts().
757 * BUG 707: Implement range retrieval of ADS attributes (based
758 on work from Volker <vl@samba.org> and Guenther Deschner
760 * Automatically initialize the signing engine if a session key
762 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
763 encoded strings, only form input in SWAT.
764 * Resets the NTLMSSP state for new negotiate packets.
765 * Add 2-byte alignments in net_samlogon() queries to parse
766 odd-length plain text passwords.
767 * Allow Windows groups with no members in winbindd.
768 * Allow normal authentication in the absence of a server
769 generated session key.
770 * More optimizations for looking up UNIX group lists.
771 * Clean up error codes and return values for pam_winbindd
772 and winbindd PAM interface.
773 * Fix string return values in ntlm_auth tool.
774 * Fix segfault when 'security = ads' but no realm is defined.
775 * BUG 722: Allow winbindd to map machine accounts to uids.
776 * More cleanups for winbindd's find_our_domain().
777 * More clearly detect whether a domain controller is an NT4
778 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
779 * Increase separation between DNS queries for hosts and queries
780 for AD domain controllers.
781 * Include additional NT_STATUS to PAM error mappings.
782 * Password initialization fixes.
785 o Justin Baugh <justin.baugh@request.com>
786 * BUG 948: Implement missing functions required for FreeBSD
790 o Alexander Bokovoy <ab@samba.org>
791 * BUG 922: Make sure enable fast path for strlower_m() and
795 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
796 * Fix crash when using 'security = server' and 'encrypt
797 passwords = no' by always initializing the session key.
800 o Dmitry Butskoj <buc@odusz.elektra.ru>
801 * Fix for special files being hidden from admins.
804 o Gerald (Jerry) Carter <jerry@samba.org>
805 * Fix bug in the lanman session key generation. Caused
806 "decode_pw: incorrect password length" error messages.
807 * Save the right case for the located user name in
808 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
809 * BUG 897: Add well known rid for pre win2k compatible access
811 * BUG 887: Correct typo in delete user script example.
812 * Use short lived TALLOC_CTX* for allocating printer objects
813 from the print handle cache.
814 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
815 * Fix several warnings reported by the SUN Forte C compiler.
816 * Fully control DNS queries for AD DC's using 'name resolve order'.
817 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
818 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
819 * BUG 936: fix bind credentials for schannel binds in smbd.
820 * BUG 446: Fix output of smbclient for better compatibility
821 with scripts based on the 2.2 version (including Amanda).
822 * BUG 891, 949: Fedora packaging fixes.
823 * Fix bug that caused rpcclient to incorrectly retrieve
824 the SID for a server (this causing all calls that required
825 this information to fail).
826 * BUG 977: Don't create a homes share for a user if a static
827 share already exists by the same name.
828 * Removed unused smb.conf options.
829 * Password initialization fixes.
830 * Set the disable flag for template accounts created by
832 * Disable any account has no passwords and does not have the
833 ACB_PWNOTREQ bit set.
836 o Guenther Deschner <gd@suse.com>
837 * Install smbwrapper.so should be put into the $(libdir)
839 * Add the capability to specify the new user password
840 for "net ads password" on the command line.
841 * Correctly detect AFS headers on SuSE.
844 o James Flemer <jflemer@uvm.edu>
845 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
846 HAVE_SYS_ATTRIBUTES_H.
849 o Luke Howard <lukeh@PADL.COM>
850 * Fix segfault in session setup reply caused by a early free().
853 o Stoian Ivanov <sdr@bultra.com>
854 * Implement grepable output for smbclient -L.
857 o LaMont Jones <lamont@debian.org>
858 * BUG 225328 (Debian): Correct false failure LFS test that resulted
859 in _GNU_SOURCE not being defined (thus resulting in strndup()
863 o Volker Lendecke <vl@samba.org>
864 * BUG 583: Ensure that user names always contain the short
865 version of the domain name.
866 * Fix our parsing of the LDAP uri.
867 * Don't show the 'afs username map' in the SWAT basic view.
868 * Fix SMB signing issues in relation to failed NTLMSSP logins.
869 * BUG 924: Fix return codes in smbtorture harness.
870 * Always lower-case usernames before handing it to AFS code.
871 * Add a German translation for SWAT.
872 * Fix a segfaults in winbindd.
873 * Fix the user's domain passed to register_vuid() from
874 reply_spnego_kerberos().
875 * Add NSS example code in nss_winbind to convert UNIX
876 id's <-> Windows SIDs.
877 * Display more descriptive error messages for login via 'net'.
878 * Fix compiler warning in the net tool.
879 * Fix length bug when decoding base64 strings.
880 * Ensure we don't call getpwnam() inside a loop that is iterating
881 over users with getpwent(). This broke on glibc 2.3.2.
884 o Herb Lewis <herb@samba.org>
885 * Fix bit rot in psec.
888 o Jianliang Lu <j.lu@tiesse.com>
889 * Ensure we delete the group mapping before calling the delete
891 * Define well known RID for managing the "Power Users" group.
892 * BUG 381: check builtin (not local) group SID when updating
894 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
898 o John Klinger <john.klinger@lmco.com>
899 * Implement initgroups() call in nss_winbind on Solaris.
902 o Jim McDonough <jmcd@us.ibm.com>
903 * Fix regression in net rpc join caused by recent changes
904 to cli_lsa_query_info_policy().
905 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
909 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
910 * BUG 570: Ensure that configure honors the LDFLAGS variable.
913 o Stefan Metzmacher <metze@samba.org>
914 * Implement LDAP rebind sleep patch.
915 * Revert to 2.2 quota code because of so many broken quota files
917 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
918 XFS_USER_QUOTA -> USRQUOTA
919 XFS_GROUP_QUOTA -> GRPQUOTA
920 * Fix disk_free calculation with group quotas.
921 * Add debug class 'quota' and a lot of DEBUG()'s
923 * Fix sys_chown() when no chown() is present.
924 * Add SIGABRT to fault handling in order to catch got a
925 backtrace if an error occurs the OpenLDAP client libs.
929 * Allow an existing LDAP machine account to be re-used when
930 joining an AD domain.
933 o James Peach <jpeach@sgi.com>
934 * BUG 889: Change smbd to use pread/pwrite on platforms that
935 support these calls. Can lead to a significant speed increase.
938 o Tim Potter <tpot@samba.org>
939 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
940 * BUG 924: Fix typo in RW2 torture test.
943 o Richard Sharpe <shape@samba.org>
944 * Small fixes to torture.c to cleanup the error handling
948 o J. Tournier <jerome.tournier@IDEALX.com>
949 * Small fixes for the smbldap-tool scripts.
952 o Andrew Tridgell <tridge@samba.org>
953 * Fix src len check in pull_usc2().
956 o Jelmer Vernooij <jelmer@samba.org>
957 * Put functions for generating SQL queries in pdb_sql.c
958 * Add pgSQL backend (based on patch by Hamish Friedlander)
959 * BUG 908: Fix -s option to smbcontrol.
960 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
961 * Fix for libnss_wins on IRIX platforms.
962 * Fix swatdir for --with-fhs.
965 --------------------------------------------------
967 =============================
968 Release Notes for Samba 3.0.1
970 =============================
972 Some of the more common bugs in 3.0.0 addressed in the release
975 o Substitution problems with smb.conf variables.
976 o Errors in return codes which caused some applications
977 to fail to open files.
978 o General Protection Faults on Windows 2000/XP clients
979 using Samba point-n-print features.
980 o Several miscellaneous crash bugs.
981 o Access problems when enumerating group mappings are
982 stored in an LDAP Directory.
983 o Several common SWAT bugs when writing changes to
985 o Internal inconsistencies when 'winbind use default
991 ----------------------
993 Parameter Name Action
994 -------------- ------
995 hide local users Removed
996 mangled map Deprecated
997 mangled stack Removed
998 passwd chat timeout New
1004 o Change the interface for init_unistr2 to not take a length
1005 but a flags field. We were assuming that
1006 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
1007 o Allow d_printf() to handle strings with escaped quotation
1008 marks since the msg file includes the escape character (bug 489).
1009 o Fix bad html table row termination in SWAT wizard code (bug 413).
1010 o Fix to parse the level-2 strings.
1011 o Fix for "valid users = %S" in [homes]. Fix read/write
1013 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
1014 This is the same way AC_CHECK_LIB works (bug 508).
1015 o Testparm output fixes for clarity.
1016 o Fix broken wins hook functionality -- i18n bug (bug 528).
1017 o Take care of condition where DOS and NT error codes must differ.
1018 o Default to using only built-in charsets when a working iconv
1019 implementation cannot be located.
1020 o Wrap internals of sys_setgroups() so the sys_XX() call can
1021 be done unconditionally (bug 550).
1022 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1023 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1024 --enable-debug=[yes|no] works correctly.
1025 o Allow ^C to interrupt smbpasswd if using our getpass
1026 (e.g. smbpasswd command).
1027 o Support signing only on RPC's (bug 167).
1028 o Correct bug that prevented Excel 2000 clients from opening
1029 files marked as read-only.
1030 o Portability fix bugs 546 - 549).
1031 o Explicitly initialize the value of AR for vendor makes that don't
1032 do this (e.g. HPUX 11). (bug 552).
1033 o More i18n fixes for SWAT (bug 413).
1034 o Change the cwd before the postexec script to ensure that a
1035 umount will succeed.
1036 o Correct double free that caused winbindd to crash when a DC
1037 is rebooted (bug 437).
1038 o Fix incorrect mode sum (bug 562).
1039 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1040 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1041 o Add script to generate *msg files.
1042 o Add Dutch SWAT translation file.
1043 o Make sure to call get_user_groups() with the full winbindd
1044 name for a user if he/she has one (bug 406).
1045 o Fix up error code returns from Samba4 tester. Ensure invalid
1046 paths are validated the same way.
1047 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1048 o Refuse to configure if --with-expsam=$BACKEND was used but no
1049 libraries were found for $BACKEND.
1050 o Move sysquotas autoconf tests to a separate file.
1051 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1053 o Make sure that the files that contain the static_init_$subsystem;
1054 macro get recompiled after configure by removing the object
1056 o Ensure canceling a blocking lock returns the correct error
1058 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1059 o Updated Japanese welcome file in SWAT.
1060 o Fix to nt-time <-> unix-time functions reversible.
1061 o Ensure that winbindd uses the the escaped DN when querying
1063 o Fix portability issues when compiling (bug 505, 550)
1064 o Compile fix for tdbbackup when Samba needs to override
1065 non-C99 compliant implementations of snprintf().
1066 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1067 o Make sure we break out of samsync loop on error.
1068 o Ensure error code path doesn't free unmalloc()'d memory
1070 o Add configure test for krb5_keytab_entry keyblock vs key
1073 o Modified testparm so that all output so all debug output goes
1074 to stderr, and all file processing goes to stdout.
1075 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1077 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1078 we have a devmode before copying a string to the devicename.
1079 o Support mapping REALM.COM\user to a local user account (without
1080 running winbindd) for compatibility with 2.2.x release.
1081 o Ensure we don't use mmap() on blacklisted systems.
1082 o fixed a number of bugs and memory leaks in the AIX
1084 o Call initgroups() in SWAT before becomming the user so that
1085 secondary group permissions can be used when writing to
1087 o Fix signing problems when reverse connecting back to a
1088 client for printer notify
1089 o Fix signing problems caused by a miss-sequence bug.
1090 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1091 Fixes NEXUS tools running on Win9x clients (bug 64).
1092 o Don't leave the domain field uninitialized in cli_lsa.c if some
1093 SID could not be mapped.
1094 o Fix segfault in mount.cifs helper when there is no options
1095 specified during mount.
1096 o Change the \n after the password prompt to go to tty instead
1097 of stdout (bug 668).
1098 o Stop net -P from prompting for machine account password (bug 451).
1099 o Change in behavior to Not only change the effective uid but also
1100 the real uid when becoming unprivileged.
1101 o Cope with Exchange 5.5 cleartext pop password auth.
1102 o New files for support of initshutdown pipe. Win2k doesn't
1103 respond properly to all requests on the winreg pipe, so we need
1104 to handle this new pipe (bug 534).
1105 o Added more va_copy() checks in configure.in.
1106 o Include fixes for libsmbclient build problems.
1107 o Missing UNIX -> DOS codepage conversion in lanman.c.
1108 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1109 o Parameterize the listen backlog in smbd and make it larger by
1110 default. A backlog of 5 is way too small these days.
1111 o Check for an invalid fid before dereferencing the fsp pointer
1113 o Remove invalid memory frees and return codes in pdb_ldap.c.
1114 o Prompt for password when invoking --set-auth-user and no
1116 o Bind the nmbd sending socket to the 'socket address'.
1117 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1118 $LDFLAGS occurs before any library specification (bug 661).
1119 o Fix large number of printf() calls for 64-bit size_t.
1120 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1121 keyblock in the krb5 structs.
1122 o Remove #include <compat.h> in hopes to avoid problems with
1123 apache header files.
1124 o Correct winbindd build problems on HP-UX 11.
1125 o Lowercase netgroups lookups (bug 703).
1126 o Use the actual size of the buffer in strftime instead of a made
1127 up value which just happens to be less than sizeof(fstring).
1129 o Add ldaplibs to pdbedit link line (bug 651).
1130 o Fix crash bug in smbclient completion (bug 659).
1131 o Fix packet length for browse list reply (bug 771).
1132 o Fix coredump in cli_get_backup_list().
1133 o Make sure that we expand %N (bug 612).
1134 o Allow rpcclient adddriver command to specify printer driver
1136 o Compile tdbdump by default.
1137 o Apply patches to fix iconv detection for FreeBSD.
1138 o Do not allow the 'guest account' to be added to a passdb backend
1139 using smbpasswd or pdbedit (bug 624).
1140 o Save LDFLAGS during iconv detection (bug 57).
1141 o Run krb5 logins through the username map if the winbindd
1142 lookup fails (bug 698).
1143 o Add const for lp_set_name_resolve_order() to avoid compiler
1145 o Add support for the %i macro in smb.conf to stand in for the for
1146 the local IP address to which a client connected.
1147 o Allow winbindd to match local accounts to domain SID when
1148 'winbind trusted domains only = yes' (bug 680).
1149 o Remove code in idmap_ldap that searches the user suffix and group
1150 suffix. It's not needed and provides inconsistent functionality
1151 from the tdb backend.
1152 o Patch to handle munged dial string for Windows 2000 TSE.
1153 Thanks to Gaz de France, Direction de la Recherche, Service
1154 Informatique Métier for their supporting this work by Aurelien
1155 Degrémont <adegremont@idealx.com>.
1156 o Correct the "smbldap_open: cannot access when not root error"
1157 messages when looking up group information (bug 281).
1158 o Skip over the winbind separator when looking up a user.
1159 This fixes the bug that prevented local users from
1160 matching an AD user when not running winbindd (bug 698).
1161 o Fix a problem with configure on *BSD systems. Make sure
1162 we add -liconv etc to LDFLAGS.
1163 o Fix core dump bug when "security = server" and the authentication
1165 o Correct crash bug due to an empty munged dial string.
1166 o Show files locked by a specific user (smbstatus -u 'user')
1168 o Fix bug preventing print jobs from display in the queue
1169 monitor used by Windows NT and later clients (bug 660).
1170 o Fix several reported problems with point-n-print from
1171 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1172 reply (bug 338, 527 & 643).
1173 o Fix a handful of potential memory leaks in the LDAP code used
1174 by ldapsam[_compat] and the LDAP idmap backend.
1175 o Fix for pdbedit error code returns (bug 763).
1176 o Make sure we only enumerate group mapping entries (not
1177 /etc/group) even when doing local aliases.
1178 o Relax check on the pipe name in a dce/rpc bind response to work
1179 around issues with establishing trusts to a Windows 2003 domain.
1180 o Ensure we mangle names ending in '.' in hash2 mangling method.
1181 o Correct parsing issues with munged dial string.
1182 o Fix bugs in quota support for XFS.
1183 o Add a cleaner method for applications that need to provide
1184 name->SID mappings to do this via NSS rather than having to
1185 know the winbindd pipe protocol.
1186 o Adds a variant of the winbindd_getgroups() call called
1187 winbindd_getusersids() that provides direct SID->SIDs listing of
1188 a users supplementary groups. This is enough to allow non-Samba
1189 applications to do ACL checking.
1190 o Make sure we don't append the 'ldap suffix' when writing out the
1191 'ldap XXX suffix' values in SWAT (bug 328).
1192 o Fix renames across file systems.
1193 o Ensure that items in a list of strings containing whitespace are
1194 written out surrounded by single quotes. This means that both
1195 double and single quotes are now used to surround strings in
1197 o Enable SWAT to correctly determine if winbindd is running (bug
1199 o Include WWW-Authenticate field in 401 response for bad auth
1201 o Add support for NTLM2 (NTLMv2 session security).
1202 o Add support for variable-length session keys.
1203 o More privilege fixes for group enumeration in LDAP (bug 281).
1204 o Use the dns name (or IP) as the originating client name when
1205 using CUPS (bug 467).
1206 o Fix various SMB signing bugs.
1207 o Fix ACL propagation on a DFS root (bug 263).
1208 o Disable NTLM2 for RPC pipes.
1209 o Allow the client to specify the NTLM2 flags got NTLMSSP
1211 o Change the name of the job passed off to cups from "Test Page"
1212 to "smbprn.00000033 Test Page" so that we can get the smb
1213 jobid back. This allow users to delete jobs with cups printing
1214 backend (partial work on bug 770).
1215 o Fix build of winbindd with static pdb modules.
1216 o Retrieve the correct ACL group bits if the file has an ACL
1218 o Implement "net rpc group members": Get members of a domain group
1219 in human-readable format.
1220 o Add MacOSX (Darwin) specific charset module code.
1221 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1222 can include the full name in gecos field (bug 587).
1223 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1224 o Implement 'net rpc group list [global|local|builtin]*' for a
1225 select listing of the respective user databases.
1226 o Don't automatically set NT status code flag unless client tells
1228 o Add 'net status [sessions|shares] [parseable]'.
1229 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1231 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1233 o Fix inverted logic in hosts allow/deny checks caused by
1234 s/strcmp/strequal/ (bug 846).
1235 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1236 o Fix typo in 'hash' mangling algorithm.
1237 o Support munged dial for ldapsam (bug 800).
1238 o Fix process_incoming_data() to return the number of bytes handled
1239 this call whether we have a complete PDU or not; fixes bug
1240 with multiple PDU request rpc's broken over SMBwriteX calls
1242 o Fix incorrect smb flags2 for connections to pre-NT servers
1243 (causes smbclient to fail to OS2 for example) (bug 821).
1244 o Update version string in smbldap-tools Makefile to 0.8.2.
1245 o Correct a problem with "net rpc vampire" mis-parsing the
1246 alias member info reply.
1247 o Ensure the ${libdir} is created by the installclientlib script.
1248 o Fix detection of Windows 2003 client architecture in the smb.conf
1250 o Ensure that smbd calls the add user script for a missing UNIX
1251 user on kerberos auth call (bug 445).
1252 o Fix bugs in hosts allow/deny when using a mismatched
1253 network/netmask pair.
1254 o Protect alloc_sub_basic() from crashing when the source string
1255 is NULL (partial work on bug 687).
1256 o Fix spinlocks on IRIX.
1257 o Corrected some bad destination paths when running "configure
1259 o Add packaging files for Fedora Core 1.
1260 o Correct bug in SWAT install script for non-english languages.
1261 o Support character set ISO-8859-1 internally (bug 558).
1262 o Fixed more LDAP access errors when looking up group mappings
1264 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1265 resolution to fail on local files on on domain members
1267 o Fix uninitialized variable in passdb.c.
1268 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1269 o Fix problem mounting directories when mount.cifs is installed
1270 with the setuid bit on.
1271 o Fix bug that prevent --mandir from overriding the defaults
1272 given in the --with-fhs macro.
1273 o Fix bug in in-memory Kerberos keytab detection routines
1278 ######################################################################
1280 The original 3.0.0 release notes follow
1281 =======================================
1282 WHATS NEW IN Samba 3.0.0
1284 =======================================
1290 1) Active Directory support. Samba 3.0 is now able to
1291 join a ADS realm as a member server and authenticate
1292 users using LDAP/Kerberos.
1294 2) Unicode support. Samba will now negotiate UNICODE on the wire
1295 and internally there is now a much better infrastructure for
1296 multi-byte and UNICODE character sets.
1298 3) New authentication system. The internal authentication system
1299 has been almost completely rewritten. Most of the changes are
1300 internal, but the new auth system is also very configurable.
1302 4) New default filename mangling system.
1304 5) A new "net" command has been added. It is somewhat similar to
1305 the "net" command in windows. Eventually we plan to replace
1306 numerous other utilities (such as smbpasswd) with subcommands
1309 6) Samba now negotiates NT-style status32 codes on the wire. This
1310 improves error handling a lot.
1312 7) Better Windows 2000/XP/2003 printing support including publishing
1313 printer attributes in active directory.
1315 8) New loadable module support for passdb backends and character
1318 9) New default dual-daemon winbindd support for better performance.
1320 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1321 domain and maintaining user, group and domain SIDs.
1323 11) Support for establishing trust relationships with Windows NT 4.0
1326 12) Initial support for a distributed Winbind architecture using
1327 an LDAP directory for storing SID to uid/gid mappings.
1329 13) Major updates to the Samba documentation tree.
1331 14) Full support for client and server SMB signing to ensure
1332 compatibility with default Windows 2003 security settings.
1334 15) Improvement of ACL mapping features based on code donated by
1335 Andreas Grünbacher.
1338 Plus lots of other improvements!
1341 Additional Documentation
1342 ------------------------
1344 Please refer to Samba documentation tree (included in the docs/
1345 subdirectory) for extensive explanations of installing, configuring
1346 and maintaining Samba 3.0 servers and clients. It is advised to
1347 begin with the Samba-HOWTO-Collection for overviews and specific
1348 tasks (the current book is up to approximately 400 pages) and to
1349 refer to the various man pages for information on individual options.
1351 We are very glad to be able to include the second edition of
1352 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1353 (O'Reilly & Associates) in this release. The book is available
1354 on-line at http://samba.org/samba/docs/ and is included with
1355 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1356 publisher for making "Using Samba" under the GNU Free Documentation
1360 ######################################################################
1361 Upgrading from a previous Samba 3.0 beta
1362 ########################################
1364 Beginning with Samba 3.0.0beta3, the RID allocation functions
1365 have been moved into winbindd. Previously these were handled
1366 by each passdb backend. This means that winbindd must be running
1367 to automatically allocate RIDs for users and/or groups. Otherwise,
1368 smbd will use the 2.2 algorithm for generating new RIDs.
1370 If you are using 'passdb backend = tdbsam' with a previous Samba
1371 3.0 beta release (or possibly alpha), it may be necessary to
1372 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1373 to winbindd_idmap.tdb. To do this:
1375 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
1377 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
1379 3) run: (note that 'tdb>' is the tool's prompt for input)
1381 root# ./tdbtool /usr/local/samba/private/passdb.tdb
1382 tdb> show RID_COUNTER
1386 [000] 0A 52 00 00 .R.
1388 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1392 If you are using 'passdb backend = ldapsam', it will be necessary to
1393 store idmap entries in the LDAP directory as well (i.e. idmap backend
1394 = ldap). Refer to the 'net idmap' command for more information on
1395 migrating SID<->UNIX id mappings from one backend to another.
1397 If the RID_COUNTER record does not exist, then these instructions are
1398 unneccessary and the new RID_COUNTER record will be correctly generated
1403 ########################
1404 Upgrading from Samba 2.2
1405 ########################
1407 This section is provided to help administrators understand the details
1408 involved with upgrading a Samba 2.2 server to Samba 3.0.
1414 Many of the options to the GNU autoconf script have been modified
1415 in the 3.0 release. The most noticeable are:
1417 * removal of --with-tdbsam (is now included by default; see section
1418 on passdb backends and authentication for more details)
1420 * --with-ldapsam is now on used to provided backward compatible
1421 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
1422 backend and authentication section for more details
1424 * inclusion of non-standard passdb modules may be enabled using
1425 --with-expsam. This includes an XML backend and a mysql backend.
1427 * removal of --with-msdfs (is now enabled by default)
1429 * removal of --with-ssl (no longer supported)
1431 * --with-utmp now defaults to 'yes' on supported systems
1433 * --with-sendfile-support is now enabled by default on supported
1440 This section contains a brief listing of changes to smb.conf options
1441 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
1442 complete descriptions of new or modified parameters.
1444 Removed Parameters (order alphabetically):
1447 * alternate permissions
1450 * code page directory
1452 * domain admin group
1453 * domain guest group
1454 * force unknown acl user
1460 * printer driver file
1461 * printer driver location
1463 * source environment
1471 New Parameters (new parameters have been grouped by function):
1475 * abort shutdown script
1478 User and Group Account Management
1479 ---------------------------------
1481 * add machine script
1482 * add user to group script
1483 * algorithmic rid base
1484 * delete group script
1485 * delete user from group script
1487 * set primary group script
1493 * passwd chat timeout
1497 * client lanman auth
1498 * client NTLMv2 auth
1504 * paranoid server security
1513 * hide special files
1514 * hide unwriteable files
1516 * kernel change notify
1526 * max reported print jobs
1528 UNICODE and Character Sets
1529 --------------------------
1535 SID to uid/gid Mappings
1536 -----------------------
1540 * winbind enable local accounts
1541 * winbind trusted domains only
1542 * template primary group
1543 * enable rid algorithm
1550 * ldap machine suffix
1552 * ldap replication sleep
1555 General Configuration
1556 ---------------------
1560 Modified Parameters (changes in behavior):
1562 * encrypt passwords (enabled by default)
1563 * mangling method (set to 'hash2' by default)
1566 * restrict anonymous (integer value)
1567 * security (new 'ads' value)
1568 * strict locking (enabled by default)
1569 * unix extensions (enabled by default)
1570 * winbind cache time (increased to 5 minutes)
1571 * winbind uid (deprecated in favor of 'idmap uid')
1572 * winbind gid (deprecated in favor of 'idmap gid')
1578 This section contains brief descriptions of any new databases
1579 introduced in Samba 3.0. Please remember to backup your existing
1580 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
1581 upgrade databases as they are opened (if necessary), but downgrading
1582 from 3.0 to 2.2 is an unsupported path.
1584 Name Description Backup?
1585 ---- ----------- -------
1586 account_policy User policy settings yes
1587 gencache Generic caching db no
1588 group_mapping Mapping table from Windows yes
1589 groups/SID to unix groups
1590 winbindd_idmap ID map table from SIDS to UNIX yes
1592 namecache Name resolution cache entries no
1593 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1594 returned as part of a successful
1595 net_sam_logon request
1596 printing/*.tdb Cached output from 'lpq no
1597 command' created on a per print
1599 registry Read-only samba registry skeleton no
1600 that provides support for exporting
1601 various db tables via the winreg RPCs
1607 The following issues are known changes in behavior between Samba 2.2 and
1608 Samba 3.0 that may affect certain installations of Samba.
1610 1) When operating as a member of a Windows domain, Samba 2.2 would
1611 map any users authenticated by the remote DC to the 'guest account'
1612 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1613 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1614 current work around to re-establish the 2.2 behavior.
1616 2) When adding machines to a Samba 2.2 controlled domain, the
1617 'add user script' was used to create the UNIX identity of the
1618 machine trust account. Samba 3.0 introduces a new 'add machine
1619 script' that must be specified for this purpose. Samba 3.0 will
1620 not fall back to using the 'add user script' in the absence of
1621 an 'add machine script'
1624 ######################################################################
1625 Passdb Backends and Authentication
1626 ##################################
1628 There have been a few new changes that Samba administrators should be
1629 aware of when moving to Samba 3.0.
1631 1) encrypted passwords have been enabled by default in order to
1632 inter-operate better with out-of-the-box Windows client
1633 installations. This does mean that either (a) a samba account
1634 must be created for each user, or (b) 'encrypt passwords = no'
1635 must be explicitly defined in smb.conf.
1637 2) Inclusion of new 'security = ads' option for integration
1638 with an Active Directory domain using the native Windows
1639 Kerberos 5 and LDAP protocols.
1641 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1642 type which is neccessary for servers on which the
1643 administrator password has not been changed, or kerberos-enabled
1644 SMB connections to servers that require Kerberos SMB signing.
1645 Besides this one difference, either MIT or Heimdal Kerberos
1646 distributions are usable by Samba 3.0.
1649 Samba 3.0 also includes the possibility of setting up chains
1650 of authentication methods (auth methods) and account storage
1651 backends (passdb backend). Please refer to the smb.conf(5)
1652 man page for details. While both parameters assume sane default
1653 values, it is likely that you will need to understand what the
1654 values actually mean in order to ensure Samba operates correctly.
1656 The recommended passdb backends at this time are
1658 * smbpasswd - 2.2 compatible flat file format
1659 * tdbsam - attribute rich database intended as an smbpasswd
1660 replacement for stand alone servers
1661 * ldapsam - attribute rich account storage and retrieval
1662 backend utilizing an LDAP directory.
1663 * ldapsam_compat - a 2.2 backward compatible LDAP account
1666 Certain functions of the smbpasswd(8) tool have been split between the
1667 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1668 utility. See the respective man pages for details.
1671 ######################################################################
1675 This section outlines the new features affecting Samba / LDAP
1681 A new object class (sambaSamAccount) has been introduced to replace
1682 the old sambaAccount. This change aids us in the renaming of
1683 attributes to prevent clashes with attributes from other vendors.
1684 There is a conversion script (examples/LDAP/convertSambaAccount) to
1685 modify and LDIF file to the new schema.
1689 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1690 $ convertSambaAccount --sid=<Domain SID> \
1691 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1692 --changetype=[modify|add]
1694 The <DOM SID> can be obtained by running 'net getlocalsid
1695 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
1696 the format of the generated LDIF output--either create new entries
1697 or modify existing entries.
1699 The old sambaAccount schema may still be used by specifying the
1700 "ldapsam_compat" passdb backend. However, the sambaAccount and
1701 associated attributes have been moved to the historical section of
1702 the schema file and must be uncommented before use if needed.
1703 The 2.2 object class declaration for a sambaAccount has not changed
1704 in the 3.0 samba.schema file.
1706 Other new object classes and their uses include:
1708 * sambaDomain - domain information used to allocate rids
1709 for users and groups as necessary. The attributes are added
1710 in 'ldap suffix' directory entry automatically if
1711 an idmap uid/gid range has been set and the 'ldapsam'
1712 passdb backend has been selected.
1714 * sambaGroupMapping - an object representing the
1715 relationship between a posixGroup and a Windows
1716 group/SID. These entries are stored in the 'ldap
1717 group suffix' and managed by the 'net groupmap' command.
1719 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1720 automatically and contains the next available 'idmap uid' and
1723 * sambaIdmapEntry - object storing a mapping between a
1724 SID and a UNIX uid/gid. These objects are created by the
1725 idmap_ldap module as needed.
1727 * sambaSidEntry - object representing a SID alone, as a Structural
1728 class on which to build the sambaIdmapEntry.
1731 New Suffix for Searching
1732 ------------------------
1734 The following new smb.conf parameters have been added to aid in directing
1735 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1738 * ldap suffix - used to search for user and computer accounts
1739 * ldap user suffix - used to store user accounts
1740 * ldap machine suffix - used to store machine trust accounts
1741 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1742 * ldap idmap suffix - location of sambaIdmapEntry objects
1744 If an 'ldap suffix' is defined, it will be appended to all of the
1745 remaining sub-suffix parameters. In this case, the order of the suffix
1746 listings in smb.conf is important. Always place the 'ldap suffix' first
1749 Due to a limitation in Samba's smb.conf parsing, you should not surround
1750 the DN's with quotation marks.
1756 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1757 following options would inform Samba that the idmap table should be
1758 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1763 idmap backend = ldap:ldap://onterose/
1764 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1765 idmap uid = 40000-50000
1766 idmap gid = 40000-50000
1768 This configuration allows winbind installations on multiple servers to
1769 share a uid/gid number space, thus avoiding the interoperability problems
1770 with NFS that were present in Samba 2.2.
1774 ######################################################################
1775 Trust Relationships and a Samba Domain
1776 ######################################
1778 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1779 allocating uids and gids to trusted users and groups. More
1780 information regarding Samba's support for establishing trust
1781 relationships can be found in the Samba-HOWTO-Collection included
1782 in the docs/ directory of this release.
1784 First create your Samba PDC and ensure that everything is
1785 working correctly before moving on the trusts.
1787 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1788 4.0 domain named WINDOWS:
1790 1) create the trust account for SAMBA in "User Manager for Domains"
1791 2) connect the trust from the Samba domain using
1792 'net rpc trustdom establish GLASS'
1794 To create a trustlationship with SAMBA as the trusted domain:
1796 1) create the initial trust account for GLASS using
1797 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1798 account for GLASS$ prior to this step (depending on your
1799 local configuration).
1800 2) connect the trust from a WINDOWS DC using "User Manager
1803 Now join winbindd on the Samba PDC to the SAMBA domain using
1804 the normal steps for adding a Samba server to an NT4 domain:
1805 (note that smbd & nmbd must be running at this point)
1807 root# net rpc join -U root
1808 Password: <enter root password from smbpasswd file here>
1810 Start winbindd and test the join with 'wbinfo -t'.
1812 Now test the trust relationship by connecting to the SAMBA DC
1813 (e.g. POGO) as a user from the WINDOWS domain:
1815 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1818 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1820 $ smbclient //crystal/netlogon -U root -W WINDOWS
1823 ######################################################################
1827 Beginning with Samba3.0.0beta3, winbindd has been given new account
1828 manage functionality equivalent to the 'add user script' family of
1829 smb.conf parameters. The idmap design has also been changed to
1830 centralize control of foreign SID lookups and matching to UNIX
1834 Brief Description of Changes
1835 ----------------------------
1837 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1838 reverted to the 2.2.x design. This means that when resolving a
1839 SID to a UID or similar mapping:
1841 a) First consult winbindd
1842 b) perform a local lookup only if winbindd fails to
1843 return a successful answer
1845 There are some variations to this, but these two rules generally
1848 2) All idmap lookups have been moved into winbindd. This means that
1849 a server must run winbindd (and support NSS) in order to achieve
1850 any mappings of SID to dynamically allocated UNIX ids. This was
1851 a conscious design choice.
1853 3) New functions have been added to winbindd to emulate the 'add user
1854 script' family of smbd functions without requiring that external
1855 scripts be defined. This functionality is controlled by the 'winbind
1856 enable local accounts' smb.conf parameter (enabled by default).
1858 However, this account management functionality is only supported
1859 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1860 must be shared among multiple Samba servers (such as a PDC and BDCs),
1861 it will be necessary to define your own 'add user script', et. al.
1862 programs that place the accounts/groups in some form of directory
1863 such as NIS or LDAP. This requirement was deemed beyond the scope
1864 of winbind's account management functions. Solutions for
1865 distributing UNIX system information have been deployed and tested
1866 for many years. We saw no need to reinvent the wheel.
1868 4) A member of a Samba controlled domain running winbindd is now able
1869 to map domain users directly onto existing UNIX accounts while still
1870 automatically creating accounts for trusted users and groups. This
1871 behavior is controlled by the 'winbind trusted domains only' smb.conf
1872 parameter (disabled by default to provide 2.2.x winbind behavior).
1874 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1875 in smbd/uid.c. The reason that group mappings are not included
1876 in winbindd is because the purpose of Samba's group map is to
1877 match any Windows SID with an existing UNIX group. These UNIX
1878 groups can be created by winbindd (see next section), but the
1879 SID<->gid mapping is retreived by smbd, not winbindd.
1885 * security = server running winbindd to allocate accounts on demand
1887 * Samba PDC running winbindd to handle the automatic creation of UNIX
1888 identities for machine trust accounts
1890 * Automtically creating UNIX user and groups when migrating a Windows NT
1891 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1892 'net rpc vampire' for this to work.
1895 ######################################################################
1899 * There are several bugs currently logged against the 3.0 codebase
1900 that affect the use of NT 4.0 GUI domain management tools when run
1901 against a Samba 3.0 PDC. This bugs should be released in an early
1904 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1905 filed against the Samba 3.0 codebase.
1908 ######################################################################
1909 Reporting bugs & Development Discussion
1910 #######################################
1912 Please discuss this release on the samba-technical mailing list or by
1913 joining the #samba-technical IRC channel on irc.freenode.net.
1915 If you do report problems then please try to send high quality
1916 feedback. If you don't provide vital information to help us track down
1917 the problem then you will probably be ignored.
1919 A new bugzilla installation has been established to help support the
1920 Samba 3.0 community of users. This server, located at
1921 https://bugzilla.samba.org/, has replaced the older jitterbug server
1922 previously located at http://bugs.samba.org/.