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