1 ================================
2 Release Notes for Samba 3.0.2rc1
4 ================================
6 This is a preview release of the Samba 3.0.2 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.1 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:
19 ######################################################################
22 Changes since 3.0.2pre1
23 -----------------------
25 Please refer to the CVS log for the SAMBA_3_0 branch for complete
26 details. The list of changes per contributor are as follows:
29 o Jeremy Allison <jra@samba.org>
30 * Revert change that broke Exchange clear text samlogons.
31 * Fix gcc 3.4 warning in MS-DFS code.
34 o Andrew Bartlet <abartlet@samba.org>
35 * Fix segfault when 'security = ads' but no realm is defined.
36 * BUG 722: Allow winbindd to map machine accounts to uids.
37 * More cleanups for winbindd's find_our_domain().
38 * More clearly detect whether a domain controller is an NT4
40 * Increase separation between DNS queries for hosts and queries
41 for AD domain controllers.
44 o Justin Baugh <justin.baugh@request.com>
45 * BUG 948: Implement missing functions required for FreeBSD
49 o Alexander Bokovoy <ab@samba.org>
50 * BUG 922: Make sure enable fast path for strlower_m() and
54 o Gerald (Jerry) Carter <jerry@samba.org>
55 * Fix several warnings reported by the SUN Forte C compiler.
56 * Fully control DNS queries for AD DC's using 'name resolve order'.
57 * BUG 770: Send the SMBjobid for unix jobs back to the client.
58 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
59 * BUG 936: fix bind credentials for schannel binds in smbd.
60 * BUG 446: Fix output of smbclient for better compatibility
61 with scripts based on the 2.2 version (including Amanda).
64 o Luke Howard <lukeh@PADL.COM>
65 * Fix segfault in session setup reply caused by a early free().
68 o Volker Lendecke <vl@samba.org>
69 * Add a German translation for SWAT.
70 * Fix a segfaults in winbindd.
71 * Fix the user's domain passed to register_vuid() from
72 reply_spnego_kerberos().
75 o Herb Lewis <herb@samba.org>
76 * Fix bit rot in psec.
79 o John Klinger <john.klinger@lmco.com>
80 * Implement initgroups() call in nss_winbind on Solaris.
83 o Jim McDonough <jmcd@us.ibm.com>
84 * Fix regression in net rpc join caused by recent changes
85 to cli_lsa_query_info_policy().
88 o Stefan Metzmacher <metze@samba.org>
89 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
90 XFS_USER_QUOTA -> USRQUOTA
91 XFS_GROUP_QUOTA -> GRPQUOTA
92 * Fix disk_free calculation with group quotas.
93 * Add debug class 'quota' and a lot of DEBUG()'s
95 * Fix sys_chown() when no chown() is presend
98 o Tim Potter <tpot@samba.org>
99 * BUG 905: Remove POBAD_CC to fix Solaris FOrte compiles.
102 o Jelmer Vernooij <jelmer@samba.org>
103 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
104 * Fix for libnss_wins on IRIX platforms.
105 * Fix swatdir for --with-fhs.
110 ----------------------
112 Parameter Name Action
113 -------------- ------
114 ldap replication sleep New
120 o Jeremy Allison <jra@samba.org>
121 * Tidy up of NTLMSSP code.
122 * Fixes for SMB signing errors
123 * BUG 815: Workaround NT4 bug to support plaintext
124 password logins and UNICODE.
127 o Petri Asikainen <paca@sci.fi>
128 * BUG 330, 387:Fix single valued attribute updates when
129 working with Novell NDS.
132 o Andrew Bartlet <abartlet@samba.org>
133 * Correctly handle per-pipe NTLMSSP inside a NULL session.
134 * Fix segfault in gencache
135 * Fix early free() of encrypted_session_key.
136 * Change DC lookup routines to more carefully separate
137 DNS names (realms) from NetBIOS domain names.
138 * Add new sid_to_dn() function for internal winbindd use.
139 * Refactor cli_ds_enum_domain_trusts().
140 * BUG 707: Implement range retrieval of ADS attributes (based
141 on work from Volker <vl@samba.org> and Guenther Deschner
143 * Automatically initialize the signing engine if a session key
145 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
146 encoded strings, only form input in SWAT.
147 * Resets the NTLMSSP state for new negotiate packets.
148 * Add 2-byte alignments in net_samlogon() queries to parse
149 odd-length plain text passwords.
150 * Allow Windows groups with no members in winbindd.
151 * Allow normal authentication in the absence of a server
152 generated session key.
153 * More optimizations for looking up UNIX group lists.
154 * Clean up error codes and return values for pam_winbindd
155 and winbindd PAM interface.
156 * Fix restring return values in ntlm_auth tool.
159 o Dmitry Butskoj <buc@odusz.elektra.ru>
160 * Fix for special files being hidden from admins.
163 o Gerald (Jerry) Carter <jerry@samba.org>
164 * Fix bug in the lanman session key generation. Caused
165 "decode_pw: incorrect password length" error messages.
166 * Save the right case for the located user name in
167 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
168 * BUG 897: Add well known rid for pre win2k compatible access
170 * BUG 887: Correct typo in delete user script example.
171 * Use short lived TALLOC_CTX* for allocating printer objects
172 from the print handle cache.
173 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
176 o Guenther Deschner <gd@suse.com>
177 * Install smbwrapper.so should be put into the $(libdir)
179 * Add the capability to specify the new user password
180 for "net ads password" on the command line.
181 * Correctly detect AFS headers on SuSE.
184 o James Flemer <jflemer@uvm.edu>
185 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
186 HAVE_SYS_ATTRIBUTES_H.
189 o Volker Lendecke <vl@samba.org>
190 * BUG 583: Ensure that user names always contain the short
191 version of the domain name.
192 * Fix our parsing of the LDAP uri.
193 * Don't show the 'afs username map' in the SWAT basic view.
194 * Fix SMB signing issues in relation to failed NTLMSSP logins.
195 * BUG 924: Fix return codes in smbtorture harness.
196 * Always lower-case usernames before handing it to AFS code.
199 o Jianliang Lu <j.lu@tiesse.com>
200 * Ensure we delete the group mapping before calling the delete
202 * Define well known RID for managing the "Power Users" group.
205 o Stefan Metzmacher <metze@metzemix.de>
206 * Implement LDAP rebind sleep patch.
207 * Revert to 2.2 quota code because of so many broken quota files
212 * Allow an existing LDAP machine account to be re-used when
213 joining an AD domain.
216 o James Peach <jpeach@sgi.com>
217 * BUG 889: Change smbd to use pread/pwrite on platforms that
218 support these calls. Can lead to a significant speed increase.
221 o Tim Potter <tpot@samba.org>
222 * BUG 924: Fix typo in RW2 torture test.
225 o Richard Sharpe <shape@samba.org>
226 * Small fixes to torture.c to cleanup the error handling
230 o J. Tournier <jerome.tournier@IDEALX.com>
231 * Small fixes for the smbldap-tool scripts.
234 o Jelmer Vernooij <jelmer@samba.org>
235 * Put functions for generating SQL queries in pdb_sql.c
236 * Add pgSQL backend (based on patch by Hamish Friedlander)
237 * BUG 908: Fix -s option to smbcontrol.
241 ----------------------
243 Parameter Name Action
244 -------------- ------
245 hide local users Removed
246 mangled map Deprecated
247 mangled stack Removed
248 passwd chat timeout New
254 o Change the interface for init_unistr2 to not take a length
255 but a flags field. We were assuming that
256 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
257 o Allow d_printf() to handle strings with escaped quotation
258 marks since the msg file includes the escape character (bug 489).
259 o Fix bad html table row termination in SWAT wizard code (bug 413).
260 o Fix to parse the level-2 strings.
261 o Fix for "valid users = %S" in [homes]. Fix read/write
263 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
264 This is the same way AC_CHECK_LIB works (bug 508).
265 o Testparm output fixes for clarity.
266 o Fix broken wins hook functionality -- i18n bug (bug 528).
267 o Take care of condition where DOS and NT error codes must differ.
268 o Default to using only built-in charsets when a working iconv
269 implementation cannot be located.
270 o Wrap internals of sys_setgroups() so the sys_XX() call can
271 be done unconditionally (bug 550).
272 o Remove duplicate smbspool link on SWAT's front page (bug 541).
273 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
274 --enable-debug=[yes|no] works correctly.
275 o Allow ^C to interrupt smbpasswd if using our getpass
276 (e.g. smbpasswd command).
277 o Support signing only on RPC's (bug 167).
278 o Correct bug that prevented Excel 2000 clients from opening
279 files marked as read-only.
280 o Portability fix bugs 546 - 549).
281 o Explicitly initialize the value of AR for vendor makes that don't
282 do this (e.g. HPUX 11). (bug 552).
283 o More i18n fixes for SWAT (bug 413).
284 o Change the cwd before the postexec script to ensure that a
286 o Correct double free that caused winbindd to crash when a DC
287 is rebooted (bug 437).
288 o Fix incorrect mode sum (bug 562).
289 o Canonicalize SMB_INFO_ALLOCATION in the same was as
290 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
291 o Add script to generate *msg files.
292 o Add Dutch SWAT translation file.
293 o Make sure to call get_user_groups() with the full winbindd
294 name for a user if he/she has one (bug 406).
295 o Fix up error code returns from Samba4 tester. Ensure invalid
296 paths are validated the same way.
297 o Allow Samba3 to pass the Samba4 RAW-READ tests.
298 o Refuse to configure if --with-expsam=$BACKEND was used but no
299 libraries were found for $BACKEND.
300 o Move sysquotas autoconf tests to a separate file.
301 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
303 o Make sure that the files that contain the static_init_$subsystem;
304 macro get recompiled after configure by removing the object
306 o Ensure canceling a blocking lock returns the correct error
308 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
309 o Updated Japanese welcome file in SWAT.
310 o Fix to nt-time <-> unix-time functions reversible.
311 o Ensure that winbindd uses the the escaped DN when querying
313 o Fix portability issues when compiling (bug 505, 550)
314 o Compile fix for tdbbackup when Samba needs to override
315 non-C99 compliant implementations of snprintf().
316 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
317 o Make sure we break out of samsync loop on error.
318 o Ensure error code path doesn't free unmalloc()'d memory
320 o Add configure test for krb5_keytab_entry keyblock vs key
323 o Modified testparm so that all output so all debug output goes
324 to stderr, and all file processing goes to stdout.
325 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
327 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
328 we have a devmode before copying a string to the devicename.
329 o Support mapping REALM.COM\user to a local user account (without
330 running winbindd) for compatibility with 2.2.x release.
331 o Ensure we don't use mmap() on blacklisted systems.
332 o fixed a number of bugs and memory leaks in the AIX
334 o Call initgroups() in SWAT before becomming the user so that
335 secondary group permissions can be used when writing to
337 o Fix signing problems when reverse connecting back to a
338 client for printer notify
339 o Fix signing problems caused by a miss-sequence bug.
340 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
341 Fixes NEXUS tools running on Win9x clients (bug 64).
342 o Don't leave the domain field uninitialized in cli_lsa.c if some
343 SID could not be mapped.
344 o Fix segfault in mount.cifs helper when there is no options
345 specified during mount.
346 o Change the \n after the password prompt to go to tty instead
348 o Stop net -P from prompting for machine account password (bug 451).
349 o Change in behavior to Not only change the effective uid but also
350 the real uid when becoming unprivileged.
351 o Cope with Exchange 5.5 cleartext pop password auth.
352 o New files for support of initshutdown pipe. Win2k doesn't
353 respond properly to all requests on the winreg pipe, so we need
354 to handle this new pipe (bug 534).
355 o Added more va_copy() checks in configure.in.
356 o Include fixes for libsmbclient build problems.
357 o Missing UNIX -> DOS codepage conversion in lanman.c.
358 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
359 o Parameterize the listen backlog in smbd and make it larger by
360 default. A backlog of 5 is way too small these days.
361 o Check for an invalid fid before dereferencing the fsp pointer
363 o Remove invalid memory frees and return codes in pdb_ldap.c.
364 o Prompt for password when invoking --set-auth-user and no
366 o Bind the nmbd sending socket to the 'socket address'.
367 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
368 $LDFLAGS occurs before any library specification (bug 661).
369 o Fix large number of printf() calls for 64-bit size_t.
370 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
371 keyblock in the krb5 structs.
372 o Remove #include <compat.h> in hopes to avoid problems with
374 o Correct winbindd build problems on HP-UX 11.
375 o Lowercase netgroups lookups (bug 703).
376 o Use the actual size of the buffer in strftime instead of a made
377 up value which just happens to be less than sizeof(fstring).
379 o Add ldaplibs to pdbedit link line (bug 651).
380 o Fix crash bug in smbclient completion (bug 659).
381 o Fix packet length for browse list reply (bug 771).
382 o Fix coredump in cli_get_backup_list().
383 o Make sure that we expand %N (bug 612).
384 o Allow rpcclient adddriver command to specify printer driver
386 o Compile tdbdump by default.
387 o Apply patches to fix iconv detection for FreeBSD.
388 o Do not allow the 'guest account' to be added to a passdb backend
389 using smbpasswd or pdbedit (bug 624).
390 o Save LDFLAGS during iconv detection (bug 57).
391 o Run krb5 logins through the username map if the winbindd
392 lookup fails (bug 698).
393 o Add const for lp_set_name_resolve_order() to avoid compiler
395 o Add support for the %i macro in smb.conf to stand in for the for
396 the local IP address to which a client connected.
397 o Allow winbindd to match local accounts to domain SID when
398 'winbind trusted domains only = yes' (bug 680).
399 o Remove code in idmap_ldap that searches the user suffix and group
400 suffix. It's not needed and provides inconsistent functionality
401 from the tdb backend.
402 o Patch to handle munged dial string for Windows 200 TSE.
403 o Correct the "smbldap_open: cannot access when not root error"
404 messages when looking up group information (bug 281).
405 o Skip over the winbind separator when looking up a user.
406 This fixes the bug that prevented local users from
407 matching an AD user when not running winbindd (bug 698).
408 o Fix a problem with configure on *BSD systems. Make sure
409 we add -liconv etc to LDFLAGS.
410 o Fix core dump bug when "security = server" and the authentication
412 o Correct crash bug due to an empty munged dial string.
413 o Show files locked by a specific user (smbstatus -u 'user')
415 o Fix bug preventing print jobs from display in the queue
416 monitor used by Windows NT and later clients (bug 660).
417 o Fix several reported problems with point-n-print from
418 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
419 reply (bug 338, 527 & 643).
420 o Fix a handful of potential memory leaks in the LDAP code used
421 by ldapsam[_compat] and the LDAP idmap backend.
422 o Fix for pdbedit error code returns (bug 763).
423 o Make sure we only enumerate group mapping entries (not
424 /etc/group) even when doing local aliases.
425 o Relax check on the pipe name in a dce/rpc bind response to work
426 around issues with establishing trusts to a Windows 2003 domain.
427 o Ensure we mangle names ending in '.' in hash2 mangling method.
428 o Correct parsing issues with munged dial string.
429 o Fix bugs in quota support for XFS.
430 o Add a cleaner method for applications that need to provide
431 name->SID mappings to do this via NSS rather than having to
432 know the winbindd pipe protocol.
433 o Adds a variant of the winbindd_getgroups() call called
434 winbindd_getusersids() that provides direct SID->SIDs listing of
435 a users supplementary groups. This is enough to allow non-Samba
436 applications to do ACL checking.
437 o Make sure we don't append the 'ldap suffix' when writing out the
438 'ldap XXX suffix' values in SWAT (bug 328).
439 o Fix renames across file systems.
440 o Ensure that items in a list of strings containing whitespace are
441 written out surrounded by single quotes. This means that both
442 double and single quotes are now used to surround strings in
444 o Enable SWAT to correctly determine if winbindd is running (bug
446 o Include WWW-Authenticate field in 401 response for bad auth
448 o Add support for NTLM2 (NTLMv2 session security).
449 o Add support for variable-length session keys.
450 o More privilege fixes for group enumeration in LDAP (bug 281).
451 o Use the dns name (or IP) as the originating client name when
452 using CUPS (bug 467).
453 o Fix various SMB signing bugs.
454 o Fix ACL propagation on a DFS root (bug 263).
455 o Disable NTLM2 for RPC pipes.
456 o Allow the client to specify the NTLM2 flags got NTLMSSP
458 o Change the name of the job passed off to cups from "Test Page"
459 to "smbprn.00000033 Test Page" so that we can get the smb
460 jobid back. This allow users to delete jobs with cups printing
461 backend (partial work on bug 770).
462 o Fix build of winbindd with static pdb modules.
463 o Retrieve the correct ACL group bits if the file has an ACL
465 o Implement "net rpc group members": Get members of a domain group
466 in human-readable format.
467 o Add MacOSX (Darwin) specific charset module code.
468 o Use samr_dispinfo(level == 1) for enumerating domain users so we
469 can include the full name in gecos field (bug 587).
470 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
471 o Implement 'net rpc group list [global|local|builtin]*' for a
472 select listing of the respective user databases.
473 o Don't automatically set NT status code flag unless client tells
475 o Add 'net status [sessions|shares] [parseable]'.
476 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
478 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
480 o Fix inverted logic in hosts allow/deny checks caused by
481 s/strcmp/strequal/ (bug 846).
482 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
483 o Fix typo in 'hash' mangling algorithm.
484 o Support munged dial for ldapsam (bug 800).
485 o Fix process_incoming_data() to return the number of bytes handled
486 this call whether we have a complete PDU or not; fixes bug
487 with multiple PDU request rpc's broken over SMBwriteX calls
489 o Fix incorrect smb flags2 for connections to pre-NT servers
490 (causes smbclient to fail to OS2 for example) (bug 821).
491 o Update version string in smbldap-tools Makefile to 0.8.2.
492 o Correct a problem with "net rpc vampire" mis-parsing the
493 alias member info reply.
494 o Ensure the ${libdir} is created by the installclientlib script.
495 o Fix detection of Windows 2003 client architecture in the smb.conf
497 o Ensure that smbd calls the add user script for a missing UNIX
498 user on kerberos auth call (bug 445).
499 o Fix bugs in hosts allow/deny when using a mismatched
500 network/netmask pair.
501 o Protect alloc_sub_basic() from crashing when the source string
502 is NULL (partial work on bug 687).
503 o Fix spinlocks on IRIX.
504 o Corrected some bad destination paths when running "configure
506 o Add packaging files for Fedora Core 1.
507 o Correct bug in SWAT install script for non-english languages.
508 o Support character set ISO-8859-1 internally (bug 558).
509 o Fixed more LDAP access errors when looking up group mappings
511 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
512 resolution to fail on local files on on domain members
514 o Fix uninitialized variable in passdb.c.
515 o Fix formal parameter type in get_static() in nsswitch/wins.c.
516 o Fix problem mounting directories when mount.cifs is installed
517 with the setuid bit on.
518 o Fix bug that prevent --mandir from overriding the defaults
519 given in the --with-fhs macro.
520 o Fix bug in in-memory Kerberos keytab detection routines
525 ######################################################################
527 =======================================
528 The original 3.0.0 release notes follow
529 =======================================
535 1) Active Directory support. Samba 3.0 is now able to
536 join a ADS realm as a member server and authenticate
537 users using LDAP/Kerberos.
539 2) Unicode support. Samba will now negotiate UNICODE on the wire
540 and internally there is now a much better infrastructure for
541 multi-byte and UNICODE character sets.
543 3) New authentication system. The internal authentication system
544 has been almost completely rewritten. Most of the changes are
545 internal, but the new auth system is also very configurable.
547 4) New default filename mangling system.
549 5) A new "net" command has been added. It is somewhat similar to
550 the "net" command in windows. Eventually we plan to replace
551 numerous other utilities (such as smbpasswd) with subcommands
554 6) Samba now negotiates NT-style status32 codes on the wire. This
555 improves error handling a lot.
557 7) Better Windows 2000/XP/2003 printing support including publishing
558 printer attributes in active directory.
560 8) New loadable module support for passdb backends and character
563 9) New default dual-daemon winbindd support for better performance.
565 10) Support for migrating from a Windows NT 4.0 domain to a Samba
566 domain and maintaining user, group and domain SIDs.
568 11) Support for establishing trust relationships with Windows NT 4.0
571 12) Initial support for a distributed Winbind architecture using
572 an LDAP directory for storing SID to uid/gid mappings.
574 13) Major updates to the Samba documentation tree.
576 14) Full support for client and server SMB signing to ensure
577 compatibility with default Windows 2003 security settings.
579 15) Improvement of ACL mapping features based on code donated by
583 Plus lots of other improvements!
586 Additional Documentation
587 ------------------------
589 Please refer to Samba documentation tree (included in the docs/
590 subdirectory) for extensive explanations of installing, configuring
591 and maintaining Samba 3.0 servers and clients. It is advised to
592 begin with the Samba-HOWTO-Collection for overviews and specific
593 tasks (the current book is up to approximately 400 pages) and to
594 refer to the various man pages for information on individual options.
596 We are very glad to be able to include the second edition of
597 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
598 (O'Reilly & Associates) in this release. The book is available
599 on-line at http://samba.org/samba/docs/ and is included with
600 the Samba Web Administration Tool (SWAT). Thanks to the authors and
601 publisher for making "Using Samba" under the GNU Free Documentation
605 ######################################################################
606 Upgrading from a previous Samba 3.0 beta
607 ########################################
609 Beginning with Samba 3.0.0beta3, the RID allocation functions
610 have been moved into winbindd. Previously these were handled
611 by each passdb backend. This means that winbindd must be running
612 to automatically allocate RIDs for users and/or groups. Otherwise,
613 smbd will use the 2.2 algorithm for generating new RIDs.
615 If you are using 'passdb backend = tdbsam' with a previous Samba
616 3.0 beta release (or possibly alpha), it may be necessary to
617 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
618 to winbindd_idmap.tdb. To do this:
620 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
622 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
624 3) run: (note that 'tdb>' is the tool's prompt for input)
626 root# ./tdbtool /usr/local/samba/private/passdb.tdb
627 tdb> show RID_COUNTER
631 [000] 0A 52 00 00 .R.
633 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
637 If you are using 'passdb backend = ldapsam', it will be necessary to
638 store idmap entries in the LDAP directory as well (i.e. idmap backend
639 = ldap). Refer to the 'net idmap' command for more information on
640 migrating SID<->UNIX id mappings from one backend to another.
642 If the RID_COUNTER record does not exist, then these instructions are
643 unneccessary and the new RID_COUNTER record will be correctly generated
648 ########################
649 Upgrading from Samba 2.2
650 ########################
652 This section is provided to help administrators understand the details
653 involved with upgrading a Samba 2.2 server to Samba 3.0.
659 Many of the options to the GNU autoconf script have been modified
660 in the 3.0 release. The most noticeable are:
662 * removal of --with-tdbsam (is now included by default; see section
663 on passdb backends and authentication for more details)
665 * --with-ldapsam is now on used to provided backward compatible
666 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
667 backend and authentication section for more details
669 * inclusion of non-standard passdb modules may be enabled using
670 --with-expsam. This includes an XML backend and a mysql backend.
672 * removal of --with-msdfs (is now enabled by default)
674 * removal of --with-ssl (no longer supported)
676 * --with-utmp now defaults to 'yes' on supported systems
678 * --with-sendfile-support is now enabled by default on supported
685 This section contains a brief listing of changes to smb.conf options
686 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
687 complete descriptions of new or modified parameters.
689 Removed Parameters (order alphabetically):
692 * alternate permissions
695 * code page directory
699 * force unknown acl user
704 * printer driver file
705 * printer driver location
713 New Parameters (new parameters have been grouped by function):
717 * abort shutdown script
720 User and Group Account Management
721 ---------------------------------
724 * add user to group script
725 * algorithmic rid base
726 * delete group script
727 * delete user from group script
729 * set primary group script
735 * passwd chat timeout
746 * paranoid server security
756 * hide unwriteable files
758 * kernel change notify
768 * max reported print jobs
770 UNICODE and Character Sets
771 --------------------------
777 SID to uid/gid Mappings
778 -----------------------
782 * winbind enable local accounts
783 * winbind trusted domains only
784 * template primary group
785 * enable rid algorithm
792 * ldap machine suffix
796 General Configuration
797 ---------------------
801 Modified Parameters (changes in behavior):
803 * encrypt passwords (enabled by default)
804 * mangling method (set to 'hash2' by default)
807 * restrict anonymous (integer value)
808 * security (new 'ads' value)
809 * strict locking (enabled by default)
810 * unix extensions (enabled by default)
811 * winbind cache time (increased to 5 minutes)
812 * winbind uid (deprecated in favor of 'idmap uid')
813 * winbind gid (deprecated in favor of 'idmap gid')
819 This section contains brief descriptions of any new databases
820 introduced in Samba 3.0. Please remember to backup your existing
821 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
822 upgrade databases as they are opened (if necessary), but downgrading
823 from 3.0 to 2.2 is an unsupported path.
825 Name Description Backup?
826 ---- ----------- -------
827 account_policy User policy settings yes
828 gencache Generic caching db no
829 group_mapping Mapping table from Windows yes
830 groups/SID to unix groups
831 winbindd_idmap ID map table from SIDS to UNIX yes
833 namecache Name resolution cache entries no
834 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
835 returned as part of a successful
836 net_sam_logon request
837 printing/*.tdb Cached output from 'lpq no
838 command' created on a per print
840 registry Read-only samba registry skeleton no
841 that provides support for exporting
842 various db tables via the winreg RPCs
848 The following issues are known changes in behavior between Samba 2.2 and
849 Samba 3.0 that may affect certain installations of Samba.
851 1) When operating as a member of a Windows domain, Samba 2.2 would
852 map any users authenticated by the remote DC to the 'guest account'
853 if a uid could not be obtained via the getpwnam() call. Samba 3.0
854 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
855 current work around to re-establish the 2.2 behavior.
857 2) When adding machines to a Samba 2.2 controlled domain, the
858 'add user script' was used to create the UNIX identity of the
859 machine trust account. Samba 3.0 introduces a new 'add machine
860 script' that must be specified for this purpose. Samba 3.0 will
861 not fall back to using the 'add user script' in the absence of
862 an 'add machine script'
865 ######################################################################
866 Passdb Backends and Authentication
867 ##################################
869 There have been a few new changes that Samba administrators should be
870 aware of when moving to Samba 3.0.
872 1) encrypted passwords have been enabled by default in order to
873 inter-operate better with out-of-the-box Windows client
874 installations. This does mean that either (a) a samba account
875 must be created for each user, or (b) 'encrypt passwords = no'
876 must be explicitly defined in smb.conf.
878 2) Inclusion of new 'security = ads' option for integration
879 with an Active Directory domain using the native Windows
880 Kerberos 5 and LDAP protocols.
882 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
883 type which is neccessary for servers on which the
884 administrator password has not been changed, or kerberos-enabled
885 SMB connections to servers that require Kerberos SMB signing.
886 Besides this one difference, either MIT or Heimdal Kerberos
887 distributions are usable by Samba 3.0.
890 Samba 3.0 also includes the possibility of setting up chains
891 of authentication methods (auth methods) and account storage
892 backends (passdb backend). Please refer to the smb.conf(5)
893 man page for details. While both parameters assume sane default
894 values, it is likely that you will need to understand what the
895 values actually mean in order to ensure Samba operates correctly.
897 The recommended passdb backends at this time are
899 * smbpasswd - 2.2 compatible flat file format
900 * tdbsam - attribute rich database intended as an smbpasswd
901 replacement for stand alone servers
902 * ldapsam - attribute rich account storage and retrieval
903 backend utilizing an LDAP directory.
904 * ldapsam_compat - a 2.2 backward compatible LDAP account
907 Certain functions of the smbpasswd(8) tool have been split between the
908 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
909 utility. See the respective man pages for details.
912 ######################################################################
916 This section outlines the new features affecting Samba / LDAP
922 A new object class (sambaSamAccount) has been introduced to replace
923 the old sambaAccount. This change aids us in the renaming of attributes
924 to prevent clashes with attributes from other vendors. There is a
925 conversion script (examples/LDAP/convertSambaAccount) to modify and LDIF
926 file to the new schema.
930 $ ldapsearch .... -b "ou=people,dc=..." > old.ldif
931 $ convertSambaAccount <DOM SID> old.ldif new.ldif
933 The <DOM SID> can be obtained by running 'net getlocalsid <DOMAINNAME>'
934 on the Samba PDC as root.
936 The old sambaAccount schema may still be used by specifying the
937 "ldapsam_compat" passdb backend. However, the sambaAccount and
938 associated attributes have been moved to the historical section of
939 the schema file and must be uncommented before use if needed.
940 The 2.2 object class declaration for a sambaAccount has not changed
941 in the 3.0 samba.schema file.
943 Other new object classes and their uses include:
945 * sambaDomain - domain information used to allocate rids
946 for users and groups as necessary. The attributes are added
947 in 'ldap suffix' directory entry automatically if
948 an idmap uid/gid range has been set and the 'ldapsam'
949 passdb backend has been selected.
951 * sambaGroupMapping - an object representing the
952 relationship between a posixGroup and a Windows
953 group/SID. These entries are stored in the 'ldap
954 group suffix' and managed by the 'net groupmap' command.
956 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
957 automatically and contains the next available 'idmap uid' and
960 * sambaIdmapEntry - object storing a mapping between a
961 SID and a UNIX uid/gid. These objects are created by the
962 idmap_ldap module as needed.
964 * sambaSidEntry - object representing a SID alone, as a Structural
965 class on which to build the sambaIdmapEntry.
968 New Suffix for Searching
969 ------------------------
971 The following new smb.conf parameters have been added to aid in directing
972 certain LDAP queries when 'passdb backend = ldapsam://...' has been
975 * ldap suffix - used to search for user and computer accounts
976 * ldap user suffix - used to store user accounts
977 * ldap machine suffix - used to store machine trust accounts
978 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
979 * ldap idmap suffix - location of sambaIdmapEntry objects
981 If an 'ldap suffix' is defined, it will be appended to all of the
982 remaining sub-suffix parameters. In this case, the order of the suffix
983 listings in smb.conf is important. Always place the 'ldap suffix' first
986 Due to a limitation in Samba's smb.conf parsing, you should not surround
987 the DN's with quotation marks.
993 Samba 3.0 supports an ldap backend for the idmap subsystem. The
994 following options would inform Samba that the idmap table should be
995 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1000 idmap backend = ldap:ldap://onterose/
1001 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1002 idmap uid = 40000-50000
1003 idmap gid = 40000-50000
1005 This configuration allows winbind installations on multiple servers to
1006 share a uid/gid number space, thus avoiding the interoperability problems
1007 with NFS that were present in Samba 2.2.
1011 ######################################################################
1012 Trust Relationships and a Samba Domain
1013 ######################################
1015 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1016 allocating uids and gids to trusted users and groups. More
1017 information regarding Samba's support for establishing trust
1018 relationships can be found in the Samba-HOWTO-Collection included
1019 in the docs/ directory of this release.
1021 First create your Samba PDC and ensure that everything is
1022 working correctly before moving on the trusts.
1024 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1025 4.0 domain named WINDOWS:
1027 1) create the trust account for SAMBA in "User Manager for Domains"
1028 2) connect the trust from the Samba domain using
1029 'net rpc trustdom establish GLASS'
1031 To create a trustlationship with SAMBA as the trusted domain:
1033 1) create the initial trust account for GLASS using
1034 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1035 account for GLASS$ prior to this step (depending on your
1036 local configuration).
1037 2) connect the trust from a WINDOWS DC using "User Manager
1040 Now join winbindd on the Samba PDC to the SAMBA domain using
1041 the normal steps for adding a Samba server to an NT4 domain:
1042 (note that smbd & nmbd must be running at this point)
1044 root# net rpc join -U root
1045 Password: <enter root password from smbpasswd file here>
1047 Start winbindd and test the join with 'wbinfo -t'.
1049 Now test the trust relationship by connecting to the SAMBA DC
1050 (e.g. POGO) as a user from the WINDOWS domain:
1052 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1055 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1057 $ smbclient //crystal/netlogon -U root -W WINDOWS
1060 ######################################################################
1064 Beginning with Samba3.0.0beta3, winbindd has been given new account
1065 manage functionality equivalent to the 'add user script' family of
1066 smb.conf parameters. The idmap design has also been changed to
1067 centralize control of foreign SID lookups and matching to UNIX
1071 Brief Description of Changes
1072 ----------------------------
1074 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1075 reverted to the 2.2.x design. This means that when resolving a
1076 SID to a UID or similar mapping:
1078 a) First consult winbindd
1079 b) perform a local lookup only if winbindd fails to
1080 return a successful answer
1082 There are some variations to this, but these two rules generally
1085 2) All idmap lookups have been moved into winbindd. This means that
1086 a server must run winbindd (and support NSS) in order to achieve
1087 any mappings of SID to dynamically allocated UNIX ids. This was
1088 a conscious design choice.
1090 3) New functions have been added to winbindd to emulate the 'add user
1091 script' family of smbd functions without requiring that external
1092 scripts be defined. This functionality is controlled by the 'winbind
1093 enable local accounts' smb.conf parameter (enabled by default).
1095 However, this account management functionality is only supported
1096 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1097 must be shared among multiple Samba servers (such as a PDC and BDCs),
1098 it will be necessary to define your own 'add user script', et. al.
1099 programs that place the accounts/groups in some form of directory
1100 such as NIS or LDAP. This requirement was deemed beyond the scope
1101 of winbind's account management functions. Solutions for
1102 distributing UNIX system information have been deployed and tested
1103 for many years. We saw no need to reinvent the wheel.
1105 4) A member of a Samba controlled domain running winbindd is now able
1106 to map domain users directly onto existing UNIX accounts while still
1107 automatically creating accounts for trusted users and groups. This
1108 behavior is controlled by the 'winbind trusted domains only' smb.conf
1109 parameter (disabled by default to provide 2.2.x winbind behavior).
1111 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1112 in smbd/uid.c. The reason that group mappings are not included
1113 in winbindd is because the purpose of Samba's group map is to
1114 match any Windows SID with an existing UNIX group. These UNIX
1115 groups can be created by winbindd (see next section), but the
1116 SID<->gid mapping is retreived by smbd, not winbindd.
1122 * security = server running winbindd to allocate accounts on demand
1124 * Samba PDC running winbindd to handle the automatic creation of UNIX
1125 identities for machine trust accounts
1127 * Automtically creating UNIX user and groups when migrating a Windows NT
1128 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1129 'net rpc vampire' for this to work.
1132 ######################################################################
1136 * There are several bugs currently logged against the 3.0 codebase
1137 that affect the use of NT 4.0 GUI domain management tools when run
1138 against a Samba 3.0 PDC. This bugs should be released in an early
1141 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1142 filed against the Samba 3.0 codebase.
1145 ######################################################################
1146 Reporting bugs & Development Discussion
1147 #######################################
1149 Please discuss this release on the samba-technical mailing list or by
1150 joining the #samba-technical IRC channel on irc.freenode.net.
1152 If you do report problems then please try to send high quality
1153 feedback. If you don't provide vital information to help us track down
1154 the problem then you will probably be ignored.
1156 A new bugzilla installation has been established to help support the
1157 Samba 3.0 community of users. This server, located at
1158 https://bugzilla.samba.org/, has replaced the older jitterbug server
1159 previously located at http://bugs.samba.org/.