1 =================================
2 Release Notes for Samba 3.0.2pre2
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>
32 o Andrew Bartlet <abartlet@samba.org>
35 o Gerald (Jerry) Carter <jerry@samba.org>
38 o Volker Lendecke <vl@samba.org>
41 o Stefan Metzmacher <metze@samba.org>
44 o Tim Potter <tpot@samba.org>
47 o Richard Sharpe <shape@samba.org>
50 o Jelmer Vernooij <jelmer@samba.org>
51 * Add smbget utility - a wget-clone for the SMB/CIFS protocol
55 ----------------------
59 ldap replication sleep New
65 o Jeremy Allison <jra@samba.org>
66 * Tidy up of NTLMSSP code.
67 * Fixes for SMB signing errors
68 * BUG 815: Workaround NT4 bug to support plaintext
69 password logins and UNICODE.
72 o Petri Asikainen <paca@sci.fi>
73 * BUG 330, 387:Fix single valued attribute updates when
74 working with Novell NDS.
77 o Andrew Bartlet <abartlet@samba.org>
78 * Correctly handle per-pipe NTLMSSP inside a NULL session.
79 * Fix segfault in gencache
80 * Fix early free() of encrypted_session_key.
81 * Change DC lookup routines to more carefully separate
82 DNS names (realms) from NetBIOS domain names.
83 * Add new sid_to_dn() function for internal winbindd use.
84 * Refactor cli_ds_enum_domain_trusts().
85 * BUG 707: Implement range retrieval of ADS attributes (based
86 on work from Volker <vl@samba.org> and Guenther Deschner
88 * Automatically initialize the signing engine if a session key
90 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
91 encoded strings, only form input in SWAT.
92 * Resets the NTLMSSP state for new negotiate packets.
93 * Add 2-byte alignments in net_samlogon() queries to parse
94 odd-length plain text passwords.
95 * Allow Windows groups with no members in winbindd.
96 * Allow normal authentication in the absence of a server
97 generated session key.
98 * More optimizations for looking up UNIX group lists.
99 * Clean up error codes and return values for pam_winbindd
100 and winbindd PAM interface.
101 * Fix restring return values in ntlm_auth tool.
104 o Dmitry Butskoj <buc@odusz.elektra.ru>
105 * Fix for special files being hidden from admins.
108 o Gerald (Jerry) Carter <jerry@samba.org>
109 * Fix bug in the lanman session key generation. Caused
110 "decode_pw: incorrect password length" error messages.
111 * Save the right case for the located user name in
112 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
113 * BUG 897: Add well known rid for pre win2k compatible access
115 * BUG 887: Correct typo in delete user script example.
116 * Use short lived TALLOC_CTX* for allocating printer objects
117 from the print handle cache.
118 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
121 o Guenther Deschner <gd@suse.com>
122 * Install smbwrapper.so should be put into the $(libdir)
124 * Add the capability to specify the new user password
125 for "net ads password" on the command line.
126 * Correctly detect AFS headers on SuSE.
129 o James Flemer <jflemer@uvm.edu>
130 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
131 HAVE_SYS_ATTRIBUTES_H.
134 o Volker Lendecke <vl@samba.org>
135 * BUG 583: Ensure that user names always contain the short
136 version of the domain name.
137 * Fix our parsing of the LDAP uri.
138 * Don't show the 'afs username map' in the SWAT basic view.
139 * Fix SMB signing issues in relation to failed NTLMSSP logins.
140 * BUG 924: Fix return codes in smbtorture harness.
141 * Always lower-case usernames before handing it to AFS code.
144 o Jianliang Lu <j.lu@tiesse.com>
145 * Ensure we delete the group mapping before calling the delete
147 * Define well known RID for managing the "Power Users" group.
150 o Stefan Metzmacher <metze@metzemix.de>
151 * Implement LDAP rebind sleep patch.
152 * Revert to 2.2 quota code because of so many broken quota files
157 * Allow an existing LDAP machine account to be re-used when
158 joining an AD domain.
161 o James Peach <jpeach@sgi.com>
162 * BUG 889: Change smbd to use pread/pwrite on platforms that
163 support these calls. Can lead to a significant speed increase.
166 o Tim Potter <tpot@samba.org>
167 * BUG 924: Fix typo in RW2 torture test.
170 o Richard Sharpe <shape@samba.org>
171 * Small fixes to torture.c to cleanup the error handling
175 o J. Tournier <jerome.tournier@IDEALX.com>
176 * Small fixes for the smbldap-tool scripts.
179 o Jelmer Vernooij <jelmer@samba.org>
180 * Put functions for generating SQL queries in pdb_sql.c.
181 * Add pgSQL backend (based on patch by Hamish Friedlander).
182 * BUG 908: Fix -s option to smbcontrol.
187 ----------------------
189 Parameter Name Action
190 -------------- ------
191 hide local users Removed
192 mangled map Deprecated
193 mangled stack Removed
194 passwd chat timeout New
200 o Change the interface for init_unistr2 to not take a length
201 but a flags field. We were assuming that
202 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
203 o Allow d_printf() to handle strings with escaped quotation
204 marks since the msg file includes the escape character (bug 489).
205 o Fix bad html table row termination in SWAT wizard code (bug 413).
206 o Fix to parse the level-2 strings.
207 o Fix for "valid users = %S" in [homes]. Fix read/write
209 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
210 This is the same way AC_CHECK_LIB works (bug 508).
211 o Testparm output fixes for clarity.
212 o Fix broken wins hook functionality -- i18n bug (bug 528).
213 o Take care of condition where DOS and NT error codes must differ.
214 o Default to using only built-in charsets when a working iconv
215 implementation cannot be located.
216 o Wrap internals of sys_setgroups() so the sys_XX() call can
217 be done unconditionally (bug 550).
218 o Remove duplicate smbspool link on SWAT's front page (bug 541).
219 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
220 --enable-debug=[yes|no] works correctly.
221 o Allow ^C to interrupt smbpasswd if using our getpass
222 (e.g. smbpasswd command).
223 o Support signing only on RPC's (bug 167).
224 o Correct bug that prevented Excel 2000 clients from opening
225 files marked as read-only.
226 o Portability fix bugs 546 - 549).
227 o Explicitly initialize the value of AR for vendor makes that don't
228 do this (e.g. HPUX 11). (bug 552).
229 o More i18n fixes for SWAT (bug 413).
230 o Change the cwd before the postexec script to ensure that a
232 o Correct double free that caused winbindd to crash when a DC
233 is rebooted (bug 437).
234 o Fix incorrect mode sum (bug 562).
235 o Canonicalize SMB_INFO_ALLOCATION in the same was as
236 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
237 o Add script to generate *msg files.
238 o Add Dutch SWAT translation file.
239 o Make sure to call get_user_groups() with the full winbindd
240 name for a user if he/she has one (bug 406).
241 o Fix up error code returns from Samba4 tester. Ensure invalid
242 paths are validated the same way.
243 o Allow Samba3 to pass the Samba4 RAW-READ tests.
244 o Refuse to configure if --with-expsam=$BACKEND was used but no
245 libraries were found for $BACKEND.
246 o Move sysquotas autoconf tests to a separate file.
247 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
249 o Make sure that the files that contain the static_init_$subsystem;
250 macro get recompiled after configure by removing the object
252 o Ensure canceling a blocking lock returns the correct error
254 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
255 o Updated Japanese welcome file in SWAT.
256 o Fix to nt-time <-> unix-time functions reversible.
257 o Ensure that winbindd uses the the escaped DN when querying
259 o Fix portability issues when compiling (bug 505, 550)
260 o Compile fix for tdbbackup when Samba needs to override
261 non-C99 compliant implementations of snprintf().
262 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
263 o Make sure we break out of samsync loop on error.
264 o Ensure error code path doesn't free unmalloc()'d memory
266 o Add configure test for krb5_keytab_entry keyblock vs key
269 o Modified testparm so that all output so all debug output goes
270 to stderr, and all file processing goes to stdout.
271 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
273 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
274 we have a devmode before copying a string to the devicename.
275 o Support mapping REALM.COM\user to a local user account (without
276 running winbindd) for compatibility with 2.2.x release.
277 o Ensure we don't use mmap() on blacklisted systems.
278 o fixed a number of bugs and memory leaks in the AIX
280 o Call initgroups() in SWAT before becomming the user so that
281 secondary group permissions can be used when writing to
283 o Fix signing problems when reverse connecting back to a
284 client for printer notify
285 o Fix signing problems caused by a miss-sequence bug.
286 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
287 Fixes NEXUS tools running on Win9x clients (bug 64).
288 o Don't leave the domain field uninitialized in cli_lsa.c if some
289 SID could not be mapped.
290 o Fix segfault in mount.cifs helper when there is no options
291 specified during mount.
292 o Change the \n after the password prompt to go to tty instead
294 o Stop net -P from prompting for machine account password (bug 451).
295 o Change in behavior to Not only change the effective uid but also
296 the real uid when becoming unprivileged.
297 o Cope with Exchange 5.5 cleartext pop password auth.
298 o New files for support of initshutdown pipe. Win2k doesn't
299 respond properly to all requests on the winreg pipe, so we need
300 to handle this new pipe (bug 534).
301 o Added more va_copy() checks in configure.in.
302 o Include fixes for libsmbclient build problems.
303 o Missing UNIX -> DOS codepage conversion in lanman.c.
304 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
305 o Parameterize the listen backlog in smbd and make it larger by
306 default. A backlog of 5 is way too small these days.
307 o Check for an invalid fid before dereferencing the fsp pointer
309 o Remove invalid memory frees and return codes in pdb_ldap.c.
310 o Prompt for password when invoking --set-auth-user and no
312 o Bind the nmbd sending socket to the 'socket address'.
313 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
314 $LDFLAGS occurs before any library specification (bug 661).
315 o Fix large number of printf() calls for 64-bit size_t.
316 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
317 keyblock in the krb5 structs.
318 o Remove #include <compat.h> in hopes to avoid problems with
320 o Correct winbindd build problems on HP-UX 11.
321 o Lowercase netgroups lookups (bug 703).
322 o Use the actual size of the buffer in strftime instead of a made
323 up value which just happens to be less than sizeof(fstring).
325 o Add ldaplibs to pdbedit link line (bug 651).
326 o Fix crash bug in smbclient completion (bug 659).
327 o Fix packet length for browse list reply (bug 771).
328 o Fix coredump in cli_get_backup_list().
329 o Make sure that we expand %N (bug 612).
330 o Allow rpcclient adddriver command to specify printer driver
332 o Compile tdbdump by default.
333 o Apply patches to fix iconv detection for FreeBSD.
334 o Do not allow the 'guest account' to be added to a passdb backend
335 using smbpasswd or pdbedit (bug 624).
336 o Save LDFLAGS during iconv detection (bug 57).
337 o Run krb5 logins through the username map if the winbindd
338 lookup fails (bug 698).
339 o Add const for lp_set_name_resolve_order() to avoid compiler
341 o Add support for the %i macro in smb.conf to stand in for the for
342 the local IP address to which a client connected.
343 o Allow winbindd to match local accounts to domain SID when
344 'winbind trusted domains only = yes' (bug 680).
345 o Remove code in idmap_ldap that searches the user suffix and group
346 suffix. It's not needed and provides inconsistent functionality
347 from the tdb backend.
348 o Patch to handle munged dial string for Windows 200 TSE.
349 o Correct the "smbldap_open: cannot access when not root error"
350 messages when looking up group information (bug 281).
351 o Skip over the winbind separator when looking up a user.
352 This fixes the bug that prevented local users from
353 matching an AD user when not running winbindd (bug 698).
354 o Fix a problem with configure on *BSD systems. Make sure
355 we add -liconv etc to LDFLAGS.
356 o Fix core dump bug when "security = server" and the authentication
358 o Correct crash bug due to an empty munged dial string.
359 o Show files locked by a specific user (smbstatus -u 'user')
361 o Fix bug preventing print jobs from display in the queue
362 monitor used by Windows NT and later clients (bug 660).
363 o Fix several reported problems with point-n-print from
364 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
365 reply (bug 338, 527 & 643).
366 o Fix a handful of potential memory leaks in the LDAP code used
367 by ldapsam[_compat] and the LDAP idmap backend.
368 o Fix for pdbedit error code returns (bug 763).
369 o Make sure we only enumerate group mapping entries (not
370 /etc/group) even when doing local aliases.
371 o Relax check on the pipe name in a dce/rpc bind response to work
372 around issues with establishing trusts to a Windows 2003 domain.
373 o Ensure we mangle names ending in '.' in hash2 mangling method.
374 o Correct parsing issues with munged dial string.
375 o Fix bugs in quota support for XFS.
376 o Add a cleaner method for applications that need to provide
377 name->SID mappings to do this via NSS rather than having to
378 know the winbindd pipe protocol.
379 o Adds a variant of the winbindd_getgroups() call called
380 winbindd_getusersids() that provides direct SID->SIDs listing of
381 a users supplementary groups. This is enough to allow non-Samba
382 applications to do ACL checking.
383 o Make sure we don't append the 'ldap suffix' when writing out the
384 'ldap XXX suffix' values in SWAT (bug 328).
385 o Fix renames across file systems.
386 o Ensure that items in a list of strings containing whitespace are
387 written out surrounded by single quotes. This means that both
388 double and single quotes are now used to surround strings in
390 o Enable SWAT to correctly determine if winbindd is running (bug
392 o Include WWW-Authenticate field in 401 response for bad auth
394 o Add support for NTLM2 (NTLMv2 session security).
395 o Add support for variable-length session keys.
396 o More privilege fixes for group enumeration in LDAP (bug 281).
397 o Use the dns name (or IP) as the originating client name when
398 using CUPS (bug 467).
399 o Fix various SMB signing bugs.
400 o Fix ACL propagation on a DFS root (bug 263).
401 o Disable NTLM2 for RPC pipes.
402 o Allow the client to specify the NTLM2 flags got NTLMSSP
404 o Change the name of the job passed off to cups from "Test Page"
405 to "smbprn.00000033 Test Page" so that we can get the smb
406 jobid back. This allow users to delete jobs with cups printing
407 backend (partial work on bug 770).
408 o Fix build of winbindd with static pdb modules.
409 o Retrieve the correct ACL group bits if the file has an ACL
411 o Implement "net rpc group members": Get members of a domain group
412 in human-readable format.
413 o Add MacOSX (Darwin) specific charset module code.
414 o Use samr_dispinfo(level == 1) for enumerating domain users so we
415 can include the full name in gecos field (bug 587).
416 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
417 o Implement 'net rpc group list [global|local|builtin]*' for a
418 select listing of the respective user databases.
419 o Don't automatically set NT status code flag unless client tells
421 o Add 'net status [sessions|shares] [parseable]'.
422 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
424 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
426 o Fix inverted logic in hosts allow/deny checks caused by
427 s/strcmp/strequal/ (bug 846).
428 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
429 o Fix typo in 'hash' mangling algorithm.
430 o Support munged dial for ldapsam (bug 800).
431 o Fix process_incoming_data() to return the number of bytes handled
432 this call whether we have a complete PDU or not; fixes bug
433 with multiple PDU request rpc's broken over SMBwriteX calls
435 o Fix incorrect smb flags2 for connections to pre-NT servers
436 (causes smbclient to fail to OS2 for example) (bug 821).
437 o Update version string in smbldap-tools Makefile to 0.8.2.
438 o Correct a problem with "net rpc vampire" mis-parsing the
439 alias member info reply.
440 o Ensure the ${libdir} is created by the installclientlib script.
441 o Fix detection of Windows 2003 client architecture in the smb.conf
443 o Ensure that smbd calls the add user script for a missing UNIX
444 user on kerberos auth call (bug 445).
445 o Fix bugs in hosts allow/deny when using a mismatched
446 network/netmask pair.
447 o Protect alloc_sub_basic() from crashing when the source string
448 is NULL (partial work on bug 687).
449 o Fix spinlocks on IRIX.
450 o Corrected some bad destination paths when running "configure
452 o Add packaging files for Fedora Core 1.
453 o Correct bug in SWAT install script for non-english languages.
454 o Support character set ISO-8859-1 internally (bug 558).
455 o Fixed more LDAP access errors when looking up group mappings
457 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
458 resolution to fail on local files on on domain members
460 o Fix uninitialized variable in passdb.c.
461 o Fix formal parameter type in get_static() in nsswitch/wins.c.
462 o Fix problem mounting directories when mount.cifs is installed
463 with the setuid bit on.
464 o Fix bug that prevent --mandir from overriding the defaults
465 given in the --with-fhs macro.
466 o Fix bug in in-memory Kerberos keytab detection routines
471 ######################################################################
473 =======================================
474 The original 3.0.0 release notes follow
475 =======================================
481 1) Active Directory support. Samba 3.0 is now able to
482 join a ADS realm as a member server and authenticate
483 users using LDAP/Kerberos.
485 2) Unicode support. Samba will now negotiate UNICODE on the wire
486 and internally there is now a much better infrastructure for
487 multi-byte and UNICODE character sets.
489 3) New authentication system. The internal authentication system
490 has been almost completely rewritten. Most of the changes are
491 internal, but the new auth system is also very configurable.
493 4) New default filename mangling system.
495 5) A new "net" command has been added. It is somewhat similar to
496 the "net" command in windows. Eventually we plan to replace
497 numerous other utilities (such as smbpasswd) with subcommands
500 6) Samba now negotiates NT-style status32 codes on the wire. This
501 improves error handling a lot.
503 7) Better Windows 2000/XP/2003 printing support including publishing
504 printer attributes in active directory.
506 8) New loadable module support for passdb backends and character
509 9) New default dual-daemon winbindd support for better performance.
511 10) Support for migrating from a Windows NT 4.0 domain to a Samba
512 domain and maintaining user, group and domain SIDs.
514 11) Support for establishing trust relationships with Windows NT 4.0
517 12) Initial support for a distributed Winbind architecture using
518 an LDAP directory for storing SID to uid/gid mappings.
520 13) Major updates to the Samba documentation tree.
522 14) Full support for client and server SMB signing to ensure
523 compatibility with default Windows 2003 security settings.
525 15) Improvement of ACL mapping features based on code donated by
529 Plus lots of other improvements!
532 Additional Documentation
533 ------------------------
535 Please refer to Samba documentation tree (included in the docs/
536 subdirectory) for extensive explanations of installing, configuring
537 and maintaining Samba 3.0 servers and clients. It is advised to
538 begin with the Samba-HOWTO-Collection for overviews and specific
539 tasks (the current book is up to approximately 400 pages) and to
540 refer to the various man pages for information on individual options.
542 We are very glad to be able to include the second edition of
543 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
544 (O'Reilly & Associates) in this release. The book is available
545 on-line at http://samba.org/samba/docs/ and is included with
546 the Samba Web Administration Tool (SWAT). Thanks to the authors and
547 publisher for making "Using Samba" under the GNU Free Documentation
551 ######################################################################
552 Upgrading from a previous Samba 3.0 beta
553 ########################################
555 Beginning with Samba 3.0.0beta3, the RID allocation functions
556 have been moved into winbindd. Previously these were handled
557 by each passdb backend. This means that winbindd must be running
558 to automatically allocate RIDs for users and/or groups. Otherwise,
559 smbd will use the 2.2 algorithm for generating new RIDs.
561 If you are using 'passdb backend = tdbsam' with a previous Samba
562 3.0 beta release (or possibly alpha), it may be necessary to
563 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
564 to winbindd_idmap.tdb. To do this:
566 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
568 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
570 3) run: (note that 'tdb>' is the tool's prompt for input)
572 root# ./tdbtool /usr/local/samba/private/passdb.tdb
573 tdb> show RID_COUNTER
577 [000] 0A 52 00 00 .R.
579 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
583 If you are using 'passdb backend = ldapsam', it will be necessary to
584 store idmap entries in the LDAP directory as well (i.e. idmap backend
585 = ldap). Refer to the 'net idmap' command for more information on
586 migrating SID<->UNIX id mappings from one backend to another.
588 If the RID_COUNTER record does not exist, then these instructions are
589 unneccessary and the new RID_COUNTER record will be correctly generated
594 ########################
595 Upgrading from Samba 2.2
596 ########################
598 This section is provided to help administrators understand the details
599 involved with upgrading a Samba 2.2 server to Samba 3.0.
605 Many of the options to the GNU autoconf script have been modified
606 in the 3.0 release. The most noticeable are:
608 * removal of --with-tdbsam (is now included by default; see section
609 on passdb backends and authentication for more details)
611 * --with-ldapsam is now on used to provided backward compatible
612 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
613 backend and authentication section for more details
615 * inclusion of non-standard passdb modules may be enabled using
616 --with-expsam. This includes an XML backend and a mysql backend.
618 * removal of --with-msdfs (is now enabled by default)
620 * removal of --with-ssl (no longer supported)
622 * --with-utmp now defaults to 'yes' on supported systems
624 * --with-sendfile-support is now enabled by default on supported
631 This section contains a brief listing of changes to smb.conf options
632 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
633 complete descriptions of new or modified parameters.
635 Removed Parameters (order alphabetically):
638 * alternate permissions
641 * code page directory
645 * force unknown acl user
650 * printer driver file
651 * printer driver location
659 New Parameters (new parameters have been grouped by function):
663 * abort shutdown script
666 User and Group Account Management
667 ---------------------------------
670 * add user to group script
671 * algorithmic rid base
672 * delete group script
673 * delete user from group script
675 * set primary group script
681 * passwd chat timeout
692 * paranoid server security
702 * hide unwriteable files
704 * kernel change notify
714 * max reported print jobs
716 UNICODE and Character Sets
717 --------------------------
723 SID to uid/gid Mappings
724 -----------------------
728 * winbind enable local accounts
729 * winbind trusted domains only
730 * template primary group
731 * enable rid algorithm
738 * ldap machine suffix
742 General Configuration
743 ---------------------
747 Modified Parameters (changes in behavior):
749 * encrypt passwords (enabled by default)
750 * mangling method (set to 'hash2' by default)
753 * restrict anonymous (integer value)
754 * security (new 'ads' value)
755 * strict locking (enabled by default)
756 * unix extensions (enabled by default)
757 * winbind cache time (increased to 5 minutes)
758 * winbind uid (deprecated in favor of 'idmap uid')
759 * winbind gid (deprecated in favor of 'idmap gid')
765 This section contains brief descriptions of any new databases
766 introduced in Samba 3.0. Please remember to backup your existing
767 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
768 upgrade databases as they are opened (if necessary), but downgrading
769 from 3.0 to 2.2 is an unsupported path.
771 Name Description Backup?
772 ---- ----------- -------
773 account_policy User policy settings yes
774 gencache Generic caching db no
775 group_mapping Mapping table from Windows yes
776 groups/SID to unix groups
777 winbindd_idmap ID map table from SIDS to UNIX yes
779 namecache Name resolution cache entries no
780 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
781 returned as part of a successful
782 net_sam_logon request
783 printing/*.tdb Cached output from 'lpq no
784 command' created on a per print
786 registry Read-only samba registry skeleton no
787 that provides support for exporting
788 various db tables via the winreg RPCs
794 The following issues are known changes in behavior between Samba 2.2 and
795 Samba 3.0 that may affect certain installations of Samba.
797 1) When operating as a member of a Windows domain, Samba 2.2 would
798 map any users authenticated by the remote DC to the 'guest account'
799 if a uid could not be obtained via the getpwnam() call. Samba 3.0
800 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
801 current work around to re-establish the 2.2 behavior.
803 2) When adding machines to a Samba 2.2 controlled domain, the
804 'add user script' was used to create the UNIX identity of the
805 machine trust account. Samba 3.0 introduces a new 'add machine
806 script' that must be specified for this purpose. Samba 3.0 will
807 not fall back to using the 'add user script' in the absence of
808 an 'add machine script'
811 ######################################################################
812 Passdb Backends and Authentication
813 ##################################
815 There have been a few new changes that Samba administrators should be
816 aware of when moving to Samba 3.0.
818 1) encrypted passwords have been enabled by default in order to
819 inter-operate better with out-of-the-box Windows client
820 installations. This does mean that either (a) a samba account
821 must be created for each user, or (b) 'encrypt passwords = no'
822 must be explicitly defined in smb.conf.
824 2) Inclusion of new 'security = ads' option for integration
825 with an Active Directory domain using the native Windows
826 Kerberos 5 and LDAP protocols.
828 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
829 type which is neccessary for servers on which the
830 administrator password has not been changed, or kerberos-enabled
831 SMB connections to servers that require Kerberos SMB signing.
832 Besides this one difference, either MIT or Heimdal Kerberos
833 distributions are usable by Samba 3.0.
836 Samba 3.0 also includes the possibility of setting up chains
837 of authentication methods (auth methods) and account storage
838 backends (passdb backend). Please refer to the smb.conf(5)
839 man page for details. While both parameters assume sane default
840 values, it is likely that you will need to understand what the
841 values actually mean in order to ensure Samba operates correctly.
843 The recommended passdb backends at this time are
845 * smbpasswd - 2.2 compatible flat file format
846 * tdbsam - attribute rich database intended as an smbpasswd
847 replacement for stand alone servers
848 * ldapsam - attribute rich account storage and retrieval
849 backend utilizing an LDAP directory.
850 * ldapsam_compat - a 2.2 backward compatible LDAP account
853 Certain functions of the smbpasswd(8) tool have been split between the
854 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
855 utility. See the respective man pages for details.
858 ######################################################################
862 This section outlines the new features affecting Samba / LDAP
868 A new object class (sambaSamAccount) has been introduced to replace
869 the old sambaAccount. This change aids us in the renaming of attributes
870 to prevent clashes with attributes from other vendors. There is a
871 conversion script (examples/LDAP/convertSambaAccount) to modify and LDIF
872 file to the new schema.
876 $ ldapsearch .... -b "ou=people,dc=..." > old.ldif
877 $ convertSambaAccount <DOM SID> old.ldif new.ldif
879 The <DOM SID> can be obtained by running 'net getlocalsid <DOMAINNAME>'
880 on the Samba PDC as root.
882 The old sambaAccount schema may still be used by specifying the
883 "ldapsam_compat" passdb backend. However, the sambaAccount and
884 associated attributes have been moved to the historical section of
885 the schema file and must be uncommented before use if needed.
886 The 2.2 object class declaration for a sambaAccount has not changed
887 in the 3.0 samba.schema file.
889 Other new object classes and their uses include:
891 * sambaDomain - domain information used to allocate rids
892 for users and groups as necessary. The attributes are added
893 in 'ldap suffix' directory entry automatically if
894 an idmap uid/gid range has been set and the 'ldapsam'
895 passdb backend has been selected.
897 * sambaGroupMapping - an object representing the
898 relationship between a posixGroup and a Windows
899 group/SID. These entries are stored in the 'ldap
900 group suffix' and managed by the 'net groupmap' command.
902 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
903 automatically and contains the next available 'idmap uid' and
906 * sambaIdmapEntry - object storing a mapping between a
907 SID and a UNIX uid/gid. These objects are created by the
908 idmap_ldap module as needed.
910 * sambaSidEntry - object representing a SID alone, as a Structural
911 class on which to build the sambaIdmapEntry.
914 New Suffix for Searching
915 ------------------------
917 The following new smb.conf parameters have been added to aid in directing
918 certain LDAP queries when 'passdb backend = ldapsam://...' has been
921 * ldap suffix - used to search for user and computer accounts
922 * ldap user suffix - used to store user accounts
923 * ldap machine suffix - used to store machine trust accounts
924 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
925 * ldap idmap suffix - location of sambaIdmapEntry objects
927 If an 'ldap suffix' is defined, it will be appended to all of the
928 remaining sub-suffix parameters. In this case, the order of the suffix
929 listings in smb.conf is important. Always place the 'ldap suffix' first
932 Due to a limitation in Samba's smb.conf parsing, you should not surround
933 the DN's with quotation marks.
939 Samba 3.0 supports an ldap backend for the idmap subsystem. The
940 following options would inform Samba that the idmap table should be
941 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
946 idmap backend = ldap:ldap://onterose/
947 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
948 idmap uid = 40000-50000
949 idmap gid = 40000-50000
951 This configuration allows winbind installations on multiple servers to
952 share a uid/gid number space, thus avoiding the interoperability problems
953 with NFS that were present in Samba 2.2.
957 ######################################################################
958 Trust Relationships and a Samba Domain
959 ######################################
961 Samba 3.0.0beta2 is able to utilize winbindd as the means of
962 allocating uids and gids to trusted users and groups. More
963 information regarding Samba's support for establishing trust
964 relationships can be found in the Samba-HOWTO-Collection included
965 in the docs/ directory of this release.
967 First create your Samba PDC and ensure that everything is
968 working correctly before moving on the trusts.
970 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
971 4.0 domain named WINDOWS:
973 1) create the trust account for SAMBA in "User Manager for Domains"
974 2) connect the trust from the Samba domain using
975 'net rpc trustdom establish GLASS'
977 To create a trustlationship with SAMBA as the trusted domain:
979 1) create the initial trust account for GLASS using
980 'smbpasswd -a -i GLASS'. You may need to create a UNIX
981 account for GLASS$ prior to this step (depending on your
982 local configuration).
983 2) connect the trust from a WINDOWS DC using "User Manager
986 Now join winbindd on the Samba PDC to the SAMBA domain using
987 the normal steps for adding a Samba server to an NT4 domain:
988 (note that smbd & nmbd must be running at this point)
990 root# net rpc join -U root
991 Password: <enter root password from smbpasswd file here>
993 Start winbindd and test the join with 'wbinfo -t'.
995 Now test the trust relationship by connecting to the SAMBA DC
996 (e.g. POGO) as a user from the WINDOWS domain:
998 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1001 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1003 $ smbclient //crystal/netlogon -U root -W WINDOWS
1006 ######################################################################
1010 Beginning with Samba3.0.0beta3, winbindd has been given new account
1011 manage functionality equivalent to the 'add user script' family of
1012 smb.conf parameters. The idmap design has also been changed to
1013 centralize control of foreign SID lookups and matching to UNIX
1017 Brief Description of Changes
1018 ----------------------------
1020 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1021 reverted to the 2.2.x design. This means that when resolving a
1022 SID to a UID or similar mapping:
1024 a) First consult winbindd
1025 b) perform a local lookup only if winbindd fails to
1026 return a successful answer
1028 There are some variations to this, but these two rules generally
1031 2) All idmap lookups have been moved into winbindd. This means that
1032 a server must run winbindd (and support NSS) in order to achieve
1033 any mappings of SID to dynamically allocated UNIX ids. This was
1034 a conscious design choice.
1036 3) New functions have been added to winbindd to emulate the 'add user
1037 script' family of smbd functions without requiring that external
1038 scripts be defined. This functionality is controlled by the 'winbind
1039 enable local accounts' smb.conf parameter (enabled by default).
1041 However, this account management functionality is only supported
1042 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1043 must be shared among multiple Samba servers (such as a PDC and BDCs),
1044 it will be necessary to define your own 'add user script', et. al.
1045 programs that place the accounts/groups in some form of directory
1046 such as NIS or LDAP. This requirement was deemed beyond the scope
1047 of winbind's account management functions. Solutions for
1048 distributing UNIX system information have been deployed and tested
1049 for many years. We saw no need to reinvent the wheel.
1051 4) A member of a Samba controlled domain running winbindd is now able
1052 to map domain users directly onto existing UNIX accounts while still
1053 automatically creating accounts for trusted users and groups. This
1054 behavior is controlled by the 'winbind trusted domains only' smb.conf
1055 parameter (disabled by default to provide 2.2.x winbind behavior).
1057 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1058 in smbd/uid.c. The reason that group mappings are not included
1059 in winbindd is because the purpose of Samba's group map is to
1060 match any Windows SID with an existing UNIX group. These UNIX
1061 groups can be created by winbindd (see next section), but the
1062 SID<->gid mapping is retreived by smbd, not winbindd.
1068 * security = server running winbindd to allocate accounts on demand
1070 * Samba PDC running winbindd to handle the automatic creation of UNIX
1071 identities for machine trust accounts
1073 * Automtically creating UNIX user and groups when migrating a Windows NT
1074 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1075 'net rpc vampire' for this to work.
1078 ######################################################################
1082 * There are several bugs currently logged against the 3.0 codebase
1083 that affect the use of NT 4.0 GUI domain management tools when run
1084 against a Samba 3.0 PDC. This bugs should be released in an early
1087 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1088 filed against the Samba 3.0 codebase.
1091 ######################################################################
1092 Reporting bugs & Development Discussion
1093 #######################################
1095 Please discuss this release on the samba-technical mailing list or by
1096 joining the #samba-technical IRC channel on irc.freenode.net.
1098 If you do report problems then please try to send high quality
1099 feedback. If you don't provide vital information to help us track down
1100 the problem then you will probably be ignored.
1102 A new bugzilla installation has been established to help support the
1103 Samba 3.0 community of users. This server, located at
1104 https://bugzilla.samba.org/, has replaced the older jitterbug server
1105 previously located at http://bugs.samba.org/.