1 WHATS NEW IN Samba 3.0.1rc1
3 ===============================
5 This is a release candidate snapshot of the Samba 3.0.1 code base
6 and is provided for testing only. A release candidate (RC) means
7 that we are close to the the final, stable version and is provided
8 for Quality Assurance (QA) purposes. This release is *not* intended
9 for production servers. Use at your own risk.
11 There have been several bug fixes since the 3.0.0 release that
12 we feel are important to make available to the Samba community
13 for wider testings. See the "Changes" section for details on
17 ######################################################################
20 Changes since 3.0.1pre3
21 -----------------------
23 Please refer to the CVS log for the SAMBA_3_0 branch for complete
32 1) Fix for pdbedit error code returns (bug 763).
33 2) Make sure we only enumerate group mapping entries (not
34 /etc/group) even when doing local aliases.
35 3) Relax check on the pipe name in a dce/rpc bind response to work
36 around issues with establishing trusts to a Windows 2003 domain.
37 4) Ensure we mangle names ending in '.' in hash2 mangling method.
38 5) Correct parsing issues with munged dial string.
39 6) Fix bugs in quota support for XFS.
40 7) Add a cleaner method for applications that need to provide name->SID
41 mappings to do this via NSS rather than having to know the
42 winbindd pipe protocol.
43 8) Adds a variant of the winbindd_getgroups() call called
44 winbindd_getusersids() that provides direct SID->SIDs listing of a
45 users supplementary groups. This is enough to allow non-Samba
46 applications to do ACL checking.
47 9) Make sure we don't append the 'ldap suffix' when writing out the
48 'ldap XXX suffix' values in SWAT (bug 328).
49 10) Fix renames across file systems.
50 11) Ensure that items in a list of strings containing whitespace are
51 written out surrounded by single quotes. This means that both
52 double and single quotes are now used to surround strings in
54 12) Enable SWAT to correctly determine if winbindd is running (bug
56 13) Include WWW-Authenticate field in 401 response for bad auth
58 14) Add support for NTLM2 (NTLMv2 session security).
59 15) Add support for variable-length session keys.
60 16) More privilege fixes for group enumeration in LDAP (bug 281).
61 17) Use the dns name (or IP) as the originating client name when
63 18) Fix various SMB signing bugs.
64 19) Fix ACL propagation on a DFS root (bug 263).
65 20) Disable NTLM2 for RPC pipes.
66 21) Allow the client to specify the NTLM2 flags got NTLMSSP
68 22) Change the name of the job passed off to cups from "Test Page" to
69 "smbprn.00000033 Test Page" so that we can get the smb jobid back.
70 This allow users to delete jobs with cups printing backend (partial
72 23) Fix build of winbindd with static pdb modules.
73 24) Retrieve the correct ACL group bits if the file has an ACL
75 25) Implement "net rpc group members": Get members of a domain group
76 in human-readable format.
77 26) Add MacOSX (Darwin) specific charset module code.
78 27) Use samr_dispinfo(level == 1) for enumerating domain users so we
79 can include the full name in gecos field (bug 587).
80 28) Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
81 29) Implement 'net rpc group list [global|local|builtin]*' for a
82 select listing of the respective user databases.
83 30) Don't automatically set NT status code flag unless client tells
85 31) Add 'net status [sessions|shares] [parseable]'.
86 32) Don't mistake pre-existing UNIX jobs for smb jobs (remainder of
88 33) Add 'Replicator' and 'RAS Servers' to list of builtin SIDs
90 34) Fix inverted logic in hosts allow/deny checks caused by s/strcmp/strequal/
92 35) Implement correct version SamrRemoveSidForeignDomain() (bug 252).
93 36) Fix typo in 'hash' mangling algorithm.
94 37) Support munged dial for ldapsam (bug 800).
95 38) Fix process_incoming_data() to return the number of bytes handled this
96 call whether we have a complete PDU or not; fixes bug with multiple
97 PDU request rpc's broken over SMBwriteX calls each.
98 39) Fix incorrect smb flags2 for connections to pre-NT servers (causes
99 smbclient to fail to OS2 for example) (bug 821).
103 Changes since 3.0.1pre4
104 -----------------------
106 Please refer to the CVS log for the SAMBA_3_0 branch for complete
109 1) Skip over the winbind separator when looking up a user.
110 This fixes the bug that prevented local users from
111 matching an AD user when not running winbindd (bug 698).
112 2) Fix a problem with configure on *BSD systems. Make sure
113 we add -liconv etc to LDFLAGS.
114 3) Fix core dump bug when "security = server" and the authentication
116 4) Correct crash bug due to an empty munged dial string.
117 5) Show files locked by a specific user (smbstatus -u 'user')
119 6) Fix bug preventing print jobs from display in the queue
120 monitor used by Windows NT and later clients (bug 660).
121 7) Fix several reported problems with point-n-print from
122 Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
123 reply (bug 338, 527 & 643).
124 8) Fix a handful of potential memory leaks in the LDAP code used
125 by ldapsam[_compat] and the LDAP idmap backend.
128 Changes since 3.0.1pre1
129 -----------------------
131 1) Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
132 2) Updated Japanese welcome file in SWAT.
133 3) Fix to nt-time <-> unix-time functions reversible.
134 4) Ensure that winbindd uses the the escaped DN when querying
136 5) Fix portability issues when compiling (bug 505, 550)
137 6) Compile fix for tdbbackup when Samba needs to override
138 non-C99 compliant implementations of snprintf().
139 7) Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
140 8) Make sure we break out of samsync loop on error.
141 9) Ensure error code path doesn't free unmalloc()'d memory
143 10) Add configure test for krb5_keytab_entry keyblock vs key
146 12) Modified testparm so that all output so all debug output goes
147 to stderr, and all file processing goes to stdout.
148 13) Fix error return code for BUFFER_TOO_SMALL in smbcacls
150 14) Fix "NULL dest in safe_strcpy()" log message by ensuring that
151 we have a devmode before copying a string to the devicename.
152 15) Support mapping REALM.COM\user to a local user account (without
153 running winbindd) for compatibility with 2.2.x release.
154 16) Ensure we don't use mmap() on blacklisted systems.
155 17) fixed a number of bugs and memory leaks in the AIX
157 18) Call initgroups() in SWAT before becomming the user so that
158 secondary group permissions can be used when writing to
160 19) Fix signing problems when reverse connecting back to a
161 client for printer notify
162 20) Fix signing problems caused by a miss-sequence bug.
163 21) Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
164 Fixes NEXUS tools running on Win9x clients (bug 64).
165 22) Don't leave the domain field uninitialized in cli_lsa.c if some
166 SID could not be mapped.
167 23) Fix segfault in mount.cifs helper when there is no options
168 specified during mount.
169 24) Change the \n after the password prompt to go to tty instead
171 25) Stop net -P from prompting for machine account password (bug 451).
172 26) Change in behavior to Not only change the effective uid but also
173 the real uid when becoming unprivileged.
174 27) Cope with Exchange 5.5 cleartext pop password auth.
175 28) New files for support of initshutdown pipe. Win2k doesn't
176 respond properly to all requests on the winreg pipe, so we need
177 to handle this new pipe (bug 534).
178 29) Added more va_copy() checks in configure.in.
179 30) Include fixes for libsmbclient build problems.
180 31) Missing UNIX -> DOS codepage conversion in lanman.c.
181 32) Allow DFMS-S filenames can now have arbitrary case (bug 667).
182 33) Parameterize the listen backlog in smbd and make it larger by
183 default. A backlog of 5 is way too small these days.
184 34) Check for an invalid fid before dereferencing the fsp pointer
186 35) Remove invalid memory frees and return codes in pdb_ldap.c.
187 36) Prompt for password when invoking --set-auth-user and no
189 37) Bind the nmbd sending socket to the 'socket address'.
190 38) Re-order link command for smbd, rpcclient and smbpasswd to ensure
191 $LDFLAGS occurs before any library specification (bug 661).
192 39) Fix large number of printf() calls for 64-bit size_t.
193 40) Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the
194 keyblock in the krb5 structs.
195 41) Remove #include <compat.h> in hopes to avoid problems with
197 42) COrrect winbindd build problems on HP-UX 11
198 43) Lowercase netgroups lookups (bug 703).
199 44) Use the actual size of the buffer in strftime instead of a made
200 up value which just happens to be less than sizeof(fstring).
202 45) Add ldaplibs to pdbedit link line (bug 651).
203 46) Fix crash bug in smbclient completion (bug 659).
204 47) Fix packet length for browse list reply (bug 771).
205 48) Fix coredump in cli_get_backup_list().
206 49) Make sure that we expand %N (bug 612).
207 50) Allow rpcclient adddriver command to specify printer driver
209 51) Compile tdbdump by default.
210 52) Apply patches to fix iconv detection for FreeBSD.
211 53) Do not allow the 'guest account' to be added to a passdb backend
212 using smbpasswd or pdbedit (bug 624).
213 54) Save LDFLAGS during iconv detection (bug 57).
214 55) Run krb5 logins through the username map if the winbindd
215 lookup fails (bug 698).
216 56) Add const for lp_set_name_resolve_order() to avoid compiler
218 57) Add support for the %i macro in smb.conf to stand in for the for
219 the local IP address to which a client connected.
220 58) Allow winbindd to match local accounts to domain SID when
221 'winbind trusted domains only = yes' (bug 680).
222 59) Remove code in idmap_ldap that searches the user suffix and group
223 suffix. It's not needed and provides inconsistent functionality
224 from the tdb backend.
225 60) Patch to handle munged dial string for Windows 200 TSE.
226 61) Correct the "smbldap_open: cannot access when not root error"
227 messages when looking up group information (bug 281).
235 * mangled map (deprecated)
238 * mangled stack (unused)
241 1) Change the interface for init_unistr2 to not take a length
242 but a flags field. We were assuming that
243 2*strlen(mb_string) == length of ucs2-le string. (bug 480).
244 2) Allow d_printf() to handle strings with escaped quotation
245 marks since the msg file includes the escape character (bug 489).
246 3) Fix bad html table row termination in SWAT wizard code (bug 413).
247 4) Fix to parse the level-2 strings.
248 5) Fix for "valid users = %S" in [homes]. Fix read/write
250 6) Change AC_CHECK_LIB_EXT to prepend libraries instead of append.
251 This is the same way AC_CHECK_LIB works (bug 508).
252 7) Testparm output fixes for clarity.
253 8) Fix broken wins hook functionality -- i18n bug (bug 528).
254 9) Take care of condition where DOS and NT error codes must differ.
255 10) Default to using only built-in charsets when a working iconv
256 implementation cannot be located.
257 11) Wrap internals of sys_setgroups() so the sys_XX() call can
258 be done unconditionally (bug 550).
259 12) Remove duplicate smbspool link on SWAT's front page (bug 541).
260 13) Save and restore CFLAGS before/after AC_PROG_CC. Ensures that
261 --enable-debug=[yes|no] works correctly.
262 14) Allow ^C to interrupt smbpasswd if using our getpass
263 (e.g. smbpasswd command).
264 15) Support signing only on RPC's (bug 167).
265 16) Correct bug that prevented Excel 2000 clients from opening
266 files marked as read-only.
267 17) Portability fix bugs 546 - 549).
268 18) Explicitly initialize the value of AR for vendor makes that don't
269 do this (e.g. HPUX 11). (bug 552).
270 19) More i18n fixes for SWAT (bug 413).
271 20) Change the cwd before the postexec script to ensure that a
273 21) Correct double free that caused winbindd to crash when a DC
274 is rebooted (bug 437).
275 22) Fix incorrect mode sum (bug 562).
276 23) Canonicalize SMB_INFO_ALLOCATION in the same was as
277 SMB_FS_FULL_SIZE_INFORMATION (bug 564).
278 24) Add script to generate *msg files.
279 25) Add Dutch SWAT translation file.
280 26) Make sure to call get_user_groups() with the full winbindd
281 name for a user if he/she has one (bug 406).
282 27) Fix up error code returns from Samba4 tester. Ensure invalid
283 paths are validated the same way.
284 28) Allow Samba3 to pass the Samba4 RAW-READ tests.
285 29) Refuse to configure if --with-expsam=$BACKEND was used but no
286 libraries were found for $BACKEND.
287 30) Move sysquotas autoconf tests to a separate file.
288 31) Match W2K w.r.t. writelock and writeclose. Samba4 torture
290 32) Make sure that the files that contain the static_init_$subsystem;
291 macro get recompiled after configure by removing the object
293 33) Ensure canceling a blocking lock returns the correct error
295 34) Match Samba 2.2, and make ACB_NORMAL the default ACB value.
299 ######################################################################
301 =======================================
302 The original 3.0.0 release notes follow
303 =======================================
309 1) Active Directory support. Samba 3.0 is now able to
310 join a ADS realm as a member server and authenticate
311 users using LDAP/Kerberos.
313 2) Unicode support. Samba will now negotiate UNICODE on the wire
314 and internally there is now a much better infrastructure for
315 multi-byte and UNICODE character sets.
317 3) New authentication system. The internal authentication system
318 has been almost completely rewritten. Most of the changes are
319 internal, but the new auth system is also very configurable.
321 4) New default filename mangling system.
323 5) A new "net" command has been added. It is somewhat similar to
324 the "net" command in windows. Eventually we plan to replace
325 numerous other utilities (such as smbpasswd) with subcommands
328 6) Samba now negotiates NT-style status32 codes on the wire. This
329 improves error handling a lot.
331 7) Better Windows 2000/XP/2003 printing support including publishing
332 printer attributes in active directory.
334 8) New loadable module support for passdb backends and character
337 9) New default dual-daemon winbindd support for better performance.
339 10) Support for migrating from a Windows NT 4.0 domain to a Samba
340 domain and maintaining user, group and domain SIDs.
342 11) Support for establishing trust relationships with Windows NT 4.0
345 12) Initial support for a distributed Winbind architecture using
346 an LDAP directory for storing SID to uid/gid mappings.
348 13) Major updates to the Samba documentation tree.
350 14) Full support for client and server SMB signing to ensure
351 compatibility with default Windows 2003 security settings.
353 15) Improvement of ACL mapping features based on code donated by
357 Plus lots of other improvements!
360 Additional Documentation
361 ------------------------
363 Please refer to Samba documentation tree (included in the docs/
364 subdirectory) for extensive explanations of installing, configuring
365 and maintaining Samba 3.0 servers and clients. It is advised to
366 begin with the Samba-HOWTO-Collection for overviews and specific
367 tasks (the current book is up to approximately 400 pages) and to
368 refer to the various man pages for information on individual options.
370 We are very glad to be able to include the second edition of
371 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
372 (O'Reilly & Associates) in this release. The book is available
373 on-line at http://samba.org/samba/docs/ and is included with
374 the Samba Web Administration Tool (SWAT). Thanks to the authors and
375 publisher for making "Using Samba" under the GNU Free Documentation
379 ######################################################################
380 Upgrading from a previous Samba 3.0 beta
381 ########################################
383 Beginning with Samba 3.0.0beta3, the RID allocation functions
384 have been moved into winbindd. Previously these were handled
385 by each passdb backend. This means that winbindd must be running
386 to automatically allocate RIDs for users and/or groups. Otherwise,
387 smbd will use the 2.2 algorithm for generating new RIDs.
389 If you are using 'passdb backend = tdbsam' with a previous Samba
390 3.0 beta release (or possibly alpha), it may be necessary to
391 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
392 to winbindd_idmap.tdb. To do this:
394 1) Ensure that winbindd_idmap.tdb exists (launch winbindd at least
396 2) build tdbtool by executing 'make tdbtool' in the source/tdb/
398 3) run: (note that 'tdb>' is the tool's prompt for input)
400 root# ./tdbtool /usr/local/samba/private/passdb.tdb
401 tdb> show RID_COUNTER
405 [000] 0A 52 00 00 .R.
407 tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
411 If you are using 'passdb backend = ldapsam', it will be necessary to
412 store idmap entries in the LDAP directory as well (i.e. idmap backend
413 = ldap). Refer to the 'net idmap' command for more information on
414 migrating SID<->UNIX id mappings from one backend to another.
416 If the RID_COUNTER record does not exist, then these instructions are
417 unneccessary and the new RID_COUNTER record will be correctly generated
422 ########################
423 Upgrading from Samba 2.2
424 ########################
426 This section is provided to help administrators understand the details
427 involved with upgrading a Samba 2.2 server to Samba 3.0.
433 Many of the options to the GNU autoconf script have been modified
434 in the 3.0 release. The most noticeable are:
436 * removal of --with-tdbsam (is now included by default; see section
437 on passdb backends and authentication for more details)
439 * --with-ldapsam is now on used to provided backward compatible
440 parameters for LDAP enabled Samba 2.2 servers. Refer to the passdb
441 backend and authentication section for more details
443 * inclusion of non-standard passdb modules may be enabled using
444 --with-expsam. This includes an XML backend and a mysql backend.
446 * removal of --with-msdfs (is now enabled by default)
448 * removal of --with-ssl (no longer supported)
450 * --with-utmp now defaults to 'yes' on supported systems
452 * --with-sendfile-support is now enabled by default on supported
459 This section contains a brief listing of changes to smb.conf options
460 in the 3.0.0 release. Please refer to the smb.conf(5) man page for
461 complete descriptions of new or modified parameters.
463 Removed Parameters (order alphabetically):
466 * alternate permissions
469 * code page directory
473 * force unknown acl user
478 * printer driver file
479 * printer driver location
487 New Parameters (new parameters have been grouped by function):
491 * abort shutdown script
494 User and Group Account Management
495 ---------------------------------
498 * add user to group script
499 * algorithmic rid base
500 * delete group script
501 * delete user from group script
503 * set primary group script
509 * passwd chat timeout
520 * paranoid server security
530 * hide unwriteable files
532 * kernel change notify
542 * max reported print jobs
544 UNICODE and Character Sets
545 --------------------------
551 SID to uid/gid Mappings
552 -----------------------
556 * winbind enable local accounts
557 * winbind trusted domains only
558 * template primary group
559 * enable rid algorithm
566 * ldap machine suffix
570 General Configuration
571 ---------------------
575 Modified Parameters (changes in behavior):
577 * encrypt passwords (enabled by default)
578 * mangling method (set to 'hash2' by default)
581 * restrict anonymous (integer value)
582 * security (new 'ads' value)
583 * strict locking (enabled by default)
584 * unix extensions (enabled by default)
585 * winbind cache time (increased to 5 minutes)
586 * winbind uid (deprecated in favor of 'idmap uid')
587 * winbind gid (deprecated in favor of 'idmap gid')
593 This section contains brief descriptions of any new databases
594 introduced in Samba 3.0. Please remember to backup your existing
595 ${lock directory}/*tdb before upgrading to Samba 3.0. Samba will
596 upgrade databases as they are opened (if necessary), but downgrading
597 from 3.0 to 2.2 is an unsupported path.
599 Name Description Backup?
600 ---- ----------- -------
601 account_policy User policy settings yes
602 gencache Generic caching db no
603 group_mapping Mapping table from Windows yes
604 groups/SID to unix groups
605 winbindd_idmap ID map table from SIDS to UNIX yes
607 namecache Name resolution cache entries no
608 netsamlogon_cache Cache of NET_USER_INFO_3 structure no
609 returned as part of a successful
610 net_sam_logon request
611 printing/*.tdb Cached output from 'lpq no
612 command' created on a per print
614 registry Read-only samba registry skeleton no
615 that provides support for exporting
616 various db tables via the winreg RPCs
622 The following issues are known changes in behavior between Samba 2.2 and
623 Samba 3.0 that may affect certain installations of Samba.
625 1) When operating as a member of a Windows domain, Samba 2.2 would
626 map any users authenticated by the remote DC to the 'guest account'
627 if a uid could not be obtained via the getpwnam() call. Samba 3.0
628 rejects the connection as NT_STATUS_LOGON_FAILURE. There is no
629 current work around to re-establish the 2.2 behavior.
631 2) When adding machines to a Samba 2.2 controlled domain, the
632 'add user script' was used to create the UNIX identity of the
633 machine trust account. Samba 3.0 introduces a new 'add machine
634 script' that must be specified for this purpose. Samba 3.0 will
635 not fall back to using the 'add user script' in the absence of
636 an 'add machine script'
639 ######################################################################
640 Passdb Backends and Authentication
641 ##################################
643 There have been a few new changes that Samba administrators should be
644 aware of when moving to Samba 3.0.
646 1) encrypted passwords have been enabled by default in order to
647 inter-operate better with out-of-the-box Windows client
648 installations. This does mean that either (a) a samba account
649 must be created for each user, or (b) 'encrypt passwords = no'
650 must be explicitly defined in smb.conf.
652 2) Inclusion of new 'security = ads' option for integration
653 with an Active Directory domain using the native Windows
654 Kerberos 5 and LDAP protocols.
656 MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption
657 type which is neccessary for servers on which the
658 administrator password has not been changed, or kerberos-enabled
659 SMB connections to servers that require Kerberos SMB signing.
660 Besides this one difference, either MIT or Heimdal Kerberos
661 distributions are usable by Samba 3.0.
664 Samba 3.0 also includes the possibility of setting up chains
665 of authentication methods (auth methods) and account storage
666 backends (passdb backend). Please refer to the smb.conf(5)
667 man page for details. While both parameters assume sane default
668 values, it is likely that you will need to understand what the
669 values actually mean in order to ensure Samba operates correctly.
671 The recommended passdb backends at this time are
673 * smbpasswd - 2.2 compatible flat file format
674 * tdbsam - attribute rich database intended as an smbpasswd
675 replacement for stand alone servers
676 * ldapsam - attribute rich account storage and retrieval
677 backend utilizing an LDAP directory.
678 * ldapsam_compat - a 2.2 backward compatible LDAP account
681 Certain functions of the smbpasswd(8) tool have been split between the
682 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8)
683 utility. See the respective man pages for details.
686 ######################################################################
690 This section outlines the new features affecting Samba / LDAP
696 A new object class (sambaSamAccount) has been introduced to replace
697 the old sambaAccount. This change aids us in the renaming of attributes
698 to prevent clashes with attributes from other vendors. There is a
699 conversion script (examples/LDAP/convertSambaAccount) to modify and LDIF
700 file to the new schema.
704 $ ldapsearch .... -b "ou=people,dc=..." > old.ldif
705 $ convertSambaAccount <DOM SID> old.ldif new.ldif
707 The <DOM SID> can be obtained by running 'net getlocalsid <DOMAINNAME>'
708 on the Samba PDC as root.
710 The old sambaAccount schema may still be used by specifying the
711 "ldapsam_compat" passdb backend. However, the sambaAccount and
712 associated attributes have been moved to the historical section of
713 the schema file and must be uncommented before use if needed.
714 The 2.2 object class declaration for a sambaAccount has not changed
715 in the 3.0 samba.schema file.
717 Other new object classes and their uses include:
719 * sambaDomain - domain information used to allocate rids
720 for users and groups as necessary. The attributes are added
721 in 'ldap suffix' directory entry automatically if
722 an idmap uid/gid range has been set and the 'ldapsam'
723 passdb backend has been selected.
725 * sambaGroupMapping - an object representing the
726 relationship between a posixGroup and a Windows
727 group/SID. These entries are stored in the 'ldap
728 group suffix' and managed by the 'net groupmap' command.
730 * sambaUnixIdPool - created in the 'ldap idmap suffix' entry
731 automatically and contains the next available 'idmap uid' and
734 * sambaIdmapEntry - object storing a mapping between a
735 SID and a UNIX uid/gid. These objects are created by the
736 idmap_ldap module as needed.
738 * sambaSidEntry - object representing a SID alone, as a Structural
739 class on which to build the sambaIdmapEntry.
742 New Suffix for Searching
743 ------------------------
745 The following new smb.conf parameters have been added to aid in directing
746 certain LDAP queries when 'passdb backend = ldapsam://...' has been
749 * ldap suffix - used to search for user and computer accounts
750 * ldap user suffix - used to store user accounts
751 * ldap machine suffix - used to store machine trust accounts
752 * ldap group suffix - location of posixGroup/sambaGroupMapping entries
753 * ldap idmap suffix - location of sambaIdmapEntry objects
755 If an 'ldap suffix' is defined, it will be appended to all of the
756 remaining sub-suffix parameters. In this case, the order of the suffix
757 listings in smb.conf is important. Always place the 'ldap suffix' first
760 Due to a limitation in Samba's smb.conf parsing, you should not surround
761 the DN's with quotation marks.
767 Samba 3.0 supports an ldap backend for the idmap subsystem. The
768 following options would inform Samba that the idmap table should be
769 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
774 idmap backend = ldap:ldap://onterose/
775 ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
776 idmap uid = 40000-50000
777 idmap gid = 40000-50000
779 This configuration allows winbind installations on multiple servers to
780 share a uid/gid number space, thus avoiding the interoperability problems
781 with NFS that were present in Samba 2.2.
785 ######################################################################
786 Trust Relationships and a Samba Domain
787 ######################################
789 Samba 3.0.0beta2 is able to utilize winbindd as the means of
790 allocating uids and gids to trusted users and groups. More
791 information regarding Samba's support for establishing trust
792 relationships can be found in the Samba-HOWTO-Collection included
793 in the docs/ directory of this release.
795 First create your Samba PDC and ensure that everything is
796 working correctly before moving on the trusts.
798 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
799 4.0 domain named WINDOWS:
801 1) create the trust account for SAMBA in "User Manager for Domains"
802 2) connect the trust from the Samba domain using
803 'net rpc trustdom establish GLASS'
805 To create a trustlationship with SAMBA as the trusted domain:
807 1) create the initial trust account for GLASS using
808 'smbpasswd -a -i GLASS'. You may need to create a UNIX
809 account for GLASS$ prior to this step (depending on your
810 local configuration).
811 2) connect the trust from a WINDOWS DC using "User Manager
814 Now join winbindd on the Samba PDC to the SAMBA domain using
815 the normal steps for adding a Samba server to an NT4 domain:
816 (note that smbd & nmbd must be running at this point)
818 root# net rpc join -U root
819 Password: <enter root password from smbpasswd file here>
821 Start winbindd and test the join with 'wbinfo -t'.
823 Now test the trust relationship by connecting to the SAMBA DC
824 (e.g. POGO) as a user from the WINDOWS domain:
826 $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
829 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
831 $ smbclient //crystal/netlogon -U root -W WINDOWS
834 ######################################################################
838 Beginning with Samba3.0.0beta3, winbindd has been given new account
839 manage functionality equivalent to the 'add user script' family of
840 smb.conf parameters. The idmap design has also been changed to
841 centralize control of foreign SID lookups and matching to UNIX
845 Brief Description of Changes
846 ----------------------------
848 1) The sid_to_uid() family of functions (smbd/uid.c) have been
849 reverted to the 2.2.x design. This means that when resolving a
850 SID to a UID or similar mapping:
852 a) First consult winbindd
853 b) perform a local lookup only if winbindd fails to
854 return a successful answer
856 There are some variations to this, but these two rules generally
859 2) All idmap lookups have been moved into winbindd. This means that
860 a server must run winbindd (and support NSS) in order to achieve
861 any mappings of SID to dynamically allocated UNIX ids. This was
862 a conscious design choice.
864 3) New functions have been added to winbindd to emulate the 'add user
865 script' family of smbd functions without requiring that external
866 scripts be defined. This functionality is controlled by the 'winbind
867 enable local accounts' smb.conf parameter (enabled by default).
869 However, this account management functionality is only supported
870 in a local tdb (winbindd_idmap.tdb). If these new UNIX accounts
871 must be shared among multiple Samba servers (such as a PDC and BDCs),
872 it will be necessary to define your own 'add user script', et. al.
873 programs that place the accounts/groups in some form of directory
874 such as NIS or LDAP. This requirement was deemed beyond the scope
875 of winbind's account management functions. Solutions for
876 distributing UNIX system information have been deployed and tested
877 for many years. We saw no need to reinvent the wheel.
879 4) A member of a Samba controlled domain running winbindd is now able
880 to map domain users directly onto existing UNIX accounts while still
881 automatically creating accounts for trusted users and groups. This
882 behavior is controlled by the 'winbind trusted domains only' smb.conf
883 parameter (disabled by default to provide 2.2.x winbind behavior).
885 5) Group mapping support is wrapped in the local_XX_to_XX() functions
886 in smbd/uid.c. The reason that group mappings are not included
887 in winbindd is because the purpose of Samba's group map is to
888 match any Windows SID with an existing UNIX group. These UNIX
889 groups can be created by winbindd (see next section), but the
890 SID<->gid mapping is retreived by smbd, not winbindd.
896 * security = server running winbindd to allocate accounts on demand
898 * Samba PDC running winbindd to handle the automatic creation of UNIX
899 identities for machine trust accounts
901 * Automtically creating UNIX user and groups when migrating a Windows NT
902 4.0 PDC to a Samba PDC. Winbindd must be running when executing
903 'net rpc vampire' for this to work.
906 ######################################################################
910 * There are several bugs currently logged against the 3.0 codebase
911 that affect the use of NT 4.0 GUI domain management tools when run
912 against a Samba 3.0 PDC. This bugs should be released in an early
915 Please refer to https://bugzilla.samba.org/ for a current list of bugs
916 filed against the Samba 3.0 codebase.
919 ######################################################################
920 Reporting bugs & Development Discussion
921 #######################################
923 Please discuss this release on the samba-technical mailing list or by
924 joining the #samba-technical IRC channel on irc.freenode.net.
926 If you do report problems then please try to send high quality
927 feedback. If you don't provide vital information to help us track down
928 the problem then you will probably be ignored.
930 A new bugzilla installation has been established to help support the
931 Samba 3.0 community of users. This server, located at
932 https://bugzilla.samba.org/, has replaced the older jitterbug server
933 previously located at http://bugs.samba.org/.