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