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