1 ==============================
2 Release Notes for Samba 3.0.2a
4 ==============================
6 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
7 to address, in particular, a problem when using pdbedit to
8 sanitize (--force-initialized-passwords) Samba's tdbsam
9 backend. This is the latest stable release of Samba. This
10 is the version that all production Samba servers should be
11 running for all current bug-fixes.
13 ******************* Attention! Achtung! Kree! *********************
15 Beginning with Samba 3.0.2, passwords for accounts with a last
16 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
17 ldapsam, etc...) of zero (0) will be regarded as uninitialized
18 strings. This will cause authentication to fail for such
19 accounts. If you have valid passwords that meet this criteria,
20 you must update the last change time to a non-zero value. If you
21 do not, then 'pdbedit --force-initialized-passwords' will disable
22 these accounts and reset the password hashes to a string of X's.
24 ******************* Attention! Achtung! Kree! *********************
27 ######################################################################
37 Please refer to the CVS log for the SAMBA_3_0 branch for complete
38 details. The list of changes per contributor are as follows:
41 o Jeremy Allison <jra@samba.org>
42 * Added paranoia checks in parsing code.
45 o Andrew Bartlet <abartlet@samba.org>
46 * Ensure that changes to uninitialized passwords in ldapsam
47 are written to the DIT.
50 o Gerald (Jerry) Carter <jerry@samba.org>
51 * Fixed iterator in tdbsam.
52 * Fix bug that disabled accounts with a valid NT password
53 hash, but no LanMan hash.
56 o Steve French <sfrench@us.ibm.com>
57 * Added missing nosetuid and noexec options.
60 o Sebastian Krahmer <krahmer@suse.de>
61 * Fixed potential crash bug in NTLMSSP parsing code.
64 o Tim Potter <tpot@samba.org>
65 * Fixed logic in tdb_brlock error checking.
68 o Urban Widmark <urban@teststation.com>
69 * Set nosuid,nodev flags in smbmnt by default.
72 Changes for older versions follow below:
74 --------------------------------------------------
76 =============================
77 Release Notes for Samba 3.0.2
79 =============================
81 It has been confirmed that previous versions of Samba 3.0 are
82 susceptible to a password initialization bug that could grant an
83 attacker unauthorized access to a user account created by the
84 mksmbpasswd.sh shell script.
86 The Common Vulnerabilities and Exposures project (cve.mitre.org)
87 has assigned the name CAN-2004-0082 to this issue.
89 Samba administrators not wishing to upgrade to the current
90 version should download the 3.0.2 release, build the pdbedit
93 root# pdbedit-3.0.2 --force-initialized-passwords
95 This will disable all accounts not possessing a valid password
96 (e.g. the password field has been set a string of X's).
98 Samba servers running 3.0.2 are not vulnerable to this bug
99 regardless of whether or not pdbedit has been used to sanitize
102 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
105 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
106 o Logging onto a Samba domain from Windows XP clients.
107 o Problems with the %U and %u smb.conf variables in relation to
108 Windows 9x/ME clients.
109 o Kerberos failures due to an invalid in memory keytab detection
111 o Updates to the ntlm_auth tool.
112 o Fixes for various SMB signing errors.
113 o Better separation of WINS and DNS queries for domain controllers.
114 o Issues with nss_winbind FreeBSD and Solaris.
115 o Several crash bugs in smbd and winbindd.
116 o Output formatting fixes for smbclient for better compatibility
117 with scripts based on the 2.2 version.
126 Parameter Name Action
127 -------------- ------
128 ldap replication sleep New
129 read size removed (unused)
130 source environment removed (unused)
136 Please refer to the CVS log for the SAMBA_3_0 branch for complete
137 details. The list of changes per contributor are as follows:
139 o Jeremy Allison <jra@samba.org>
140 * Revert change that broke Exchange clear text samlogons.
141 * Fix gcc 3.4 warning in MS-DFS code.
142 * Tidy up of NTLMSSP code.
143 * Fixes for SMB signing errors
144 * BUG 815: Workaround NT4 bug to support plaintext
145 password logins and UNICODE.
146 * Fix SMB signing bug when copying large files.
147 * Correct error logic in mkdir_internals() (caused a panic
148 when combined with --enable-developer).
149 * BUG 830: Protect against crashes due to bad character
153 o Petri Asikainen <paca@sci.fi>
154 * BUG 330, 387:Fix single valued attribute updates when
155 working with Novell NDS.
158 o Andrew Bartlet <abartlet@samba.org>
159 * Correctly handle per-pipe NTLMSSP inside a NULL session.
160 * Fix segfault in gencache
161 * Fix early free() of encrypted_session_key.
162 * Change DC lookup routines to more carefully separate
163 DNS names (realms) from NetBIOS domain names.
164 * Add new sid_to_dn() function for internal winbindd use.
165 * Refactor cli_ds_enum_domain_trusts().
166 * BUG 707: Implement range retrieval of ADS attributes (based
167 on work from Volker <vl@samba.org> and Guenther Deschner
169 * Automatically initialize the signing engine if a session key
171 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
172 encoded strings, only form input in SWAT.
173 * Resets the NTLMSSP state for new negotiate packets.
174 * Add 2-byte alignments in net_samlogon() queries to parse
175 odd-length plain text passwords.
176 * Allow Windows groups with no members in winbindd.
177 * Allow normal authentication in the absence of a server
178 generated session key.
179 * More optimizations for looking up UNIX group lists.
180 * Clean up error codes and return values for pam_winbindd
181 and winbindd PAM interface.
182 * Fix string return values in ntlm_auth tool.
183 * Fix segfault when 'security = ads' but no realm is defined.
184 * BUG 722: Allow winbindd to map machine accounts to uids.
185 * More cleanups for winbindd's find_our_domain().
186 * More clearly detect whether a domain controller is an NT4
187 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
188 * Increase separation between DNS queries for hosts and queries
189 for AD domain controllers.
190 * Include additional NT_STATUS to PAM error mappings.
191 * Password initialization fixes.
194 o Justin Baugh <justin.baugh@request.com>
195 * BUG 948: Implement missing functions required for FreeBSD
199 o Alexander Bokovoy <ab@samba.org>
200 * BUG 922: Make sure enable fast path for strlower_m() and
204 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
205 * Fix crash when using 'security = server' and 'encrypt
206 passwords = no' by always initializing the session key.
209 o Dmitry Butskoj <buc@odusz.elektra.ru>
210 * Fix for special files being hidden from admins.
213 o Gerald (Jerry) Carter <jerry@samba.org>
214 * Fix bug in the lanman session key generation. Caused
215 "decode_pw: incorrect password length" error messages.
216 * Save the right case for the located user name in
217 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
218 * BUG 897: Add well known rid for pre win2k compatible access
220 * BUG 887: Correct typo in delete user script example.
221 * Use short lived TALLOC_CTX* for allocating printer objects
222 from the print handle cache.
223 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
224 * Fix several warnings reported by the SUN Forte C compiler.
225 * Fully control DNS queries for AD DC's using 'name resolve order'.
226 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
227 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
228 * BUG 936: fix bind credentials for schannel binds in smbd.
229 * BUG 446: Fix output of smbclient for better compatibility
230 with scripts based on the 2.2 version (including Amanda).
231 * BUG 891, 949: Fedora packaging fixes.
232 * Fix bug that caused rpcclient to incorrectly retrieve
233 the SID for a server (this causing all calls that required
234 this information to fail).
235 * BUG 977: Don't create a homes share for a user if a static
236 share already exists by the same name.
237 * Removed unused smb.conf options.
238 * Password initialization fixes.
239 * Set the disable flag for template accounts created by
241 * Disable any account has no passwords and does not have the
242 ACB_PWNOTREQ bit set.
245 o Guenther Deschner <gd@suse.com>
246 * Install smbwrapper.so should be put into the $(libdir)
248 * Add the capability to specify the new user password
249 for "net ads password" on the command line.
250 * Correctly detect AFS headers on SuSE.
253 o James Flemer <jflemer@uvm.edu>
254 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
255 HAVE_SYS_ATTRIBUTES_H.
258 o Luke Howard <lukeh@PADL.COM>
259 * Fix segfault in session setup reply caused by a early free().
262 o Stoian Ivanov <sdr@bultra.com>
263 * Implement grepable output for smbclient -L.
266 o LaMont Jones <lamont@debian.org>
267 * BUG 225328 (Debian): Correct false failure LFS test that resulted
268 in _GNU_SOURCE not being defined (thus resulting in strndup()
272 o Volker Lendecke <vl@samba.org>
273 * BUG 583: Ensure that user names always contain the short
274 version of the domain name.
275 * Fix our parsing of the LDAP uri.
276 * Don't show the 'afs username map' in the SWAT basic view.
277 * Fix SMB signing issues in relation to failed NTLMSSP logins.
278 * BUG 924: Fix return codes in smbtorture harness.
279 * Always lower-case usernames before handing it to AFS code.
280 * Add a German translation for SWAT.
281 * Fix a segfaults in winbindd.
282 * Fix the user's domain passed to register_vuid() from
283 reply_spnego_kerberos().
284 * Add NSS example code in nss_winbind to convert UNIX
285 id's <-> Windows SIDs.
286 * Display more descriptive error messages for login via 'net'.
287 * Fix compiler warning in the net tool.
288 * Fix length bug when decoding base64 strings.
289 * Ensure we don't call getpwnam() inside a loop that is iterating
290 over users with getpwent(). This broke on glibc 2.3.2.
293 o Herb Lewis <herb@samba.org>
294 * Fix bit rot in psec.
297 o Jianliang Lu <j.lu@tiesse.com>
298 * Ensure we delete the group mapping before calling the delete
300 * Define well known RID for managing the "Power Users" group.
301 * BUG 381: check builtin (not local) group SID when updating
303 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
307 o John Klinger <john.klinger@lmco.com>
308 * Implement initgroups() call in nss_winbind on Solaris.
311 o Jim McDonough <jmcd@us.ibm.com>
312 * Fix regression in net rpc join caused by recent changes
313 to cli_lsa_query_info_policy().
314 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
318 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
319 * BUG 570: Ensure that configure honors the LDFLAGS variable.
322 o Stefan Metzmacher <metze@samba.org>
323 * Implement LDAP rebind sleep patch.
324 * Revert to 2.2 quota code because of so many broken quota files
326 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
327 XFS_USER_QUOTA -> USRQUOTA
328 XFS_GROUP_QUOTA -> GRPQUOTA
329 * Fix disk_free calculation with group quotas.
330 * Add debug class 'quota' and a lot of DEBUG()'s
332 * Fix sys_chown() when no chown() is present.
333 * Add SIGABRT to fault handling in order to catch got a
334 backtrace if an error occurs the OpenLDAP client libs.
338 * Allow an existing LDAP machine account to be re-used when
339 joining an AD domain.
342 o James Peach <jpeach@sgi.com>
343 * BUG 889: Change smbd to use pread/pwrite on platforms that
344 support these calls. Can lead to a significant speed increase.
347 o Tim Potter <tpot@samba.org>
348 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
349 * BUG 924: Fix typo in RW2 torture test.
352 o Richard Sharpe <shape@samba.org>
353 * Small fixes to torture.c to cleanup the error handling
357 o J. Tournier <jerome.tournier@IDEALX.com>
358 * Small fixes for the smbldap-tool scripts.
361 o Andrew Tridgell <tridge@samba.org>
362 * Fix src len check in pull_usc2().
365 o Jelmer Vernooij <jelmer@samba.org>
366 * Put functions for generating SQL queries in pdb_sql.c
367 * Add pgSQL backend (based on patch by Hamish Friedlander)
368 * BUG 908: Fix -s option to smbcontrol.
369 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
370 * Fix for libnss_wins on IRIX platforms.
371 * Fix swatdir for --with-fhs.
374 --------------------------------------------------
376 =============================
377 Release Notes for Samba 3.0.1
379 =============================
381 Some of the more common bugs in 3.0.0 addressed in the release
384 o Substitution problems with smb.conf variables.
385 o Errors in return codes which caused some applications
386 to fail to open files.
387 o General Protection Faults on Windows 2000/XP clients
388 using Samba point-n-print features.
389 o Several miscellaneous crash bugs.
390 o Access problems when enumerating group mappings are
391 stored in an LDAP Directory.
392 o Several common SWAT bugs when writing changes to
394 o Internal inconsistencies when 'winbind use default
400 ----------------------
402 Parameter Name Action
403 -------------- ------
404 hide local users Removed
405 mangled map Deprecated
406 mangled stack Removed
407 passwd chat timeout New
413 o Change the interface for init_unistr2 to not take a length
414 but a flags field. We were assuming that
415 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
416 o Allow d_printf() to handle strings with escaped quotation
417 marks since the msg file includes the escape character (bug 489).
418 o Fix bad html table row termination in SWAT wizard code (bug 413).
419 o Fix to parse the level-2 strings.
420 o Fix for "valid users = %S" in [homes]. Fix read/write
422 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
423 This is the same way AC_CHECK_LIB works (bug 508).
424 o Testparm output fixes for clarity.
425 o Fix broken wins hook functionality -- i18n bug (bug 528).
426 o Take care of condition where DOS and NT error codes must differ.
427 o Default to using only built-in charsets when a working iconv
428 implementation cannot be located.
429 o Wrap internals of sys_setgroups() so the sys_XX() call can
430 be done unconditionally (bug 550).
431 o Remove duplicate smbspool link on SWAT's front page (bug 541).
432 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
433 --enable-debug=[yes|no] works correctly.
434 o Allow ^C to interrupt smbpasswd if using our getpass
435 (e.g. smbpasswd command).
436 o Support signing only on RPC's (bug 167).
437 o Correct bug that prevented Excel 2000 clients from opening
438 files marked as read-only.
439 o Portability fix bugs 546 - 549).
440 o Explicitly initialize the value of AR for vendor makes that don't
441 do this (e.g. HPUX 11). (bug 552).
442 o More i18n fixes for SWAT (bug 413).
443 o Change the cwd before the postexec script to ensure that a
445 o Correct double free that caused winbindd to crash when a DC
446 is rebooted (bug 437).
447 o Fix incorrect mode sum (bug 562).
448 o Canonicalize SMB_INFO_ALLOCATION in the same was as
449 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
450 o Add script to generate *msg files.
451 o Add Dutch SWAT translation file.
452 o Make sure to call get_user_groups() with the full winbindd
453 name for a user if he/she has one (bug 406).
454 o Fix up error code returns from Samba4 tester. Ensure invalid
455 paths are validated the same way.
456 o Allow Samba3 to pass the Samba4 RAW-READ tests.
457 o Refuse to configure if --with-expsam=$BACKEND was used but no
458 libraries were found for $BACKEND.
459 o Move sysquotas autoconf tests to a separate file.
460 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
462 o Make sure that the files that contain the static_init_$subsystem;
463 macro get recompiled after configure by removing the object
465 o Ensure canceling a blocking lock returns the correct error
467 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
468 o Updated Japanese welcome file in SWAT.
469 o Fix to nt-time <-> unix-time functions reversible.
470 o Ensure that winbindd uses the the escaped DN when querying
472 o Fix portability issues when compiling (bug 505, 550)
473 o Compile fix for tdbbackup when Samba needs to override
474 non-C99 compliant implementations of snprintf().
475 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
476 o Make sure we break out of samsync loop on error.
477 o Ensure error code path doesn't free unmalloc()'d memory
479 o Add configure test for krb5_keytab_entry keyblock vs key
482 o Modified testparm so that all output so all debug output goes
483 to stderr, and all file processing goes to stdout.
484 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
486 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
487 we have a devmode before copying a string to the devicename.
488 o Support mapping REALM.COM\user to a local user account (without
489 running winbindd) for compatibility with 2.2.x release.
490 o Ensure we don't use mmap() on blacklisted systems.
491 o fixed a number of bugs and memory leaks in the AIX
493 o Call initgroups() in SWAT before becomming the user so that
494 secondary group permissions can be used when writing to
496 o Fix signing problems when reverse connecting back to a
497 client for printer notify
498 o Fix signing problems caused by a miss-sequence bug.
499 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
500 Fixes NEXUS tools running on Win9x clients (bug 64).
501 o Don't leave the domain field uninitialized in cli_lsa.c if some
502 SID could not be mapped.
503 o Fix segfault in mount.cifs helper when there is no options
504 specified during mount.
505 o Change the \n after the password prompt to go to tty instead
507 o Stop net -P from prompting for machine account password (bug 451).
508 o Change in behavior to Not only change the effective uid but also
509 the real uid when becoming unprivileged.
510 o Cope with Exchange 5.5 cleartext pop password auth.
511 o New files for support of initshutdown pipe. Win2k doesn't
512 respond properly to all requests on the winreg pipe, so we need
513 to handle this new pipe (bug 534).
514 o Added more va_copy() checks in configure.in.
515 o Include fixes for libsmbclient build problems.
516 o Missing UNIX -> DOS codepage conversion in lanman.c.
517 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
518 o Parameterize the listen backlog in smbd and make it larger by
519 default. A backlog of 5 is way too small these days.
520 o Check for an invalid fid before dereferencing the fsp pointer
522 o Remove invalid memory frees and return codes in pdb_ldap.c.
523 o Prompt for password when invoking --set-auth-user and no
525 o Bind the nmbd sending socket to the 'socket address'.
526 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
527 $LDFLAGS occurs before any library specification (bug 661).
528 o Fix large number of printf() calls for 64-bit size_t.
529 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
530 keyblock in the krb5 structs.
531 o Remove #include <compat.h> in hopes to avoid problems with
533 o Correct winbindd build problems on HP-UX 11.
534 o Lowercase netgroups lookups (bug 703).
535 o Use the actual size of the buffer in strftime instead of a made
536 up value which just happens to be less than sizeof(fstring).
538 o Add ldaplibs to pdbedit link line (bug 651).
539 o Fix crash bug in smbclient completion (bug 659).
540 o Fix packet length for browse list reply (bug 771).
541 o Fix coredump in cli_get_backup_list().
542 o Make sure that we expand %N (bug 612).
543 o Allow rpcclient adddriver command to specify printer driver
545 o Compile tdbdump by default.
546 o Apply patches to fix iconv detection for FreeBSD.
547 o Do not allow the 'guest account' to be added to a passdb backend
548 using smbpasswd or pdbedit (bug 624).
549 o Save LDFLAGS during iconv detection (bug 57).
550 o Run krb5 logins through the username map if the winbindd
551 lookup fails (bug 698).
552 o Add const for lp_set_name_resolve_order() to avoid compiler
554 o Add support for the %i macro in smb.conf to stand in for the for
555 the local IP address to which a client connected.
556 o Allow winbindd to match local accounts to domain SID when
557 'winbind trusted domains only = yes' (bug 680).
558 o Remove code in idmap_ldap that searches the user suffix and group
559 suffix. It's not needed and provides inconsistent functionality
560 from the tdb backend.
561 o Patch to handle munged dial string for Windows 200 TSE.
562 o Correct the "smbldap_open: cannot access when not root error"
563 messages when looking up group information (bug 281).
564 o Skip over the winbind separator when looking up a user.
565 This fixes the bug that prevented local users from
566 matching an AD user when not running winbindd (bug 698).
567 o Fix a problem with configure on *BSD systems. Make sure
568 we add -liconv etc to LDFLAGS.
569 o Fix core dump bug when "security = server" and the authentication
571 o Correct crash bug due to an empty munged dial string.
572 o Show files locked by a specific user (smbstatus -u 'user')
574 o Fix bug preventing print jobs from display in the queue
575 monitor used by Windows NT and later clients (bug 660).
576 o Fix several reported problems with point-n-print from
577 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
578 reply (bug 338, 527 & 643).
579 o Fix a handful of potential memory leaks in the LDAP code used
580 by ldapsam[_compat] and the LDAP idmap backend.
581 o Fix for pdbedit error code returns (bug 763).
582 o Make sure we only enumerate group mapping entries (not
583 /etc/group) even when doing local aliases.
584 o Relax check on the pipe name in a dce/rpc bind response to work
585 around issues with establishing trusts to a Windows 2003 domain.
586 o Ensure we mangle names ending in '.' in hash2 mangling method.
587 o Correct parsing issues with munged dial string.
588 o Fix bugs in quota support for XFS.
589 o Add a cleaner method for applications that need to provide
590 name->SID mappings to do this via NSS rather than having to
591 know the winbindd pipe protocol.
592 o Adds a variant of the winbindd_getgroups() call called
593 winbindd_getusersids() that provides direct SID->SIDs listing of
594 a users supplementary groups. This is enough to allow non-Samba
595 applications to do ACL checking.
596 o Make sure we don't append the 'ldap suffix' when writing out the
597 'ldap XXX suffix' values in SWAT (bug 328).
598 o Fix renames across file systems.
599 o Ensure that items in a list of strings containing whitespace are
600 written out surrounded by single quotes. This means that both
601 double and single quotes are now used to surround strings in
603 o Enable SWAT to correctly determine if winbindd is running (bug
605 o Include WWW-Authenticate field in 401 response for bad auth
607 o Add support for NTLM2 (NTLMv2 session security).
608 o Add support for variable-length session keys.
609 o More privilege fixes for group enumeration in LDAP (bug 281).
610 o Use the dns name (or IP) as the originating client name when
611 using CUPS (bug 467).
612 o Fix various SMB signing bugs.
613 o Fix ACL propagation on a DFS root (bug 263).
614 o Disable NTLM2 for RPC pipes.
615 o Allow the client to specify the NTLM2 flags got NTLMSSP
617 o Change the name of the job passed off to cups from "Test Page"
618 to "smbprn.00000033 Test Page" so that we can get the smb
619 jobid back. This allow users to delete jobs with cups printing
620 backend (partial work on bug 770).
621 o Fix build of winbindd with static pdb modules.
622 o Retrieve the correct ACL group bits if the file has an ACL
624 o Implement "net rpc group members": Get members of a domain group
625 in human-readable format.
626 o Add MacOSX (Darwin) specific charset module code.
627 o Use samr_dispinfo(level == 1) for enumerating domain users so we
628 can include the full name in gecos field (bug 587).
629 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
630 o Implement 'net rpc group list [global|local|builtin]*' for a
631 select listing of the respective user databases.
632 o Don't automatically set NT status code flag unless client tells
634 o Add 'net status [sessions|shares] [parseable]'.
635 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
637 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
639 o Fix inverted logic in hosts allow/deny checks caused by
640 s/strcmp/strequal/ (bug 846).
641 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
642 o Fix typo in 'hash' mangling algorithm.
643 o Support munged dial for ldapsam (bug 800).
644 o Fix process_incoming_data() to return the number of bytes handled
645 this call whether we have a complete PDU or not; fixes bug
646 with multiple PDU request rpc's broken over SMBwriteX calls
648 o Fix incorrect smb flags2 for connections to pre-NT servers
649 (causes smbclient to fail to OS2 for example) (bug 821).
650 o Update version string in smbldap-tools Makefile to 0.8.2.
651 o Correct a problem with "net rpc vampire" mis-parsing the
652 alias member info reply.
653 o Ensure the ${libdir} is created by the installclientlib script.
654 o Fix detection of Windows 2003 client architecture in the smb.conf
656 o Ensure that smbd calls the add user script for a missing UNIX
657 user on kerberos auth call (bug 445).
658 o Fix bugs in hosts allow/deny when using a mismatched
659 network/netmask pair.
660 o Protect alloc_sub_basic() from crashing when the source string
661 is NULL (partial work on bug 687).
662 o Fix spinlocks on IRIX.
663 o Corrected some bad destination paths when running "configure
665 o Add packaging files for Fedora Core 1.
666 o Correct bug in SWAT install script for non-english languages.
667 o Support character set ISO-8859-1 internally (bug 558).
668 o Fixed more LDAP access errors when looking up group mappings
670 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
671 resolution to fail on local files on on domain members
673 o Fix uninitialized variable in passdb.c.
674 o Fix formal parameter type in get_static() in nsswitch/wins.c.
675 o Fix problem mounting directories when mount.cifs is installed
676 with the setuid bit on.
677 o Fix bug that prevent --mandir from overriding the defaults
678 given in the --with-fhs macro.
679 o Fix bug in in-memory Kerberos keytab detection routines
684 ######################################################################
686 The original 3.0.0 release notes follow
687 =======================================
688 WHATS NEW IN Samba 3.0.0
690 =======================================
696 1) Active Directory support. Samba 3.0 is now able to
697 join a ADS realm as a member server and authenticate
698 users using LDAP/Kerberos.
700 2) Unicode support. Samba will now negotiate UNICODE on the wire
701 and internally there is now a much better infrastructure for
702 multi-byte and UNICODE character sets.
704 3) New authentication system. The internal authentication system
705 has been almost completely rewritten. Most of the changes are
706 internal, but the new auth system is also very configurable.
708 4) New default filename mangling system.
710 5) A new "net" command has been added. It is somewhat similar to
711 the "net" command in windows. Eventually we plan to replace
712 numerous other utilities (such as smbpasswd) with subcommands
715 6) Samba now negotiates NT-style status32 codes on the wire. This
716 improves error handling a lot.
718 7) Better Windows 2000/XP/2003 printing support including publishing
719 printer attributes in active directory.
721 8) New loadable module support for passdb backends and character
724 9) New default dual-daemon winbindd support for better performance.
726 10) Support for migrating from a Windows NT 4.0 domain to a Samba
727 domain and maintaining user, group and domain SIDs.
729 11) Support for establishing trust relationships with Windows NT 4.0
732 12) Initial support for a distributed Winbind architecture using
733 an LDAP directory for storing SID to uid/gid mappings.
735 13) Major updates to the Samba documentation tree.
737 14) Full support for client and server SMB signing to ensure
738 compatibility with default Windows 2003 security settings.
740 15) Improvement of ACL mapping features based on code donated by
744 Plus lots of other improvements!
747 Additional Documentation
748 ------------------------
750 Please refer to Samba documentation tree (included in the docs/
751 subdirectory) for extensive explanations of installing, configuring
752 and maintaining Samba 3.0 servers and clients. It is advised to
753 begin with the Samba-HOWTO-Collection for overviews and specific
754 tasks (the current book is up to approximately 400 pages) and to
755 refer to the various man pages for information on individual options.
757 We are very glad to be able to include the second edition of
758 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
759 (O'Reilly & Associates) in this release. The book is available
760 on-line at http://samba.org/samba/docs/ and is included with
761 the Samba Web Administration Tool (SWAT). Thanks to the authors and
762 publisher for making "Using Samba" under the GNU Free Documentation
766 ######################################################################
767 Upgrading from a previous Samba 3.0 beta
768 ########################################
770 Beginning with Samba 3.0.0beta3, the RID allocation functions
771 have been moved into winbindd. Previously these were handled
772 by each passdb backend. This means that winbindd must be running
773 to automatically allocate RIDs for users and/or groups. Otherwise,
774 smbd will use the 2.2 algorithm for generating new RIDs.
776 If you are using 'passdb backend = tdbsam' with a previous Samba
777 3.0 beta release (or possibly alpha), it may be necessary to
778 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
779 to winbindd_idmap.tdb. To do this:
781 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
783 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
785 3) run: (note that 'tdb>' is the tool's prompt for input)
787 root# ./tdbtool /usr/local/samba/private/passdb.tdb
788 tdb> show RID_COUNTER
792 [000] 0A 52 00 00 .R.
794 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
798 If you are using 'passdb backend = ldapsam', it will be necessary to
799 store idmap entries in the LDAP directory as well (i.e. idmap backend
800 = ldap). Refer to the 'net idmap' command for more information on
801 migrating SID<->UNIX id mappings from one backend to another.
803 If the RID_COUNTER record does not exist, then these instructions are
804 unneccessary and the new RID_COUNTER record will be correctly generated
809 ########################
810 Upgrading from Samba 2.2
811 ########################
813 This section is provided to help administrators understand the details
814 involved with upgrading a Samba 2.2 server to Samba 3.0.
820 Many of the options to the GNU autoconf script have been modified
821 in the 3.0 release. The most noticeable are:
823 * removal of --with-tdbsam (is now included by default; see section
824 on passdb backends and authentication for more details)
826 * --with-ldapsam is now on used to provided backward compatible
827 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
828 backend and authentication section for more details
830 * inclusion of non-standard passdb modules may be enabled using
831 --with-expsam. This includes an XML backend and a mysql backend.
833 * removal of --with-msdfs (is now enabled by default)
835 * removal of --with-ssl (no longer supported)
837 * --with-utmp now defaults to 'yes' on supported systems
839 * --with-sendfile-support is now enabled by default on supported
846 This section contains a brief listing of changes to smb.conf options
847 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
848 complete descriptions of new or modified parameters.
850 Removed Parameters (order alphabetically):
853 * alternate permissions
856 * code page directory
860 * force unknown acl user
866 * printer driver file
867 * printer driver location
877 New Parameters (new parameters have been grouped by function):
881 * abort shutdown script
884 User and Group Account Management
885 ---------------------------------
888 * add user to group script
889 * algorithmic rid base
890 * delete group script
891 * delete user from group script
893 * set primary group script
899 * passwd chat timeout
910 * paranoid server security
920 * hide unwriteable files
922 * kernel change notify
932 * max reported print jobs
934 UNICODE and Character Sets
935 --------------------------
941 SID to uid/gid Mappings
942 -----------------------
946 * winbind enable local accounts
947 * winbind trusted domains only
948 * template primary group
949 * enable rid algorithm
956 * ldap machine suffix
958 * ldap replication sleep
961 General Configuration
962 ---------------------
966 Modified Parameters (changes in behavior):
968 * encrypt passwords (enabled by default)
969 * mangling method (set to 'hash2' by default)
972 * restrict anonymous (integer value)
973 * security (new 'ads' value)
974 * strict locking (enabled by default)
975 * unix extensions (enabled by default)
976 * winbind cache time (increased to 5 minutes)
977 * winbind uid (deprecated in favor of 'idmap uid')
978 * winbind gid (deprecated in favor of 'idmap gid')
984 This section contains brief descriptions of any new databases
985 introduced in Samba 3.0. Please remember to backup your existing
986 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
987 upgrade databases as they are opened (if necessary), but downgrading
988 from 3.0 to 2.2 is an unsupported path.
990 Name Description Backup?
991 ---- ----------- -------
992 account_policy User policy settings yes
993 gencache Generic caching db no
994 group_mapping Mapping table from Windows yes
995 groups/SID to unix groups
996 winbindd_idmap ID map table from SIDS to UNIX yes
998 namecache Name resolution cache entries no
999 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1000 returned as part of a successful
1001 net_sam_logon request
1002 printing/*.tdb Cached output from 'lpq no
1003 command' created on a per print
1005 registry Read-only samba registry skeleton no
1006 that provides support for exporting
1007 various db tables via the winreg RPCs
1013 The following issues are known changes in behavior between Samba 2.2 and
1014 Samba 3.0 that may affect certain installations of Samba.
1016 1) When operating as a member of a Windows domain, Samba 2.2 would
1017 map any users authenticated by the remote DC to the 'guest account'
1018 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1019 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1020 current work around to re-establish the 2.2 behavior.
1022 2) When adding machines to a Samba 2.2 controlled domain, the
1023 'add user script' was used to create the UNIX identity of the
1024 machine trust account. Samba 3.0 introduces a new 'add machine
1025 script' that must be specified for this purpose. Samba 3.0 will
1026 not fall back to using the 'add user script' in the absence of
1027 an 'add machine script'
1030 ######################################################################
1031 Passdb Backends and Authentication
1032 ##################################
1034 There have been a few new changes that Samba administrators should be
1035 aware of when moving to Samba 3.0.
1037 1) encrypted passwords have been enabled by default in order to
1038 inter-operate better with out-of-the-box Windows client
1039 installations. This does mean that either (a) a samba account
1040 must be created for each user, or (b) 'encrypt passwords = no'
1041 must be explicitly defined in smb.conf.
1043 2) Inclusion of new 'security = ads' option for integration
1044 with an Active Directory domain using the native Windows
1045 Kerberos 5 and LDAP protocols.
1047 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1048 type which is neccessary for servers on which the
1049 administrator password has not been changed, or kerberos-enabled
1050 SMB connections to servers that require Kerberos SMB signing.
1051 Besides this one difference, either MIT or Heimdal Kerberos
1052 distributions are usable by Samba 3.0.
1055 Samba 3.0 also includes the possibility of setting up chains
1056 of authentication methods (auth methods) and account storage
1057 backends (passdb backend). Please refer to the smb.conf(5)
1058 man page for details. While both parameters assume sane default
1059 values, it is likely that you will need to understand what the
1060 values actually mean in order to ensure Samba operates correctly.
1062 The recommended passdb backends at this time are
1064 * smbpasswd - 2.2 compatible flat file format
1065 * tdbsam - attribute rich database intended as an smbpasswd
1066 replacement for stand alone servers
1067 * ldapsam - attribute rich account storage and retrieval
1068 backend utilizing an LDAP directory.
1069 * ldapsam_compat - a 2.2 backward compatible LDAP account
1072 Certain functions of the smbpasswd(8) tool have been split between the
1073 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1074 utility. See the respective man pages for details.
1077 ######################################################################
1081 This section outlines the new features affecting Samba / LDAP
1087 A new object class (sambaSamAccount) has been introduced to replace
1088 the old sambaAccount. This change aids us in the renaming of
1089 attributes to prevent clashes with attributes from other vendors.
1090 There is a conversion script (examples/LDAP/convertSambaAccount) to
1091 modify and LDIF file to the new schema.
1095 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1096 $ convertSambaAccount --sid=<Domain SID> \
1097 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1098 --changetype=[modify|add]
1100 The <DOM SID> can be obtained by running 'net getlocalsid
1101 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
1102 the format of the generated LDIF output--either create new entries
1103 or modify existing entries.
1105 The old sambaAccount schema may still be used by specifying the
1106 "ldapsam_compat" passdb backend. However, the sambaAccount and
1107 associated attributes have been moved to the historical section of
1108 the schema file and must be uncommented before use if needed.
1109 The 2.2 object class declaration for a sambaAccount has not changed
1110 in the 3.0 samba.schema file.
1112 Other new object classes and their uses include:
1114 * sambaDomain - domain information used to allocate rids
1115 for users and groups as necessary. The attributes are added
1116 in 'ldap suffix' directory entry automatically if
1117 an idmap uid/gid range has been set and the 'ldapsam'
1118 passdb backend has been selected.
1120 * sambaGroupMapping - an object representing the
1121 relationship between a posixGroup and a Windows
1122 group/SID. These entries are stored in the 'ldap
1123 group suffix' and managed by the 'net groupmap' command.
1125 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1126 automatically and contains the next available 'idmap uid' and
1129 * sambaIdmapEntry - object storing a mapping between a
1130 SID and a UNIX uid/gid. These objects are created by the
1131 idmap_ldap module as needed.
1133 * sambaSidEntry - object representing a SID alone, as a Structural
1134 class on which to build the sambaIdmapEntry.
1137 New Suffix for Searching
1138 ------------------------
1140 The following new smb.conf parameters have been added to aid in directing
1141 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1144 * ldap suffix - used to search for user and computer accounts
1145 * ldap user suffix - used to store user accounts
1146 * ldap machine suffix - used to store machine trust accounts
1147 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1148 * ldap idmap suffix - location of sambaIdmapEntry objects
1150 If an 'ldap suffix' is defined, it will be appended to all of the
1151 remaining sub-suffix parameters. In this case, the order of the suffix
1152 listings in smb.conf is important. Always place the 'ldap suffix' first
1155 Due to a limitation in Samba's smb.conf parsing, you should not surround
1156 the DN's with quotation marks.
1162 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1163 following options would inform Samba that the idmap table should be
1164 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1169 idmap backend = ldap:ldap://onterose/
1170 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1171 idmap uid = 40000-50000
1172 idmap gid = 40000-50000
1174 This configuration allows winbind installations on multiple servers to
1175 share a uid/gid number space, thus avoiding the interoperability problems
1176 with NFS that were present in Samba 2.2.
1180 ######################################################################
1181 Trust Relationships and a Samba Domain
1182 ######################################
1184 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1185 allocating uids and gids to trusted users and groups. More
1186 information regarding Samba's support for establishing trust
1187 relationships can be found in the Samba-HOWTO-Collection included
1188 in the docs/ directory of this release.
1190 First create your Samba PDC and ensure that everything is
1191 working correctly before moving on the trusts.
1193 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1194 4.0 domain named WINDOWS:
1196 1) create the trust account for SAMBA in "User Manager for Domains"
1197 2) connect the trust from the Samba domain using
1198 'net rpc trustdom establish GLASS'
1200 To create a trustlationship with SAMBA as the trusted domain:
1202 1) create the initial trust account for GLASS using
1203 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1204 account for GLASS$ prior to this step (depending on your
1205 local configuration).
1206 2) connect the trust from a WINDOWS DC using "User Manager
1209 Now join winbindd on the Samba PDC to the SAMBA domain using
1210 the normal steps for adding a Samba server to an NT4 domain:
1211 (note that smbd & nmbd must be running at this point)
1213 root# net rpc join -U root
1214 Password: <enter root password from smbpasswd file here>
1216 Start winbindd and test the join with 'wbinfo -t'.
1218 Now test the trust relationship by connecting to the SAMBA DC
1219 (e.g. POGO) as a user from the WINDOWS domain:
1221 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1224 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1226 $ smbclient //crystal/netlogon -U root -W WINDOWS
1229 ######################################################################
1233 Beginning with Samba3.0.0beta3, winbindd has been given new account
1234 manage functionality equivalent to the 'add user script' family of
1235 smb.conf parameters. The idmap design has also been changed to
1236 centralize control of foreign SID lookups and matching to UNIX
1240 Brief Description of Changes
1241 ----------------------------
1243 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1244 reverted to the 2.2.x design. This means that when resolving a
1245 SID to a UID or similar mapping:
1247 a) First consult winbindd
1248 b) perform a local lookup only if winbindd fails to
1249 return a successful answer
1251 There are some variations to this, but these two rules generally
1254 2) All idmap lookups have been moved into winbindd. This means that
1255 a server must run winbindd (and support NSS) in order to achieve
1256 any mappings of SID to dynamically allocated UNIX ids. This was
1257 a conscious design choice.
1259 3) New functions have been added to winbindd to emulate the 'add user
1260 script' family of smbd functions without requiring that external
1261 scripts be defined. This functionality is controlled by the 'winbind
1262 enable local accounts' smb.conf parameter (enabled by default).
1264 However, this account management functionality is only supported
1265 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1266 must be shared among multiple Samba servers (such as a PDC and BDCs),
1267 it will be necessary to define your own 'add user script', et. al.
1268 programs that place the accounts/groups in some form of directory
1269 such as NIS or LDAP. This requirement was deemed beyond the scope
1270 of winbind's account management functions. Solutions for
1271 distributing UNIX system information have been deployed and tested
1272 for many years. We saw no need to reinvent the wheel.
1274 4) A member of a Samba controlled domain running winbindd is now able
1275 to map domain users directly onto existing UNIX accounts while still
1276 automatically creating accounts for trusted users and groups. This
1277 behavior is controlled by the 'winbind trusted domains only' smb.conf
1278 parameter (disabled by default to provide 2.2.x winbind behavior).
1280 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1281 in smbd/uid.c. The reason that group mappings are not included
1282 in winbindd is because the purpose of Samba's group map is to
1283 match any Windows SID with an existing UNIX group. These UNIX
1284 groups can be created by winbindd (see next section), but the
1285 SID<->gid mapping is retreived by smbd, not winbindd.
1291 * security = server running winbindd to allocate accounts on demand
1293 * Samba PDC running winbindd to handle the automatic creation of UNIX
1294 identities for machine trust accounts
1296 * Automtically creating UNIX user and groups when migrating a Windows NT
1297 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1298 'net rpc vampire' for this to work.
1301 ######################################################################
1305 * There are several bugs currently logged against the 3.0 codebase
1306 that affect the use of NT 4.0 GUI domain management tools when run
1307 against a Samba 3.0 PDC. This bugs should be released in an early
1310 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1311 filed against the Samba 3.0 codebase.
1314 ######################################################################
1315 Reporting bugs & Development Discussion
1316 #######################################
1318 Please discuss this release on the samba-technical mailing list or by
1319 joining the #samba-technical IRC channel on irc.freenode.net.
1321 If you do report problems then please try to send high quality
1322 feedback. If you don't provide vital information to help us track down
1323 the problem then you will probably be ignored.
1325 A new bugzilla installation has been established to help support the
1326 Samba 3.0 community of users. This server, located at
1327 https://bugzilla.samba.org/, has replaced the older jitterbug server
1328 previously located at http://bugs.samba.org/.