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