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