r22: release notes for 3.0.3pre2
[samba.git] / WHATSNEW.txt
1                  =================================
2                  Release Notes for Samba 3.0.3pre2
3                           April 5, 2004
4                  =================================
5
6 This is a preview release of the Samba 3.0.3 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.2a 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 Substitution errors for %[UuGg] in smb.conf.
18   o winbindd crashes when using ADS security mode.
19   o SMB signing errors.
20
21 New features introduced in this preview release include:
22
23   o Experimental support for storing DOS attribute on files 
24     and folders in Extended Attributes.
25
26
27 ######################################################################
28 Changes
29 #######
30 smb.conf changes
31 ----------------
32
33     Parameter Name              Action
34     --------------              ------
35     unicode                     Removed
36     ea support                  New
37     store dos attributes        New
38
39     
40 commits
41 -------
42
43 o   Jeremy Allison <jra@samba.org>
44     * BUG 1064: Ensure truncate attribute checking is done correctly 
45       on "hidden" dot files.
46     * Fix bug in anonymous dfs self-referrals again.
47     * Fix get/set of EA's in client library
48     * Added support for OS/2 EA's in smbd server.
49     * Added 'ea support' parameter to smb.conf.
50     * Added 'store dos attributes' parameter to smb.conf.
51     * Fix wildcard identical rename.
52     * Fix reply_ctemp - make compatible with w2k3.
53     * Fix wildcard unlink.
54     * Fix wildcard src with wildcard dest renames.  
55
56
57 o   Andrew Bartlet <abartlet@samba.org>
58     * Remove 'unicode' smb.conf option.
59     * BUG 1138: Fix support for 'optional' SMB signing and other 
60       signing bugs.
61     * BUG 169: Fix NTLMv2-only behavior.
62
63
64 o   Timur Bakeyev <timur@com.bat.ru>
65     * BUG 1152: Allow python modules to build despite libraries added 
66       to LDFLAGS instead of LDPATH.
67
68
69 o   Gerald Carter <jerry@samba.org>
70     * BUG 417, 1128: Ensure that the current_user_info is set
71       consistently so that %[UuGg] is expanded correctly.
72     * BUG 1195: Fix crash in winbindd when the ADS server is 
73       unavailable.
74     * BUG 1185: Set reconnect time to be the same as the 
75       'winbind cache time'.
76     * Ensure that we return the sec_desc in smb_io_printer_info_2.
77     * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
78     * BUG 1095: Honor the '-l' option in smbclient.
79     * BUG 1023: surround get_group_from_gid() with become_unbecome_root() 
80       block.
81
82
83 o   Steve French <sfrench@us.ibm.com>
84     * Fix credential file mounting for cifs vfs.
85
86
87 o   Richard Garnish <rabies@meep.org>
88     * Correct blocking condition in smbd's use of accept() on IRIX.
89
90
91 o   Volker Lendecke <vl@samba.org>
92     * Implement wbinfo -k: Have winbind generate an AFS token after
93       authenticating the user.
94     * Add expand_msdfs VFS module for providing referrals based on the
95       the client's IP address.
96     * Implement client side NETLOGON GetDCName function.
97
98
99 o   Jianliang Lu <j.lu@tiesse.com>
100     * NTLMv2 fixes.
101
102     
103 o   Jim McDonough <jmcd@us.ibm.com>
104     * BUG 1208 (partial): Improvements for working with expired krb5 
105       tickets in winbindd.
106     * Use timegm, or our already existing replacement instead of 
107       timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
108
109
110 o   Andrew Tridgell <tridge@samba.org>
111     * Change tdb license to LGPL (see source/tdb/tdb.c).
112     
113     
114 Changes for older versions follow below:
115
116         --------------------------------------------------
117
118                  =================================
119                  Release Notes for Samba 3.0.3pre1
120                           March 19, 2004
121                  =================================
122
123
124 Common bugs fixed in this preview release include:
125
126   o Crash bugs and change notify issues in Samba's
127     printing code.
128   o Honoring secondary group membership on domain
129     member servers.
130   o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST
131     flag.
132
133 New features introduced in this preview release include:
134
135   o Improved support for i18n character sets.
136   o Support for account lockout policy based on
137     bad password attempts.
138   o Improved support for long password changes (>14
139     characters) and strong password enforcement.
140   o Continued work on support Windows aliases (i.e.
141     nested groups).
142
143
144 Changes since 3.0.2a
145 --------------------
146 smb.conf changes
147 ----------------
148
149     Parameter Name              Action
150     --------------              ------
151     only user                   Deprecated
152     use cracklib                New
153
154     
155 Please refer to the CVS log for the SAMBA_3_0 branch for complete
156 details.  The list of changes per contributor are as follows:
157
158
159 commits
160 -------
161
162 o   Jeremy Allison <jra@samba.org>
163     * Ensure that Kerberos mutex is always properly unlocked.
164     * Removed Heimdal "in-memory keytab" support.
165     * Fixup the 'multiple-vuids' bugs in our server code.
166     * Correct return code from lsa_lookup_sids() on unmapped
167       sids (based on work by vl@samba.org).
168     * Fix the "too many fcntl locks" scalability problem 
169       raised by tridge.
170     * Fixup correct (as per W2K3) returns for lookupsids 
171       as well as lookupnames.
172     * Fixups for delete-on-close semantics as per Win2k3 behavior.
173     * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
174     * Fix "unable to initialize" bug when smbd hasn't been run with 
175       new system and a user is being added via pdbedit/smbpasswd.
176     * Added NTrename SMB (0xA5).
177     * Fixup correct timeout values for blocking lock timeouts.
178     * Fix various bugs reported by 'gentest'.
179     * More locking fixes in the case where we own the lock.
180     * Fix up regression in IS_NAME_VALID and renames.
181     * Don't set allocation size on directories.
182     * Return correct error code on fail if file exists and target 
183       is a directory.
184     * Added client "hardlink" comment to test doing NT rename with 
185       hard links.  Added hardlink_internals() code - UNIX extensions 
186       now use this as well.
187     * Use a common function to parse all pathnames from the wire for 
188       much closer emulation of Win2k3 error return codes.
189     * Implement check_path_syntax() and rewrite string sub 
190       functions for better multibyte support.
191     * Ensure msdfs referrals are multibyte safe.
192     * Allow msdfs symlink syntax to be more forgiving.
193       eg. sym_link -> msdfs://server/share/path/in/share 
194       or  sym_link -> msdfs:\\server\share\path\in\share.
195     * Cleanup multibyte netbios name support in nmbd ( based on patch
196       by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
197     * Fix check_path_syntax() for multibyte encodings which have 
198       no '\' as second byte (based on work by ab@samba.org.
199     * Fix the "dfs self-referrals as anonymous user" problem
200       (based on patch from vl@samba.org).
201
202
203 o   Timur Bakeyev <timur@com.bat.ru>
204     * BUG 1144: only set --with-fhs when the argument is 'yes'
205
206     
207 o   Craig Barratt <cbarratt@users.sourceforge.net>
208     * BUG 389: Allow multiple exclude arguments with smbclient 
209       tar -Xr options (better support for Amanda backup client).
210
211
212 o   Andrew Bartlet <abartlet@samba.org>
213     * Include support for linking with cracklib for enforcing strong 
214       password changes.
215     * Add support for >14 character password changes from Windows 
216       clients.
217     * Add 'admin set password' capability to 'net rpc'.
218     * Allow 'net rpc samdump' to work with any joined domain 
219       regardless of smb.conf settings.
220     * Use an allocated buffer for count_chars.
221     * Add sanity checks for changes in the domain SID in an 
222       LDAP DIT.
223     * Implement python unit tests for Samba's multibyte string 
224       support.
225
226
227 o   Alexander Bokovoy <ab@samba.org>
228     * Fix incorrect size calculation of the directory name 
229       in recycle.so.
230     * Fix problems with very long filenames in both smbd and smbclient
231       caused by truncating paths during character conversions.
232
233
234 o   Gerald (Jerry) Carter <jerry@samba.org>
235     * BUG 850: Fix 'make installmodules' bug on True64.
236     * BUG 66: mark 'only user' deprecated.
237     * Remove corrupt tdb and shutdown (only for printing tdbs, 
238       connections, sessionid & locking).
239     * decrement smbd counter in connections.tdb in smb_panic().
240     * RedHat specfile updates.
241     * Fix xattr.h build issue on Debian testing and SuSE 8.2.
242     * BUG 1147; bad pointer case in get_stored_queue_info() 
243       causing seg fault.
244     * BUG 761: read the config file before initialized default 
245       values for printing options; don't default to bsd printing 
246       Linux.
247     * Allow the 'printing' parameter to be set on a per share basis.
248     * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
249     * BUG 848: don't create winbind local users/groups that already 
250       exist in the tdb.
251     * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on 
252       LynxOS/ppc).
253     * BUG 488: fix the 'show client in col 1' button and correctly 
254       enumerate active connections.
255     * BUG 1007 (partial): Fix abort in smbd caused by byte ordering 
256       problem when storing the updating pid for the lpq cache.
257     * BUG 1007 (partial): Fix print change notify bugs.
258     * BUG 1165, 1126: Fix bug with secondary groups (security = ads) 
259       and winbind use default domain = yes.  Also ensures that 
260     * BUG 1151: Ensure that winbindd users are passed through 
261       the username map.
262     * Fix client rpc binds for ASU derived servers (pc netlink, 
263       etc...).
264       
265
266 o   Robert Dahlem <Robert.Dahlem@gmx.net>
267     * BUG 1048:  Don't return short names when when 'mangled names = no'
268
269
270 o   Guenther Deschner <gd@suse.com>
271     * Remove hard coded attribute name in the ads ranged retrieval
272       code.
273     * Add --with-libdir and --with-mandir to autoconf script.
274
275
276 o   Bostjan Golob <golob@gimb.org>
277     * BUG 1046: Fix  getpwent_list() so that the username is not 
278       overwritten by other fields.
279
280
281 o   Steve French <sfrench@us.ibm.com>
282     * Update mount.cifs to version 1.1.
283     * Disable dev (MS_NODEV) on user mounts from cifs vfs.
284     * Fixes to minor security bug in the mount helper.
285
286
287 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
288     * BUG 1055; formatting fixes for 'net share'.
289     * BUG 692: correct truncation of share names and workgroup 
290       names in smbclient.
291     * BUG 1088: use strchr_m() for query_host (smbclient -L).
292     * Patch from to internally count characters correctly.
293
294
295 o   Chris Hertel <crh@samba.org>
296     * fix enumeration of shares 12 characters in length via 
297       smbclient.
298
299 o   Ulrich Holeschak <ulrich@holeschak.de>
300     * BUG 932: fix local password change using pam_smbpass
301
302
303 o   John Klinger <john.klinger@lmco.com>
304     * Return NSS_SUCCESS once the max number of gids possible 
305        has been found in initgroups() on Solaris.
306     * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
307
308
309 o   Volker Lendecke <vl@samba.org>
310     * Fix success message for net groupmap modify.
311     * Fix errors when enumerating members of groups in 'net rpc'.
312     * Match Windows behavior in samr_lookup_names() by returning
313       ALIAS(4) when you search in BUILTIN. 
314     * Fix server SAMR code to be able to set alias info for 
315       builtin as well. 
316     * Fix duplication of logic when creating groups via smbd.
317     * Ensure that the HWM values are set correctly after running 
318       'net idmap'.
319     * Add 'net rpc group add'.
320     * Implement 'net groupmap set' and 'net groupmap cleanup'.
321     * Add 'net rpc group [add|del]mem' for domain groups and aliases.
322     * Fix wb_delgrpmem (wbinfo -o).
323     * As a DC we should not reply to lsalookupnames on DCNAME\\user.
324     * Fix sambaUserWorkstations on a Samba DC.
325
326
327 o   Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
328     * Bug fixes and enhancements to libsmbclient library.
329
330
331 o   Herb Lewis <herb@samba.org>
332     * Fix typo for tag in proto file.
333     * Add missing #ifdef HAVE_BICONV stuff.
334     * Truncate Samba's netbios name at the first '.' (not 
335       right to left).
336     
337
338 o   Jianliang Lu <j.lu@tiesse.com>
339     * Enforce the 'user must change password at next login' flag.
340     * Decode meaning of 'fields present' flags (improves support 
341       for usrmgr.exe).
342
343
344 o   L. Lucius <ib@digicron.com>.
345     * type fixes.
346
347
348 o   Jim McDonough <jmcd@us.ibm.com>
349     * Add versioning support to tdbsam.
350     * Update the IBM Directory Server schema with the OpenLDAP 
351       file.
352     * Various decoding fixes to improve usrmgr.exe support.
353     * Fix statfs redeclaration of statfs struct on ppc
354     * Implement support for password lockout of Samba domain 
355       controllers and standalone servers.
356     * Get MungedDial attribute actually working with full TS 
357       strings in it for pdb_ldap.
358
359
360 o    Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
361      o BUG 979 -- Fix quota display on AIX.
362
363
364 o   James Peach <jpeach@sgi.com>
365     * Correct check for printf() format when using the SGI MIPSPro 
366       compiler.
367     * BUG 1038: support backtrace for 'panic action' on IRIX.
368     * BUG 768: Accept profileing arg to IRIX init script.
369     * BUG 748: Relax arg parsing to sambalp script (IRIX).
370     * BUG 758: Fix pdma build.
371
372
373 o   Tim Potter <tpot@samba.org>
374     * Fix logic bug in tdb non-blocking lock routines when 
375       errno == EAGAIN.
376     * BUG 1025: Include sys/acl.h in check for broken nisplus 
377       include files.      
378     * BUG 1066: s/printf/d_printf/g in SWAT.
379     * BUG 1098: rename internal msleep() function to fix build 
380       problems on AIX.
381     * BUG 1112: Fix for writable printerdata problem in python bindings.
382     * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
383     * BUG 1155: enclose use of fchown() with guards.
384       
385
386 o   Simo Source <idra@samba.org>
387     * Replace unknown_3 with fields_present in SAMR code.
388     * More length checks in strlcat().
389
390
391 o   Richard Sharpe <rsharpe@samba.org>
392     * Add support to smbclient for multiple logins on the same 
393       session (based on work by abartlet@samba.org).
394
395
396 o   Andrew Tridgell <tridge@samba.org>
397     * Rewrote the AIX UESS backend for winbindd.
398     * Fixed compilation with --enable-dmalloc.
399     
400     
401 o   Jelmer Vernooij <jelmer@samba.org>
402    * Fix ETA Calculation when resuming downloads in smbget.
403    * Add -O (for writing downloaded files to standard out) 
404      based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
405
406
407 o   TAKEDA yasuma <yasuma@miraclelinux.com>
408     * BUG 900: fix token processing in cmd_symlink, cmd_link, 
409       cmd_chown, cmd_chmod smbclient functions.
410
411
412 o    Shiro Yamada <shiro@miraclelinux.com>
413      * BUG 1129: install image files for SWAT.
414       
415
416         --------------------------------------------------
417
418                   ==============================
419                   Release Notes for Samba 3.0.2a
420                         February 13, 2004
421                   ==============================
422
423 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
424 to address, in particular, a problem when using pdbedit to 
425 sanitize (--force-initialized-passwords) Samba's tdbsam 
426 backend.   This is the latest stable release of Samba. This 
427 is the version that all production Samba servers should be 
428 running for all current bug-fixes.  
429
430 ******************* Attention! Achtung! Kree! *********************
431
432 Beginning with Samba 3.0.2, passwords for accounts with a last 
433 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
434 ldapsam, etc...) of zero (0) will be regarded as uninitialized 
435 strings.  This will cause authentication to fail for such
436 accounts.  If you have valid passwords that meet this criteria, 
437 you must update the last change time to a non-zero value.  If you 
438 do not, then  'pdbedit --force-initialized-passwords' will disable 
439 these accounts and reset the password hashes to a string of X's.
440
441 ******************* Attention! Achtung! Kree! *********************
442
443
444 Changes since 3.0.2
445 -------------------
446
447 commits
448 -------
449
450 Please refer to the CVS log for the SAMBA_3_0 branch for complete
451 details.  The list of changes per contributor are as follows:
452
453
454 o   Jeremy Allison <jra@samba.org>
455     * Added paranoia checks in parsing code.
456     
457
458 o   Andrew Bartlet <abartlet@samba.org>
459     * Ensure that changes to uninitialized passwords in ldapsam 
460       are written to the DIT.
461
462
463 o   Gerald (Jerry) Carter <jerry@samba.org>
464     * Fixed iterator in tdbsam.
465     * Fix bug that disabled accounts with a valid NT password 
466       hash, but no LanMan hash.
467     
468
469 o   Steve French <sfrench@us.ibm.com>
470     * Added missing nosetuid and noexec options.
471
472     
473 o   Bostjan Golob <golob@gimb.org>
474     * BUG 1046: Don't overwrite usernames of entries returned 
475       by getpwent_list().
476
477
478 o   Sebastian Krahmer <krahmer@suse.de>
479     * Fixed potential crash bug in NTLMSSP parsing code.
480
481
482 o   Tim Potter <tpot@samba.org>
483     * Fixed logic in tdb_brlock error checking.
484
485     
486 o   Urban Widmark <urban@teststation.com>
487     * Set nosuid,nodev flags in smbmnt by default.
488     
489     
490         --------------------------------------------------
491                   
492                   =============================
493                   Release Notes for Samba 3.0.2
494                         February 9, 2004
495                   =============================
496
497 It has been confirmed that previous versions of Samba 3.0 are
498 susceptible to a password initialization bug that could grant an 
499 attacker unauthorized access to a user account created by the
500 mksmbpasswd.sh shell script.
501
502 The Common Vulnerabilities and Exposures project (cve.mitre.org) 
503 has assigned the name CAN-2004-0082 to this issue.
504
505 Samba administrators not wishing to upgrade to the current 
506 version should download the 3.0.2 release, build the pdbedit 
507 tool, and run 
508
509    root# pdbedit-3.0.2 --force-initialized-passwords
510       
511 This will disable all accounts not possessing a valid password
512 (e.g. the password field has been set a string of X's).
513
514 Samba servers running 3.0.2 are not vulnerable to this bug 
515 regardless of whether or not pdbedit has been used to sanitize
516 the passdb backend.
517
518 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
519 release include:
520
521   o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
522   o Logging onto a Samba domain from Windows XP clients.
523   o Problems with the %U and %u smb.conf variables in relation to 
524     Windows 9x/ME clients.
525   o Kerberos failures due to an invalid in memory keytab detection
526     test.
527   o Updates to the ntlm_auth tool.
528   o Fixes for various SMB signing errors.
529   o Better separation of WINS and DNS queries for domain controllers.
530   o Issues with nss_winbind FreeBSD and Solaris.
531   o Several crash bugs in smbd and winbindd.
532   o Output formatting fixes for smbclient for better compatibility
533     with scripts based on the 2.2 version.
534
535
536 Changes since 3.0.1
537 -------------------
538
539 smb.conf changes
540 ----------------
541
542     Parameter Name              Action
543     --------------              ------
544     ldap replication sleep      New
545     read size                   removed (unused)
546     source environment          removed (unused)
547
548
549 commits
550 -------
551
552 Please refer to the CVS log for the SAMBA_3_0 branch for complete
553 details.  The list of changes per contributor are as follows:
554
555 o   Jeremy Allison <jra@samba.org>
556     * Revert change that broke Exchange clear text samlogons.
557     * Fix gcc 3.4 warning in MS-DFS code.
558     * Tidy up of NTLMSSP code.
559     * Fixes for SMB signing errors
560     * BUG 815: Workaround NT4 bug to support plaintext
561       password logins and UNICODE.
562     * Fix SMB signing bug when copying large files.
563     * Correct error logic in mkdir_internals() (caused a panic
564       when combined with --enable-developer).
565     * BUG 830: Protect against crashes due to bad character 
566       conversions.
567
568       
569 o   Petri Asikainen <paca@sci.fi>
570     * BUG 330, 387:Fix single valued attribute updates when 
571       working with Novell NDS.
572
573
574 o   Andrew Bartlet <abartlet@samba.org>
575     * Correctly handle per-pipe NTLMSSP inside a NULL session.
576     * Fix segfault in gencache 
577     * Fix early free() of encrypted_session_key.
578     * Change DC lookup routines to more carefully separate
579       DNS names (realms) from NetBIOS domain names.
580     * Add new sid_to_dn() function for internal winbindd use.
581     * Refactor cli_ds_enum_domain_trusts().
582     * BUG 707: Implement range retrieval of ADS attributes (based 
583       on work from Volker <vl@samba.org> and Guenther Deschner 
584       <gd@suse.com>).
585     * Automatically initialize the signing engine if a session key
586       is available.
587     * BUG 916: Do not perform a + -> ' ' substitution for squid URL 
588       encoded strings, only form input in SWAT.
589     * Resets the NTLMSSP state for new negotiate packets.
590     * Add 2-byte alignments in net_samlogon() queries to parse 
591       odd-length plain text passwords.
592     * Allow Windows groups with no members in winbindd.
593     * Allow normal authentication in the absence of a server 
594       generated session key.
595     * More optimizations for looking up UNIX group lists.
596     * Clean up error codes and return values for pam_winbindd
597       and winbindd PAM interface.
598     * Fix string return values in ntlm_auth tool.
599     * Fix segfault when 'security = ads' but no realm is defined.
600     * BUG 722: Allow winbindd to map machine accounts to uids.
601     * More cleanups for winbindd's find_our_domain().
602     * More clearly detect whether a domain controller is an NT4
603       or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
604     * Increase separation between DNS queries for hosts and queries
605       for AD domain controllers.
606     * Include additional NT_STATUS to PAM error mappings.
607     * Password initialization fixes.
608
609     
610 o   Justin Baugh <justin.baugh@request.com>
611     * BUG 948: Implement missing functions required for FreeBSD 
612       nss_winbind support. 
613
614
615 o   Alexander Bokovoy <ab@samba.org>
616     * BUG 922: Make sure enable fast path for strlower_m() and 
617       strupper_m().
618
619
620 o   Luca Bolcioni <Luca.Bolcioni@yacme.com>
621     * Fix crash when using 'security = server' and 'encrypt 
622       passwords = no' by always initializing the session key.
623
624       
625 o   Dmitry Butskoj <buc@odusz.elektra.ru>
626     * Fix for special files being hidden from admins.
627
628
629 o   Gerald (Jerry) Carter <jerry@samba.org>
630     * Fix bug in the lanman session key generation.  Caused 
631       "decode_pw: incorrect password length" error messages.
632     * Save the right case for the located user name in 
633       fill_sam_account().  Fixes %U/%u expansion for win9x clients.
634     * BUG 897: Add well known rid for pre win2k compatible access
635       group.
636     * BUG 887: Correct typo in delete user script example.
637     * Use short lived TALLOC_CTX* for allocating printer objects 
638       from the print handle cache.
639     * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
640     * Fix several warnings reported by the SUN Forte C compiler.
641     * Fully control DNS queries for AD DC's using 'name resolve order'.
642     * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
643     * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
644     * BUG 936: fix bind credentials for schannel binds in smbd.
645     * BUG 446: Fix output of smbclient for better compatibility 
646       with scripts based on the 2.2 version (including Amanda).
647     * BUG 891, 949: Fedora packaging fixes.
648     * Fix bug that caused rpcclient to incorrectly retrieve 
649       the SID for a server (this causing all calls that required 
650       this information to fail). 
651     * BUG 977: Don't create a homes share for a user if a static 
652       share already exists by the same name.
653     * Removed unused smb.conf options.
654     * Password initialization fixes.
655     * Set the disable flag for template accounts created by
656       mksmbpasswd.sh.
657     * Disable any account has no passwords and does not have the
658       ACB_PWNOTREQ bit set.
659
660
661 o   Guenther Deschner <gd@suse.com>
662     * Install smbwrapper.so should be put into the $(libdir) 
663       and not $(bindir).
664     * Add the capability to specify the new user password 
665       for "net ads password" on the command line.
666     * Correctly detect AFS headers on SuSE.
667         
668
669 o   James Flemer <jflemer@uvm.edu>
670     * Fix AIX compile bug by linking HAVE_ATTR_LIST to 
671       HAVE_SYS_ATTRIBUTES_H.
672
673
674 o   Luke Howard <lukeh@PADL.COM>
675     * Fix segfault in session setup reply caused by a early free().
676
677
678 o   Stoian Ivanov <sdr@bultra.com>
679     * Implement grepable output for smbclient -L.
680
681
682 o   LaMont Jones <lamont@debian.org>
683     * BUG 225328 (Debian): Correct false failure LFS test that resulted 
684       in  _GNU_SOURCE not being defined (thus resulting in strndup() 
685       not being defined).
686
687       
688 o   Volker Lendecke <vl@samba.org>
689     * BUG 583: Ensure that user names always contain the short 
690       version of the domain name.
691     * Fix our parsing of the LDAP uri.
692     * Don't show the 'afs username map' in the SWAT basic view.
693     * Fix SMB signing issues in relation to failed NTLMSSP logins.
694     * BUG 924: Fix return codes in smbtorture harness.
695     * Always lower-case usernames before handing it to AFS code.
696     * Add a German translation for SWAT.
697     * Fix a segfaults in winbindd.
698     * Fix the user's domain passed to register_vuid() from 
699       reply_spnego_kerberos().
700     * Add NSS example code in nss_winbind to convert UNIX 
701       id's <-> Windows SIDs.
702     * Display more descriptive error messages for login via 'net'.
703     * Fix compiler warning in the net tool.
704     * Fix length bug when decoding base64 strings.
705     * Ensure we don't call getpwnam() inside a loop that is iterating 
706       over users with getpwent().  This broke on glibc 2.3.2.
707
708
709 o   Herb Lewis <herb@samba.org>
710     * Fix bit rot in psec.
711
712
713 o   Jianliang Lu <j.lu@tiesse.com>
714     * Ensure we delete the group mapping before calling the delete 
715       group script.
716     * Define well known RID for managing the  "Power Users" group.
717     * BUG 381: check builtin (not local) group SID when updating 
718       group membership.
719     * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement 
720       packet.
721
722
723 o   John Klinger <john.klinger@lmco.com>
724     * Implement initgroups() call in nss_winbind on Solaris.
725
726
727 o   Jim McDonough <jmcd@us.ibm.com>
728     * Fix regression in net rpc join caused by recent changes 
729       to cli_lsa_query_info_policy().
730     * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
731       machine account.
732
733
734 o   MORIYAMA Masayuki <moriyama@miraclelinux.com>
735     * BUG 570: Ensure that configure honors the LDFLAGS variable.
736
737
738 o   Stefan Metzmacher <metze@samba.org>
739     * Implement LDAP rebind sleep patch.
740     * Revert to 2.2 quota code because of so many broken quota files 
741       out there.
742     * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
743                       XFS_USER_QUOTA -> USRQUOTA
744                       XFS_GROUP_QUOTA -> GRPQUOTA
745     * Fix disk_free calculation with group quotas.
746     * Add debug class 'quota' and a lot of DEBUG()'s 
747       to the quota code.
748     * Fix sys_chown() when no chown() is present.
749     * Add SIGABRT to fault handling in order to catch got a 
750       backtrace if an error occurs the OpenLDAP client libs.
751
752
753 o   <ndb@theghet.to>
754     * Allow an existing LDAP machine account to be re-used when 
755       joining an AD domain.
756
757
758 o   James Peach <jpeach@sgi.com>
759     * BUG 889: Change smbd to use pread/pwrite on platforms that 
760       support these calls. Can lead to a significant speed increase.
761
762
763 o   Tim Potter <tpot@samba.org>
764     * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
765     * BUG 924: Fix typo in RW2 torture test.
766     
767     
768 o   Richard Sharpe <shape@samba.org>
769     * Small fixes to torture.c to cleanup the error handling 
770       and prevent crashes.
771
772
773 o   J. Tournier <jerome.tournier@IDEALX.com>
774     * Small fixes for the smbldap-tool scripts.
775
776
777 o   Andrew Tridgell <tridge@samba.org>
778     * Fix src len check in pull_usc2().
779     
780     
781 o   Jelmer Vernooij <jelmer@samba.org>
782     * Put functions for generating SQL queries in pdb_sql.c
783     * Add pgSQL backend (based on patch by Hamish Friedlander)
784     * BUG 908: Fix -s option to smbcontrol.    
785     * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
786     * Fix for libnss_wins on IRIX platforms.
787     * Fix swatdir for --with-fhs.
788
789
790         --------------------------------------------------
791
792                   =============================
793                   Release Notes for Samba 3.0.1
794                         December 15, 2003
795                   =============================
796
797 Some of the more common bugs in 3.0.0 addressed in the release 
798 include:
799
800   o Substitution problems with smb.conf variables.
801   o Errors in return codes which caused some applications
802     to fail to open files.
803   o General Protection Faults on Windows 2000/XP clients
804     using Samba point-n-print features.
805   o Several miscellaneous crash bugs.
806   o Access problems when enumerating group mappings are
807     stored in an LDAP Directory.
808   o Several common SWAT bugs when writing changes to
809     smb.conf.
810   o Internal inconsistencies when 'winbind use default
811     domain = yes'
812
813
814
815 Changes since 3.0.0
816 ----------------------
817
818     Parameter Name              Action
819     --------------              ------
820     hide local users            Removed
821     mangled map                 Deprecated
822     mangled stack               Removed
823     passwd chat timeout         New
824
825
826 commits
827 -------
828
829 o   Change the interface for init_unistr2 to not take a length 
830     but a flags field.  We were assuming that 
831     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
832 o   Allow d_printf() to handle strings with escaped quotation 
833     marks since the msg file includes the escape character (bug 489).
834 o   Fix bad html table row termination in SWAT wizard code (bug 413).
835 o   Fix to parse the level-2 strings.
836 o   Fix for "valid users = %S" in [homes].  Fix read/write 
837     list as well. 
838 o   Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
839     This is the same way AC_CHECK_LIB works (bug 508).
840 o   Testparm output fixes for clarity.
841 o   Fix broken wins hook functionality -- i18n bug (bug 528).
842 o   Take care of condition where DOS and NT error codes must differ.
843 o   Default to using only built-in charsets when a working iconv 
844     implementation cannot be located.
845 o   Wrap internals of sys_setgroups() so the sys_XX() call can 
846     be done unconditionally (bug 550).
847 o   Remove duplicate smbspool link on SWAT's front page (bug 541).
848 o   Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
849     --enable-debug=[yes|no] works correctly.
850 o   Allow ^C to interrupt smbpasswd if using our getpass 
851     (e.g. smbpasswd command).
852 o   Support signing only on RPC's (bug 167).
853 o   Correct bug that prevented  Excel 2000 clients from opening 
854     files marked as read-only.
855 o   Portability fix bugs 546 - 549).
856 o   Explicitly initialize the value of AR for vendor makes that don't
857     do this (e.g. HPUX 11).  (bug 552).
858 o   More i18n fixes for SWAT (bug 413).
859 o   Change the cwd before the postexec script to ensure that a
860     umount will succeed.
861 o   Correct double free that caused winbindd to crash when a DC 
862     is rebooted (bug 437).
863 o   Fix incorrect mode sum (bug 562).
864 o   Canonicalize SMB_INFO_ALLOCATION in the same was as
865     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
866 o   Add script to generate *msg files.
867 o   Add Dutch SWAT translation file.
868 o   Make sure to call get_user_groups() with the full winbindd 
869     name for a user if he/she has one (bug 406).
870 o   Fix up error code returns from Samba4 tester. Ensure invalid 
871     paths are validated the same way.  
872 o   Allow Samba3 to pass the Samba4 RAW-READ tests.
873 o   Refuse to configure if --with-expsam=$BACKEND was used but no 
874     libraries were found for $BACKEND.
875 o   Move sysquotas autoconf tests to a separate file.
876 o   Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
877     tester
878 o   Make sure that the files that contain the static_init_$subsystem; 
879     macro get recompiled after configure by removing the object 
880     files.
881 o   Ensure canceling a blocking lock returns the correct error 
882     message.
883 o   Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
884 o   Updated Japanese welcome file in SWAT.
885 o   Fix to  nt-time <-> unix-time functions reversible.
886 o   Ensure that winbindd uses the the escaped DN when querying
887     an AD ldap server.
888 o   Fix portability issues when compiling (bug 505, 550)
889 o   Compile fix for tdbbackup when Samba needs to override 
890     non-C99 compliant implementations of snprintf().
891 o   Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
892 o   Make sure we break out of samsync loop on error.
893 o   Ensure error code path doesn't free unmalloc()'d memory
894     (bug 628).
895 o   Add configure test for krb5_keytab_entry keyblock vs key 
896     member (bug 636).
897 o   Fixed spinlocks.
898 o   Modified testparm so that all output so all debug output goes 
899     to stderr, and all file processing goes to stdout.
900 o   Fix error return code for BUFFER_TOO_SMALL in smbcacls 
901     and smbcquotas.
902 o   Fix "NULL dest in safe_strcpy()" log message by ensuring that 
903     we have a devmode before copying a string to the devicename.
904 o   Support mapping REALM.COM\user to a local user account (without 
905     running winbindd)  for compatibility with 2.2.x release.
906 o   Ensure we don't use mmap() on blacklisted systems.
907 o   fixed a number of bugs and memory leaks in the AIX 
908     winbindd shim
909 o   Call initgroups() in SWAT before becomming the user so that
910     secondary group permissions can be used when writing to 
911     smb.conf.
912 o   Fix signing problems when reverse connecting back to a 
913     client for printer notify
914 o   Fix signing problems caused by a miss-sequence bug.
915 o   Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
916     Fixes NEXUS tools running on Win9x clients (bug 64).
917 o   Don't leave the domain field uninitialized in cli_lsa.c if some 
918     SID could not be mapped.
919 o   Fix segfault in mount.cifs helper when there is no options 
920     specified during mount.
921 o   Change the \n after the password prompt to go to tty instead 
922     of stdout (bug 668).
923 o   Stop net -P from prompting for machine account password (bug 451).
924 o   Change in behavior to Not only change the effective uid but also
925     the real uid when becoming unprivileged.
926 o   Cope with Exchange 5.5 cleartext pop password auth.
927 o   New files for support of initshutdown pipe.  Win2k doesn't 
928     respond properly to all requests on the winreg pipe, so we need 
929     to handle this new pipe (bug 534).
930 o   Added more va_copy() checks in configure.in.
931 o   Include fixes for libsmbclient build problems.
932 o   Missing UNIX -> DOS codepage conversion in lanman.c.
933 o   Allow DFMS-S filenames can now have arbitrary case (bug 667).
934 o   Parameterize the listen backlog in smbd and make it larger by
935     default. A backlog of 5 is way too small these days.
936 o   Check for an invalid fid before dereferencing the fsp pointer
937     (bug 696).
938 o   Remove invalid memory frees and return codes in pdb_ldap.c.
939 o   Prompt for password when invoking --set-auth-user and no 
940     password is given.
941 o   Bind the nmbd sending socket to the 'socket address'.
942 o   Re-order link command for smbd, rpcclient and smbpasswd to ensure 
943     $LDFLAGS occurs before any library specification (bug 661).
944 o   Fix large number of printf() calls for 64-bit size_t.
945 o   Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
946     keyblock in the krb5 structs.
947 o   Remove #include <compat.h> in hopes to avoid problems with 
948     apache header files.
949 o   Correct winbindd build problems on HP-UX 11.
950 o   Lowercase netgroups lookups (bug 703).
951 o   Use the actual size of the buffer in strftime instead of a made
952     up value which just happens to be less than sizeof(fstring).  
953     (bug 713).
954 o   Add ldaplibs to pdbedit link line (bug 651).
955 o   Fix crash bug in smbclient completion (bug 659).
956 o   Fix packet length for browse list reply (bug 771).
957 o   Fix coredump in cli_get_backup_list().
958 o   Make sure that we expand %N (bug 612).
959 o   Allow rpcclient adddriver command to specify printer driver 
960     version (bug 514).
961 o   Compile tdbdump by default.
962 o   Apply patches to fix iconv detection for FreeBSD.
963 o   Do not allow the 'guest account' to be added to a passdb backend 
964     using smbpasswd or pdbedit (bug 624).
965 o   Save LDFLAGS during iconv detection (bug 57).
966 o   Run krb5 logins through the username map if the winbindd 
967     lookup fails (bug 698).
968 o   Add const for lp_set_name_resolve_order() to avoid compiler 
969     warnings (bug 471).
970 o   Add support for the %i macro in smb.conf to stand in for the for
971     the local IP address to which a client connected.
972 o   Allow winbindd to match local accounts to domain SID when 
973     'winbind trusted domains only = yes' (bug 680).
974 o   Remove code in idmap_ldap that searches the user suffix and group 
975     suffix.  It's not needed and provides inconsistent functionality 
976     from the tdb backend.
977 o   Patch to handle munged dial string for Windows 2000 TSE.
978     Thanks to Gaz de France, Direction de la Recherche, Service 
979     Informatique Métier for their supporting this work by Aurelien 
980     Degrémont <adegremont@idealx.com>.
981 o   Correct the "smbldap_open: cannot access when not root error"
982     messages when looking up group information (bug 281).
983 o   Skip over the winbind separator when looking up a user.
984     This fixes the bug that prevented local users from
985     matching an AD user when not running winbindd (bug 698).
986 o   Fix a problem with configure on *BSD systems. Make sure
987     we add -liconv etc to LDFLAGS.
988 o   Fix core dump bug when "security = server" and the authentication
989     server goes away.
990 o   Correct crash bug due to an empty munged dial string.
991 o   Show files locked by a specific user (smbstatus -u 'user') 
992     (bug 590).
993 o   Fix bug preventing print jobs from display in the queue
994     monitor used by Windows NT and later clients (bug 660).
995 o   Fix several reported problems with point-n-print from
996     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
997     reply (bug 338, 527 & 643).
998 o   Fix a handful of potential memory leaks in the LDAP code used
999     by ldapsam[_compat] and the LDAP idmap backend.
1000 o   Fix for pdbedit error code returns (bug 763).
1001 o   Make sure we only enumerate group mapping entries  (not 
1002     /etc/group) even when doing local aliases.
1003 o   Relax check on the pipe name in a dce/rpc bind response to work 
1004     around issues with establishing trusts to a Windows 2003 domain.
1005 o   Ensure we mangle names ending in '.' in hash2 mangling method.
1006 o   Correct parsing issues with munged dial string.
1007 o   Fix bugs in quota support for XFS.
1008 o   Add a cleaner method for applications that need to provide 
1009     name->SID mappings to do this via NSS rather than having to 
1010     know the winbindd pipe protocol.
1011 o   Adds a variant of the winbindd_getgroups() call called 
1012     winbindd_getusersids() that provides direct SID->SIDs listing of 
1013     a users supplementary groups. This is enough to allow non-Samba 
1014     applications to do ACL checking.
1015 o   Make sure we don't append the 'ldap suffix' when writing out the 
1016     'ldap XXX suffix' values in SWAT (bug 328).
1017 o   Fix renames across file systems.
1018 o   Ensure that items in a list of strings containing whitespace are 
1019     written out surrounded by single quotes.  This means that both 
1020     double and single quotes are now used to surround strings in 
1021     smb.conf (bug 481).
1022 o   Enable SWAT to correctly determine if winbindd is running (bug 
1023     398).
1024 o   Include WWW-Authenticate field in 401 response for bad auth 
1025     attempt (bug 629).
1026 o   Add support for NTLM2 (NTLMv2 session security).
1027 o   Add support for variable-length session keys.
1028 o   More privilege fixes for group enumeration in LDAP (bug 281).
1029 o   Use the dns name (or IP) as the originating client name when
1030     using CUPS (bug 467).
1031 o   Fix various SMB signing bugs.
1032 o   Fix ACL propagation on a DFS root (bug 263).
1033 o   Disable NTLM2 for RPC pipes.
1034 o   Allow the client to specify the NTLM2 flags got NTLMSSP 
1035     authentication.
1036 o   Change the name of the job passed off to cups from "Test Page" 
1037     to "smbprn.00000033 Test Page" so that we can get the smb 
1038     jobid back. This allow users to delete jobs with cups printing 
1039     backend (partial work on bug 770).
1040 o   Fix build of winbindd with static pdb modules.
1041 o   Retrieve the correct ACL group bits if the file has an ACL 
1042     (bug 802).
1043 o   Implement "net rpc group members": Get members of a domain group 
1044     in human-readable format.
1045 o   Add MacOSX (Darwin) specific charset module code.
1046 o   Use samr_dispinfo(level == 1) for enumerating domain users so we 
1047     can include the full name in gecos field (bug 587).
1048 o   Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1049 o   Implement 'net rpc group list [global|local|builtin]*' for a 
1050     select listing of the respective user databases.
1051 o   Don't automatically set NT status code flag unless client tells 
1052     us it can cope.
1053 o   Add 'net status [sessions|shares] [parseable]'.
1054 o   Don't mistake pre-existing UNIX jobs for smb jobs (remainder of  
1055     bug 770).
1056 o   Add 'Replicator' and 'RAS Servers' to list of builtin SIDs 
1057    (bug 608).
1058 o   Fix inverted logic in hosts allow/deny checks caused by 
1059     s/strcmp/strequal/ (bug 846).
1060 o   Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1061 o   Fix typo in 'hash' mangling algorithm.
1062 o   Support munged dial for ldapsam (bug 800).
1063 o   Fix process_incoming_data() to return the number of bytes handled 
1064     this call whether we have a complete PDU or not; fixes bug 
1065     with multiple PDU request rpc's broken over SMBwriteX calls 
1066     each.
1067 o   Fix incorrect smb flags2 for connections to pre-NT servers 
1068     (causes smbclient to fail to OS2 for example) (bug 821).
1069 o   Update version string in smbldap-tools Makefile to 0.8.2.
1070 o   Correct a problem with "net rpc vampire" mis-parsing the 
1071     alias member info reply.
1072 o   Ensure the ${libdir} is created by the installclientlib script.
1073 o   Fix detection of Windows 2003 client architecture in the smb.conf
1074     %a variable.
1075 o   Ensure that smbd calls the add user script for a missing UNIX 
1076     user on kerberos auth call (bug 445).
1077 o   Fix bugs in hosts allow/deny when using a mismatched 
1078     network/netmask pair.
1079 o   Protect alloc_sub_basic() from crashing when the source string 
1080     is NULL (partial work on bug 687).
1081 o   Fix spinlocks on IRIX.
1082 o   Corrected some bad destination paths when running "configure 
1083     --with-fhs".
1084 o   Add packaging files for Fedora Core 1.
1085 o   Correct bug in SWAT install script for non-english languages.
1086 o   Support character set ISO-8859-1 internally (bug 558).
1087 o   Fixed more LDAP access errors when looking up group mappings 
1088     (bug 281).
1089 o   Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID 
1090     resolution to fail on local files on on domain members 
1091     (bug 875).
1092 o   Fix uninitialized variable in passdb.c.
1093 o   Fix formal parameter type in get_static() in nsswitch/wins.c.
1094 o   Fix problem mounting directories when mount.cifs is installed 
1095     with the setuid bit on.
1096 o   Fix bug that prevent --mandir from overriding the defaults
1097     given in the --with-fhs macro.
1098 o   Fix bug in in-memory Kerberos keytab detection routines 
1099     in configure.in
1100
1101
1102
1103 ######################################################################
1104
1105               The original 3.0.0 release notes follow
1106               =======================================
1107                     WHATS NEW IN Samba 3.0.0
1108                         September 24, 2003
1109               =======================================
1110
1111
1112 Major new features:
1113 -------------------
1114
1115 1)  Active Directory support.  Samba 3.0 is now able to  
1116     join a ADS realm as a member server and authenticate 
1117     users using LDAP/Kerberos.
1118
1119 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
1120     and internally there is now a much better infrastructure for 
1121     multi-byte and UNICODE character sets.
1122
1123 3)  New authentication system. The internal authentication system 
1124     has been almost completely rewritten. Most of the changes are 
1125     internal, but the new auth system is also very configurable.
1126
1127 4)  New default filename mangling system.
1128
1129 5)  A new "net" command has been added. It is somewhat similar to 
1130     the "net" command in windows. Eventually we plan to replace 
1131     numerous other utilities (such as smbpasswd) with subcommands 
1132     in "net".
1133
1134 6)  Samba now negotiates NT-style status32 codes on the wire. This
1135     improves error handling a lot.
1136
1137 7)  Better Windows 2000/XP/2003 printing support including publishing
1138     printer attributes in active directory.
1139
1140 8)  New loadable module support for passdb backends and character 
1141     sets.
1142
1143 9)  New default dual-daemon winbindd support for better performance.
1144
1145 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
1146     domain and maintaining user, group and domain SIDs.
1147
1148 11) Support for establishing trust relationships with Windows NT 4.0
1149     domain controllers.
1150   
1151 12) Initial support for a distributed Winbind architecture using
1152     an LDAP directory for storing SID to uid/gid mappings.
1153   
1154 13) Major updates to the Samba documentation tree.
1155
1156 14) Full support for client and server SMB signing to ensure
1157     compatibility with default Windows 2003 security settings.
1158
1159 15) Improvement of ACL mapping features based on code donated by
1160     Andreas Grünbacher.
1161
1162
1163 Plus lots of other improvements!
1164
1165
1166 Additional Documentation
1167 ------------------------
1168
1169 Please refer to Samba documentation tree (included in the docs/ 
1170 subdirectory) for extensive explanations of installing, configuring
1171 and maintaining Samba 3.0 servers and clients.  It is advised to 
1172 begin with the Samba-HOWTO-Collection for overviews and specific 
1173 tasks (the current book is up to approximately 400 pages) and to 
1174 refer to the various man pages for information on individual options.
1175
1176 We are very glad to be able to include the second edition of
1177 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1178 (O'Reilly & Associates) in this release.  The book is available
1179 on-line at http://samba.org/samba/docs/ and is included with 
1180 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
1181 publisher for making "Using Samba" under the GNU Free Documentation 
1182 License.
1183
1184
1185 ######################################################################
1186 Upgrading from a previous Samba 3.0 beta
1187 ########################################
1188
1189 Beginning with Samba 3.0.0beta3, the RID allocation functions
1190 have been moved into winbindd.  Previously these were handled
1191 by each passdb backend.  This means that winbindd must be running
1192 to automatically allocate RIDs for users and/or groups.  Otherwise,
1193 smbd will use the 2.2 algorithm for generating new RIDs.
1194
1195 If you are using 'passdb backend = tdbsam' with a previous Samba 
1196 3.0 beta release (or possibly alpha), it may be necessary to 
1197 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1198 to winbindd_idmap.tdb.  To do this:
1199
1200 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
1201     once)
1202 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
1203     directory
1204 3)  run: (note that 'tdb>' is the tool's prompt for input)
1205
1206        root# ./tdbtool /usr/local/samba/private/passdb.tdb
1207        tdb> show RID_COUNTER
1208        key 12 bytes
1209        RID_COUNTER
1210        data 4 bytes
1211        [000] 0A 52 00 00                                       .R.
1212
1213        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1214        ....
1215        record moved
1216
1217 If you are using 'passdb backend = ldapsam', it will be necessary to 
1218 store idmap entries in the LDAP directory as well (i.e. idmap backend 
1219 = ldap).  Refer to the 'net idmap' command for more information on 
1220 migrating SID<->UNIX id mappings from one backend to another.
1221
1222 If the RID_COUNTER record does not exist, then these instructions are
1223 unneccessary and the new RID_COUNTER record will be correctly generated
1224 if needed.  
1225
1226
1227
1228 ########################
1229 Upgrading from Samba 2.2
1230 ########################
1231
1232 This section is provided to help administrators understand the details
1233 involved with upgrading a Samba 2.2 server to Samba 3.0.
1234
1235
1236 Building
1237 --------
1238
1239 Many of the options to the GNU autoconf script have been modified 
1240 in the 3.0 release.  The most noticeable are:
1241
1242   * removal of --with-tdbsam (is now included by default; see section
1243     on passdb backends and authentication for more details)
1244     
1245   * --with-ldapsam is now on used to provided backward compatible
1246     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
1247     backend and authentication section for more details
1248   
1249   * inclusion of non-standard passdb modules may be enabled using
1250     --with-expsam.  This includes an XML backend and a mysql backend.
1251       
1252   * removal of --with-msdfs (is now enabled by default)
1253   
1254   * removal of --with-ssl (no longer supported)
1255   
1256   * --with-utmp now defaults to 'yes' on supported systems
1257   
1258   * --with-sendfile-support is now enabled by default on supported 
1259     systems
1260   
1261     
1262 Parameters
1263 ----------
1264
1265 This section contains a brief listing of changes to smb.conf options
1266 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
1267 complete descriptions of new or modified parameters.
1268
1269 Removed Parameters (order alphabetically):
1270
1271   * admin log
1272   * alternate permissions
1273   * character set
1274   * client codepage
1275   * code page directory
1276   * coding system
1277   * domain admin group
1278   * domain guest group
1279   * force unknown acl user
1280   * hide local users
1281   * mangled stack
1282   * nt smb support
1283   * postscript
1284   * printer driver
1285   * printer driver file
1286   * printer driver location
1287   * read size
1288   * source environment
1289   * status
1290   * strip dot
1291   * total print jobs
1292   * use rhosts
1293   * valid chars
1294   * vfs options
1295
1296 New Parameters (new parameters have been grouped by function):
1297
1298   Remote management
1299   -----------------
1300   * abort shutdown script
1301   * shutdown script
1302
1303   User and Group Account Management
1304   ---------------------------------
1305   * add group script
1306   * add machine script
1307   * add user to group script
1308   * algorithmic rid base
1309   * delete group script
1310   * delete user from group script
1311   * passdb backend
1312   * set primary group script
1313
1314   Authentication
1315   --------------
1316   * auth methods
1317   * realm
1318   * passwd chat timeout
1319
1320   Protocol Options
1321   ----------------
1322   * client lanman auth
1323   * client NTLMv2 auth
1324   * client schannel
1325   * client signing
1326   * client use spnego
1327   * disable netbios
1328   * ntlm auth
1329   * paranoid server security
1330   * server schannel
1331   * server signing
1332   * smb ports
1333   * use spnego
1334
1335   File Service
1336   ------------
1337   * get quota command
1338   * hide special files
1339   * hide unwriteable files
1340   * hostname lookups
1341   * kernel change notify
1342   * mangle prefix
1343   * map acl inherit
1344   * msdfs proxy
1345   * set quota command
1346   * use sendfile
1347   * vfs objects
1348   
1349   Printing
1350   --------
1351   * max reported print jobs
1352
1353   UNICODE and Character Sets
1354   --------------------------
1355   * display charset
1356   * dos charset
1357   * unicode
1358   * unix charset
1359   
1360   SID to uid/gid Mappings
1361   -----------------------
1362   * idmap backend
1363   * idmap gid
1364   * idmap uid
1365   * winbind enable local accounts
1366   * winbind trusted domains only
1367   * template primary group
1368   * enable rid algorithm
1369
1370   LDAP
1371   ----
1372   * ldap delete dn
1373   * ldap group suffix
1374   * ldap idmap suffix
1375   * ldap machine suffix
1376   * ldap passwd sync
1377   * ldap replication sleep
1378   * ldap user suffix
1379   
1380   General Configuration
1381   ---------------------
1382   * preload modules
1383   * private dir
1384
1385 Modified Parameters (changes in behavior):
1386
1387   * encrypt passwords (enabled by default)
1388   * mangling method (set to 'hash2' by default)
1389   * passwd chat
1390   * passwd program
1391   * restrict anonymous (integer value)
1392   * security (new 'ads' value)
1393   * strict locking (enabled by default)
1394   * unix extensions (enabled by default)
1395   * winbind cache time (increased to 5 minutes)
1396   * winbind uid (deprecated in favor of 'idmap uid')
1397   * winbind gid (deprecated in favor of 'idmap gid')
1398
1399
1400 Databases
1401 ---------
1402
1403 This section contains brief descriptions of any new databases 
1404 introduced in Samba 3.0.  Please remember to backup your existing 
1405 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
1406 upgrade databases as they are opened (if necessary), but downgrading 
1407 from 3.0 to 2.2 is an unsupported path.
1408
1409 Name                    Description                             Backup?
1410 ----                    -----------                             -------
1411 account_policy          User policy settings                    yes
1412 gencache                Generic caching db                      no
1413 group_mapping           Mapping table from Windows              yes
1414                         groups/SID to unix groups        
1415 winbindd_idmap          ID map table from SIDS to UNIX          yes
1416                         uids/gids.
1417 namecache               Name resolution cache entries           no
1418 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
1419                         returned as part of a successful
1420                         net_sam_logon request 
1421 printing/*.tdb          Cached output from 'lpq                 no
1422                         command' created on a per print 
1423                         service basis
1424 registry                Read-only samba registry skeleton       no
1425                         that provides support for exporting
1426                         various db tables via the winreg RPCs
1427
1428
1429 Changes in Behavior
1430 -------------------
1431
1432 The following issues are known changes in behavior between Samba 2.2 and 
1433 Samba 3.0 that may affect certain installations of Samba.
1434
1435   1)  When operating as a member of a Windows domain, Samba 2.2 would 
1436       map any users authenticated by the remote DC to the 'guest account'
1437       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
1438       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
1439       current work around to re-establish the 2.2 behavior.
1440       
1441   2)  When adding machines to a Samba 2.2 controlled domain, the 
1442       'add user script' was used to create the UNIX identity of the 
1443       machine trust account.  Samba 3.0 introduces a new 'add machine 
1444       script' that must be specified for this purpose.  Samba 3.0 will
1445       not fall back to using the 'add user script' in the absence of 
1446       an 'add machine script'
1447   
1448
1449 ######################################################################
1450 Passdb Backends and Authentication
1451 ##################################
1452
1453 There have been a few new changes that Samba administrators should be
1454 aware of when moving to Samba 3.0.
1455
1456   1) encrypted passwords have been enabled by default in order to 
1457      inter-operate better with out-of-the-box Windows client 
1458      installations.  This does mean that either (a) a samba account
1459      must be created for each user, or (b) 'encrypt passwords = no'
1460      must be explicitly defined in smb.conf.
1461     
1462   2) Inclusion of new 'security = ads' option for integration 
1463      with an Active Directory domain using the native Windows
1464      Kerberos 5 and LDAP protocols.
1465
1466      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
1467      type which is neccessary for servers on which the 
1468      administrator password has not been changed, or kerberos-enabled 
1469      SMB connections to servers that require Kerberos SMB signing.
1470      Besides this one difference, either MIT or Heimdal Kerberos
1471      distributions are usable by Samba 3.0.
1472      
1473
1474 Samba 3.0 also includes the possibility of setting up chains
1475 of authentication methods (auth methods) and account storage 
1476 backends (passdb backend).  Please refer to the smb.conf(5) 
1477 man page for details.  While both parameters assume sane default 
1478 values, it is likely that you will need to understand what the 
1479 values actually mean in order to ensure Samba operates correctly.
1480
1481 The recommended passdb backends at this time are
1482
1483   * smbpasswd - 2.2 compatible flat file format
1484   * tdbsam - attribute rich database intended as an smbpasswd
1485     replacement for stand alone servers
1486   * ldapsam - attribute rich account storage and retrieval 
1487     backend utilizing an LDAP directory.  
1488   * ldapsam_compat - a 2.2 backward compatible LDAP account 
1489     backend
1490     
1491 Certain functions of the smbpasswd(8) tool have been split between the 
1492 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
1493 utility.  See the respective man pages for details.
1494     
1495      
1496 ######################################################################
1497 LDAP
1498 ####
1499
1500 This section outlines the new features affecting Samba / LDAP 
1501 integration.
1502
1503 New Schema
1504 ----------
1505   
1506 A new object class (sambaSamAccount) has been introduced to replace 
1507 the old sambaAccount.  This change aids us in the renaming of 
1508 attributes to prevent clashes with attributes from other vendors.  
1509 There is a conversion script (examples/LDAP/convertSambaAccount) to 
1510 modify and LDIF file to the new schema.
1511   
1512 Example:
1513   
1514   $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1515   $ convertSambaAccount --sid=<Domain SID> \
1516     --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1517     --changetype=[modify|add]
1518         
1519 The <DOM SID> can be obtained by running 'net getlocalsid 
1520 <DOMAINNAME>' on the Samba PDC as root.  The changetype determines 
1521 the format of the generated LDIF output--either create new entries 
1522 or modify existing entries.
1523     
1524 The old sambaAccount schema may still be used by specifying the 
1525 "ldapsam_compat" passdb backend.  However, the sambaAccount and
1526 associated attributes have been moved to the historical section of
1527 the schema file and must be uncommented before use if needed.
1528 The 2.2 object class declaration for a sambaAccount has not changed
1529 in the 3.0 samba.schema file. 
1530   
1531 Other new object classes and their uses include:
1532   
1533   * sambaDomain - domain information used to allocate rids 
1534     for users and groups as necessary.  The attributes are added
1535     in 'ldap suffix' directory entry automatically if 
1536     an idmap uid/gid range has been set and the 'ldapsam'
1537     passdb backend has been selected.
1538       
1539   * sambaGroupMapping - an object representing the 
1540     relationship between a posixGroup and a Windows
1541     group/SID.  These entries are stored in the 'ldap 
1542     group suffix' and managed by the 'net groupmap' command.
1543     
1544   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
1545     automatically and contains the next available 'idmap uid' and 
1546     'idmap gid'
1547     
1548   * sambaIdmapEntry - object storing a mapping between a 
1549     SID and a UNIX uid/gid.  These objects are created by the 
1550     idmap_ldap module as needed.
1551
1552   * sambaSidEntry - object representing a SID alone, as a Structural
1553     class on which to build the sambaIdmapEntry.
1554
1555     
1556 New Suffix for Searching
1557 ------------------------
1558   
1559 The following new smb.conf parameters have been added to aid in directing
1560 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1561 specified.
1562
1563   * ldap suffix         - used to search for user and computer accounts
1564   * ldap user suffix    - used to store user accounts
1565   * ldap machine suffix - used to store machine trust accounts
1566   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
1567   * ldap idmap suffix   - location of sambaIdmapEntry objects
1568
1569 If an 'ldap suffix' is defined, it will be appended to all of the 
1570 remaining sub-suffix parameters.  In this case, the order of the suffix
1571 listings in smb.conf is important.  Always place the 'ldap suffix' first
1572 in the list.  
1573
1574 Due to a limitation in Samba's smb.conf parsing, you should not surround 
1575 the DN's with quotation marks.
1576
1577
1578 IdMap LDAP support
1579 ------------------
1580
1581 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
1582 following options would inform Samba that the idmap table should be
1583 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1584 dc=org" partition.
1585
1586  [global]
1587     ...
1588     idmap backend     = ldap:ldap://onterose/
1589     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1590     idmap uid         = 40000-50000
1591     idmap gid         = 40000-50000
1592
1593 This configuration allows winbind installations on multiple servers to
1594 share a uid/gid number space, thus avoiding the interoperability problems
1595 with NFS that were present in Samba 2.2.
1596     
1597
1598
1599 ######################################################################
1600 Trust Relationships and a Samba Domain
1601 ######################################
1602
1603 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
1604 allocating uids and gids to trusted users and groups.  More
1605 information regarding Samba's support for establishing trust 
1606 relationships can be found in the Samba-HOWTO-Collection included
1607 in the docs/ directory of this release.
1608
1609 First create your Samba PDC and ensure that everything is 
1610 working correctly before moving on the trusts.
1611
1612 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1613 4.0 domain named WINDOWS:
1614
1615   1) create the trust account for SAMBA in "User Manager for Domains"
1616   2) connect the trust from the Samba domain using
1617      'net rpc trustdom establish GLASS'
1618
1619 To create a trustlationship with SAMBA as the trusted domain:
1620
1621   1) create the initial trust account for GLASS using
1622      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
1623      account for GLASS$ prior to this step (depending on your
1624      local configuration).
1625   2) connect the trust from a WINDOWS DC using "User Manager
1626      for Domains"
1627
1628 Now join winbindd on the Samba PDC to the SAMBA domain using
1629 the normal steps for adding a Samba server to an NT4 domain:
1630 (note that smbd & nmbd must be running at this point)
1631
1632    root# net rpc join -U root
1633    Password: <enter root password from smbpasswd file here>
1634
1635 Start winbindd and test the join with 'wbinfo -t'.
1636
1637 Now test the trust relationship by connecting to the SAMBA DC
1638 (e.g. POGO) as a user from the WINDOWS domain:
1639
1640    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1641    Password:
1642
1643 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1644
1645    $ smbclient //crystal/netlogon -U root -W WINDOWS
1646    Password:
1647
1648 ######################################################################
1649 Changes in Winbind
1650 ##################
1651
1652 Beginning with Samba3.0.0beta3, winbindd has been given new account
1653 manage functionality equivalent to the 'add user script' family of
1654 smb.conf parameters.  The idmap design has also been changed to 
1655 centralize control of foreign SID lookups and matching to UNIX 
1656 uids and gids.
1657
1658
1659 Brief Description of Changes
1660 ----------------------------
1661
1662 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
1663    reverted to the 2.2.x design.  This means that when resolving a 
1664    SID to a UID or similar mapping:
1665
1666         a) First consult winbindd
1667         b) perform a local lookup only if winbindd fails to
1668            return a successful answer
1669
1670    There are some variations to this, but these two rules generally
1671    apply.
1672
1673 2) All idmap lookups have been moved into winbindd.  This means that
1674    a server must run winbindd (and support NSS) in order to achieve
1675    any mappings of SID to dynamically allocated UNIX ids.  This was
1676    a conscious design choice.
1677
1678 3) New functions have been added to winbindd to emulate the 'add user 
1679    script' family of smbd functions without requiring that external
1680    scripts be defined.  This functionality is controlled by the 'winbind 
1681    enable local accounts' smb.conf parameter (enabled by default).
1682
1683    However, this account management functionality is only supported 
1684    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
1685    must be shared among multiple Samba servers (such as a PDC and BDCs), 
1686    it will be necessary to define your own 'add user script', et. al.
1687    programs that place the accounts/groups in some form of directory
1688    such as NIS or LDAP.  This requirement was deemed beyond the scope
1689    of winbind's account management functions.  Solutions for 
1690    distributing UNIX system information have been deployed and tested 
1691    for many years.  We saw no need to reinvent the wheel.
1692
1693 4) A member of a Samba controlled domain running winbindd is now able 
1694    to map domain users directly onto existing UNIX accounts while still
1695    automatically creating accounts for trusted users and groups.  This
1696    behavior is controlled by the 'winbind trusted domains only' smb.conf
1697    parameter (disabled by default to provide 2.2.x winbind behavior).
1698
1699 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1700    in smbd/uid.c.  The reason that group mappings are not included
1701    in winbindd is because the purpose of Samba's group map is to
1702    match any Windows SID with an existing UNIX group.  These UNIX
1703    groups can be created by winbindd (see next section), but the
1704    SID<->gid mapping is retreived by smbd, not winbindd.
1705
1706
1707 Examples
1708 --------
1709
1710 * security = server running winbindd to allocate accounts on demand
1711
1712 * Samba PDC running winbindd to handle the automatic creation of UNIX
1713   identities for machine trust accounts
1714
1715 * Automtically creating UNIX user and groups when migrating a Windows NT
1716   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
1717   'net rpc vampire' for this to work.
1718
1719    
1720 ######################################################################
1721 Known Issues
1722 ############
1723
1724 * There are several bugs currently logged against the 3.0 codebase
1725   that affect the use of NT 4.0 GUI domain management tools when run
1726   against a Samba 3.0 PDC.  This bugs should be released in an early 
1727   3.0.x release.
1728
1729 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
1730 filed against the Samba 3.0 codebase.
1731
1732
1733 ######################################################################
1734 Reporting bugs & Development Discussion
1735 #######################################
1736
1737 Please discuss this release on the samba-technical mailing list or by
1738 joining the #samba-technical IRC channel on irc.freenode.net.
1739
1740 If you do report problems then please try to send high quality
1741 feedback. If you don't provide vital information to help us track down
1742 the problem then you will probably be ignored.  
1743
1744 A new bugzilla installation has been established to help support the 
1745 Samba 3.0 community of users.  This server, located at 
1746 https://bugzilla.samba.org/, has replaced the older jitterbug server 
1747 previously located at http://bugs.samba.org/.
1748