1 =============================
2 Release Notes for Samba 3.0.4
4 =============================
6 This is the latest stable release of Samba. This is the version
7 that production Samba servers should be running for all
8 current bug-fixes. There have been several issues fixes since
9 the 3.0.3 release and new features have been added as well.
10 See the "Changes" section for details on exact updates.
12 Common bugs fixed in Samba 3.0.4 include:
14 o Password changing after applying the patch described in
15 the Microsoft KB828741 article to Windows clients.
17 o Managing print jobs via Windows on Big-Endian servers.
18 o Several memory leaks in winbindd and smbd.
19 o Compile issues on AIX and *BSD.
22 ######################################################################
32 o Jeremy Allison <jra@samba.org>
33 * Fix path processing for DeletePrinterDriverEx().
34 * BUG 1303: Fix for Microsoft hotfix MS04-011 password change
38 o Andrew Bartlett <abartlet@samba.org>
39 * Fix alignment bug in GetDomPwInfo().
42 o Alexander Bokovoy <ab@samba.org>
43 * Fix utime[s]() issues in smbwrapper on systems
44 that can boot both the 2.4 and 2.6 Linux kernels.
47 o Gerald Carter <jerry@samba.org>
48 * Fedora packaging fixes.
49 * BUG 1302: Fix seg fault by not trying to optimize a list of
50 invalid gids using the wrong array size.
51 * BUG 1309: fix seg fault caused by trying to strdup(NULL)
52 seen when 'security = share'.
53 * Fix problems when using IBM's compiler on AIX.
54 * Link Developer's Guide, Example Guide, and multi-page HOWTO
55 into SWAT's welcome page.
56 * BUG 1293: fix double free in printer publishing code.
59 o Wim Delvaux <wim.delvaux@adaptiveplanet.com>
60 * Fix for handling timeouts in socket connections.
63 o Michel Gravey <michel.gravey@optogone.com>
64 * BUG 483: patch from to fix password hash creation in SWAT.
67 o Volker Lendecke <vl@samba.org>
68 * Close the open NT pipes before the tdis.
69 * Fix AFS related build issues.
70 * Handle error conditions when base64 encoding a blob of 0 bytes.
73 o Herb Lewis <herb@samba.org>
74 * Added 'acls' debug class.
76 o kawasa_r@itg.hitachi.co.jp
77 * Multiple variable initialization and memory leak fixes.
80 o Stephan Kulow <coolo@suse.de>
81 * Fix string length bug in libsmbclient that caused KDE's
83 * BUG 429: More libsmbclient fixes.
86 o Jim McDonough <jmcd@us.ibm.com>
87 * BUG 1007, 1279: Store the print job using a little-endian key.
91 o Compile fix for OpenBSD (ENOTSUP not supported).
94 o Stefan Metzmacher <metze@samba.org>
95 * Correct bug in disks quota views from explorer.
98 o Tim Potter <tpot@samba.org>
99 BUG 1305: Correct debug output.
102 o Richard Sharpe <rsharpe@samba.org>
103 * Fix incorrect error code mapping.
106 o Jelmer Vernooij <jelmer@samba.org>
107 * Add additional NT_STATUS errorm mappings.
110 Changes for older versions follow below:
112 --------------------------------------------------
114 =============================
115 Release Notes for Samba 3.0.3
117 =============================
120 Common bugs fixed in Samba 3.0.3 include:
122 o Crash bugs and change notify issues in Samba's printing code.
123 o Honoring secondary group membership on domain member servers.
124 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
125 o Substitution errors for %[UuGg] in smb.conf.
126 o winbindd crashes when using ADS security mode.
127 o SMB signing errors.
128 o Delays in winbindd startup caused by unnecessary
129 connections to trusted domain controllers.
130 o Various small memory leaks.
131 o Winbindd failing due to expired Kerberos tickets.
133 New features introduced in Samba 3.0.3 include:
135 o Improved support for i18n character sets.
136 o Support for account lockout policy based on
137 bad password attempts.
138 o Improved support for long password changes (>14
139 characters) and strong password enforcement.
140 o Support for Windows aliases (i.e. nested groups).
141 o Experimental support for storing DOS attribute on files
142 and folders in Extended Attributes.
143 o Support for local nested groups via winbindd.
144 o Specifying options to be passed directly to the CUPS libraries.
146 Please be aware that the Samba source code repository was
147 migrated from CVS to Subversion on April 4, 2004. Details on
148 accessing the Samba source tree via anonymous svn can be found
149 at http://svn.samba.org/samba/subversion.html.
157 Parameter Name Action
158 -------------- ------
162 store dos attributes New
164 winbind nested groups New
170 o Jeremy Allison <jra@samba.org>
171 * Ensure that Kerberos mutex is always properly unlocked.
172 * Removed Heimdal "in-memory keytab" support.
173 * Fixup the 'multiple-vuids' bugs in our server code.
174 * Correct return code from lsa_lookup_sids() on unmapped
175 sids (based on work by vl@samba.org).
176 * Fix the "too many fcntl locks" scalability problem
178 * Fixup correct (as per W2K3) returns for lookupsids
179 as well as lookupnames.
180 * Fixups for delete-on-close semantics as per Win2k3 behavior.
181 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
182 * Fix "unable to initialize" bug when smbd hasn't been run with
183 new system and a user is being added via pdbedit/smbpasswd.
184 * Added NTrename SMB (0xA5).
185 * Fixup correct timeout values for blocking lock timeouts.
186 * Fix various bugs reported by 'gentest'.
187 * More locking fixes in the case where we own the lock.
188 * Fix up regression in IS_NAME_VALID and renames.
189 * Don't set allocation size on directories.
190 * Return correct error code on fail if file exists and target
192 * Added client "hardlink" comment to test doing NT rename with
193 hard links. Added hardlink_internals() code - UNIX extensions
194 now use this as well.
195 * Use a common function to parse all pathnames from the wire for
196 much closer emulation of Win2k3 error return codes.
197 * Implement check_path_syntax() and rewrite string sub
198 functions for better multibyte support.
199 * Ensure msdfs referrals are multibyte safe.
200 * Allow msdfs symlink syntax to be more forgiving.
201 eg. sym_link -> msdfs://server/share/path/in/share
202 or sym_link -> msdfs:\\server\share\path\in\share.
203 * Cleanup multibyte netbios name support in nmbd ( based on patch
204 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
205 * Fix check_path_syntax() for multibyte encodings which have
206 no '\' as second byte (based on work by ab@samba.org.
207 * Fix the "dfs self-referrals as anonymous user" problem
208 (based on patch from vl@samba.org).
209 * BUG 1064: Ensure truncate attribute checking is done correctly
210 on "hidden" dot files.
211 * Fix bug in anonymous dfs self-referrals again.
212 * Fix get/set of EA's in client library
213 * Added support for OS/2 EA's in smbd server.
214 * Added 'ea support' parameter to smb.conf.
215 * Added 'store dos attributes' parameter to smb.conf.
216 * Fix wildcard identical rename.
217 * Fix reply_ctemp - make compatible with w2k3.
218 * Fix wildcard unlink.
219 * Fix wildcard src with wildcard dest renames.
220 * BUG 1139: Fix based on suggestion by jdev@panix.com.
221 swap lookups for user and group - group will do an
222 algorithmic lookup if it fails, user won't.
223 * Make EA's lookups case independent.
224 * Fix SETPATHINFO in 'unix extensions' support.
225 * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for
226 the UNIX info levels, and the short case preserve names.
229 o Timur Bakeyev <timur@com.bat.ru>
230 * BUG 1144: only set --with-fhs when the argument is 'yes'
231 * BUG 1152: Allow python modules to build despite libraries added
232 to LDFLAGS instead of LDPATH.
233 * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
236 o Craig Barratt <cbarratt@users.sourceforge.net>
237 * BUG 389: Allow multiple exclude arguments with smbclient
238 tar -Xr options (better support for Amanda backup client).
241 o Andrew Bartlett <abartlet@samba.org>
242 * Include support for linking with cracklib for enforcing strong
244 * Add support for >14 character password changes from Windows
246 * Add 'admin set password' capability to 'net rpc'.
247 * Allow 'net rpc samdump' to work with any joined domain
248 regardless of smb.conf settings.
249 * Use an allocated buffer for count_chars.
250 * Add sanity checks for changes in the domain SID in an
252 * Implement python unit tests for Samba's multibyte string
254 * Remove 'unicode' smb.conf option.
255 * BUG 1138: Fix support for 'optional' SMB signing and other
257 * BUG 169: Fix NTLMv2-only behavior.
258 * Ensure 'net' honors the 'netbios name' in the smb.conf by
260 * Support SMB signing on connections using only the LANMAN
261 password and generate the correct the 'session key' for these
263 * Implement --required-membership-of=, an ntlm_auth option
264 that restricts all authentication to members of this particular
266 * Improve our fall back code for password changes.
267 * Only send the ntlm_auth 'ntlm-server-1' helper client a '.'
268 after the server had said something (such as an error).
269 * Add 'ntlm-server-1' helper protocol to ntlm_auth.
272 o Alexander Bokovoy <ab@samba.org>
273 * Fix incorrect size calculation of the directory name
275 * Fix problems with very long filenames in both smbd and smbclient
276 caused by truncating paths during character conversions.
277 * Fix smbfs problem with Tree Disconnect issued before smbfs
281 o Gerald Carter <jerry@samba.org>
282 * BUG 850: Fix 'make installmodules' bug on True64.
283 * BUG 66: mark 'only user' deprecated.
284 * Remove corrupt tdb and shutdown (only for printing tdbs,
285 connections, sessionid & locking).
286 * decrement smbd counter in connections.tdb in smb_panic().
287 * RedHat specfile updates.
288 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
289 * BUG 1147; bad pointer case in get_stored_queue_info()
291 * BUG 761: read the config file before initialized default
292 values for printing options; don't default to bsd printing
294 * Allow the 'printing' parameter to be set on a per share basis.
295 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
296 * BUG 848: don't create winbind local users/groups that already
298 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
300 * BUG 488: fix the 'show client in col 1' button and correctly
301 enumerate active connections.
302 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
303 problem when storing the updating pid for the lpq cache.
304 * BUG 1007 (partial): Fix print change notify bugs.
305 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
306 and winbind use default domain = yes. Also ensures that
307 * BUG 1151: Ensure that winbindd users are passed through
309 * Fix client rpc binds for ASU derived servers (pc netlink,
311 * BUG 417, 1128: Ensure that the current_user_info is set
312 consistently so that %[UuGg] is expanded correctly.
313 * BUG 1195: Fix crash in winbindd when the ADS server is
315 * BUG 1185: Set reconnect time to be the same as the
316 'winbind cache time'.
317 * Ensure that we return the sec_desc in smb_io_printer_info_2.
318 * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
319 * BUG 1095: Honor the '-l' option in smbclient.
320 * BUG 1023: surround get_group_from_gid() with become_unbecome_root()
322 * Ensure server schannel uses the auth level requested by the
324 * Removed --with-cracklib option due to potential crash issue.
325 * Fix -lcrypto linking problem with wbinfo.
326 * BUG 761: allow printing parameter to set defaults on a per
328 * Add 'cups options' parameter to allow raw printing without
329 changing /etc/cups/cupsd.conf.
330 * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and
332 * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
333 * BUG 1288: resolve any machine netbios name (0x00) and not just
335 * BUG 1199: Fix potential symlink issue in
336 examples/printing/smbprint.
339 o Robert Dahlem <Robert.Dahlem@gmx.net>
340 * BUG 1048: Don't return short names when when 'mangled names = no'
343 o Guenther Deschner <gd@suse.com>
344 * Remove hard coded attribute name in the ads ranged retrieval
346 * Add --with-libdir and --with-mandir to autoconf script.
349 o Bostjan Golob <golob@gimb.org>
350 * BUG 1046: Fix getpwent_list() so that the username is not
351 overwritten by other fields.
354 o Landon Fuller <landonf@opendarwin.org>
355 * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller)
356 to fix user/group enumeration on systems whose libc does not
357 call setgrent() before trying to enumerate users (i.e.
361 o Steve French <sfrench@us.ibm.com>
362 * Update mount.cifs to version 1.1.
363 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
364 * Fixes to minor security bug in the mount helper.
365 * Fix credential file mounting for cifs vfs.
366 * Fix free of incremented pointer in cifsvfs mount helper.
367 * Fix path canonicalization of the mount target path and help
368 text display in the cifs mount helper.
369 * Add missing guest mount option for mount.cifs.
372 o SATOH Fumiyasu <fumiya@miraclelinux.com>
373 * BUG 1055; formatting fixes for 'net share'.
374 * BUG 692: correct truncation of share names and workgroup
376 * BUG 1088: use strchr_m() for query_host (smbclient -L).
377 * Patch from to internally count characters correctly.
380 o Paul Green <paulg@samba.org>
381 * Update VOS _POSIX_C_SOURCE macro to 200112L.
382 * Fix bug in configure.ion by moving the first use of
383 AC_CHECK_HEADERS so it is always executed.
384 * Fix configure.in to only use $BLDSHARED to select whether to
385 build static or shared libraries.
388 o Pat Haywarrd <Pat.Hayward@propero.net>
389 * Make the session_users list dynamic (max of 128K).
392 o Cal Heldenbrand <calzplace@yahoo.com>
393 * Fix for for 'pam_smbpass migrate' functionality.
396 o Chris Hertel <crh@samba.org>
397 * fix enumeration of shares 12 characters in length via
401 o Ulrich Holeschak <ulrich@holeschak.de>
402 * BUG 932: fix local password change using pam_smbpass
405 o Krischan Jodies <kj@sernet.de>
406 * Implement 'net rpc group delete'
409 o John Klinger <john.klinger@lmco.com>
410 * Return NSS_SUCCESS once the max number of gids possible
411 has been found in initgroups() on Solaris.
412 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
415 o Volker Lendecke <vl@samba.org>
416 * Fix success message for net groupmap modify.
417 * Fix errors when enumerating members of groups in 'net rpc'.
418 * Match Windows behavior in samr_lookup_names() by returning
419 ALIAS(4) when you search in BUILTIN.
420 * Fix server SAMR code to be able to set alias info for
422 * Fix duplication of logic when creating groups via smbd.
423 * Ensure that the HWM values are set correctly after running
425 * Add 'net rpc group add'.
426 * Implement 'net groupmap set' and 'net groupmap cleanup'.
427 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
428 * Fix wb_delgrpmem (wbinfo -o).
429 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
430 * Fix sambaUserWorkstations on a Samba DC.
431 * Implement wbinfo -k: Have winbind generate an AFS token after
432 authenticating the user.
433 * Add expand_msdfs VFS module for providing referrals based on the
434 the client's IP address.
435 * Implement client side NETLOGON GetDCName function.
436 * Fix caching of name->sid lookups.
437 * Add support in winbindd for expanding nested local groups.
438 * Fix memleak in winbindd.
440 * Don't list domain groups from BUILTIN.
441 * Fix memleak in policy handle utility functions.
442 * Decrease winbindd startup time by only contacting trusted
443 domains as necessary.
444 * Allow winbindd to ask the DC for its domain for a trusted
446 * Fix Netscape DS schema based on comments from
447 <thomas.mueller@christ-wasser.de>.
448 * Correct case where adding a domain user to a XP local group
449 did a lsalookupname on the user without domain prefix, and
451 * Fix segfault in winbindd caused by 'wbinfo -a'.
454 o Herb Lewis <herb@samba.org>
455 * Fix typo for tag in proto file.
456 * Add missing #ifdef HAVE_BICONV stuff.
457 * Truncate Samba's netbios name at the first '.' (not
461 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
462 * Bug fixes and enhancements to libsmbclient library.
465 o Jianliang Lu <j.lu@tiesse.com>
466 * Enforce the 'user must change password at next login' flag.
467 * Decode meaning of 'fields present' flags (improves support
470 * Don't force an upper case domain name in the ntlmssp code.
473 o L. Lucius <ib@digicron.com>.
477 o Jim McDonough <jmcd@us.ibm.com>
478 * Add versioning support to tdbsam.
479 * Update the IBM Directory Server schema with the OpenLDAP
481 * Various decoding fixes to improve usrmgr.exe support.
482 * Fix statfs redeclaration of statfs struct on ppc
483 * Implement support for password lockout of Samba domain
484 controllers and standalone servers.
485 * Get MungedDial attribute actually working with full TS
486 strings in it for pdb_ldap.
487 * BUG 1208 (partial): Improvements for working with expired krb5
489 * Use timegm, or our already existing replacement instead of
490 timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
491 * Remove modifyTimestamp from list of our attributes.
492 * Fix lsalookupnames to check for domain users as well as local
494 * Merge struct uuid replacement for GUID from trunk.
495 * BUG 1208: Finish support for handling expired tickets in
496 winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
499 o Stefan Metzmacher <metze@samba.org>
500 * Implement new VERSION schema based on subversion revision
502 * Add shadow_copy vfs module.
503 * Fix segault in login_cache support.
506 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
507 o BUG 979 -- Fix quota display on AIX.
510 o James Peach <jpeach@sgi.com>
511 * Correct check for printf() format when using the SGI MIPSPro
513 * BUG 1038: support backtrace for 'panic action' on IRIX.
514 * BUG 768: Accept profileing arg to IRIX init script.
515 * BUG 748: Relax arg parsing to sambalp script (IRIX).
516 * BUG 758: Fix pdma build.
517 * Search IRIX ABI paths for libiconv. Based on initial fix from
521 o Kurt Pfeifle <kpfeifle@danka.de>
522 * Add example shell script for migrating drivers and printers
523 from a Windows print server to a Samba print server using
524 smbclient/rpcclient (examples/printing/VamireDriversFunctions).
527 o Tim Potter <tpot@samba.org>
528 * Fix logic bug in tdb non-blocking lock routines when
530 * BUG 1025: Include sys/acl.h in check for broken nisplus
532 * BUG 1066: s/printf/d_printf/g in SWAT.
533 * BUG 1098: rename internal msleep() function to fix build
535 * BUG 1112: Fix for writable printerdata problem in python bindings.
536 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
537 * BUG 1155: enclose use of fchown() with guards.
538 * Relicense tdb python module as LGPL.
541 o Richard Sharpe <rsharpe@samba.org>
542 * Add support to smbclient for multiple logins on the same
543 session (based on work by abartlet@samba.org).
544 * Correct blocking condition in smbd's use of accept() on IRIX.
545 * Add support for printing out the MAC address on nmblookup.
548 o Simo Source <idra@samba.org>
549 * Replace unknown_3 with fields_present in SAMR code.
550 * More length checks in strlcat().
553 o Andrew Tridgell <tridge@samba.org>
554 * Rewrote the AIX UESS backend for winbindd.
555 * Fixed compilation with --enable-dmalloc.
556 * Change tdb license to LGPL (see source/tdb/tdb.c).
557 * Force winbindd to use schannel in clients connections to
561 o Jelmer Vernooij <jelmer@samba.org>
562 * Fix ETA Calculation when resuming downloads in smbget.
563 * Add -O (for writing downloaded files to standard out)
564 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
565 * Fix syntax error in example mysql table
568 o TAKEDA yasuma <yasuma@miraclelinux.com>
569 * BUG 900: fix token processing in cmd_symlink, cmd_link,
570 cmd_chown, cmd_chmod smbclient functions.
573 o Shiro Yamada <shiro@miraclelinux.com>
574 * BUG 1129: install image files for SWAT.
577 --------------------------------------------------
579 ==============================
580 Release Notes for Samba 3.0.2a
582 ==============================
584 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
585 to address, in particular, a problem when using pdbedit to
586 sanitize (--force-initialized-passwords) Samba's tdbsam
587 backend. This is the latest stable release of Samba. This
588 is the version that all production Samba servers should be
589 running for all current bug-fixes.
591 ******************* Attention! Achtung! Kree! *********************
593 Beginning with Samba 3.0.2, passwords for accounts with a last
594 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
595 ldapsam, etc...) of zero (0) will be regarded as uninitialized
596 strings. This will cause authentication to fail for such
597 accounts. If you have valid passwords that meet this criteria,
598 you must update the last change time to a non-zero value. If you
599 do not, then 'pdbedit --force-initialized-passwords' will disable
600 these accounts and reset the password hashes to a string of X's.
602 ******************* Attention! Achtung! Kree! *********************
611 Please refer to the CVS log for the SAMBA_3_0 branch for complete
612 details. The list of changes per contributor are as follows:
615 o Jeremy Allison <jra@samba.org>
616 * Added paranoia checks in parsing code.
619 o Andrew Bartlett <abartlet@samba.org>
620 * Ensure that changes to uninitialized passwords in ldapsam
621 are written to the DIT.
624 o Gerald (Jerry) Carter <jerry@samba.org>
625 * Fixed iterator in tdbsam.
626 * Fix bug that disabled accounts with a valid NT password
627 hash, but no LanMan hash.
630 o Steve French <sfrench@us.ibm.com>
631 * Added missing nosetuid and noexec options.
634 o Bostjan Golob <golob@gimb.org>
635 * BUG 1046: Don't overwrite usernames of entries returned
639 o Sebastian Krahmer <krahmer@suse.de>
640 * Fixed potential crash bug in NTLMSSP parsing code.
643 o Tim Potter <tpot@samba.org>
644 * Fixed logic in tdb_brlock error checking.
647 o Urban Widmark <urban@teststation.com>
648 * Set nosuid,nodev flags in smbmnt by default.
651 --------------------------------------------------
653 =============================
654 Release Notes for Samba 3.0.2
656 =============================
658 It has been confirmed that previous versions of Samba 3.0 are
659 susceptible to a password initialization bug that could grant an
660 attacker unauthorized access to a user account created by the
661 mksmbpasswd.sh shell script.
663 The Common Vulnerabilities and Exposures project (cve.mitre.org)
664 has assigned the name CAN-2004-0082 to this issue.
666 Samba administrators not wishing to upgrade to the current
667 version should download the 3.0.2 release, build the pdbedit
670 root# pdbedit-3.0.2 --force-initialized-passwords
672 This will disable all accounts not possessing a valid password
673 (e.g. the password field has been set a string of X's).
675 Samba servers running 3.0.2 are not vulnerable to this bug
676 regardless of whether or not pdbedit has been used to sanitize
679 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
682 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
683 o Logging onto a Samba domain from Windows XP clients.
684 o Problems with the %U and %u smb.conf variables in relation to
685 Windows 9x/ME clients.
686 o Kerberos failures due to an invalid in memory keytab detection
688 o Updates to the ntlm_auth tool.
689 o Fixes for various SMB signing errors.
690 o Better separation of WINS and DNS queries for domain controllers.
691 o Issues with nss_winbind FreeBSD and Solaris.
692 o Several crash bugs in smbd and winbindd.
693 o Output formatting fixes for smbclient for better compatibility
694 with scripts based on the 2.2 version.
703 Parameter Name Action
704 -------------- ------
705 ldap replication sleep New
706 read size removed (unused)
707 source environment removed (unused)
713 Please refer to the CVS log for the SAMBA_3_0 branch for complete
714 details. The list of changes per contributor are as follows:
716 o Jeremy Allison <jra@samba.org>
717 * Revert change that broke Exchange clear text samlogons.
718 * Fix gcc 3.4 warning in MS-DFS code.
719 * Tidy up of NTLMSSP code.
720 * Fixes for SMB signing errors
721 * BUG 815: Workaround NT4 bug to support plaintext
722 password logins and UNICODE.
723 * Fix SMB signing bug when copying large files.
724 * Correct error logic in mkdir_internals() (caused a panic
725 when combined with --enable-developer).
726 * BUG 830: Protect against crashes due to bad character
730 o Petri Asikainen <paca@sci.fi>
731 * BUG 330, 387:Fix single valued attribute updates when
732 working with Novell NDS.
735 o Andrew Bartlett <abartlet@samba.org>
736 * Correctly handle per-pipe NTLMSSP inside a NULL session.
737 * Fix segfault in gencache
738 * Fix early free() of encrypted_session_key.
739 * Change DC lookup routines to more carefully separate
740 DNS names (realms) from NetBIOS domain names.
741 * Add new sid_to_dn() function for internal winbindd use.
742 * Refactor cli_ds_enum_domain_trusts().
743 * BUG 707: Implement range retrieval of ADS attributes (based
744 on work from Volker <vl@samba.org> and Guenther Deschner
746 * Automatically initialize the signing engine if a session key
748 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
749 encoded strings, only form input in SWAT.
750 * Resets the NTLMSSP state for new negotiate packets.
751 * Add 2-byte alignments in net_samlogon() queries to parse
752 odd-length plain text passwords.
753 * Allow Windows groups with no members in winbindd.
754 * Allow normal authentication in the absence of a server
755 generated session key.
756 * More optimizations for looking up UNIX group lists.
757 * Clean up error codes and return values for pam_winbindd
758 and winbindd PAM interface.
759 * Fix string return values in ntlm_auth tool.
760 * Fix segfault when 'security = ads' but no realm is defined.
761 * BUG 722: Allow winbindd to map machine accounts to uids.
762 * More cleanups for winbindd's find_our_domain().
763 * More clearly detect whether a domain controller is an NT4
764 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
765 * Increase separation between DNS queries for hosts and queries
766 for AD domain controllers.
767 * Include additional NT_STATUS to PAM error mappings.
768 * Password initialization fixes.
771 o Justin Baugh <justin.baugh@request.com>
772 * BUG 948: Implement missing functions required for FreeBSD
776 o Alexander Bokovoy <ab@samba.org>
777 * BUG 922: Make sure enable fast path for strlower_m() and
781 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
782 * Fix crash when using 'security = server' and 'encrypt
783 passwords = no' by always initializing the session key.
786 o Dmitry Butskoj <buc@odusz.elektra.ru>
787 * Fix for special files being hidden from admins.
790 o Gerald (Jerry) Carter <jerry@samba.org>
791 * Fix bug in the lanman session key generation. Caused
792 "decode_pw: incorrect password length" error messages.
793 * Save the right case for the located user name in
794 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
795 * BUG 897: Add well known rid for pre win2k compatible access
797 * BUG 887: Correct typo in delete user script example.
798 * Use short lived TALLOC_CTX* for allocating printer objects
799 from the print handle cache.
800 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
801 * Fix several warnings reported by the SUN Forte C compiler.
802 * Fully control DNS queries for AD DC's using 'name resolve order'.
803 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
804 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
805 * BUG 936: fix bind credentials for schannel binds in smbd.
806 * BUG 446: Fix output of smbclient for better compatibility
807 with scripts based on the 2.2 version (including Amanda).
808 * BUG 891, 949: Fedora packaging fixes.
809 * Fix bug that caused rpcclient to incorrectly retrieve
810 the SID for a server (this causing all calls that required
811 this information to fail).
812 * BUG 977: Don't create a homes share for a user if a static
813 share already exists by the same name.
814 * Removed unused smb.conf options.
815 * Password initialization fixes.
816 * Set the disable flag for template accounts created by
818 * Disable any account has no passwords and does not have the
819 ACB_PWNOTREQ bit set.
822 o Guenther Deschner <gd@suse.com>
823 * Install smbwrapper.so should be put into the $(libdir)
825 * Add the capability to specify the new user password
826 for "net ads password" on the command line.
827 * Correctly detect AFS headers on SuSE.
830 o James Flemer <jflemer@uvm.edu>
831 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
832 HAVE_SYS_ATTRIBUTES_H.
835 o Luke Howard <lukeh@PADL.COM>
836 * Fix segfault in session setup reply caused by a early free().
839 o Stoian Ivanov <sdr@bultra.com>
840 * Implement grepable output for smbclient -L.
843 o LaMont Jones <lamont@debian.org>
844 * BUG 225328 (Debian): Correct false failure LFS test that resulted
845 in _GNU_SOURCE not being defined (thus resulting in strndup()
849 o Volker Lendecke <vl@samba.org>
850 * BUG 583: Ensure that user names always contain the short
851 version of the domain name.
852 * Fix our parsing of the LDAP uri.
853 * Don't show the 'afs username map' in the SWAT basic view.
854 * Fix SMB signing issues in relation to failed NTLMSSP logins.
855 * BUG 924: Fix return codes in smbtorture harness.
856 * Always lower-case usernames before handing it to AFS code.
857 * Add a German translation for SWAT.
858 * Fix a segfaults in winbindd.
859 * Fix the user's domain passed to register_vuid() from
860 reply_spnego_kerberos().
861 * Add NSS example code in nss_winbind to convert UNIX
862 id's <-> Windows SIDs.
863 * Display more descriptive error messages for login via 'net'.
864 * Fix compiler warning in the net tool.
865 * Fix length bug when decoding base64 strings.
866 * Ensure we don't call getpwnam() inside a loop that is iterating
867 over users with getpwent(). This broke on glibc 2.3.2.
870 o Herb Lewis <herb@samba.org>
871 * Fix bit rot in psec.
874 o Jianliang Lu <j.lu@tiesse.com>
875 * Ensure we delete the group mapping before calling the delete
877 * Define well known RID for managing the "Power Users" group.
878 * BUG 381: check builtin (not local) group SID when updating
880 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
884 o John Klinger <john.klinger@lmco.com>
885 * Implement initgroups() call in nss_winbind on Solaris.
888 o Jim McDonough <jmcd@us.ibm.com>
889 * Fix regression in net rpc join caused by recent changes
890 to cli_lsa_query_info_policy().
891 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
895 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
896 * BUG 570: Ensure that configure honors the LDFLAGS variable.
899 o Stefan Metzmacher <metze@samba.org>
900 * Implement LDAP rebind sleep patch.
901 * Revert to 2.2 quota code because of so many broken quota files
903 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
904 XFS_USER_QUOTA -> USRQUOTA
905 XFS_GROUP_QUOTA -> GRPQUOTA
906 * Fix disk_free calculation with group quotas.
907 * Add debug class 'quota' and a lot of DEBUG()'s
909 * Fix sys_chown() when no chown() is present.
910 * Add SIGABRT to fault handling in order to catch got a
911 backtrace if an error occurs the OpenLDAP client libs.
915 * Allow an existing LDAP machine account to be re-used when
916 joining an AD domain.
919 o James Peach <jpeach@sgi.com>
920 * BUG 889: Change smbd to use pread/pwrite on platforms that
921 support these calls. Can lead to a significant speed increase.
924 o Tim Potter <tpot@samba.org>
925 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
926 * BUG 924: Fix typo in RW2 torture test.
929 o Richard Sharpe <shape@samba.org>
930 * Small fixes to torture.c to cleanup the error handling
934 o J. Tournier <jerome.tournier@IDEALX.com>
935 * Small fixes for the smbldap-tool scripts.
938 o Andrew Tridgell <tridge@samba.org>
939 * Fix src len check in pull_usc2().
942 o Jelmer Vernooij <jelmer@samba.org>
943 * Put functions for generating SQL queries in pdb_sql.c
944 * Add pgSQL backend (based on patch by Hamish Friedlander)
945 * BUG 908: Fix -s option to smbcontrol.
946 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
947 * Fix for libnss_wins on IRIX platforms.
948 * Fix swatdir for --with-fhs.
951 --------------------------------------------------
953 =============================
954 Release Notes for Samba 3.0.1
956 =============================
958 Some of the more common bugs in 3.0.0 addressed in the release
961 o Substitution problems with smb.conf variables.
962 o Errors in return codes which caused some applications
963 to fail to open files.
964 o General Protection Faults on Windows 2000/XP clients
965 using Samba point-n-print features.
966 o Several miscellaneous crash bugs.
967 o Access problems when enumerating group mappings are
968 stored in an LDAP Directory.
969 o Several common SWAT bugs when writing changes to
971 o Internal inconsistencies when 'winbind use default
977 ----------------------
979 Parameter Name Action
980 -------------- ------
981 hide local users Removed
982 mangled map Deprecated
983 mangled stack Removed
984 passwd chat timeout New
990 o Change the interface for init_unistr2 to not take a length
991 but a flags field. We were assuming that
992 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
993 o Allow d_printf() to handle strings with escaped quotation
994 marks since the msg file includes the escape character (bug 489).
995 o Fix bad html table row termination in SWAT wizard code (bug 413).
996 o Fix to parse the level-2 strings.
997 o Fix for "valid users = %S" in [homes]. Fix read/write
999 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
1000 This is the same way AC_CHECK_LIB works (bug 508).
1001 o Testparm output fixes for clarity.
1002 o Fix broken wins hook functionality -- i18n bug (bug 528).
1003 o Take care of condition where DOS and NT error codes must differ.
1004 o Default to using only built-in charsets when a working iconv
1005 implementation cannot be located.
1006 o Wrap internals of sys_setgroups() so the sys_XX() call can
1007 be done unconditionally (bug 550).
1008 o Remove duplicate smbspool link on SWAT's front page (bug 541).
1009 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
1010 --enable-debug=[yes|no] works correctly.
1011 o Allow ^C to interrupt smbpasswd if using our getpass
1012 (e.g. smbpasswd command).
1013 o Support signing only on RPC's (bug 167).
1014 o Correct bug that prevented Excel 2000 clients from opening
1015 files marked as read-only.
1016 o Portability fix bugs 546 - 549).
1017 o Explicitly initialize the value of AR for vendor makes that don't
1018 do this (e.g. HPUX 11). (bug 552).
1019 o More i18n fixes for SWAT (bug 413).
1020 o Change the cwd before the postexec script to ensure that a
1021 umount will succeed.
1022 o Correct double free that caused winbindd to crash when a DC
1023 is rebooted (bug 437).
1024 o Fix incorrect mode sum (bug 562).
1025 o Canonicalize SMB_INFO_ALLOCATION in the same was as
1026 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1027 o Add script to generate *msg files.
1028 o Add Dutch SWAT translation file.
1029 o Make sure to call get_user_groups() with the full winbindd
1030 name for a user if he/she has one (bug 406).
1031 o Fix up error code returns from Samba4 tester. Ensure invalid
1032 paths are validated the same way.
1033 o Allow Samba3 to pass the Samba4 RAW-READ tests.
1034 o Refuse to configure if --with-expsam=$BACKEND was used but no
1035 libraries were found for $BACKEND.
1036 o Move sysquotas autoconf tests to a separate file.
1037 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
1039 o Make sure that the files that contain the static_init_$subsystem;
1040 macro get recompiled after configure by removing the object
1042 o Ensure canceling a blocking lock returns the correct error
1044 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1045 o Updated Japanese welcome file in SWAT.
1046 o Fix to nt-time <-> unix-time functions reversible.
1047 o Ensure that winbindd uses the the escaped DN when querying
1049 o Fix portability issues when compiling (bug 505, 550)
1050 o Compile fix for tdbbackup when Samba needs to override
1051 non-C99 compliant implementations of snprintf().
1052 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1053 o Make sure we break out of samsync loop on error.
1054 o Ensure error code path doesn't free unmalloc()'d memory
1056 o Add configure test for krb5_keytab_entry keyblock vs key
1059 o Modified testparm so that all output so all debug output goes
1060 to stderr, and all file processing goes to stdout.
1061 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
1063 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
1064 we have a devmode before copying a string to the devicename.
1065 o Support mapping REALM.COM\user to a local user account (without
1066 running winbindd) for compatibility with 2.2.x release.
1067 o Ensure we don't use mmap() on blacklisted systems.
1068 o fixed a number of bugs and memory leaks in the AIX
1070 o Call initgroups() in SWAT before becomming the user so that
1071 secondary group permissions can be used when writing to
1073 o Fix signing problems when reverse connecting back to a
1074 client for printer notify
1075 o Fix signing problems caused by a miss-sequence bug.
1076 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1077 Fixes NEXUS tools running on Win9x clients (bug 64).
1078 o Don't leave the domain field uninitialized in cli_lsa.c if some
1079 SID could not be mapped.
1080 o Fix segfault in mount.cifs helper when there is no options
1081 specified during mount.
1082 o Change the \n after the password prompt to go to tty instead
1083 of stdout (bug 668).
1084 o Stop net -P from prompting for machine account password (bug 451).
1085 o Change in behavior to Not only change the effective uid but also
1086 the real uid when becoming unprivileged.
1087 o Cope with Exchange 5.5 cleartext pop password auth.
1088 o New files for support of initshutdown pipe. Win2k doesn't
1089 respond properly to all requests on the winreg pipe, so we need
1090 to handle this new pipe (bug 534).
1091 o Added more va_copy() checks in configure.in.
1092 o Include fixes for libsmbclient build problems.
1093 o Missing UNIX -> DOS codepage conversion in lanman.c.
1094 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
1095 o Parameterize the listen backlog in smbd and make it larger by
1096 default. A backlog of 5 is way too small these days.
1097 o Check for an invalid fid before dereferencing the fsp pointer
1099 o Remove invalid memory frees and return codes in pdb_ldap.c.
1100 o Prompt for password when invoking --set-auth-user and no
1102 o Bind the nmbd sending socket to the 'socket address'.
1103 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
1104 $LDFLAGS occurs before any library specification (bug 661).
1105 o Fix large number of printf() calls for 64-bit size_t.
1106 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
1107 keyblock in the krb5 structs.
1108 o Remove #include <compat.h> in hopes to avoid problems with
1109 apache header files.
1110 o Correct winbindd build problems on HP-UX 11.
1111 o Lowercase netgroups lookups (bug 703).
1112 o Use the actual size of the buffer in strftime instead of a made
1113 up value which just happens to be less than sizeof(fstring).
1115 o Add ldaplibs to pdbedit link line (bug 651).
1116 o Fix crash bug in smbclient completion (bug 659).
1117 o Fix packet length for browse list reply (bug 771).
1118 o Fix coredump in cli_get_backup_list().
1119 o Make sure that we expand %N (bug 612).
1120 o Allow rpcclient adddriver command to specify printer driver
1122 o Compile tdbdump by default.
1123 o Apply patches to fix iconv detection for FreeBSD.
1124 o Do not allow the 'guest account' to be added to a passdb backend
1125 using smbpasswd or pdbedit (bug 624).
1126 o Save LDFLAGS during iconv detection (bug 57).
1127 o Run krb5 logins through the username map if the winbindd
1128 lookup fails (bug 698).
1129 o Add const for lp_set_name_resolve_order() to avoid compiler
1131 o Add support for the %i macro in smb.conf to stand in for the for
1132 the local IP address to which a client connected.
1133 o Allow winbindd to match local accounts to domain SID when
1134 'winbind trusted domains only = yes' (bug 680).
1135 o Remove code in idmap_ldap that searches the user suffix and group
1136 suffix. It's not needed and provides inconsistent functionality
1137 from the tdb backend.
1138 o Patch to handle munged dial string for Windows 2000 TSE.
1139 Thanks to Gaz de France, Direction de la Recherche, Service
1140 Informatique Métier for their supporting this work by Aurelien
1141 Degrémont <adegremont@idealx.com>.
1142 o Correct the "smbldap_open: cannot access when not root error"
1143 messages when looking up group information (bug 281).
1144 o Skip over the winbind separator when looking up a user.
1145 This fixes the bug that prevented local users from
1146 matching an AD user when not running winbindd (bug 698).
1147 o Fix a problem with configure on *BSD systems. Make sure
1148 we add -liconv etc to LDFLAGS.
1149 o Fix core dump bug when "security = server" and the authentication
1151 o Correct crash bug due to an empty munged dial string.
1152 o Show files locked by a specific user (smbstatus -u 'user')
1154 o Fix bug preventing print jobs from display in the queue
1155 monitor used by Windows NT and later clients (bug 660).
1156 o Fix several reported problems with point-n-print from
1157 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1158 reply (bug 338, 527 & 643).
1159 o Fix a handful of potential memory leaks in the LDAP code used
1160 by ldapsam[_compat] and the LDAP idmap backend.
1161 o Fix for pdbedit error code returns (bug 763).
1162 o Make sure we only enumerate group mapping entries (not
1163 /etc/group) even when doing local aliases.
1164 o Relax check on the pipe name in a dce/rpc bind response to work
1165 around issues with establishing trusts to a Windows 2003 domain.
1166 o Ensure we mangle names ending in '.' in hash2 mangling method.
1167 o Correct parsing issues with munged dial string.
1168 o Fix bugs in quota support for XFS.
1169 o Add a cleaner method for applications that need to provide
1170 name->SID mappings to do this via NSS rather than having to
1171 know the winbindd pipe protocol.
1172 o Adds a variant of the winbindd_getgroups() call called
1173 winbindd_getusersids() that provides direct SID->SIDs listing of
1174 a users supplementary groups. This is enough to allow non-Samba
1175 applications to do ACL checking.
1176 o Make sure we don't append the 'ldap suffix' when writing out the
1177 'ldap XXX suffix' values in SWAT (bug 328).
1178 o Fix renames across file systems.
1179 o Ensure that items in a list of strings containing whitespace are
1180 written out surrounded by single quotes. This means that both
1181 double and single quotes are now used to surround strings in
1183 o Enable SWAT to correctly determine if winbindd is running (bug
1185 o Include WWW-Authenticate field in 401 response for bad auth
1187 o Add support for NTLM2 (NTLMv2 session security).
1188 o Add support for variable-length session keys.
1189 o More privilege fixes for group enumeration in LDAP (bug 281).
1190 o Use the dns name (or IP) as the originating client name when
1191 using CUPS (bug 467).
1192 o Fix various SMB signing bugs.
1193 o Fix ACL propagation on a DFS root (bug 263).
1194 o Disable NTLM2 for RPC pipes.
1195 o Allow the client to specify the NTLM2 flags got NTLMSSP
1197 o Change the name of the job passed off to cups from "Test Page"
1198 to "smbprn.00000033 Test Page" so that we can get the smb
1199 jobid back. This allow users to delete jobs with cups printing
1200 backend (partial work on bug 770).
1201 o Fix build of winbindd with static pdb modules.
1202 o Retrieve the correct ACL group bits if the file has an ACL
1204 o Implement "net rpc group members": Get members of a domain group
1205 in human-readable format.
1206 o Add MacOSX (Darwin) specific charset module code.
1207 o Use samr_dispinfo(level == 1) for enumerating domain users so we
1208 can include the full name in gecos field (bug 587).
1209 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1210 o Implement 'net rpc group list [global|local|builtin]*' for a
1211 select listing of the respective user databases.
1212 o Don't automatically set NT status code flag unless client tells
1214 o Add 'net status [sessions|shares] [parseable]'.
1215 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
1217 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
1219 o Fix inverted logic in hosts allow/deny checks caused by
1220 s/strcmp/strequal/ (bug 846).
1221 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1222 o Fix typo in 'hash' mangling algorithm.
1223 o Support munged dial for ldapsam (bug 800).
1224 o Fix process_incoming_data() to return the number of bytes handled
1225 this call whether we have a complete PDU or not; fixes bug
1226 with multiple PDU request rpc's broken over SMBwriteX calls
1228 o Fix incorrect smb flags2 for connections to pre-NT servers
1229 (causes smbclient to fail to OS2 for example) (bug 821).
1230 o Update version string in smbldap-tools Makefile to 0.8.2.
1231 o Correct a problem with "net rpc vampire" mis-parsing the
1232 alias member info reply.
1233 o Ensure the ${libdir} is created by the installclientlib script.
1234 o Fix detection of Windows 2003 client architecture in the smb.conf
1236 o Ensure that smbd calls the add user script for a missing UNIX
1237 user on kerberos auth call (bug 445).
1238 o Fix bugs in hosts allow/deny when using a mismatched
1239 network/netmask pair.
1240 o Protect alloc_sub_basic() from crashing when the source string
1241 is NULL (partial work on bug 687).
1242 o Fix spinlocks on IRIX.
1243 o Corrected some bad destination paths when running "configure
1245 o Add packaging files for Fedora Core 1.
1246 o Correct bug in SWAT install script for non-english languages.
1247 o Support character set ISO-8859-1 internally (bug 558).
1248 o Fixed more LDAP access errors when looking up group mappings
1250 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
1251 resolution to fail on local files on on domain members
1253 o Fix uninitialized variable in passdb.c.
1254 o Fix formal parameter type in get_static() in nsswitch/wins.c.
1255 o Fix problem mounting directories when mount.cifs is installed
1256 with the setuid bit on.
1257 o Fix bug that prevent --mandir from overriding the defaults
1258 given in the --with-fhs macro.
1259 o Fix bug in in-memory Kerberos keytab detection routines
1264 ######################################################################
1266 The original 3.0.0 release notes follow
1267 =======================================
1268 WHATS NEW IN Samba 3.0.0
1270 =======================================
1276 1) Active Directory support. Samba 3.0 is now able to
1277 join a ADS realm as a member server and authenticate
1278 users using LDAP/Kerberos.
1280 2) Unicode support. Samba will now negotiate UNICODE on the wire
1281 and internally there is now a much better infrastructure for
1282 multi-byte and UNICODE character sets.
1284 3) New authentication system. The internal authentication system
1285 has been almost completely rewritten. Most of the changes are
1286 internal, but the new auth system is also very configurable.
1288 4) New default filename mangling system.
1290 5) A new "net" command has been added. It is somewhat similar to
1291 the "net" command in windows. Eventually we plan to replace
1292 numerous other utilities (such as smbpasswd) with subcommands
1295 6) Samba now negotiates NT-style status32 codes on the wire. This
1296 improves error handling a lot.
1298 7) Better Windows 2000/XP/2003 printing support including publishing
1299 printer attributes in active directory.
1301 8) New loadable module support for passdb backends and character
1304 9) New default dual-daemon winbindd support for better performance.
1306 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1307 domain and maintaining user, group and domain SIDs.
1309 11) Support for establishing trust relationships with Windows NT 4.0
1312 12) Initial support for a distributed Winbind architecture using
1313 an LDAP directory for storing SID to uid/gid mappings.
1315 13) Major updates to the Samba documentation tree.
1317 14) Full support for client and server SMB signing to ensure
1318 compatibility with default Windows 2003 security settings.
1320 15) Improvement of ACL mapping features based on code donated by
1321 Andreas Grünbacher.
1324 Plus lots of other improvements!
1327 Additional Documentation
1328 ------------------------
1330 Please refer to Samba documentation tree (included in the docs/
1331 subdirectory) for extensive explanations of installing, configuring
1332 and maintaining Samba 3.0 servers and clients. It is advised to
1333 begin with the Samba-HOWTO-Collection for overviews and specific
1334 tasks (the current book is up to approximately 400 pages) and to
1335 refer to the various man pages for information on individual options.
1337 We are very glad to be able to include the second edition of
1338 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1339 (O'Reilly & Associates) in this release. The book is available
1340 on-line at http://samba.org/samba/docs/ and is included with
1341 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1342 publisher for making "Using Samba" under the GNU Free Documentation
1346 ######################################################################
1347 Upgrading from a previous Samba 3.0 beta
1348 ########################################
1350 Beginning with Samba 3.0.0beta3, the RID allocation functions
1351 have been moved into winbindd. Previously these were handled
1352 by each passdb backend. This means that winbindd must be running
1353 to automatically allocate RIDs for users and/or groups. Otherwise,
1354 smbd will use the 2.2 algorithm for generating new RIDs.
1356 If you are using 'passdb backend = tdbsam' with a previous Samba
1357 3.0 beta release (or possibly alpha), it may be necessary to
1358 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1359 to winbindd_idmap.tdb. To do this:
1361 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
1363 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
1365 3) run: (note that 'tdb>' is the tool's prompt for input)
1367 root# ./tdbtool /usr/local/samba/private/passdb.tdb
1368 tdb> show RID_COUNTER
1372 [000] 0A 52 00 00 .R.
1374 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1378 If you are using 'passdb backend = ldapsam', it will be necessary to
1379 store idmap entries in the LDAP directory as well (i.e. idmap backend
1380 = ldap). Refer to the 'net idmap' command for more information on
1381 migrating SID<->UNIX id mappings from one backend to another.
1383 If the RID_COUNTER record does not exist, then these instructions are
1384 unneccessary and the new RID_COUNTER record will be correctly generated
1389 ########################
1390 Upgrading from Samba 2.2
1391 ########################
1393 This section is provided to help administrators understand the details
1394 involved with upgrading a Samba 2.2 server to Samba 3.0.
1400 Many of the options to the GNU autoconf script have been modified
1401 in the 3.0 release. The most noticeable are:
1403 * removal of --with-tdbsam (is now included by default; see section
1404 on passdb backends and authentication for more details)
1406 * --with-ldapsam is now on used to provided backward compatible
1407 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
1408 backend and authentication section for more details
1410 * inclusion of non-standard passdb modules may be enabled using
1411 --with-expsam. This includes an XML backend and a mysql backend.
1413 * removal of --with-msdfs (is now enabled by default)
1415 * removal of --with-ssl (no longer supported)
1417 * --with-utmp now defaults to 'yes' on supported systems
1419 * --with-sendfile-support is now enabled by default on supported
1426 This section contains a brief listing of changes to smb.conf options
1427 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
1428 complete descriptions of new or modified parameters.
1430 Removed Parameters (order alphabetically):
1433 * alternate permissions
1436 * code page directory
1438 * domain admin group
1439 * domain guest group
1440 * force unknown acl user
1446 * printer driver file
1447 * printer driver location
1449 * source environment
1457 New Parameters (new parameters have been grouped by function):
1461 * abort shutdown script
1464 User and Group Account Management
1465 ---------------------------------
1467 * add machine script
1468 * add user to group script
1469 * algorithmic rid base
1470 * delete group script
1471 * delete user from group script
1473 * set primary group script
1479 * passwd chat timeout
1483 * client lanman auth
1484 * client NTLMv2 auth
1490 * paranoid server security
1499 * hide special files
1500 * hide unwriteable files
1502 * kernel change notify
1512 * max reported print jobs
1514 UNICODE and Character Sets
1515 --------------------------
1521 SID to uid/gid Mappings
1522 -----------------------
1526 * winbind enable local accounts
1527 * winbind trusted domains only
1528 * template primary group
1529 * enable rid algorithm
1536 * ldap machine suffix
1538 * ldap replication sleep
1541 General Configuration
1542 ---------------------
1546 Modified Parameters (changes in behavior):
1548 * encrypt passwords (enabled by default)
1549 * mangling method (set to 'hash2' by default)
1552 * restrict anonymous (integer value)
1553 * security (new 'ads' value)
1554 * strict locking (enabled by default)
1555 * unix extensions (enabled by default)
1556 * winbind cache time (increased to 5 minutes)
1557 * winbind uid (deprecated in favor of 'idmap uid')
1558 * winbind gid (deprecated in favor of 'idmap gid')
1564 This section contains brief descriptions of any new databases
1565 introduced in Samba 3.0. Please remember to backup your existing
1566 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
1567 upgrade databases as they are opened (if necessary), but downgrading
1568 from 3.0 to 2.2 is an unsupported path.
1570 Name Description Backup?
1571 ---- ----------- -------
1572 account_policy User policy settings yes
1573 gencache Generic caching db no
1574 group_mapping Mapping table from Windows yes
1575 groups/SID to unix groups
1576 winbindd_idmap ID map table from SIDS to UNIX yes
1578 namecache Name resolution cache entries no
1579 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1580 returned as part of a successful
1581 net_sam_logon request
1582 printing/*.tdb Cached output from 'lpq no
1583 command' created on a per print
1585 registry Read-only samba registry skeleton no
1586 that provides support for exporting
1587 various db tables via the winreg RPCs
1593 The following issues are known changes in behavior between Samba 2.2 and
1594 Samba 3.0 that may affect certain installations of Samba.
1596 1) When operating as a member of a Windows domain, Samba 2.2 would
1597 map any users authenticated by the remote DC to the 'guest account'
1598 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1599 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1600 current work around to re-establish the 2.2 behavior.
1602 2) When adding machines to a Samba 2.2 controlled domain, the
1603 'add user script' was used to create the UNIX identity of the
1604 machine trust account. Samba 3.0 introduces a new 'add machine
1605 script' that must be specified for this purpose. Samba 3.0 will
1606 not fall back to using the 'add user script' in the absence of
1607 an 'add machine script'
1610 ######################################################################
1611 Passdb Backends and Authentication
1612 ##################################
1614 There have been a few new changes that Samba administrators should be
1615 aware of when moving to Samba 3.0.
1617 1) encrypted passwords have been enabled by default in order to
1618 inter-operate better with out-of-the-box Windows client
1619 installations. This does mean that either (a) a samba account
1620 must be created for each user, or (b) 'encrypt passwords = no'
1621 must be explicitly defined in smb.conf.
1623 2) Inclusion of new 'security = ads' option for integration
1624 with an Active Directory domain using the native Windows
1625 Kerberos 5 and LDAP protocols.
1627 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1628 type which is neccessary for servers on which the
1629 administrator password has not been changed, or kerberos-enabled
1630 SMB connections to servers that require Kerberos SMB signing.
1631 Besides this one difference, either MIT or Heimdal Kerberos
1632 distributions are usable by Samba 3.0.
1635 Samba 3.0 also includes the possibility of setting up chains
1636 of authentication methods (auth methods) and account storage
1637 backends (passdb backend). Please refer to the smb.conf(5)
1638 man page for details. While both parameters assume sane default
1639 values, it is likely that you will need to understand what the
1640 values actually mean in order to ensure Samba operates correctly.
1642 The recommended passdb backends at this time are
1644 * smbpasswd - 2.2 compatible flat file format
1645 * tdbsam - attribute rich database intended as an smbpasswd
1646 replacement for stand alone servers
1647 * ldapsam - attribute rich account storage and retrieval
1648 backend utilizing an LDAP directory.
1649 * ldapsam_compat - a 2.2 backward compatible LDAP account
1652 Certain functions of the smbpasswd(8) tool have been split between the
1653 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1654 utility. See the respective man pages for details.
1657 ######################################################################
1661 This section outlines the new features affecting Samba / LDAP
1667 A new object class (sambaSamAccount) has been introduced to replace
1668 the old sambaAccount. This change aids us in the renaming of
1669 attributes to prevent clashes with attributes from other vendors.
1670 There is a conversion script (examples/LDAP/convertSambaAccount) to
1671 modify and LDIF file to the new schema.
1675 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1676 $ convertSambaAccount --sid=<Domain SID> \
1677 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1678 --changetype=[modify|add]
1680 The <DOM SID> can be obtained by running 'net getlocalsid
1681 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
1682 the format of the generated LDIF output--either create new entries
1683 or modify existing entries.
1685 The old sambaAccount schema may still be used by specifying the
1686 "ldapsam_compat" passdb backend. However, the sambaAccount and
1687 associated attributes have been moved to the historical section of
1688 the schema file and must be uncommented before use if needed.
1689 The 2.2 object class declaration for a sambaAccount has not changed
1690 in the 3.0 samba.schema file.
1692 Other new object classes and their uses include:
1694 * sambaDomain - domain information used to allocate rids
1695 for users and groups as necessary. The attributes are added
1696 in 'ldap suffix' directory entry automatically if
1697 an idmap uid/gid range has been set and the 'ldapsam'
1698 passdb backend has been selected.
1700 * sambaGroupMapping - an object representing the
1701 relationship between a posixGroup and a Windows
1702 group/SID. These entries are stored in the 'ldap
1703 group suffix' and managed by the 'net groupmap' command.
1705 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1706 automatically and contains the next available 'idmap uid' and
1709 * sambaIdmapEntry - object storing a mapping between a
1710 SID and a UNIX uid/gid. These objects are created by the
1711 idmap_ldap module as needed.
1713 * sambaSidEntry - object representing a SID alone, as a Structural
1714 class on which to build the sambaIdmapEntry.
1717 New Suffix for Searching
1718 ------------------------
1720 The following new smb.conf parameters have been added to aid in directing
1721 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1724 * ldap suffix - used to search for user and computer accounts
1725 * ldap user suffix - used to store user accounts
1726 * ldap machine suffix - used to store machine trust accounts
1727 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1728 * ldap idmap suffix - location of sambaIdmapEntry objects
1730 If an 'ldap suffix' is defined, it will be appended to all of the
1731 remaining sub-suffix parameters. In this case, the order of the suffix
1732 listings in smb.conf is important. Always place the 'ldap suffix' first
1735 Due to a limitation in Samba's smb.conf parsing, you should not surround
1736 the DN's with quotation marks.
1742 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1743 following options would inform Samba that the idmap table should be
1744 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1749 idmap backend = ldap:ldap://onterose/
1750 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1751 idmap uid = 40000-50000
1752 idmap gid = 40000-50000
1754 This configuration allows winbind installations on multiple servers to
1755 share a uid/gid number space, thus avoiding the interoperability problems
1756 with NFS that were present in Samba 2.2.
1760 ######################################################################
1761 Trust Relationships and a Samba Domain
1762 ######################################
1764 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1765 allocating uids and gids to trusted users and groups. More
1766 information regarding Samba's support for establishing trust
1767 relationships can be found in the Samba-HOWTO-Collection included
1768 in the docs/ directory of this release.
1770 First create your Samba PDC and ensure that everything is
1771 working correctly before moving on the trusts.
1773 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1774 4.0 domain named WINDOWS:
1776 1) create the trust account for SAMBA in "User Manager for Domains"
1777 2) connect the trust from the Samba domain using
1778 'net rpc trustdom establish GLASS'
1780 To create a trustlationship with SAMBA as the trusted domain:
1782 1) create the initial trust account for GLASS using
1783 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1784 account for GLASS$ prior to this step (depending on your
1785 local configuration).
1786 2) connect the trust from a WINDOWS DC using "User Manager
1789 Now join winbindd on the Samba PDC to the SAMBA domain using
1790 the normal steps for adding a Samba server to an NT4 domain:
1791 (note that smbd & nmbd must be running at this point)
1793 root# net rpc join -U root
1794 Password: <enter root password from smbpasswd file here>
1796 Start winbindd and test the join with 'wbinfo -t'.
1798 Now test the trust relationship by connecting to the SAMBA DC
1799 (e.g. POGO) as a user from the WINDOWS domain:
1801 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1804 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1806 $ smbclient //crystal/netlogon -U root -W WINDOWS
1809 ######################################################################
1813 Beginning with Samba3.0.0beta3, winbindd has been given new account
1814 manage functionality equivalent to the 'add user script' family of
1815 smb.conf parameters. The idmap design has also been changed to
1816 centralize control of foreign SID lookups and matching to UNIX
1820 Brief Description of Changes
1821 ----------------------------
1823 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1824 reverted to the 2.2.x design. This means that when resolving a
1825 SID to a UID or similar mapping:
1827 a) First consult winbindd
1828 b) perform a local lookup only if winbindd fails to
1829 return a successful answer
1831 There are some variations to this, but these two rules generally
1834 2) All idmap lookups have been moved into winbindd. This means that
1835 a server must run winbindd (and support NSS) in order to achieve
1836 any mappings of SID to dynamically allocated UNIX ids. This was
1837 a conscious design choice.
1839 3) New functions have been added to winbindd to emulate the 'add user
1840 script' family of smbd functions without requiring that external
1841 scripts be defined. This functionality is controlled by the 'winbind
1842 enable local accounts' smb.conf parameter (enabled by default).
1844 However, this account management functionality is only supported
1845 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1846 must be shared among multiple Samba servers (such as a PDC and BDCs),
1847 it will be necessary to define your own 'add user script', et. al.
1848 programs that place the accounts/groups in some form of directory
1849 such as NIS or LDAP. This requirement was deemed beyond the scope
1850 of winbind's account management functions. Solutions for
1851 distributing UNIX system information have been deployed and tested
1852 for many years. We saw no need to reinvent the wheel.
1854 4) A member of a Samba controlled domain running winbindd is now able
1855 to map domain users directly onto existing UNIX accounts while still
1856 automatically creating accounts for trusted users and groups. This
1857 behavior is controlled by the 'winbind trusted domains only' smb.conf
1858 parameter (disabled by default to provide 2.2.x winbind behavior).
1860 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1861 in smbd/uid.c. The reason that group mappings are not included
1862 in winbindd is because the purpose of Samba's group map is to
1863 match any Windows SID with an existing UNIX group. These UNIX
1864 groups can be created by winbindd (see next section), but the
1865 SID<->gid mapping is retreived by smbd, not winbindd.
1871 * security = server running winbindd to allocate accounts on demand
1873 * Samba PDC running winbindd to handle the automatic creation of UNIX
1874 identities for machine trust accounts
1876 * Automtically creating UNIX user and groups when migrating a Windows NT
1877 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1878 'net rpc vampire' for this to work.
1881 ######################################################################
1885 * There are several bugs currently logged against the 3.0 codebase
1886 that affect the use of NT 4.0 GUI domain management tools when run
1887 against a Samba 3.0 PDC. This bugs should be released in an early
1890 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1891 filed against the Samba 3.0 codebase.
1894 ######################################################################
1895 Reporting bugs & Development Discussion
1896 #######################################
1898 Please discuss this release on the samba-technical mailing list or by
1899 joining the #samba-technical IRC channel on irc.freenode.net.
1901 If you do report problems then please try to send high quality
1902 feedback. If you don't provide vital information to help us track down
1903 the problem then you will probably be ignored.
1905 A new bugzilla installation has been established to help support the
1906 Samba 3.0 community of users. This server, located at
1907 https://bugzilla.samba.org/, has replaced the older jitterbug server
1908 previously located at http://bugs.samba.org/.