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