1 =================================
2 Release Notes for Samba 3.0.3pre1
4 =================================
6 This is a preview release of the Samba 3.0.3 code base and is
7 provided for testing only. This release is *not* intended for
8 production servers. Use at your own risk.
10 There have been several bug fixes since the 3.0.2 release that
11 we feel are important to make available to the Samba community
12 for wider testings. See the "Changes" section for details on
15 Common bugs fixed in this preview release include:
20 ######################################################################
33 Please refer to the CVS log for the SAMBA_3_0 branch for complete
34 details. The list of changes per contributor are as follows:
39 o Jeremy Allison <jra@samba.org>
40 * Ensure that Kerberos mutex is always properly unlocked.
41 * Removed Heimdal "in-memory keytab" support.
43 o Andrew Bartlet <abartlet@samba.org>
44 * Include support for linking with cracklib for enforcing
45 strong password changes.
46 * Add support for >14 character password changes from Windows
48 * Add 'admin set password' capability to 'net rpc'.
49 * Allow 'net rpc samdump' to work with any joined domain
50 regardless of smb.conf settings.
53 o Alexander Bokovoy <ab@samba.org>
56 o Gerald (Jerry) Carter <jerry@samba.org>
57 * Fix ';make installmodules' bug on True64.
60 o Guenther Deschner <gd@suse.com>
61 * Remove hard coded attribute name in the ads ranged retrieval
65 o Chris Hertel <crh@samba.org>
66 * fix enumeration of shares 12 characters in length via
70 o John Klinger <john.klinger@lmco.com>
71 * Return NSS_SUCCESS once the max number of gids possible
72 has been found in initgroups() on Solaris.
75 o Volker Lendecke <vl@samba.org>
78 o Herb Lewis <herb@samba.org>
81 o Jianliang Lu <j.lu@tiesse.com>
84 o L. Lucius <ib@digicron.com>.
88 o Jim McDonough <jmcd@us.ibm.com>
91 o Stefan Metzmacher <metze@samba.org>
94 o James Peach <jpeach@sgi.com>
95 * Correct check for printf() format when using the SGI MIPSPro
99 o Tim Potter <tpot@samba.org>
100 * Fix logic bug in tdb non-blocking lock routines when
102 * BUG 1025: Include sys/acl.h in check for broken nisplus
106 o Andrew Tridgell <tridge@samba.org>
107 * Rewrote the AIX UESS backend for winbindd.
110 o Jelmer Vernooij <jelmer@samba.org>
113 Changes for older versions follow below:
115 --------------------------------------------------
117 =============================
118 Release Notes for Samba 3.0.2
120 =============================
122 It has been confirmed that previous versions of Samba 3.0 are
123 susceptible to a password initialization bug that could grant an
124 attacker unauthorized access to a user account created by the
125 mksmbpasswd.sh shell script.
127 The Common Vulnerabilities and Exposures project (cve.mitre.org)
128 has assigned the name CAN-2004-0082 to this issue.
130 Samba administrators not wishing to upgrade to the current
131 version should download the 3.0.2 release, build the pdbedit
134 root# pdbedit-3.0.2 --force-initialized-passwords
136 This will disable all accounts not possessing a valid password
137 (e.g. the password field has been set a string of X's).
139 Samba servers running 3.0.2 are not vulnerable to this bug
140 regardless of whether or not pdbedit has been used to sanitize
143 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
146 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
147 o Logging onto a Samba domain from Windows XP clients.
148 o Problems with the %U and %u smb.conf variables in relation to
149 Windows 9x/ME clients.
150 o Kerberos failures due to an invalid in memory keytab detection
152 o Updates to the ntlm_auth tool.
153 o Fixes for various SMB signing errors.
154 o Better separation of WINS and DNS queries for domain controllers.
155 o Issues with nss_winbind FreeBSD and Solaris.
156 o Several crash bugs in smbd and winbindd.
157 o Output formatting fixes for smbclient for better compatibility
158 with scripts based on the 2.2 version.
167 Parameter Name Action
168 -------------- ------
169 ldap replication sleep New
170 read size removed (unused)
171 source environment removed (unused)
177 Please refer to the CVS log for the SAMBA_3_0 branch for complete
178 details. The list of changes per contributor are as follows:
180 o Jeremy Allison <jra@samba.org>
181 * Revert change that broke Exchange clear text samlogons.
182 * Fix gcc 3.4 warning in MS-DFS code.
183 * Tidy up of NTLMSSP code.
184 * Fixes for SMB signing errors
185 * BUG 815: Workaround NT4 bug to support plaintext
186 password logins and UNICODE.
187 * Fix SMB signing bug when copying large files.
188 * Correct error logic in mkdir_internals() (caused a panic
189 when combined with --enable-developer).
190 * BUG 830: Protect against crashes due to bad character
194 o Petri Asikainen <paca@sci.fi>
195 * BUG 330, 387:Fix single valued attribute updates when
196 working with Novell NDS.
199 o Andrew Bartlet <abartlet@samba.org>
200 * Correctly handle per-pipe NTLMSSP inside a NULL session.
201 * Fix segfault in gencache
202 * Fix early free() of encrypted_session_key.
203 * Change DC lookup routines to more carefully separate
204 DNS names (realms) from NetBIOS domain names.
205 * Add new sid_to_dn() function for internal winbindd use.
206 * Refactor cli_ds_enum_domain_trusts().
207 * BUG 707: Implement range retrieval of ADS attributes (based
208 on work from Volker <vl@samba.org> and Guenther Deschner
210 * Automatically initialize the signing engine if a session key
212 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
213 encoded strings, only form input in SWAT.
214 * Resets the NTLMSSP state for new negotiate packets.
215 * Add 2-byte alignments in net_samlogon() queries to parse
216 odd-length plain text passwords.
217 * Allow Windows groups with no members in winbindd.
218 * Allow normal authentication in the absence of a server
219 generated session key.
220 * More optimizations for looking up UNIX group lists.
221 * Clean up error codes and return values for pam_winbindd
222 and winbindd PAM interface.
223 * Fix string return values in ntlm_auth tool.
224 * Fix segfault when 'security = ads' but no realm is defined.
225 * BUG 722: Allow winbindd to map machine accounts to uids.
226 * More cleanups for winbindd's find_our_domain().
227 * More clearly detect whether a domain controller is an NT4
228 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
229 * Increase separation between DNS queries for hosts and queries
230 for AD domain controllers.
231 * Include additional NT_STATUS to PAM error mappings.
232 * Password initialization fixes.
235 o Justin Baugh <justin.baugh@request.com>
236 * BUG 948: Implement missing functions required for FreeBSD
240 o Alexander Bokovoy <ab@samba.org>
241 * BUG 922: Make sure enable fast path for strlower_m() and
245 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
246 * Fix crash when using 'security = server' and 'encrypt
247 passwords = no' by always initializing the session key.
250 o Dmitry Butskoj <buc@odusz.elektra.ru>
251 * Fix for special files being hidden from admins.
254 o Gerald (Jerry) Carter <jerry@samba.org>
255 * Fix bug in the lanman session key generation. Caused
256 "decode_pw: incorrect password length" error messages.
257 * Save the right case for the located user name in
258 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
259 * BUG 897: Add well known rid for pre win2k compatible access
261 * BUG 887: Correct typo in delete user script example.
262 * Use short lived TALLOC_CTX* for allocating printer objects
263 from the print handle cache.
264 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
265 * Fix several warnings reported by the SUN Forte C compiler.
266 * Fully control DNS queries for AD DC's using 'name resolve order'.
267 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
268 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
269 * BUG 936: fix bind credentials for schannel binds in smbd.
270 * BUG 446: Fix output of smbclient for better compatibility
271 with scripts based on the 2.2 version (including Amanda).
272 * BUG 891, 949: Fedora packaging fixes.
273 * Fix bug that caused rpcclient to incorrectly retrieve
274 the SID for a server (this causing all calls that required
275 this information to fail).
276 * BUG 977: Don't create a homes share for a user if a static
277 share already exists by the same name.
278 * Removed unused smb.conf options.
279 * Password initialization fixes.
280 * Set the disable flag for template accounts created by
282 * Disable any account has no passwords and does not have the
283 ACB_PWNOTREQ bit set.
286 o Guenther Deschner <gd@suse.com>
287 * Install smbwrapper.so should be put into the $(libdir)
289 * Add the capability to specify the new user password
290 for "net ads password" on the command line.
291 * Correctly detect AFS headers on SuSE.
294 o James Flemer <jflemer@uvm.edu>
295 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
296 HAVE_SYS_ATTRIBUTES_H.
299 o Luke Howard <lukeh@PADL.COM>
300 * Fix segfault in session setup reply caused by a early free().
303 o Stoian Ivanov <sdr@bultra.com>
304 * Implement grepable output for smbclient -L.
307 o LaMont Jones <lamont@debian.org>
308 * BUG 225328 (Debian): Correct false failure LFS test that resulted
309 in _GNU_SOURCE not being defined (thus resulting in strndup()
313 o Volker Lendecke <vl@samba.org>
314 * BUG 583: Ensure that user names always contain the short
315 version of the domain name.
316 * Fix our parsing of the LDAP uri.
317 * Don't show the 'afs username map' in the SWAT basic view.
318 * Fix SMB signing issues in relation to failed NTLMSSP logins.
319 * BUG 924: Fix return codes in smbtorture harness.
320 * Always lower-case usernames before handing it to AFS code.
321 * Add a German translation for SWAT.
322 * Fix a segfaults in winbindd.
323 * Fix the user's domain passed to register_vuid() from
324 reply_spnego_kerberos().
325 * Add NSS example code in nss_winbind to convert UNIX
326 id's <-> Windows SIDs.
327 * Display more descriptive error messages for login via 'net'.
328 * Fix compiler warning in the net tool.
329 * Fix length bug when decoding base64 strings.
330 * Ensure we don't call getpwnam() inside a loop that is iterating
331 over users with getpwent(). This broke on glibc 2.3.2.
334 o Herb Lewis <herb@samba.org>
335 * Fix bit rot in psec.
338 o Jianliang Lu <j.lu@tiesse.com>
339 * Ensure we delete the group mapping before calling the delete
341 * Define well known RID for managing the "Power Users" group.
342 * BUG 381: check builtin (not local) group SID when updating
344 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
348 o John Klinger <john.klinger@lmco.com>
349 * Implement initgroups() call in nss_winbind on Solaris.
352 o Jim McDonough <jmcd@us.ibm.com>
353 * Fix regression in net rpc join caused by recent changes
354 to cli_lsa_query_info_policy().
355 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
359 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
360 * BUG 570: Ensure that configure honors the LDFLAGS variable.
363 o Stefan Metzmacher <metze@samba.org>
364 * Implement LDAP rebind sleep patch.
365 * Revert to 2.2 quota code because of so many broken quota files
367 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
368 XFS_USER_QUOTA -> USRQUOTA
369 XFS_GROUP_QUOTA -> GRPQUOTA
370 * Fix disk_free calculation with group quotas.
371 * Add debug class 'quota' and a lot of DEBUG()'s
373 * Fix sys_chown() when no chown() is present.
374 * Add SIGABRT to fault handling in order to catch got a
375 backtrace if an error occurs the OpenLDAP client libs.
379 * Allow an existing LDAP machine account to be re-used when
380 joining an AD domain.
383 o James Peach <jpeach@sgi.com>
384 * BUG 889: Change smbd to use pread/pwrite on platforms that
385 support these calls. Can lead to a significant speed increase.
388 o Tim Potter <tpot@samba.org>
389 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
390 * BUG 924: Fix typo in RW2 torture test.
393 o Richard Sharpe <shape@samba.org>
394 * Small fixes to torture.c to cleanup the error handling
398 o J. Tournier <jerome.tournier@IDEALX.com>
399 * Small fixes for the smbldap-tool scripts.
402 o Andrew Tridgell <tridge@samba.org>
403 * Fix src len check in pull_usc2().
406 o Jelmer Vernooij <jelmer@samba.org>
407 * Put functions for generating SQL queries in pdb_sql.c
408 * Add pgSQL backend (based on patch by Hamish Friedlander)
409 * BUG 908: Fix -s option to smbcontrol.
410 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
411 * Fix for libnss_wins on IRIX platforms.
412 * Fix swatdir for --with-fhs.
415 --------------------------------------------------
417 =============================
418 Release Notes for Samba 3.0.1
420 =============================
422 Some of the more common bugs in 3.0.0 addressed in the release
425 o Substitution problems with smb.conf variables.
426 o Errors in return codes which caused some applications
427 to fail to open files.
428 o General Protection Faults on Windows 2000/XP clients
429 using Samba point-n-print features.
430 o Several miscellaneous crash bugs.
431 o Access problems when enumerating group mappings are
432 stored in an LDAP Directory.
433 o Several common SWAT bugs when writing changes to
435 o Internal inconsistencies when 'winbind use default
441 ----------------------
443 Parameter Name Action
444 -------------- ------
445 hide local users Removed
446 mangled map Deprecated
447 mangled stack Removed
448 passwd chat timeout New
454 o Change the interface for init_unistr2 to not take a length
455 but a flags field. We were assuming that
456 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
457 o Allow d_printf() to handle strings with escaped quotation
458 marks since the msg file includes the escape character (bug 489).
459 o Fix bad html table row termination in SWAT wizard code (bug 413).
460 o Fix to parse the level-2 strings.
461 o Fix for "valid users = %S" in [homes]. Fix read/write
463 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
464 This is the same way AC_CHECK_LIB works (bug 508).
465 o Testparm output fixes for clarity.
466 o Fix broken wins hook functionality -- i18n bug (bug 528).
467 o Take care of condition where DOS and NT error codes must differ.
468 o Default to using only built-in charsets when a working iconv
469 implementation cannot be located.
470 o Wrap internals of sys_setgroups() so the sys_XX() call can
471 be done unconditionally (bug 550).
472 o Remove duplicate smbspool link on SWAT's front page (bug 541).
473 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
474 --enable-debug=[yes|no] works correctly.
475 o Allow ^C to interrupt smbpasswd if using our getpass
476 (e.g. smbpasswd command).
477 o Support signing only on RPC's (bug 167).
478 o Correct bug that prevented Excel 2000 clients from opening
479 files marked as read-only.
480 o Portability fix bugs 546 - 549).
481 o Explicitly initialize the value of AR for vendor makes that don't
482 do this (e.g. HPUX 11). (bug 552).
483 o More i18n fixes for SWAT (bug 413).
484 o Change the cwd before the postexec script to ensure that a
486 o Correct double free that caused winbindd to crash when a DC
487 is rebooted (bug 437).
488 o Fix incorrect mode sum (bug 562).
489 o Canonicalize SMB_INFO_ALLOCATION in the same was as
490 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
491 o Add script to generate *msg files.
492 o Add Dutch SWAT translation file.
493 o Make sure to call get_user_groups() with the full winbindd
494 name for a user if he/she has one (bug 406).
495 o Fix up error code returns from Samba4 tester. Ensure invalid
496 paths are validated the same way.
497 o Allow Samba3 to pass the Samba4 RAW-READ tests.
498 o Refuse to configure if --with-expsam=$BACKEND was used but no
499 libraries were found for $BACKEND.
500 o Move sysquotas autoconf tests to a separate file.
501 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
503 o Make sure that the files that contain the static_init_$subsystem;
504 macro get recompiled after configure by removing the object
506 o Ensure canceling a blocking lock returns the correct error
508 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
509 o Updated Japanese welcome file in SWAT.
510 o Fix to nt-time <-> unix-time functions reversible.
511 o Ensure that winbindd uses the the escaped DN when querying
513 o Fix portability issues when compiling (bug 505, 550)
514 o Compile fix for tdbbackup when Samba needs to override
515 non-C99 compliant implementations of snprintf().
516 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
517 o Make sure we break out of samsync loop on error.
518 o Ensure error code path doesn't free unmalloc()'d memory
520 o Add configure test for krb5_keytab_entry keyblock vs key
523 o Modified testparm so that all output so all debug output goes
524 to stderr, and all file processing goes to stdout.
525 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
527 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
528 we have a devmode before copying a string to the devicename.
529 o Support mapping REALM.COM\user to a local user account (without
530 running winbindd) for compatibility with 2.2.x release.
531 o Ensure we don't use mmap() on blacklisted systems.
532 o fixed a number of bugs and memory leaks in the AIX
534 o Call initgroups() in SWAT before becomming the user so that
535 secondary group permissions can be used when writing to
537 o Fix signing problems when reverse connecting back to a
538 client for printer notify
539 o Fix signing problems caused by a miss-sequence bug.
540 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
541 Fixes NEXUS tools running on Win9x clients (bug 64).
542 o Don't leave the domain field uninitialized in cli_lsa.c if some
543 SID could not be mapped.
544 o Fix segfault in mount.cifs helper when there is no options
545 specified during mount.
546 o Change the \n after the password prompt to go to tty instead
548 o Stop net -P from prompting for machine account password (bug 451).
549 o Change in behavior to Not only change the effective uid but also
550 the real uid when becoming unprivileged.
551 o Cope with Exchange 5.5 cleartext pop password auth.
552 o New files for support of initshutdown pipe. Win2k doesn't
553 respond properly to all requests on the winreg pipe, so we need
554 to handle this new pipe (bug 534).
555 o Added more va_copy() checks in configure.in.
556 o Include fixes for libsmbclient build problems.
557 o Missing UNIX -> DOS codepage conversion in lanman.c.
558 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
559 o Parameterize the listen backlog in smbd and make it larger by
560 default. A backlog of 5 is way too small these days.
561 o Check for an invalid fid before dereferencing the fsp pointer
563 o Remove invalid memory frees and return codes in pdb_ldap.c.
564 o Prompt for password when invoking --set-auth-user and no
566 o Bind the nmbd sending socket to the 'socket address'.
567 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
568 $LDFLAGS occurs before any library specification (bug 661).
569 o Fix large number of printf() calls for 64-bit size_t.
570 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
571 keyblock in the krb5 structs.
572 o Remove #include <compat.h> in hopes to avoid problems with
574 o Correct winbindd build problems on HP-UX 11.
575 o Lowercase netgroups lookups (bug 703).
576 o Use the actual size of the buffer in strftime instead of a made
577 up value which just happens to be less than sizeof(fstring).
579 o Add ldaplibs to pdbedit link line (bug 651).
580 o Fix crash bug in smbclient completion (bug 659).
581 o Fix packet length for browse list reply (bug 771).
582 o Fix coredump in cli_get_backup_list().
583 o Make sure that we expand %N (bug 612).
584 o Allow rpcclient adddriver command to specify printer driver
586 o Compile tdbdump by default.
587 o Apply patches to fix iconv detection for FreeBSD.
588 o Do not allow the 'guest account' to be added to a passdb backend
589 using smbpasswd or pdbedit (bug 624).
590 o Save LDFLAGS during iconv detection (bug 57).
591 o Run krb5 logins through the username map if the winbindd
592 lookup fails (bug 698).
593 o Add const for lp_set_name_resolve_order() to avoid compiler
595 o Add support for the %i macro in smb.conf to stand in for the for
596 the local IP address to which a client connected.
597 o Allow winbindd to match local accounts to domain SID when
598 'winbind trusted domains only = yes' (bug 680).
599 o Remove code in idmap_ldap that searches the user suffix and group
600 suffix. It's not needed and provides inconsistent functionality
601 from the tdb backend.
602 o Patch to handle munged dial string for Windows 200 TSE.
603 o Correct the "smbldap_open: cannot access when not root error"
604 messages when looking up group information (bug 281).
605 o Skip over the winbind separator when looking up a user.
606 This fixes the bug that prevented local users from
607 matching an AD user when not running winbindd (bug 698).
608 o Fix a problem with configure on *BSD systems. Make sure
609 we add -liconv etc to LDFLAGS.
610 o Fix core dump bug when "security = server" and the authentication
612 o Correct crash bug due to an empty munged dial string.
613 o Show files locked by a specific user (smbstatus -u 'user')
615 o Fix bug preventing print jobs from display in the queue
616 monitor used by Windows NT and later clients (bug 660).
617 o Fix several reported problems with point-n-print from
618 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
619 reply (bug 338, 527 & 643).
620 o Fix a handful of potential memory leaks in the LDAP code used
621 by ldapsam[_compat] and the LDAP idmap backend.
622 o Fix for pdbedit error code returns (bug 763).
623 o Make sure we only enumerate group mapping entries (not
624 /etc/group) even when doing local aliases.
625 o Relax check on the pipe name in a dce/rpc bind response to work
626 around issues with establishing trusts to a Windows 2003 domain.
627 o Ensure we mangle names ending in '.' in hash2 mangling method.
628 o Correct parsing issues with munged dial string.
629 o Fix bugs in quota support for XFS.
630 o Add a cleaner method for applications that need to provide
631 name->SID mappings to do this via NSS rather than having to
632 know the winbindd pipe protocol.
633 o Adds a variant of the winbindd_getgroups() call called
634 winbindd_getusersids() that provides direct SID->SIDs listing of
635 a users supplementary groups. This is enough to allow non-Samba
636 applications to do ACL checking.
637 o Make sure we don't append the 'ldap suffix' when writing out the
638 'ldap XXX suffix' values in SWAT (bug 328).
639 o Fix renames across file systems.
640 o Ensure that items in a list of strings containing whitespace are
641 written out surrounded by single quotes. This means that both
642 double and single quotes are now used to surround strings in
644 o Enable SWAT to correctly determine if winbindd is running (bug
646 o Include WWW-Authenticate field in 401 response for bad auth
648 o Add support for NTLM2 (NTLMv2 session security).
649 o Add support for variable-length session keys.
650 o More privilege fixes for group enumeration in LDAP (bug 281).
651 o Use the dns name (or IP) as the originating client name when
652 using CUPS (bug 467).
653 o Fix various SMB signing bugs.
654 o Fix ACL propagation on a DFS root (bug 263).
655 o Disable NTLM2 for RPC pipes.
656 o Allow the client to specify the NTLM2 flags got NTLMSSP
658 o Change the name of the job passed off to cups from "Test Page"
659 to "smbprn.00000033 Test Page" so that we can get the smb
660 jobid back. This allow users to delete jobs with cups printing
661 backend (partial work on bug 770).
662 o Fix build of winbindd with static pdb modules.
663 o Retrieve the correct ACL group bits if the file has an ACL
665 o Implement "net rpc group members": Get members of a domain group
666 in human-readable format.
667 o Add MacOSX (Darwin) specific charset module code.
668 o Use samr_dispinfo(level == 1) for enumerating domain users so we
669 can include the full name in gecos field (bug 587).
670 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
671 o Implement 'net rpc group list [global|local|builtin]*' for a
672 select listing of the respective user databases.
673 o Don't automatically set NT status code flag unless client tells
675 o Add 'net status [sessions|shares] [parseable]'.
676 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
678 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
680 o Fix inverted logic in hosts allow/deny checks caused by
681 s/strcmp/strequal/ (bug 846).
682 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
683 o Fix typo in 'hash' mangling algorithm.
684 o Support munged dial for ldapsam (bug 800).
685 o Fix process_incoming_data() to return the number of bytes handled
686 this call whether we have a complete PDU or not; fixes bug
687 with multiple PDU request rpc's broken over SMBwriteX calls
689 o Fix incorrect smb flags2 for connections to pre-NT servers
690 (causes smbclient to fail to OS2 for example) (bug 821).
691 o Update version string in smbldap-tools Makefile to 0.8.2.
692 o Correct a problem with "net rpc vampire" mis-parsing the
693 alias member info reply.
694 o Ensure the ${libdir} is created by the installclientlib script.
695 o Fix detection of Windows 2003 client architecture in the smb.conf
697 o Ensure that smbd calls the add user script for a missing UNIX
698 user on kerberos auth call (bug 445).
699 o Fix bugs in hosts allow/deny when using a mismatched
700 network/netmask pair.
701 o Protect alloc_sub_basic() from crashing when the source string
702 is NULL (partial work on bug 687).
703 o Fix spinlocks on IRIX.
704 o Corrected some bad destination paths when running "configure
706 o Add packaging files for Fedora Core 1.
707 o Correct bug in SWAT install script for non-english languages.
708 o Support character set ISO-8859-1 internally (bug 558).
709 o Fixed more LDAP access errors when looking up group mappings
711 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
712 resolution to fail on local files on on domain members
714 o Fix uninitialized variable in passdb.c.
715 o Fix formal parameter type in get_static() in nsswitch/wins.c.
716 o Fix problem mounting directories when mount.cifs is installed
717 with the setuid bit on.
718 o Fix bug that prevent --mandir from overriding the defaults
719 given in the --with-fhs macro.
720 o Fix bug in in-memory Kerberos keytab detection routines
725 ######################################################################
727 The original 3.0.0 release notes follow
728 =======================================
729 WHATS NEW IN Samba 3.0.0
731 =======================================
737 1) Active Directory support. Samba 3.0 is now able to
738 join a ADS realm as a member server and authenticate
739 users using LDAP/Kerberos.
741 2) Unicode support. Samba will now negotiate UNICODE on the wire
742 and internally there is now a much better infrastructure for
743 multi-byte and UNICODE character sets.
745 3) New authentication system. The internal authentication system
746 has been almost completely rewritten. Most of the changes are
747 internal, but the new auth system is also very configurable.
749 4) New default filename mangling system.
751 5) A new "net" command has been added. It is somewhat similar to
752 the "net" command in windows. Eventually we plan to replace
753 numerous other utilities (such as smbpasswd) with subcommands
756 6) Samba now negotiates NT-style status32 codes on the wire. This
757 improves error handling a lot.
759 7) Better Windows 2000/XP/2003 printing support including publishing
760 printer attributes in active directory.
762 8) New loadable module support for passdb backends and character
765 9) New default dual-daemon winbindd support for better performance.
767 10) Support for migrating from a Windows NT 4.0 domain to a Samba
768 domain and maintaining user, group and domain SIDs.
770 11) Support for establishing trust relationships with Windows NT 4.0
773 12) Initial support for a distributed Winbind architecture using
774 an LDAP directory for storing SID to uid/gid mappings.
776 13) Major updates to the Samba documentation tree.
778 14) Full support for client and server SMB signing to ensure
779 compatibility with default Windows 2003 security settings.
781 15) Improvement of ACL mapping features based on code donated by
785 Plus lots of other improvements!
788 Additional Documentation
789 ------------------------
791 Please refer to Samba documentation tree (included in the docs/
792 subdirectory) for extensive explanations of installing, configuring
793 and maintaining Samba 3.0 servers and clients. It is advised to
794 begin with the Samba-HOWTO-Collection for overviews and specific
795 tasks (the current book is up to approximately 400 pages) and to
796 refer to the various man pages for information on individual options.
798 We are very glad to be able to include the second edition of
799 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
800 (O'Reilly & Associates) in this release. The book is available
801 on-line at http://samba.org/samba/docs/ and is included with
802 the Samba Web Administration Tool (SWAT). Thanks to the authors and
803 publisher for making "Using Samba" under the GNU Free Documentation
807 ######################################################################
808 Upgrading from a previous Samba 3.0 beta
809 ########################################
811 Beginning with Samba 3.0.0beta3, the RID allocation functions
812 have been moved into winbindd. Previously these were handled
813 by each passdb backend. This means that winbindd must be running
814 to automatically allocate RIDs for users and/or groups. Otherwise,
815 smbd will use the 2.2 algorithm for generating new RIDs.
817 If you are using 'passdb backend = tdbsam' with a previous Samba
818 3.0 beta release (or possibly alpha), it may be necessary to
819 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
820 to winbindd_idmap.tdb. To do this:
822 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
824 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
826 3) run: (note that 'tdb>' is the tool's prompt for input)
828 root# ./tdbtool /usr/local/samba/private/passdb.tdb
829 tdb> show RID_COUNTER
833 [000] 0A 52 00 00 .R.
835 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
839 If you are using 'passdb backend = ldapsam', it will be necessary to
840 store idmap entries in the LDAP directory as well (i.e. idmap backend
841 = ldap). Refer to the 'net idmap' command for more information on
842 migrating SID<->UNIX id mappings from one backend to another.
844 If the RID_COUNTER record does not exist, then these instructions are
845 unneccessary and the new RID_COUNTER record will be correctly generated
850 ########################
851 Upgrading from Samba 2.2
852 ########################
854 This section is provided to help administrators understand the details
855 involved with upgrading a Samba 2.2 server to Samba 3.0.
861 Many of the options to the GNU autoconf script have been modified
862 in the 3.0 release. The most noticeable are:
864 * removal of --with-tdbsam (is now included by default; see section
865 on passdb backends and authentication for more details)
867 * --with-ldapsam is now on used to provided backward compatible
868 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
869 backend and authentication section for more details
871 * inclusion of non-standard passdb modules may be enabled using
872 --with-expsam. This includes an XML backend and a mysql backend.
874 * removal of --with-msdfs (is now enabled by default)
876 * removal of --with-ssl (no longer supported)
878 * --with-utmp now defaults to 'yes' on supported systems
880 * --with-sendfile-support is now enabled by default on supported
887 This section contains a brief listing of changes to smb.conf options
888 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
889 complete descriptions of new or modified parameters.
891 Removed Parameters (order alphabetically):
894 * alternate permissions
897 * code page directory
901 * force unknown acl user
906 * printer driver file
907 * printer driver location
915 New Parameters (new parameters have been grouped by function):
919 * abort shutdown script
922 User and Group Account Management
923 ---------------------------------
926 * add user to group script
927 * algorithmic rid base
928 * delete group script
929 * delete user from group script
931 * set primary group script
937 * passwd chat timeout
948 * paranoid server security
958 * hide unwriteable files
960 * kernel change notify
970 * max reported print jobs
972 UNICODE and Character Sets
973 --------------------------
979 SID to uid/gid Mappings
980 -----------------------
984 * winbind enable local accounts
985 * winbind trusted domains only
986 * template primary group
987 * enable rid algorithm
994 * ldap machine suffix
998 General Configuration
999 ---------------------
1003 Modified Parameters (changes in behavior):
1005 * encrypt passwords (enabled by default)
1006 * mangling method (set to 'hash2' by default)
1009 * restrict anonymous (integer value)
1010 * security (new 'ads' value)
1011 * strict locking (enabled by default)
1012 * unix extensions (enabled by default)
1013 * winbind cache time (increased to 5 minutes)
1014 * winbind uid (deprecated in favor of 'idmap uid')
1015 * winbind gid (deprecated in favor of 'idmap gid')
1021 This section contains brief descriptions of any new databases
1022 introduced in Samba 3.0. Please remember to backup your existing
1023 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
1024 upgrade databases as they are opened (if necessary), but downgrading
1025 from 3.0 to 2.2 is an unsupported path.
1027 Name Description Backup?
1028 ---- ----------- -------
1029 account_policy User policy settings yes
1030 gencache Generic caching db no
1031 group_mapping Mapping table from Windows yes
1032 groups/SID to unix groups
1033 winbindd_idmap ID map table from SIDS to UNIX yes
1035 namecache Name resolution cache entries no
1036 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1037 returned as part of a successful
1038 net_sam_logon request
1039 printing/*.tdb Cached output from 'lpq no
1040 command' created on a per print
1042 registry Read-only samba registry skeleton no
1043 that provides support for exporting
1044 various db tables via the winreg RPCs
1050 The following issues are known changes in behavior between Samba 2.2 and
1051 Samba 3.0 that may affect certain installations of Samba.
1053 1) When operating as a member of a Windows domain, Samba 2.2 would
1054 map any users authenticated by the remote DC to the 'guest account'
1055 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1056 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1057 current work around to re-establish the 2.2 behavior.
1059 2) When adding machines to a Samba 2.2 controlled domain, the
1060 'add user script' was used to create the UNIX identity of the
1061 machine trust account. Samba 3.0 introduces a new 'add machine
1062 script' that must be specified for this purpose. Samba 3.0 will
1063 not fall back to using the 'add user script' in the absence of
1064 an 'add machine script'
1067 ######################################################################
1068 Passdb Backends and Authentication
1069 ##################################
1071 There have been a few new changes that Samba administrators should be
1072 aware of when moving to Samba 3.0.
1074 1) encrypted passwords have been enabled by default in order to
1075 inter-operate better with out-of-the-box Windows client
1076 installations. This does mean that either (a) a samba account
1077 must be created for each user, or (b) 'encrypt passwords = no'
1078 must be explicitly defined in smb.conf.
1080 2) Inclusion of new 'security = ads' option for integration
1081 with an Active Directory domain using the native Windows
1082 Kerberos 5 and LDAP protocols.
1084 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1085 type which is neccessary for servers on which the
1086 administrator password has not been changed, or kerberos-enabled
1087 SMB connections to servers that require Kerberos SMB signing.
1088 Besides this one difference, either MIT or Heimdal Kerberos
1089 distributions are usable by Samba 3.0.
1092 Samba 3.0 also includes the possibility of setting up chains
1093 of authentication methods (auth methods) and account storage
1094 backends (passdb backend). Please refer to the smb.conf(5)
1095 man page for details. While both parameters assume sane default
1096 values, it is likely that you will need to understand what the
1097 values actually mean in order to ensure Samba operates correctly.
1099 The recommended passdb backends at this time are
1101 * smbpasswd - 2.2 compatible flat file format
1102 * tdbsam - attribute rich database intended as an smbpasswd
1103 replacement for stand alone servers
1104 * ldapsam - attribute rich account storage and retrieval
1105 backend utilizing an LDAP directory.
1106 * ldapsam_compat - a 2.2 backward compatible LDAP account
1109 Certain functions of the smbpasswd(8) tool have been split between the
1110 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1111 utility. See the respective man pages for details.
1114 ######################################################################
1118 This section outlines the new features affecting Samba / LDAP
1124 A new object class (sambaSamAccount) has been introduced to replace
1125 the old sambaAccount. This change aids us in the renaming of attributes
1126 to prevent clashes with attributes from other vendors. There is a
1127 conversion script (examples/LDAP/convertSambaAccount) to modify and LDIF
1128 file to the new schema.
1132 $ ldapsearch .... -b "ou=people,dc=..." > old.ldif
1133 $ convertSambaAccount <DOM SID> old.ldif new.ldif
1135 The <DOM SID> can be obtained by running 'net getlocalsid <DOMAINNAME>'
1136 on the Samba PDC as root.
1138 The old sambaAccount schema may still be used by specifying the
1139 "ldapsam_compat" passdb backend. However, the sambaAccount and
1140 associated attributes have been moved to the historical section of
1141 the schema file and must be uncommented before use if needed.
1142 The 2.2 object class declaration for a sambaAccount has not changed
1143 in the 3.0 samba.schema file.
1145 Other new object classes and their uses include:
1147 * sambaDomain - domain information used to allocate rids
1148 for users and groups as necessary. The attributes are added
1149 in 'ldap suffix' directory entry automatically if
1150 an idmap uid/gid range has been set and the 'ldapsam'
1151 passdb backend has been selected.
1153 * sambaGroupMapping - an object representing the
1154 relationship between a posixGroup and a Windows
1155 group/SID. These entries are stored in the 'ldap
1156 group suffix' and managed by the 'net groupmap' command.
1158 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1159 automatically and contains the next available 'idmap uid' and
1162 * sambaIdmapEntry - object storing a mapping between a
1163 SID and a UNIX uid/gid. These objects are created by the
1164 idmap_ldap module as needed.
1166 * sambaSidEntry - object representing a SID alone, as a Structural
1167 class on which to build the sambaIdmapEntry.
1170 New Suffix for Searching
1171 ------------------------
1173 The following new smb.conf parameters have been added to aid in directing
1174 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1177 * ldap suffix - used to search for user and computer accounts
1178 * ldap user suffix - used to store user accounts
1179 * ldap machine suffix - used to store machine trust accounts
1180 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1181 * ldap idmap suffix - location of sambaIdmapEntry objects
1183 If an 'ldap suffix' is defined, it will be appended to all of the
1184 remaining sub-suffix parameters. In this case, the order of the suffix
1185 listings in smb.conf is important. Always place the 'ldap suffix' first
1188 Due to a limitation in Samba's smb.conf parsing, you should not surround
1189 the DN's with quotation marks.
1195 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1196 following options would inform Samba that the idmap table should be
1197 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1202 idmap backend = ldap:ldap://onterose/
1203 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1204 idmap uid = 40000-50000
1205 idmap gid = 40000-50000
1207 This configuration allows winbind installations on multiple servers to
1208 share a uid/gid number space, thus avoiding the interoperability problems
1209 with NFS that were present in Samba 2.2.
1213 ######################################################################
1214 Trust Relationships and a Samba Domain
1215 ######################################
1217 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1218 allocating uids and gids to trusted users and groups. More
1219 information regarding Samba's support for establishing trust
1220 relationships can be found in the Samba-HOWTO-Collection included
1221 in the docs/ directory of this release.
1223 First create your Samba PDC and ensure that everything is
1224 working correctly before moving on the trusts.
1226 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1227 4.0 domain named WINDOWS:
1229 1) create the trust account for SAMBA in "User Manager for Domains"
1230 2) connect the trust from the Samba domain using
1231 'net rpc trustdom establish GLASS'
1233 To create a trustlationship with SAMBA as the trusted domain:
1235 1) create the initial trust account for GLASS using
1236 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1237 account for GLASS$ prior to this step (depending on your
1238 local configuration).
1239 2) connect the trust from a WINDOWS DC using "User Manager
1242 Now join winbindd on the Samba PDC to the SAMBA domain using
1243 the normal steps for adding a Samba server to an NT4 domain:
1244 (note that smbd & nmbd must be running at this point)
1246 root# net rpc join -U root
1247 Password: <enter root password from smbpasswd file here>
1249 Start winbindd and test the join with 'wbinfo -t'.
1251 Now test the trust relationship by connecting to the SAMBA DC
1252 (e.g. POGO) as a user from the WINDOWS domain:
1254 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1257 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1259 $ smbclient //crystal/netlogon -U root -W WINDOWS
1262 ######################################################################
1266 Beginning with Samba3.0.0beta3, winbindd has been given new account
1267 manage functionality equivalent to the 'add user script' family of
1268 smb.conf parameters. The idmap design has also been changed to
1269 centralize control of foreign SID lookups and matching to UNIX
1273 Brief Description of Changes
1274 ----------------------------
1276 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1277 reverted to the 2.2.x design. This means that when resolving a
1278 SID to a UID or similar mapping:
1280 a) First consult winbindd
1281 b) perform a local lookup only if winbindd fails to
1282 return a successful answer
1284 There are some variations to this, but these two rules generally
1287 2) All idmap lookups have been moved into winbindd. This means that
1288 a server must run winbindd (and support NSS) in order to achieve
1289 any mappings of SID to dynamically allocated UNIX ids. This was
1290 a conscious design choice.
1292 3) New functions have been added to winbindd to emulate the 'add user
1293 script' family of smbd functions without requiring that external
1294 scripts be defined. This functionality is controlled by the 'winbind
1295 enable local accounts' smb.conf parameter (enabled by default).
1297 However, this account management functionality is only supported
1298 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1299 must be shared among multiple Samba servers (such as a PDC and BDCs),
1300 it will be necessary to define your own 'add user script', et. al.
1301 programs that place the accounts/groups in some form of directory
1302 such as NIS or LDAP. This requirement was deemed beyond the scope
1303 of winbind's account management functions. Solutions for
1304 distributing UNIX system information have been deployed and tested
1305 for many years. We saw no need to reinvent the wheel.
1307 4) A member of a Samba controlled domain running winbindd is now able
1308 to map domain users directly onto existing UNIX accounts while still
1309 automatically creating accounts for trusted users and groups. This
1310 behavior is controlled by the 'winbind trusted domains only' smb.conf
1311 parameter (disabled by default to provide 2.2.x winbind behavior).
1313 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1314 in smbd/uid.c. The reason that group mappings are not included
1315 in winbindd is because the purpose of Samba's group map is to
1316 match any Windows SID with an existing UNIX group. These UNIX
1317 groups can be created by winbindd (see next section), but the
1318 SID<->gid mapping is retreived by smbd, not winbindd.
1324 * security = server running winbindd to allocate accounts on demand
1326 * Samba PDC running winbindd to handle the automatic creation of UNIX
1327 identities for machine trust accounts
1329 * Automtically creating UNIX user and groups when migrating a Windows NT
1330 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1331 'net rpc vampire' for this to work.
1334 ######################################################################
1338 * There are several bugs currently logged against the 3.0 codebase
1339 that affect the use of NT 4.0 GUI domain management tools when run
1340 against a Samba 3.0 PDC. This bugs should be released in an early
1343 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1344 filed against the Samba 3.0 codebase.
1347 ######################################################################
1348 Reporting bugs & Development Discussion
1349 #######################################
1351 Please discuss this release on the samba-technical mailing list or by
1352 joining the #samba-technical IRC channel on irc.freenode.net.
1354 If you do report problems then please try to send high quality
1355 feedback. If you don't provide vital information to help us track down
1356 the problem then you will probably be ignored.
1358 A new bugzilla installation has been established to help support the
1359 Samba 3.0 community of users. This server, located at
1360 https://bugzilla.samba.org/, has replaced the older jitterbug server
1361 previously located at http://bugs.samba.org/.