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.2a 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:
17 o Crash bugs and change notify issues in Samba's
19 o Honoring secondary group membership on domain
21 o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST
24 New features introduced in this preview release include:
26 o Improved support for i18n character sets.
27 o Support for account lockout policy based on
28 bad password attempts.
29 o Improved support for long password changes (>14
30 characters) and strong password enforcement.
31 o Continued work on support Windows aliases (i.e.
36 ######################################################################
50 Please refer to the CVS log for the SAMBA_3_0 branch for complete
51 details. The list of changes per contributor are as follows:
57 o Jeremy Allison <jra@samba.org>
58 * Ensure that Kerberos mutex is always properly unlocked.
59 * Removed Heimdal "in-memory keytab" support.
60 * Fixup the 'multiple-vuids' bugs in our server code.
61 * Correct return code from lsa_lookup_sids() on unmapped
62 sids (based on work by vl@samba.org).
63 * Fix the "too many fcntl locks" scalability problem
65 * Fixup correct (as per W2K3) returns for lookupsids
66 as well as lookupnames.
67 * Fixups for delete-on-close semantics as per Win2k3 behavior.
68 * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
69 * Fix "unable to initialize" bug when smbd hasn't been run with
70 new system and a user is being added via pdbedit/smbpasswd.
71 * Added NTrename SMB (0xA5).
72 * Fixup correct timeout values for blocking lock timeouts.
73 * Fix various bugs reported by 'gentest'.
74 * More locking fixes in the case where we own the lock.
75 * Fix up regression in IS_NAME_VALID and renames.
76 * Don't set allocation size on directories.
77 * Return correct error code on fail if file exists and target
79 * Added client "hardlink" comment to test doing NT rename with
80 hard links. Added hardlink_internals() code - UNIX extensions
82 * Use a common function to parse all pathnames from the wire for
83 much closer emulation of Win2k3 error return codes.
84 * Implement check_path_syntax() and rewrite string sub
85 functions for better multibyte support.
86 * Ensure msdfs referrals are multibyte safe.
87 * Allow msdfs symlink syntax to be more forgiving.
88 eg. sym_link -> msdfs://server/share/path/in/share
89 or sym_link -> msdfs:\\server\share\path\in\share.
90 * Cleanup multibyte netbios name support in nmbd ( based on patch
91 by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
92 * Fix check_path_syntax() for multibyte encodings which have
93 no '\' as second byte (based on work by ab@samba.org.
94 * Fix the "dfs self-referrals as anonymous user" problem
95 (based on patch from vl@samba.org).
98 o Timur Bakeyev <timur@com.bat.ru>
99 * BUG 1144: only set --with-fhs when the argument is 'yes'
102 o Craig Barratt <cbarratt@users.sourceforge.net>
103 * BUG 389: Allow multiple exclude arguments with smbclient
104 tar -Xr options (better support for Amanda backup client).
107 o Andrew Bartlet <abartlet@samba.org>
108 * Include support for linking with cracklib for enforcing strong
110 * Add support for >14 character password changes from Windows
112 * Add 'admin set password' capability to 'net rpc'.
113 * Allow 'net rpc samdump' to work with any joined domain
114 regardless of smb.conf settings.
115 * Use an allocated buffer for count_chars.
116 * Add sanity checks for changes in the domain SID in an
118 * Implement python unit tests for Samba's multibyte string
122 o Alexander Bokovoy <ab@samba.org>
123 * Fix incorrect size calculation of the directory name
125 * Fix problems with very long filenames in both smbd and smbclient
126 caused by truncating paths during character conversions.
129 o Gerald (Jerry) Carter <jerry@samba.org>
130 * Fix 'make installmodules' bug on True64.
131 * BUG 66: mark 'only user' deprecated.
132 * Remove corrupt tdb and shutdown (only for printing tdbs,
133 connections, sessionid & locking).
134 * decrement smbd counter in connections.tdb in smb_panic().
135 * RedHat specfile updates.
136 * Fix xattr.h build issue on Debian testing and SuSE 8.2.
137 * BUG 1147; bad pointer case in get_stored_queue_info()
139 * BUG 761: read the config file before initialized default
140 values for printing options; don't default to bsd printing
142 * Allow the 'printing' parameter to be set on a per share basis.
143 * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
144 * BUG 848: don't create winbind local users/groups that already
146 * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on
148 * BUG 488: fix the 'show client in col 1' button and correctly
149 enumerate active connections.
150 * BUG 1007 (partial): Fix abort in smbd caused by byte ordering
151 problem when storing the updating pid for the lpq cache.
152 * BUG 1007 (partial): Fix print change notify bugs.
153 * BUG 1165, 1126: Fix bug with secondary groups (security = ads)
154 and winbind use default domain = yes. Also ensures that
155 * BUG 1151: Ensure that winbindd users are passed through
157 * Fix client rpc binds for ASU derived servers (pc netlink,
161 o Robert Dahlem <Robert.Dahlem@gmx.net>
162 * BUG 1048: Don't return short names when when 'mangled names = no'
165 o Guenther Deschner <gd@suse.com>
166 * Remove hard coded attribute name in the ads ranged retrieval
168 * Add --with-libdir and --with-mandir to autoconf script.
171 o Bostjan Golob <golob@gimb.org>
172 * BUG 1046: Fix getpwent_list() so that the username is not
173 overwritten by other fields.
176 o Steve French <sfrench@us.ibm.com>
177 * Update mount.cifs to version 1.1.
178 * Disable dev (MS_NODEV) on user mounts from cifs vfs.
179 * Fixes to minor security bug in the mount helper.
182 o SATOH Fumiyasu <fumiya@miraclelinux.com>
183 * BUG 1055; formatting fixes for 'net share'.
184 * BUG 692: correct truncation of share names and workgroup
186 * BUG 1088: use strchr_m() for query_host (smbclient -L).
187 * Patch from to internally count characters correctly.
190 o Chris Hertel <crh@samba.org>
191 * fix enumeration of shares 12 characters in length via
194 o Ulrich Holeschak <ulrich@holeschak.de>
195 * BUG 932: fix local password change using pam_smbpass
198 o John Klinger <john.klinger@lmco.com>
199 * Return NSS_SUCCESS once the max number of gids possible
200 has been found in initgroups() on Solaris.
201 * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
204 o Volker Lendecke <vl@samba.org>
205 * Fix success message for net groupmap modify.
206 * Fix errors when enumerating members of groups in 'net rpc'.
207 * Match Windows behavior in samr_lookup_names() by returning
208 ALIAS(4) when you search in BUILTIN.
209 * Fix server SAMR code to be able to set alias info for
211 * Fix duplication of logic when creating groups via smbd.
212 * Ensure that the HWM values are set correctly after running
214 * Add 'net rpc group add'.
215 * Implement 'net groupmap set' and 'net groupmap cleanup'.
216 * Add 'net rpc group [add|del]mem' for domain groups and aliases.
217 * Fix wb_delgrpmem (wbinfo -o).
218 * As a DC we should not reply to lsalookupnames on DCNAME\\user.
219 * Fix sambaUserWorkstations on a Samba DC.
222 o Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
223 * Bug fixes and enhancements to libsmbclient library.
226 o Herb Lewis <herb@samba.org>
227 * Fix typo for tag in proto file.
228 * Add missing #ifdef HAVE_BICONV stuff.
229 * Truncate Samba's netbios name at the first '.' (not
233 o Jianliang Lu <j.lu@tiesse.com>
234 * Enforce the 'user must change password at next login' flag.
235 * Decode meaning of 'fields present' flags (improves support
239 o L. Lucius <ib@digicron.com>.
243 o Jim McDonough <jmcd@us.ibm.com>
244 * Add versioning support to tdbsam.
245 * Update the IBM Directory Server schema with the OpenLDAP
247 * Various decoding fixes to improve usrmgr.exe support.
248 * Fix statfs redeclaration of statfs struct on ppc
249 * Implement support for password lockout of Samba domain
250 controllers and standalone servers.
251 * Get MungedDial attribute actually working with full TS
252 strings in it for pdb_ldap.
255 o Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
256 o BUG 979 -- Fix quota display on AIX.
259 o James Peach <jpeach@sgi.com>
260 * Correct check for printf() format when using the SGI MIPSPro
262 * BUG 1038: support backtrace for 'panic action' on IRIX.
263 * BUG 768: Accept profileing arg to IRIX init script.
264 * BUG 748: Relax arg parsing to sambalp script (IRIX).
265 * BUG 758: Fix pdma build.
268 o Tim Potter <tpot@samba.org>
269 * Fix logic bug in tdb non-blocking lock routines when
271 * BUG 1025: Include sys/acl.h in check for broken nisplus
273 * BUG 1066: s/printf/d_printf/g in SWAT.
274 * BUG 1098: rename internal msleep() function to fix build
276 * BUG 1112: Fix for writable printerdata problem in python bindings.
277 * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
278 * BUG 1155: enclose use of fchown() with guards.
281 o Simo Source <idra@samba.org>
282 * Replace unknown_3 with fields_present in SAMR code.
283 * More length checks in strlcat().
286 o Richard Sharpe <rsharpe@samba.org>
287 * Add support to smbclient for multiple logins on the same
288 session (based on work by abartlet@samba.org).
291 o Andrew Tridgell <tridge@samba.org>
292 * Rewrote the AIX UESS backend for winbindd.
293 * Fixed compilation with --enable-dmalloc.
296 o Jelmer Vernooij <jelmer@samba.org>
297 * Fix ETA Calculation when resuming downloads in smbget.
298 * Add -O (for writing downloaded files to standard out)
299 based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
302 o TAKEDA yasuma <yasuma@miraclelinux.com>
303 * BUG 900: fix token processing in cmd_symlink, cmd_link,
304 cmd_chown, cmd_chmod smbclient functions.
307 o Shiro Yamada <shiro@miraclelinux.com>
308 * BUG 1129: install image files for SWAT.
311 Changes for older versions follow below:
313 --------------------------------------------------
315 ==============================
316 Release Notes for Samba 3.0.2a
318 ==============================
320 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
321 to address, in particular, a problem when using pdbedit to
322 sanitize (--force-initialized-passwords) Samba's tdbsam
323 backend. This is the latest stable release of Samba. This
324 is the version that all production Samba servers should be
325 running for all current bug-fixes.
327 ******************* Attention! Achtung! Kree! *********************
329 Beginning with Samba 3.0.2, passwords for accounts with a last
330 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
331 ldapsam, etc...) of zero (0) will be regarded as uninitialized
332 strings. This will cause authentication to fail for such
333 accounts. If you have valid passwords that meet this criteria,
334 you must update the last change time to a non-zero value. If you
335 do not, then 'pdbedit --force-initialized-passwords' will disable
336 these accounts and reset the password hashes to a string of X's.
338 ******************* Attention! Achtung! Kree! *********************
341 ######################################################################
351 Please refer to the CVS log for the SAMBA_3_0 branch for complete
352 details. The list of changes per contributor are as follows:
355 o Jeremy Allison <jra@samba.org>
356 * Added paranoia checks in parsing code.
359 o Andrew Bartlet <abartlet@samba.org>
360 * Ensure that changes to uninitialized passwords in ldapsam
361 are written to the DIT.
364 o Gerald (Jerry) Carter <jerry@samba.org>
365 * Fixed iterator in tdbsam.
366 * Fix bug that disabled accounts with a valid NT password
367 hash, but no LanMan hash.
370 o Steve French <sfrench@us.ibm.com>
371 * Added missing nosetuid and noexec options.
374 o Bostjan Golob <golob@gimb.org>
375 * BUG 1046: Don't overwrite usernames of entries returned
379 o Sebastian Krahmer <krahmer@suse.de>
380 * Fixed potential crash bug in NTLMSSP parsing code.
383 o Tim Potter <tpot@samba.org>
384 * Fixed logic in tdb_brlock error checking.
387 o Urban Widmark <urban@teststation.com>
388 * Set nosuid,nodev flags in smbmnt by default.
391 --------------------------------------------------
393 =============================
394 Release Notes for Samba 3.0.2
396 =============================
398 It has been confirmed that previous versions of Samba 3.0 are
399 susceptible to a password initialization bug that could grant an
400 attacker unauthorized access to a user account created by the
401 mksmbpasswd.sh shell script.
403 The Common Vulnerabilities and Exposures project (cve.mitre.org)
404 has assigned the name CAN-2004-0082 to this issue.
406 Samba administrators not wishing to upgrade to the current
407 version should download the 3.0.2 release, build the pdbedit
410 root# pdbedit-3.0.2 --force-initialized-passwords
412 This will disable all accounts not possessing a valid password
413 (e.g. the password field has been set a string of X's).
415 Samba servers running 3.0.2 are not vulnerable to this bug
416 regardless of whether or not pdbedit has been used to sanitize
419 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
422 o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
423 o Logging onto a Samba domain from Windows XP clients.
424 o Problems with the %U and %u smb.conf variables in relation to
425 Windows 9x/ME clients.
426 o Kerberos failures due to an invalid in memory keytab detection
428 o Updates to the ntlm_auth tool.
429 o Fixes for various SMB signing errors.
430 o Better separation of WINS and DNS queries for domain controllers.
431 o Issues with nss_winbind FreeBSD and Solaris.
432 o Several crash bugs in smbd and winbindd.
433 o Output formatting fixes for smbclient for better compatibility
434 with scripts based on the 2.2 version.
443 Parameter Name Action
444 -------------- ------
445 ldap replication sleep New
446 read size removed (unused)
447 source environment removed (unused)
453 Please refer to the CVS log for the SAMBA_3_0 branch for complete
454 details. The list of changes per contributor are as follows:
456 o Jeremy Allison <jra@samba.org>
457 * Revert change that broke Exchange clear text samlogons.
458 * Fix gcc 3.4 warning in MS-DFS code.
459 * Tidy up of NTLMSSP code.
460 * Fixes for SMB signing errors
461 * BUG 815: Workaround NT4 bug to support plaintext
462 password logins and UNICODE.
463 * Fix SMB signing bug when copying large files.
464 * Correct error logic in mkdir_internals() (caused a panic
465 when combined with --enable-developer).
466 * BUG 830: Protect against crashes due to bad character
470 o Petri Asikainen <paca@sci.fi>
471 * BUG 330, 387:Fix single valued attribute updates when
472 working with Novell NDS.
475 o Andrew Bartlet <abartlet@samba.org>
476 * Correctly handle per-pipe NTLMSSP inside a NULL session.
477 * Fix segfault in gencache
478 * Fix early free() of encrypted_session_key.
479 * Change DC lookup routines to more carefully separate
480 DNS names (realms) from NetBIOS domain names.
481 * Add new sid_to_dn() function for internal winbindd use.
482 * Refactor cli_ds_enum_domain_trusts().
483 * BUG 707: Implement range retrieval of ADS attributes (based
484 on work from Volker <vl@samba.org> and Guenther Deschner
486 * Automatically initialize the signing engine if a session key
488 * BUG 916: Do not perform a + -> ' ' substitution for squid URL
489 encoded strings, only form input in SWAT.
490 * Resets the NTLMSSP state for new negotiate packets.
491 * Add 2-byte alignments in net_samlogon() queries to parse
492 odd-length plain text passwords.
493 * Allow Windows groups with no members in winbindd.
494 * Allow normal authentication in the absence of a server
495 generated session key.
496 * More optimizations for looking up UNIX group lists.
497 * Clean up error codes and return values for pam_winbindd
498 and winbindd PAM interface.
499 * Fix string return values in ntlm_auth tool.
500 * Fix segfault when 'security = ads' but no realm is defined.
501 * BUG 722: Allow winbindd to map machine accounts to uids.
502 * More cleanups for winbindd's find_our_domain().
503 * More clearly detect whether a domain controller is an NT4
504 or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
505 * Increase separation between DNS queries for hosts and queries
506 for AD domain controllers.
507 * Include additional NT_STATUS to PAM error mappings.
508 * Password initialization fixes.
511 o Justin Baugh <justin.baugh@request.com>
512 * BUG 948: Implement missing functions required for FreeBSD
516 o Alexander Bokovoy <ab@samba.org>
517 * BUG 922: Make sure enable fast path for strlower_m() and
521 o Luca Bolcioni <Luca.Bolcioni@yacme.com>
522 * Fix crash when using 'security = server' and 'encrypt
523 passwords = no' by always initializing the session key.
526 o Dmitry Butskoj <buc@odusz.elektra.ru>
527 * Fix for special files being hidden from admins.
530 o Gerald (Jerry) Carter <jerry@samba.org>
531 * Fix bug in the lanman session key generation. Caused
532 "decode_pw: incorrect password length" error messages.
533 * Save the right case for the located user name in
534 fill_sam_account(). Fixes %U/%u expansion for win9x clients.
535 * BUG 897: Add well known rid for pre win2k compatible access
537 * BUG 887: Correct typo in delete user script example.
538 * Use short lived TALLOC_CTX* for allocating printer objects
539 from the print handle cache.
540 * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
541 * Fix several warnings reported by the SUN Forte C compiler.
542 * Fully control DNS queries for AD DC's using 'name resolve order'.
543 * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
544 * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
545 * BUG 936: fix bind credentials for schannel binds in smbd.
546 * BUG 446: Fix output of smbclient for better compatibility
547 with scripts based on the 2.2 version (including Amanda).
548 * BUG 891, 949: Fedora packaging fixes.
549 * Fix bug that caused rpcclient to incorrectly retrieve
550 the SID for a server (this causing all calls that required
551 this information to fail).
552 * BUG 977: Don't create a homes share for a user if a static
553 share already exists by the same name.
554 * Removed unused smb.conf options.
555 * Password initialization fixes.
556 * Set the disable flag for template accounts created by
558 * Disable any account has no passwords and does not have the
559 ACB_PWNOTREQ bit set.
562 o Guenther Deschner <gd@suse.com>
563 * Install smbwrapper.so should be put into the $(libdir)
565 * Add the capability to specify the new user password
566 for "net ads password" on the command line.
567 * Correctly detect AFS headers on SuSE.
570 o James Flemer <jflemer@uvm.edu>
571 * Fix AIX compile bug by linking HAVE_ATTR_LIST to
572 HAVE_SYS_ATTRIBUTES_H.
575 o Luke Howard <lukeh@PADL.COM>
576 * Fix segfault in session setup reply caused by a early free().
579 o Stoian Ivanov <sdr@bultra.com>
580 * Implement grepable output for smbclient -L.
583 o LaMont Jones <lamont@debian.org>
584 * BUG 225328 (Debian): Correct false failure LFS test that resulted
585 in _GNU_SOURCE not being defined (thus resulting in strndup()
589 o Volker Lendecke <vl@samba.org>
590 * BUG 583: Ensure that user names always contain the short
591 version of the domain name.
592 * Fix our parsing of the LDAP uri.
593 * Don't show the 'afs username map' in the SWAT basic view.
594 * Fix SMB signing issues in relation to failed NTLMSSP logins.
595 * BUG 924: Fix return codes in smbtorture harness.
596 * Always lower-case usernames before handing it to AFS code.
597 * Add a German translation for SWAT.
598 * Fix a segfaults in winbindd.
599 * Fix the user's domain passed to register_vuid() from
600 reply_spnego_kerberos().
601 * Add NSS example code in nss_winbind to convert UNIX
602 id's <-> Windows SIDs.
603 * Display more descriptive error messages for login via 'net'.
604 * Fix compiler warning in the net tool.
605 * Fix length bug when decoding base64 strings.
606 * Ensure we don't call getpwnam() inside a loop that is iterating
607 over users with getpwent(). This broke on glibc 2.3.2.
610 o Herb Lewis <herb@samba.org>
611 * Fix bit rot in psec.
614 o Jianliang Lu <j.lu@tiesse.com>
615 * Ensure we delete the group mapping before calling the delete
617 * Define well known RID for managing the "Power Users" group.
618 * BUG 381: check builtin (not local) group SID when updating
620 * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement
624 o John Klinger <john.klinger@lmco.com>
625 * Implement initgroups() call in nss_winbind on Solaris.
628 o Jim McDonough <jmcd@us.ibm.com>
629 * Fix regression in net rpc join caused by recent changes
630 to cli_lsa_query_info_policy().
631 * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
635 o MORIYAMA Masayuki <moriyama@miraclelinux.com>
636 * BUG 570: Ensure that configure honors the LDFLAGS variable.
639 o Stefan Metzmacher <metze@samba.org>
640 * Implement LDAP rebind sleep patch.
641 * Revert to 2.2 quota code because of so many broken quota files
643 * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
644 XFS_USER_QUOTA -> USRQUOTA
645 XFS_GROUP_QUOTA -> GRPQUOTA
646 * Fix disk_free calculation with group quotas.
647 * Add debug class 'quota' and a lot of DEBUG()'s
649 * Fix sys_chown() when no chown() is present.
650 * Add SIGABRT to fault handling in order to catch got a
651 backtrace if an error occurs the OpenLDAP client libs.
655 * Allow an existing LDAP machine account to be re-used when
656 joining an AD domain.
659 o James Peach <jpeach@sgi.com>
660 * BUG 889: Change smbd to use pread/pwrite on platforms that
661 support these calls. Can lead to a significant speed increase.
664 o Tim Potter <tpot@samba.org>
665 * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
666 * BUG 924: Fix typo in RW2 torture test.
669 o Richard Sharpe <shape@samba.org>
670 * Small fixes to torture.c to cleanup the error handling
674 o J. Tournier <jerome.tournier@IDEALX.com>
675 * Small fixes for the smbldap-tool scripts.
678 o Andrew Tridgell <tridge@samba.org>
679 * Fix src len check in pull_usc2().
682 o Jelmer Vernooij <jelmer@samba.org>
683 * Put functions for generating SQL queries in pdb_sql.c
684 * Add pgSQL backend (based on patch by Hamish Friedlander)
685 * BUG 908: Fix -s option to smbcontrol.
686 * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
687 * Fix for libnss_wins on IRIX platforms.
688 * Fix swatdir for --with-fhs.
691 --------------------------------------------------
693 =============================
694 Release Notes for Samba 3.0.1
696 =============================
698 Some of the more common bugs in 3.0.0 addressed in the release
701 o Substitution problems with smb.conf variables.
702 o Errors in return codes which caused some applications
703 to fail to open files.
704 o General Protection Faults on Windows 2000/XP clients
705 using Samba point-n-print features.
706 o Several miscellaneous crash bugs.
707 o Access problems when enumerating group mappings are
708 stored in an LDAP Directory.
709 o Several common SWAT bugs when writing changes to
711 o Internal inconsistencies when 'winbind use default
717 ----------------------
719 Parameter Name Action
720 -------------- ------
721 hide local users Removed
722 mangled map Deprecated
723 mangled stack Removed
724 passwd chat timeout New
730 o Change the interface for init_unistr2 to not take a length
731 but a flags field. We were assuming that
732 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
733 o Allow d_printf() to handle strings with escaped quotation
734 marks since the msg file includes the escape character (bug 489).
735 o Fix bad html table row termination in SWAT wizard code (bug 413).
736 o Fix to parse the level-2 strings.
737 o Fix for "valid users = %S" in [homes]. Fix read/write
739 o Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
740 This is the same way AC_CHECK_LIB works (bug 508).
741 o Testparm output fixes for clarity.
742 o Fix broken wins hook functionality -- i18n bug (bug 528).
743 o Take care of condition where DOS and NT error codes must differ.
744 o Default to using only built-in charsets when a working iconv
745 implementation cannot be located.
746 o Wrap internals of sys_setgroups() so the sys_XX() call can
747 be done unconditionally (bug 550).
748 o Remove duplicate smbspool link on SWAT's front page (bug 541).
749 o Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
750 --enable-debug=[yes|no] works correctly.
751 o Allow ^C to interrupt smbpasswd if using our getpass
752 (e.g. smbpasswd command).
753 o Support signing only on RPC's (bug 167).
754 o Correct bug that prevented Excel 2000 clients from opening
755 files marked as read-only.
756 o Portability fix bugs 546 - 549).
757 o Explicitly initialize the value of AR for vendor makes that don't
758 do this (e.g. HPUX 11). (bug 552).
759 o More i18n fixes for SWAT (bug 413).
760 o Change the cwd before the postexec script to ensure that a
762 o Correct double free that caused winbindd to crash when a DC
763 is rebooted (bug 437).
764 o Fix incorrect mode sum (bug 562).
765 o Canonicalize SMB_INFO_ALLOCATION in the same was as
766 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
767 o Add script to generate *msg files.
768 o Add Dutch SWAT translation file.
769 o Make sure to call get_user_groups() with the full winbindd
770 name for a user if he/she has one (bug 406).
771 o Fix up error code returns from Samba4 tester. Ensure invalid
772 paths are validated the same way.
773 o Allow Samba3 to pass the Samba4 RAW-READ tests.
774 o Refuse to configure if --with-expsam=$BACKEND was used but no
775 libraries were found for $BACKEND.
776 o Move sysquotas autoconf tests to a separate file.
777 o Match W2K w.r.t. writelock and writeclose. Samba4 torture
779 o Make sure that the files that contain the static_init_$subsystem;
780 macro get recompiled after configure by removing the object
782 o Ensure canceling a blocking lock returns the correct error
784 o Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
785 o Updated Japanese welcome file in SWAT.
786 o Fix to nt-time <-> unix-time functions reversible.
787 o Ensure that winbindd uses the the escaped DN when querying
789 o Fix portability issues when compiling (bug 505, 550)
790 o Compile fix for tdbbackup when Samba needs to override
791 non-C99 compliant implementations of snprintf().
792 o Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
793 o Make sure we break out of samsync loop on error.
794 o Ensure error code path doesn't free unmalloc()'d memory
796 o Add configure test for krb5_keytab_entry keyblock vs key
799 o Modified testparm so that all output so all debug output goes
800 to stderr, and all file processing goes to stdout.
801 o Fix error return code for BUFFER_TOO_SMALL in smbcacls
803 o Fix "NULL dest in safe_strcpy()" log message by ensuring that
804 we have a devmode before copying a string to the devicename.
805 o Support mapping REALM.COM\user to a local user account (without
806 running winbindd) for compatibility with 2.2.x release.
807 o Ensure we don't use mmap() on blacklisted systems.
808 o fixed a number of bugs and memory leaks in the AIX
810 o Call initgroups() in SWAT before becomming the user so that
811 secondary group permissions can be used when writing to
813 o Fix signing problems when reverse connecting back to a
814 client for printer notify
815 o Fix signing problems caused by a miss-sequence bug.
816 o Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
817 Fixes NEXUS tools running on Win9x clients (bug 64).
818 o Don't leave the domain field uninitialized in cli_lsa.c if some
819 SID could not be mapped.
820 o Fix segfault in mount.cifs helper when there is no options
821 specified during mount.
822 o Change the \n after the password prompt to go to tty instead
824 o Stop net -P from prompting for machine account password (bug 451).
825 o Change in behavior to Not only change the effective uid but also
826 the real uid when becoming unprivileged.
827 o Cope with Exchange 5.5 cleartext pop password auth.
828 o New files for support of initshutdown pipe. Win2k doesn't
829 respond properly to all requests on the winreg pipe, so we need
830 to handle this new pipe (bug 534).
831 o Added more va_copy() checks in configure.in.
832 o Include fixes for libsmbclient build problems.
833 o Missing UNIX -> DOS codepage conversion in lanman.c.
834 o Allow DFMS-S filenames can now have arbitrary case (bug 667).
835 o Parameterize the listen backlog in smbd and make it larger by
836 default. A backlog of 5 is way too small these days.
837 o Check for an invalid fid before dereferencing the fsp pointer
839 o Remove invalid memory frees and return codes in pdb_ldap.c.
840 o Prompt for password when invoking --set-auth-user and no
842 o Bind the nmbd sending socket to the 'socket address'.
843 o Re-order link command for smbd, rpcclient and smbpasswd to ensure
844 $LDFLAGS occurs before any library specification (bug 661).
845 o Fix large number of printf() calls for 64-bit size_t.
846 o Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
847 keyblock in the krb5 structs.
848 o Remove #include <compat.h> in hopes to avoid problems with
850 o Correct winbindd build problems on HP-UX 11.
851 o Lowercase netgroups lookups (bug 703).
852 o Use the actual size of the buffer in strftime instead of a made
853 up value which just happens to be less than sizeof(fstring).
855 o Add ldaplibs to pdbedit link line (bug 651).
856 o Fix crash bug in smbclient completion (bug 659).
857 o Fix packet length for browse list reply (bug 771).
858 o Fix coredump in cli_get_backup_list().
859 o Make sure that we expand %N (bug 612).
860 o Allow rpcclient adddriver command to specify printer driver
862 o Compile tdbdump by default.
863 o Apply patches to fix iconv detection for FreeBSD.
864 o Do not allow the 'guest account' to be added to a passdb backend
865 using smbpasswd or pdbedit (bug 624).
866 o Save LDFLAGS during iconv detection (bug 57).
867 o Run krb5 logins through the username map if the winbindd
868 lookup fails (bug 698).
869 o Add const for lp_set_name_resolve_order() to avoid compiler
871 o Add support for the %i macro in smb.conf to stand in for the for
872 the local IP address to which a client connected.
873 o Allow winbindd to match local accounts to domain SID when
874 'winbind trusted domains only = yes' (bug 680).
875 o Remove code in idmap_ldap that searches the user suffix and group
876 suffix. It's not needed and provides inconsistent functionality
877 from the tdb backend.
878 o Patch to handle munged dial string for Windows 2000 TSE.
879 Thanks to Gaz de France, Direction de la Recherche, Service
880 Informatique Métier for their supporting this work by Aurelien
881 Degrémont <adegremont@idealx.com>.
882 o Correct the "smbldap_open: cannot access when not root error"
883 messages when looking up group information (bug 281).
884 o Skip over the winbind separator when looking up a user.
885 This fixes the bug that prevented local users from
886 matching an AD user when not running winbindd (bug 698).
887 o Fix a problem with configure on *BSD systems. Make sure
888 we add -liconv etc to LDFLAGS.
889 o Fix core dump bug when "security = server" and the authentication
891 o Correct crash bug due to an empty munged dial string.
892 o Show files locked by a specific user (smbstatus -u 'user')
894 o Fix bug preventing print jobs from display in the queue
895 monitor used by Windows NT and later clients (bug 660).
896 o Fix several reported problems with point-n-print from
897 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
898 reply (bug 338, 527 & 643).
899 o Fix a handful of potential memory leaks in the LDAP code used
900 by ldapsam[_compat] and the LDAP idmap backend.
901 o Fix for pdbedit error code returns (bug 763).
902 o Make sure we only enumerate group mapping entries (not
903 /etc/group) even when doing local aliases.
904 o Relax check on the pipe name in a dce/rpc bind response to work
905 around issues with establishing trusts to a Windows 2003 domain.
906 o Ensure we mangle names ending in '.' in hash2 mangling method.
907 o Correct parsing issues with munged dial string.
908 o Fix bugs in quota support for XFS.
909 o Add a cleaner method for applications that need to provide
910 name->SID mappings to do this via NSS rather than having to
911 know the winbindd pipe protocol.
912 o Adds a variant of the winbindd_getgroups() call called
913 winbindd_getusersids() that provides direct SID->SIDs listing of
914 a users supplementary groups. This is enough to allow non-Samba
915 applications to do ACL checking.
916 o Make sure we don't append the 'ldap suffix' when writing out the
917 'ldap XXX suffix' values in SWAT (bug 328).
918 o Fix renames across file systems.
919 o Ensure that items in a list of strings containing whitespace are
920 written out surrounded by single quotes. This means that both
921 double and single quotes are now used to surround strings in
923 o Enable SWAT to correctly determine if winbindd is running (bug
925 o Include WWW-Authenticate field in 401 response for bad auth
927 o Add support for NTLM2 (NTLMv2 session security).
928 o Add support for variable-length session keys.
929 o More privilege fixes for group enumeration in LDAP (bug 281).
930 o Use the dns name (or IP) as the originating client name when
931 using CUPS (bug 467).
932 o Fix various SMB signing bugs.
933 o Fix ACL propagation on a DFS root (bug 263).
934 o Disable NTLM2 for RPC pipes.
935 o Allow the client to specify the NTLM2 flags got NTLMSSP
937 o Change the name of the job passed off to cups from "Test Page"
938 to "smbprn.00000033 Test Page" so that we can get the smb
939 jobid back. This allow users to delete jobs with cups printing
940 backend (partial work on bug 770).
941 o Fix build of winbindd with static pdb modules.
942 o Retrieve the correct ACL group bits if the file has an ACL
944 o Implement "net rpc group members": Get members of a domain group
945 in human-readable format.
946 o Add MacOSX (Darwin) specific charset module code.
947 o Use samr_dispinfo(level == 1) for enumerating domain users so we
948 can include the full name in gecos field (bug 587).
949 o Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
950 o Implement 'net rpc group list [global|local|builtin]*' for a
951 select listing of the respective user databases.
952 o Don't automatically set NT status code flag unless client tells
954 o Add 'net status [sessions|shares] [parseable]'.
955 o Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
957 o Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
959 o Fix inverted logic in hosts allow/deny checks caused by
960 s/strcmp/strequal/ (bug 846).
961 o Implement correct version SamrRemoveSidForeignDomain() (bug 252).
962 o Fix typo in 'hash' mangling algorithm.
963 o Support munged dial for ldapsam (bug 800).
964 o Fix process_incoming_data() to return the number of bytes handled
965 this call whether we have a complete PDU or not; fixes bug
966 with multiple PDU request rpc's broken over SMBwriteX calls
968 o Fix incorrect smb flags2 for connections to pre-NT servers
969 (causes smbclient to fail to OS2 for example) (bug 821).
970 o Update version string in smbldap-tools Makefile to 0.8.2.
971 o Correct a problem with "net rpc vampire" mis-parsing the
972 alias member info reply.
973 o Ensure the ${libdir} is created by the installclientlib script.
974 o Fix detection of Windows 2003 client architecture in the smb.conf
976 o Ensure that smbd calls the add user script for a missing UNIX
977 user on kerberos auth call (bug 445).
978 o Fix bugs in hosts allow/deny when using a mismatched
979 network/netmask pair.
980 o Protect alloc_sub_basic() from crashing when the source string
981 is NULL (partial work on bug 687).
982 o Fix spinlocks on IRIX.
983 o Corrected some bad destination paths when running "configure
985 o Add packaging files for Fedora Core 1.
986 o Correct bug in SWAT install script for non-english languages.
987 o Support character set ISO-8859-1 internally (bug 558).
988 o Fixed more LDAP access errors when looking up group mappings
990 o Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID
991 resolution to fail on local files on on domain members
993 o Fix uninitialized variable in passdb.c.
994 o Fix formal parameter type in get_static() in nsswitch/wins.c.
995 o Fix problem mounting directories when mount.cifs is installed
996 with the setuid bit on.
997 o Fix bug that prevent --mandir from overriding the defaults
998 given in the --with-fhs macro.
999 o Fix bug in in-memory Kerberos keytab detection routines
1004 ######################################################################
1006 The original 3.0.0 release notes follow
1007 =======================================
1008 WHATS NEW IN Samba 3.0.0
1010 =======================================
1016 1) Active Directory support. Samba 3.0 is now able to
1017 join a ADS realm as a member server and authenticate
1018 users using LDAP/Kerberos.
1020 2) Unicode support. Samba will now negotiate UNICODE on the wire
1021 and internally there is now a much better infrastructure for
1022 multi-byte and UNICODE character sets.
1024 3) New authentication system. The internal authentication system
1025 has been almost completely rewritten. Most of the changes are
1026 internal, but the new auth system is also very configurable.
1028 4) New default filename mangling system.
1030 5) A new "net" command has been added. It is somewhat similar to
1031 the "net" command in windows. Eventually we plan to replace
1032 numerous other utilities (such as smbpasswd) with subcommands
1035 6) Samba now negotiates NT-style status32 codes on the wire. This
1036 improves error handling a lot.
1038 7) Better Windows 2000/XP/2003 printing support including publishing
1039 printer attributes in active directory.
1041 8) New loadable module support for passdb backends and character
1044 9) New default dual-daemon winbindd support for better performance.
1046 10) Support for migrating from a Windows NT 4.0 domain to a Samba
1047 domain and maintaining user, group and domain SIDs.
1049 11) Support for establishing trust relationships with Windows NT 4.0
1052 12) Initial support for a distributed Winbind architecture using
1053 an LDAP directory for storing SID to uid/gid mappings.
1055 13) Major updates to the Samba documentation tree.
1057 14) Full support for client and server SMB signing to ensure
1058 compatibility with default Windows 2003 security settings.
1060 15) Improvement of ACL mapping features based on code donated by
1061 Andreas Grünbacher.
1064 Plus lots of other improvements!
1067 Additional Documentation
1068 ------------------------
1070 Please refer to Samba documentation tree (included in the docs/
1071 subdirectory) for extensive explanations of installing, configuring
1072 and maintaining Samba 3.0 servers and clients. It is advised to
1073 begin with the Samba-HOWTO-Collection for overviews and specific
1074 tasks (the current book is up to approximately 400 pages) and to
1075 refer to the various man pages for information on individual options.
1077 We are very glad to be able to include the second edition of
1078 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1079 (O'Reilly & Associates) in this release. The book is available
1080 on-line at http://samba.org/samba/docs/ and is included with
1081 the Samba Web Administration Tool (SWAT). Thanks to the authors and
1082 publisher for making "Using Samba" under the GNU Free Documentation
1086 ######################################################################
1087 Upgrading from a previous Samba 3.0 beta
1088 ########################################
1090 Beginning with Samba 3.0.0beta3, the RID allocation functions
1091 have been moved into winbindd. Previously these were handled
1092 by each passdb backend. This means that winbindd must be running
1093 to automatically allocate RIDs for users and/or groups. Otherwise,
1094 smbd will use the 2.2 algorithm for generating new RIDs.
1096 If you are using 'passdb backend = tdbsam' with a previous Samba
1097 3.0 beta release (or possibly alpha), it may be necessary to
1098 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1099 to winbindd_idmap.tdb. To do this:
1101 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
1103 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
1105 3) run: (note that 'tdb>' is the tool's prompt for input)
1107 root# ./tdbtool /usr/local/samba/private/passdb.tdb
1108 tdb> show RID_COUNTER
1112 [000] 0A 52 00 00 .R.
1114 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1118 If you are using 'passdb backend = ldapsam', it will be necessary to
1119 store idmap entries in the LDAP directory as well (i.e. idmap backend
1120 = ldap). Refer to the 'net idmap' command for more information on
1121 migrating SID<->UNIX id mappings from one backend to another.
1123 If the RID_COUNTER record does not exist, then these instructions are
1124 unneccessary and the new RID_COUNTER record will be correctly generated
1129 ########################
1130 Upgrading from Samba 2.2
1131 ########################
1133 This section is provided to help administrators understand the details
1134 involved with upgrading a Samba 2.2 server to Samba 3.0.
1140 Many of the options to the GNU autoconf script have been modified
1141 in the 3.0 release. The most noticeable are:
1143 * removal of --with-tdbsam (is now included by default; see section
1144 on passdb backends and authentication for more details)
1146 * --with-ldapsam is now on used to provided backward compatible
1147 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
1148 backend and authentication section for more details
1150 * inclusion of non-standard passdb modules may be enabled using
1151 --with-expsam. This includes an XML backend and a mysql backend.
1153 * removal of --with-msdfs (is now enabled by default)
1155 * removal of --with-ssl (no longer supported)
1157 * --with-utmp now defaults to 'yes' on supported systems
1159 * --with-sendfile-support is now enabled by default on supported
1166 This section contains a brief listing of changes to smb.conf options
1167 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
1168 complete descriptions of new or modified parameters.
1170 Removed Parameters (order alphabetically):
1173 * alternate permissions
1176 * code page directory
1178 * domain admin group
1179 * domain guest group
1180 * force unknown acl user
1186 * printer driver file
1187 * printer driver location
1189 * source environment
1197 New Parameters (new parameters have been grouped by function):
1201 * abort shutdown script
1204 User and Group Account Management
1205 ---------------------------------
1207 * add machine script
1208 * add user to group script
1209 * algorithmic rid base
1210 * delete group script
1211 * delete user from group script
1213 * set primary group script
1219 * passwd chat timeout
1223 * client lanman auth
1224 * client NTLMv2 auth
1230 * paranoid server security
1239 * hide special files
1240 * hide unwriteable files
1242 * kernel change notify
1252 * max reported print jobs
1254 UNICODE and Character Sets
1255 --------------------------
1261 SID to uid/gid Mappings
1262 -----------------------
1266 * winbind enable local accounts
1267 * winbind trusted domains only
1268 * template primary group
1269 * enable rid algorithm
1276 * ldap machine suffix
1278 * ldap replication sleep
1281 General Configuration
1282 ---------------------
1286 Modified Parameters (changes in behavior):
1288 * encrypt passwords (enabled by default)
1289 * mangling method (set to 'hash2' by default)
1292 * restrict anonymous (integer value)
1293 * security (new 'ads' value)
1294 * strict locking (enabled by default)
1295 * unix extensions (enabled by default)
1296 * winbind cache time (increased to 5 minutes)
1297 * winbind uid (deprecated in favor of 'idmap uid')
1298 * winbind gid (deprecated in favor of 'idmap gid')
1304 This section contains brief descriptions of any new databases
1305 introduced in Samba 3.0. Please remember to backup your existing
1306 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
1307 upgrade databases as they are opened (if necessary), but downgrading
1308 from 3.0 to 2.2 is an unsupported path.
1310 Name Description Backup?
1311 ---- ----------- -------
1312 account_policy User policy settings yes
1313 gencache Generic caching db no
1314 group_mapping Mapping table from Windows yes
1315 groups/SID to unix groups
1316 winbindd_idmap ID map table from SIDS to UNIX yes
1318 namecache Name resolution cache entries no
1319 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
1320 returned as part of a successful
1321 net_sam_logon request
1322 printing/*.tdb Cached output from 'lpq no
1323 command' created on a per print
1325 registry Read-only samba registry skeleton no
1326 that provides support for exporting
1327 various db tables via the winreg RPCs
1333 The following issues are known changes in behavior between Samba 2.2 and
1334 Samba 3.0 that may affect certain installations of Samba.
1336 1) When operating as a member of a Windows domain, Samba 2.2 would
1337 map any users authenticated by the remote DC to the 'guest account'
1338 if a uid could not be obtained via the getpwnam() call. Samba 3.0
1339 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
1340 current work around to re-establish the 2.2 behavior.
1342 2) When adding machines to a Samba 2.2 controlled domain, the
1343 'add user script' was used to create the UNIX identity of the
1344 machine trust account. Samba 3.0 introduces a new 'add machine
1345 script' that must be specified for this purpose. Samba 3.0 will
1346 not fall back to using the 'add user script' in the absence of
1347 an 'add machine script'
1350 ######################################################################
1351 Passdb Backends and Authentication
1352 ##################################
1354 There have been a few new changes that Samba administrators should be
1355 aware of when moving to Samba 3.0.
1357 1) encrypted passwords have been enabled by default in order to
1358 inter-operate better with out-of-the-box Windows client
1359 installations. This does mean that either (a) a samba account
1360 must be created for each user, or (b) 'encrypt passwords = no'
1361 must be explicitly defined in smb.conf.
1363 2) Inclusion of new 'security = ads' option for integration
1364 with an Active Directory domain using the native Windows
1365 Kerberos 5 and LDAP protocols.
1367 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
1368 type which is neccessary for servers on which the
1369 administrator password has not been changed, or kerberos-enabled
1370 SMB connections to servers that require Kerberos SMB signing.
1371 Besides this one difference, either MIT or Heimdal Kerberos
1372 distributions are usable by Samba 3.0.
1375 Samba 3.0 also includes the possibility of setting up chains
1376 of authentication methods (auth methods) and account storage
1377 backends (passdb backend). Please refer to the smb.conf(5)
1378 man page for details. While both parameters assume sane default
1379 values, it is likely that you will need to understand what the
1380 values actually mean in order to ensure Samba operates correctly.
1382 The recommended passdb backends at this time are
1384 * smbpasswd - 2.2 compatible flat file format
1385 * tdbsam - attribute rich database intended as an smbpasswd
1386 replacement for stand alone servers
1387 * ldapsam - attribute rich account storage and retrieval
1388 backend utilizing an LDAP directory.
1389 * ldapsam_compat - a 2.2 backward compatible LDAP account
1392 Certain functions of the smbpasswd(8) tool have been split between the
1393 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
1394 utility. See the respective man pages for details.
1397 ######################################################################
1401 This section outlines the new features affecting Samba / LDAP
1407 A new object class (sambaSamAccount) has been introduced to replace
1408 the old sambaAccount. This change aids us in the renaming of
1409 attributes to prevent clashes with attributes from other vendors.
1410 There is a conversion script (examples/LDAP/convertSambaAccount) to
1411 modify and LDIF file to the new schema.
1415 $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1416 $ convertSambaAccount --sid=<Domain SID> \
1417 --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1418 --changetype=[modify|add]
1420 The <DOM SID> can be obtained by running 'net getlocalsid
1421 <DOMAINNAME>' on the Samba PDC as root. The changetype determines
1422 the format of the generated LDIF output--either create new entries
1423 or modify existing entries.
1425 The old sambaAccount schema may still be used by specifying the
1426 "ldapsam_compat" passdb backend. However, the sambaAccount and
1427 associated attributes have been moved to the historical section of
1428 the schema file and must be uncommented before use if needed.
1429 The 2.2 object class declaration for a sambaAccount has not changed
1430 in the 3.0 samba.schema file.
1432 Other new object classes and their uses include:
1434 * sambaDomain - domain information used to allocate rids
1435 for users and groups as necessary. The attributes are added
1436 in 'ldap suffix' directory entry automatically if
1437 an idmap uid/gid range has been set and the 'ldapsam'
1438 passdb backend has been selected.
1440 * sambaGroupMapping - an object representing the
1441 relationship between a posixGroup and a Windows
1442 group/SID. These entries are stored in the 'ldap
1443 group suffix' and managed by the 'net groupmap' command.
1445 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
1446 automatically and contains the next available 'idmap uid' and
1449 * sambaIdmapEntry - object storing a mapping between a
1450 SID and a UNIX uid/gid. These objects are created by the
1451 idmap_ldap module as needed.
1453 * sambaSidEntry - object representing a SID alone, as a Structural
1454 class on which to build the sambaIdmapEntry.
1457 New Suffix for Searching
1458 ------------------------
1460 The following new smb.conf parameters have been added to aid in directing
1461 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1464 * ldap suffix - used to search for user and computer accounts
1465 * ldap user suffix - used to store user accounts
1466 * ldap machine suffix - used to store machine trust accounts
1467 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
1468 * ldap idmap suffix - location of sambaIdmapEntry objects
1470 If an 'ldap suffix' is defined, it will be appended to all of the
1471 remaining sub-suffix parameters. In this case, the order of the suffix
1472 listings in smb.conf is important. Always place the 'ldap suffix' first
1475 Due to a limitation in Samba's smb.conf parsing, you should not surround
1476 the DN's with quotation marks.
1482 Samba 3.0 supports an ldap backend for the idmap subsystem. The
1483 following options would inform Samba that the idmap table should be
1484 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1489 idmap backend = ldap:ldap://onterose/
1490 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1491 idmap uid = 40000-50000
1492 idmap gid = 40000-50000
1494 This configuration allows winbind installations on multiple servers to
1495 share a uid/gid number space, thus avoiding the interoperability problems
1496 with NFS that were present in Samba 2.2.
1500 ######################################################################
1501 Trust Relationships and a Samba Domain
1502 ######################################
1504 Samba 3.0.0beta2 is able to utilize winbindd as the means of
1505 allocating uids and gids to trusted users and groups. More
1506 information regarding Samba's support for establishing trust
1507 relationships can be found in the Samba-HOWTO-Collection included
1508 in the docs/ directory of this release.
1510 First create your Samba PDC and ensure that everything is
1511 working correctly before moving on the trusts.
1513 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1514 4.0 domain named WINDOWS:
1516 1) create the trust account for SAMBA in "User Manager for Domains"
1517 2) connect the trust from the Samba domain using
1518 'net rpc trustdom establish GLASS'
1520 To create a trustlationship with SAMBA as the trusted domain:
1522 1) create the initial trust account for GLASS using
1523 'smbpasswd -a -i GLASS'. You may need to create a UNIX
1524 account for GLASS$ prior to this step (depending on your
1525 local configuration).
1526 2) connect the trust from a WINDOWS DC using "User Manager
1529 Now join winbindd on the Samba PDC to the SAMBA domain using
1530 the normal steps for adding a Samba server to an NT4 domain:
1531 (note that smbd & nmbd must be running at this point)
1533 root# net rpc join -U root
1534 Password: <enter root password from smbpasswd file here>
1536 Start winbindd and test the join with 'wbinfo -t'.
1538 Now test the trust relationship by connecting to the SAMBA DC
1539 (e.g. POGO) as a user from the WINDOWS domain:
1541 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1544 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1546 $ smbclient //crystal/netlogon -U root -W WINDOWS
1549 ######################################################################
1553 Beginning with Samba3.0.0beta3, winbindd has been given new account
1554 manage functionality equivalent to the 'add user script' family of
1555 smb.conf parameters. The idmap design has also been changed to
1556 centralize control of foreign SID lookups and matching to UNIX
1560 Brief Description of Changes
1561 ----------------------------
1563 1) The sid_to_uid() family of functions (smbd/uid.c) have been
1564 reverted to the 2.2.x design. This means that when resolving a
1565 SID to a UID or similar mapping:
1567 a) First consult winbindd
1568 b) perform a local lookup only if winbindd fails to
1569 return a successful answer
1571 There are some variations to this, but these two rules generally
1574 2) All idmap lookups have been moved into winbindd. This means that
1575 a server must run winbindd (and support NSS) in order to achieve
1576 any mappings of SID to dynamically allocated UNIX ids. This was
1577 a conscious design choice.
1579 3) New functions have been added to winbindd to emulate the 'add user
1580 script' family of smbd functions without requiring that external
1581 scripts be defined. This functionality is controlled by the 'winbind
1582 enable local accounts' smb.conf parameter (enabled by default).
1584 However, this account management functionality is only supported
1585 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
1586 must be shared among multiple Samba servers (such as a PDC and BDCs),
1587 it will be necessary to define your own 'add user script', et. al.
1588 programs that place the accounts/groups in some form of directory
1589 such as NIS or LDAP. This requirement was deemed beyond the scope
1590 of winbind's account management functions. Solutions for
1591 distributing UNIX system information have been deployed and tested
1592 for many years. We saw no need to reinvent the wheel.
1594 4) A member of a Samba controlled domain running winbindd is now able
1595 to map domain users directly onto existing UNIX accounts while still
1596 automatically creating accounts for trusted users and groups. This
1597 behavior is controlled by the 'winbind trusted domains only' smb.conf
1598 parameter (disabled by default to provide 2.2.x winbind behavior).
1600 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1601 in smbd/uid.c. The reason that group mappings are not included
1602 in winbindd is because the purpose of Samba's group map is to
1603 match any Windows SID with an existing UNIX group. These UNIX
1604 groups can be created by winbindd (see next section), but the
1605 SID<->gid mapping is retreived by smbd, not winbindd.
1611 * security = server running winbindd to allocate accounts on demand
1613 * Samba PDC running winbindd to handle the automatic creation of UNIX
1614 identities for machine trust accounts
1616 * Automtically creating UNIX user and groups when migrating a Windows NT
1617 4.0 PDC to a Samba PDC. Winbindd must be running when executing
1618 'net rpc vampire' for this to work.
1621 ######################################################################
1625 * There are several bugs currently logged against the 3.0 codebase
1626 that affect the use of NT 4.0 GUI domain management tools when run
1627 against a Samba 3.0 PDC. This bugs should be released in an early
1630 Please refer to https://bugzilla.samba.org/ for a current list of bugs
1631 filed against the Samba 3.0 codebase.
1634 ######################################################################
1635 Reporting bugs & Development Discussion
1636 #######################################
1638 Please discuss this release on the samba-technical mailing list or by
1639 joining the #samba-technical IRC channel on irc.freenode.net.
1641 If you do report problems then please try to send high quality
1642 feedback. If you don't provide vital information to help us track down
1643 the problem then you will probably be ignored.
1645 A new bugzilla installation has been established to help support the
1646 Samba 3.0 community of users. This server, located at
1647 https://bugzilla.samba.org/, has replaced the older jitterbug server
1648 previously located at http://bugs.samba.org/.