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