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