r1861: syncing the DOS client fix, volker's vfs module, & updating release notes...
[Samba.git] / WHATSNEW.txt
blob24622d1ce948829a82a8539bde03e3c7d58fcec5
1                   =============================
2                   Release Notes for Samba 3.0.6
3                             Aug 18, 2004
4                   =============================
6 This is the latest stable release of Samba. This is the version
7 that production Samba servers should be running for all
8 current bug-fixes.  There have been several issues fixes since
9 the 3.0.4/5 release and new features have been added as well.
10 See the "Changes" section for details on exact updates.
12 Common bugs fixed in 3.0.6 include:
14   o Schannel failure in winbindd.
15   o Numerous memory leaks.
16   o Incompatibilities between the 'write list' and 'force user'
17     smb.conf options.
18   o Premature optimization of the open_directory() internal 
19     function that broke tools such as the ArcServe backup 
20     agent, Macromedia HomeSite, and Robocopy.
21   o Corrupt workgroup names in nmbd's browse.dat.
22   o Sharing violation errors commonly seen when opening
23     when serving Microsoft Office documents from a Samba 
24     file share.
25   o Browsing problems caused by an apostrophe (') in the 
26     computer's description field.
27   o Problems creating special file types from UNIX CIFS 
28     clients and enabling 'unix extensions'.
29   o Fix stalls in smbd caused by inaccessible LDAP servers.
30   o Remove various memory leaks.
31   o Fix issues in the password lockout feature.
33 New features introduced in this release include:
35   O Support symlinks created by CIFS clients which 
36     can be followed on the server.
37   o Using a cups server other than localhost.
38   o Maintaining the service principal entry in the system 
39     keytab for integration with other kerberized services.
40     Please refer to the 'use kerberos keytab' entry in 
41     smb.conf(5).  When using the heimdal kerberos libraries,
42     you must also specify the following in /etc/krb5.conf:
43     [libdefaults]
44        default_keytab_name = FILE:/etc/krb5.keytab
45   o Support for maintaining individual printer names
46     stored separately from the printer's sharename.
47   o Support for maintaining user password history.
48   o Support for honoring the logon times for user in a 
49     Samba domain.
51 --------------------------------------------
52 unix extensions = yes (default) and symlinks
53 --------------------------------------------
55 Beginning with Samba 3.0.6pre1 (formally known as 3.0.5pre1), 
56 clients supporting the UNIX extensions to the CIFS protocol 
57 can create symlinks to absolute paths which will be **followed** 
58 by the server.  This functionality has been requested in order 
59 to correctly support certain applications when the user's home 
60 directory is mounted using some type of CIFS client (e.g. the 
61 cifsvfs in the Linux 2.6 kernel).
63 If this behavior is not acceptable for your production environment
64 you can set 'wide links = no' in the specific share declaration in 
65 the server's smb.conf.  Be aware that disabling wide link support 
66 out of a share in Samba may impact the server's performance due 
67 to the fact that smbd will now have to check each path additional 
68 times before traversing it.
69   
70 ------------------------
71 Password History Support 
72 ------------------------
74 The new password history feature allows smbd to check the new 
75 password in password change requests against a list of the user's
76 previous passwords.  The number of previous passwords to save can 
77 be set using pdbedit (4 in this example):
79    root# pdbedit -P "password history" -C 4
81 When using the ldapsam passdb backend, it is vital to secure the 
82 following attributes from access by non-administrative users:
84    * sambaNTPassword
85    * sambaLMPassword
86    * sambaPasswordHistory
88 You should refer to your directory server's documentation on how 
89 to implement this restriction).
90   
92 ######################################################################
93 Changes
94 #######
96 Changes since 3.0.6rc2
97 ----------------------
99 o   Jeremy Allison <jra@samba.org>
100     * Ensure we return the same ACL revision on the wire that 
101       W2K3 does.
102     * BUG 1578: Hardcode replacement for invalid characters as '_'
103       (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
104     * Fix hashed password history for LDAP backends.
105     * Enforce logon hours restrictions if confiogured (based on code 
106       from Richard Renard <rrenard@idealx.com>).
107     * BUG 1606: Force smbd to disable sendfile with DOS clients 
108       and ensure that the chained header is filled in for ...&X 
109       commands.
112 o   Steve French <sfrench@us.ibm.com>
113     o prevent infinite recusion in reopen_logs() when expanding 
114       the smb.conf variable %I.
115       
117 o   Volker Lendecke <vl@samba.org>
118     o Improved NT->AFS ACL mapping VFS module.
121 o   Lars Mueller <lmuelle@suse.de>
122     o Fix compiler warnings in the kerberos client code.
123     
125 o   James Peach <jpeach@sgi.com>
126     * Prevent smbd from attempting to use sendfile at all if it is not
127       supported by the server's OS.
128     * Allow SWAT to search for index.html when searving html files 
129       in a directory.
132 Changes since 3.0.5
133 -------------------
135 smb.conf changes
136 ----------------
138     Parameter Name              Action
139     --------------              ------
140     cups server                 New
141     defer sharing violations    New
142     force unknown acl user      New
143     ldap timeout                New
144     printcap cache time         New
145     use kerberos keytab         New
146     
147 commits
148 -------
149 o   Jeremy Allison <jra@samba.org> 
150     * Correct path parsing bug that broke DeletePrinterDriverEx().
151     * Fix bugs in check_path_syntax() caught by asserts.
152     * Internal change - rearrange internal global case setting 
153       variables to a per connection basis.
154     * BUG 1345: Fix premature optimization in unix_convert(). 
155     * Allow clients to truncate a locked file.
156     * BUG 1319: Always check to see if a user as write access
157       to a share, even when 'force user' is set.
158     * Fix specific case of open that doesn't cause oplock break, 
159       or share mode check.
160     * Correct sid type is WKN_GROUP, not alias. Added some 
161       more known types (inspired by patch from Jianliang Lu).
162     * Allow creation of absolute symlink paths via CIFS clients.
163     * Fix charset bug in when invoking send_mailslot().
164     * When using widelinks = no, use realpath to canonicalize 
165       the connection path on connection create for the user. 
166     * Enhance stat open code.
167     * Fix unix extensions mknod code path.
168     * Allow unix domain socket creation via unix extensions.
169     * Auto disable the 'store dos attribute' parameter if the 
170       underlying filesystem doesn't support EAs.
171     * Implement deferred open code to fix a bug with Excel files 
172       on Samba shares.
173     * BUG 1427: Catch bad path errors at the right point.  Ensure 
174       all our pathname parsing is consistent.
175     * Fix SMB signing error introduced by the new deferred open 
176       code.
177     * Change default setting for case sensitivity to "auto". (see 
178       commit message -- r1154 -- for details).
179     * Add new remote client arch -- CIFSFS.
180     * Allow smbd to maintain the service principal entry in the 
181       system keytab file (based on patch Dan Perry <dperry@pppl.gov>, 
182       Guenther Deschner, et. al.).
183     * Fix longstanding memleak bug with logfile name.
184     * Fix incorrect type in printer publishing (struct uuid, 
185       not UUID_FLAT).
186     * Heimdal compile fixes after introduction of the new ketyab 
187       feature.
188     * Ensure we check attributes correctly on rename request.
189     * Ensure we defer a sharing violation on rename correctly.
190     * BUG 607: Ensure we remove DNS and DNSFAIL records immediately 
191       on timeout.
192     * Fix bogus error message when using "mangling method = hash" 
193       rather than hash2.
194     * Turn on sendfile by default for non-Win9x clients.
195     * Handle non-io opens that cause oplock breaks correctly.
196     * Ensure ldap replication sleep time is not more than 5 seconds.
197     * Add support for storing a user's password history.
198       LDAP portion of the code was based on a patch from 
199       Jianliang Lu <j.lu@tiesse.com>.
200     * Correct memory leaks found in the password change code.
201     * Fix support for the mknod command with the Linux CIFS client.
202     * Remove support for passing the new password to smbpasswd 
203       on the command line without using the -s option.
204     * Ensure home directory service number is correctly reused
205       (inspired by patches from Michael Collin Nielsen 
206       <michael@hum.aau.dk>).
207     * Fix to stop printing accounts from resetting the bas 
208       password and account lockout flags.
209     * If a account was locked out by an admin (and has a bad 
210       password count of zero) leave it locked out until an admin 
211       unlocks it (but log a message).
214 o   Tom Alsberg <alsbergt@cs.huji.ac.il>
215     * Allow pdbedit to export a single user from a passdb backend.
216     
218 o   Andrew Bartlett <abartlet@samba.org>  
219     * Fix parsing bug in GetDomPwInfo().
220     * Fix segfault in 'ntlm_auth --diagnostics'.
221     * Re-enable code to allow sid_to_gid() to perform a group 
222       mapping lookup before checking with winbindd.
223     * Fix memory leak in the trans2 signing code.
224     * Allow more flexible GSS-SPENGO client and server operation 
225       in ntlm_auth.
226     * Improve smbd's internal random number generation.
227     * Fix a few outstanding long password changes in smbd.
228     * Fix LANMAN2 session setup code.
231 o   Eric Boehm <boehm@nortelnetworks.com>
232     BUG 703: Final touches on netgroup case lookups.
233     
234     
235 o   Jerome Borsboom <j.borsboom@erasmusmc.nl>
236     * Ensure error status codes don't get overwritten in 
237       lsa_lookup_sids() server code.
238     * Correct bug that caused smbd to overwrite certain error 
239       codes when returning up the call stack.
240     * Ensure the correct sid type returned for builtin sids.
243 o   Gerald Carter <jerry@samba.org>
244     * Fix a few bugs in the Fedora Packaging files.
245     * Fix for setting the called name to by our IP if the 
246       called name was *SMBSERVER and *SMBSERV.   Fixes issue 
247       with connecting to printers via \\ip.ad.dr.ess\printer 
248       UNC path.
249     * BUG 1315: fix for schannel client connections to servers
250       when we haven't specifically negotiated AUTH_PIPE_SEAL.
251     * Allow PrinterDriverData valuenames with embedded backslashes
252       (Fixes bug with one of the Konica Fiery drivers).
253     * Fixed string length miscalculation in netbios names that 
254       resulted in corrupt workgroup names in browse.dat.
255     * When running smbd as a daemon, launch child smbd to update 
256       the lpq cache listing in the background.
257     * Allow printers "Printers..." folder to be renamed to a string 
258       other than the share name.
259     * Allow winbindd to use domain trust account passwords when 
260       running on a Samba DC to establish an schannel to remote 
261       domains.
262     * Fix bad merge and ensure that we always use tdb_open_log() 
263       instead of tdb_open_ex() (the former call enforce the 'use 
264       mmap' parameter).
265     * BUG 1221: revert old change that used single and double 
266       quotes as delimeters in next_token(), and change 
267       print_parameter() to print out parm values surrounded by 
268       double quotes (instead of single quotes).
269     * Prevent home directories added during the SMBsesssetup&X from 
270       being removed as unused services.
271     * Invalidate the print object cache for open printer handles when
272       smbd receives a message that an attribute on a given printer 
273       has been changed.
274     * Cause the configure script to exit if --enable-cups[=yes] is 
275       defined and the system does not have the cups devel files 
276       installed.
277     * BUG 1297: Prevent map_username() from being called twice 
278       during logon.
279     * Ensure that we use the userPrincipalName AD attribute 
280       value for LDAP SASL binds.
281     * Ensure we remove the tdb entry when deleting a job that 
282       is being spooled.
283     * BUG 1520: Work around bug in Windows XP SP2 RC2 where the 
284       client sends a FindNextPrintChangeNotify() request without 
285       previously sending a FindFirstPrintChangeNotify().  Return 
286       the same error code as Windows 2000 SP4.
287     * BUG 1516: Manually declare ldap_open_with_timeout() to 
288       workaround compiler errors on IRIX (or other systems without 
289       LDAP headers).
290     * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from 
291       3.0.5.
292     * Corrected syntax error in the OID for sambaUnixIdPool, 
293       sambaSidEntry, & sambaIdmapEntry object classes.
296 o   Fabien Chevalier <fabien.chevalier@supelec.fr>
297     * Debian BUG 252591: Ensure that the return value from the 
298       number of available interfaces is initialized in case no 
299       interfaces are actually available.
302 o   Guenther Deschner <gd@sernet.de> 
303     * Implement 'rpcclient setprintername'.
304     * Add local groups to the user's NT_TOKEN since they are 
305       actually supported now.
306     * Heimdal compile fixes after introduction of the new keytab 
307       feature.
308     * Correctly honor the info level parameter in 'rpcclient 
309       enumprinters'.
310     * Reintroduce 'force unknown acl user' parameter.  When getting a 
311       security descriptor for a file, if the owner sid is not known, 
312       the owner uid is set to the current uid. Same for group sid.
313     * Ensure that REG_SZ values in the SetPrinterData actually 
314       get written in UNICODE strings rather than ASCII.
315     * Ensure that the last kerberos error return is not invalid.
316     * Display share ACL entries from rpcclient.
319 o   Fabian Franz <FabianFranz@gmx.de>
320     * Support specifying a port in the device URL passed to smbspool.
321     
322     
323 o   Steve French <sfrench@us.ibm.com>
324     * Handle -S and user mount parms in mount.cifs.
325     * Fix user unmount of shares mount with suid mount.cifs.
328 o   Bjoern Jacke <bj@sernet.de>
329     * Install libsmbclient into $(LIBDIR), not into hard coded 
330       ${prefix}/lib. This helps amd64 systems with /lib and /lib64 
331       and an explicit configure --libdir setting.
334 o   <kawasa_r@itg.hitachi.co.jp>
335     * Correct more memory leaks and initialization bugs.
336     * Fix bug that prevented core dumps from being generated 
337       even if you tried.
338     * Connect to the winbind pipe in non-blocking mode to 
339       prevent processes from hanging.
340     * Memory leak fixes.
343 o   Stephan Kulow <coolo@suse.de>
344     * Fix crash bug in libsmbclient.
347 o   Volker Lendecke <vl@samba.org>
348     * Added vfs_full_audit module.
349     * Add vfs_afsacl.c which can display & set AFS acls via 
350       the NT security editor.
351     * Fix crash bug caused by trying to Base64 encode a NULL string.
352     * Fix DOS error code bug in reply_chkpath().
353     * Correct misunderstanding of the max_size field in 
354       cli_samr_enum_als_groups;  it is more like an account_control 
355       field with individual bits what to retrieve.
356     * Implement 'net rpc group rename' -- rename domain groups.
357     * Implement the 'cups server' option. This makes it possible 
358       to have virtual smbd's connect to different cups daemons.
359     * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
360     * Fix sid_to_gid() calls in winbindd to prevent loops.
361     * Ensure that local_sid_to_gid() sets the type of the group on 
362       return.
363     * Make sure that the clients are given back the IP address to 
364       which they connected in the case of a multi-homed host. Only 
365       affects strings the spoolss printing replies.
366     * Fix the bad password lockout. This has not worked as pdb_ldap.c 
367       did not ask for the modifyTimestamp attribute, so it could 
368       not find it.   Try not to regress by not putting that attrib 
369       in the main list but append it manually for the relevant searches.
370     * Fix two memleaks in login_cache.c.
371     * fixes memory bloat when unmarshalling strings.
372     * Fix compile errors using gcc 3.2 on SuSE 8.2.
373     * Fix the build for systems without kerberos headers.
374     * Allow winbindd to handle authentication requests only when 
375       started without either an 'idmap uid' or 'idmap gid' range.
376     * Fix the build for systems without ldap headers.
377     * Fix interaction between share security descriptor and the 
378       'read only' smb.conf option.
379     * Fix bug that caused _samr_lookupsids() with more than 32 (
380       MAX_REF_DOMAINS) SIDs to fail.
381     * Allow the 'idmap backend' parameter to accept a list of 
382       LDAP servers for failover purposes.
383     * Revert code in smbd to remove a tdb when it has become 
384       corrupted.
385     * Add paranoid checks when mapping SIDs to a uid/gid to 
386       ensure that the type is correct.
387     * Initial work on getting client support for sending mailslot 
388       datagrams.
389     * Add 'ldap timeout' parameter.
390     * Dont always uppercase 'afs username map'.
391     * Expand aliases for getusersids as well.
394 o   Herb Lewis <herb@samba.org>
395     * Add the acls debug class.
396     * Fix logic bug in netbios name truncate routine.
397     * Fix smbd crash caused by smbtorture IOCTL test.
398     * Fix errno tromping before calling iconv to reset the 
399       conversion state.
400     * need to leave empty dacl so we can remove last ACE.
403 o    Jianliang Lu <Jianliang.Lu@getronics.com>
404     * Fix to stop smbd hanging on missing group member in 
405       get_memberuids().
406     * Make sure Samba returns the correct group types.
407      * Reset the bad password count password counts upon a successful login.
408      
409      
410 o   Jim McDonough <jmcd@us.ibm.com>
411     * BUG 1279: SMBjobid fix for Samba print servers running on 
412       Big-Endian platforms.
415 o   Joe Meadows <jameadows@webopolis.com>
416     * Add optional timeout parameter to ldap open calls.
417     * Allow get_dc_list() to check the negative cache.
420 o   Jason Mader <jason@ncac.gwu.edu>
421     * BUG 1385: Don't use non-consts in a structure initialization.
422     
424 o   Stefan Metzmacher <metze@samba.org>    
425     * fix a configure logic bug for linux/XFS quotas when 
426       using --with-sys-quotas.
427     * Use quota debug class in quota code.
428     * print out the SVN revision by configure,
429     
431 o   Lars Mueller <lmuelle@suse.de>
432     * BUG 1279: Added 'printcap cache time' parameter.
433     * Fix afs related build issues on SuSE.
436 o   James Peach <jpeach@sgi.com>
437     * More iconv detection fixes for IRIX.
438     * Compile fixed for systems that do not have C99/UNIX98 compliant 
439       vsnprintf by default.
442 o   Dan Peterson
443     * Implement NFS quota support on FreeBSD.
446 o   Tim Potter <tpot@samba.org>
447     * BUG 1360: Use -Bsymbolic when creating shared libraries to 
448       avoid conflicts with identical symbols in the global namespace 
449       when loading libnss_wins.so.
452 o   Richard Renard <rrenard@idealx.com>
453     * Save the current password as it is being changed into the 
454       password history list.
457 o   Richard Sharpe <rsharpe@samba.org>
458     * Fix error return codes on some lock messages.
459     * BUG 1178: Make the libsmbclient routines callable 
460       by C++ programs.
461     * BUG 1333: Make sure we return an error code when 
462       things go wrong.
463     * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when 
464       share mode locking requests fail.
467 o   Simo Source <idra@samba.org>
468     * Update Debian stable & unstable packaging.
469     * Tidy up parametric options in testparm output.
472 o   Richard Sharpe <rsharpe@samba.org>
473     * Add sigchild handling to winbindd to restart the child 
474       daemon if necessary.
477 o   Tom Shaw <tomisfaraway@gmail.com>
478     * Use winbindd_fill_pwent() consistently.
481 o   Nick Thompson <nickthompson@agere.com>
482     * Protect smbd against broken filesystems which return zero 
483       blocksize.
486 o   Andrew Tridgell <tridge@samba.org>
487     * Fixed bug in handling of timeout in socket connections.
488      
490 o   Nick Wellnhofer <wellnhofer@aevum.de>    
491     * Prevent lp_interfaces() list from being corrupted.  Fixes
492       bug where nmbd would lose the list of network interfaces 
493       on the system and consequently shutdown.
495       
496 o   James Wilkinson <jwilk@alumni.cse.ucsc.edu>
497     * Fix ntlm_auth memory leaks.
500 o   Jelmer Vernooij <jelmer@samba.org>
501     * Additional NT status to unix error mappings.
502     * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't 
503      get duplicate symbol errors.
504    * Return an error when the last command read from stdin 
505      fails in smbclient.
506    * Prepare for better error checking in tar.
507       
509 Changes for older versions follow below:
511       --------------------------------------------------
512       
513                  =============================
514                  Release Notes for Samba 3.0.5
515                          July 20, 2004
516                  =============================
518 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with 
519 the exception of correcting the two security issues outlined 
520 below.
522 ######################## SECURITY RELEASE ########################
524 Summary:       Multiple Potential Buffer Overruns in Samba 3.0.x
525 CVE ID:        CAN-2004-0600, CAN-2004-0686
526                (http://cve.mitre.org/)
529 This is the latest stable release of Samba. This is the version
530 that production Samba servers should be running for all current
531 bug-fixes.
533 It has been confirmed that versions of Samba 3 prior to v3.0.4
534 are vulnerable to two potential buffer overruns.  The individual
535 details are given below.
537 -------------
538 CAN-2004-0600
539 -------------
541 Affected Versions:      Samba 3.0.2 and later
543 The internal routine used by the Samba Web Administration
544 Tool (SWAT v3.0.2 and later) to decode the base64 data
545 during HTTP basic authentication is subject to a buffer
546 overrun caused by an invalid base64 character.  It is
547 recommended that all Samba v3.0.2 or later installations
548 running SWAT either (a) upgrade to v3.0.5, or (b) disable
549 the swat administration service as a temporary workaround.
551 This same code is used internally to decode the
552 sambaMungedDial attribute value when using the ldapsam
553 passdb backend. While we do not believe that the base64
554 decoding routines used by the ldapsam passdb backend can
555 be exploited, sites using an LDAP directory service with
556 Samba are strongly encouraged to verify that the DIT only
557 allows write access to sambaSamAccount attributes by a
558 sufficiently authorized user.
560 The Samba Team would like to heartily thank Evgeny Demidov
561 for analyzing and reporting this bug.
563 -------------
564 CAN-2004-0686
565 -------------
567 Affected Versions:      Samba 3.0.0 and later
569 A buffer overrun has been located in the code used to support
570 the 'mangling method = hash' smb.conf option.  Please be aware
571 that the default setting for this parameter is 'mangling method
572 = hash2' and therefore not vulnerable.
574 Affected Samba 3 installations can avoid this possible security
575 bug by using the default hash2 mangling method.  Server
576 installations requiring the hash mangling method are encouraged
577 to upgrade to Samba 3.0.5.
580 ##################################################################
582     --------------------------------------------------
583                  
584                  =============================
585                  Release Notes for Samba 3.0.4
586                           May 8, 2004
587                  =============================
589 Common bugs fixed in Samba 3.0.4 include:
591   o Password changing after applying the patch described in 
592     the Microsoft KB828741 article to Windows clients.
593   o Crashes in smbd.
594   o Managing print jobs via Windows on Big-Endian servers.
595   o Several memory leaks in winbindd and smbd.
596   o Compile issues on AIX and *BSD.
598 Changes since 3.0.3
599 --------------------
601 commits
602 -------
604 o   Jeremy Allison <jra@samba.org>
605     * Fix path processing for DeletePrinterDriverEx().
606     * BUG 1303: Fix for Microsoft hotfix MS04-011 password change 
607       breakage.
610 o   Andrew Bartlett <abartlet@samba.org>
611     * Fix alignment bug in GetDomPwInfo().
614 o   Alexander Bokovoy <ab@samba.org>
615     * Fix utime[s]() issues in smbwrapper on systems 
616       that can boot both the 2.4 and 2.6 Linux kernels.
619 o   Gerald Carter <jerry@samba.org>
620     * Fedora packaging fixes.
621     * BUG 1302: Fix seg fault by not trying to optimize a list of 
622       invalid gids using the wrong array size.
623     * BUG 1309: fix seg fault caused by trying to strdup(NULL)
624       seen when 'security = share'.
625     * Fix problems when using IBM's compiler on AIX.
626     * Link Developer's Guide, Example Guide, and multi-page HOWTO
627       into SWAT's welcome page.
628     * BUG 1293: fix double free in printer publishing code.
630     
631 o   Wim Delvaux <wim.delvaux@adaptiveplanet.com>
632     * Fix for handling timeouts in socket connections.
635 o   Michel Gravey <michel.gravey@optogone.com>
636     * BUG 483: patch from  to fix password hash creation in SWAT.
637     
639 o   Volker Lendecke <vl@samba.org>
640     * Close the open NT pipes before the tdis.
641     * Fix AFS related build issues.
642     * Handle error conditions when base64 encoding a blob of 0 bytes.
644     
645 o   Herb Lewis <herb@samba.org>
646     * Added 'acls' debug class.
648 o   kawasa_r@itg.hitachi.co.jp
649     * Multiple variable initialization and memory leak fixes.
650     
651     
652 o   Stephan Kulow <coolo@suse.de>
653     * Fix string length bug in libsmbclient that caused KDE's 
654       Konqueror to crash.
655     * BUG 429: More libsmbclient fixes.
658 o   Jim McDonough <jmcd@us.ibm.com>
659     * BUG 1007, 1279: Store the print job using a little-endian key.
662 o   Eric Mertens
663     o Compile fix for OpenBSD (ENOTSUP not supported).
665     
666 o   Stefan Metzmacher <metze@samba.org>
667     * Correct bug in disks quota views from explorer.
669     
670 o   Tim Potter <tpot@samba.org>
671     BUG 1305: Correct debug output.
674 o   Richard Sharpe <rsharpe@samba.org>
675     * Fix incorrect error code mapping.
678 o   Jelmer Vernooij <jelmer@samba.org>
679     * Add additional NT_STATUS errorm mappings.
680     
682 Changes for older versions follow below:
684     --------------------------------------------------
686                  =============================
687                  Release Notes for Samba 3.0.3
688                         April 29, 2004
689                  =============================
692 Common bugs fixed in Samba 3.0.3 include:
694   o Crash bugs and change notify issues in Samba's printing code.
695   o Honoring secondary group membership on domain member servers.
696   o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
697   o Substitution errors for %[UuGg] in smb.conf.
698   o winbindd crashes when using ADS security mode.
699   o SMB signing errors.
700   o Delays in winbindd startup caused by unnecessary 
701     connections to trusted domain controllers.
702   o Various small memory leaks.
703   o Winbindd failing due to expired Kerberos tickets.
705 New features introduced in Samba 3.0.3 include:
707   o Improved support for i18n character sets.
708   o Support for account lockout policy based on
709     bad password attempts.
710   o Improved support for long password changes (>14
711     characters) and strong password enforcement.
712   o Support for Windows aliases (i.e. nested groups).
713   o Experimental support for storing DOS attribute on files
714     and folders in Extended Attributes.
715   o Support for local nested groups via winbindd.
716   o Specifying options to be passed directly to the CUPS libraries.
718 Please be aware that the Samba source code repository was 
719 migrated from CVS to Subversion on April 4, 2004.  Details on 
720 accessing the Samba source tree via anonymous svn can be found 
721 at http://svn.samba.org/samba/subversion.html.
724 Changes since 3.0.2a
725 --------------------
726 smb.conf changes
727 ----------------
729     Parameter Name              Action
730     --------------              ------
731     cups options                New
732     ea support                  New
733     only user                   Deprecated
734     store dos attributes        New
735     unicode                     Removed
736     winbind nested groups       New
738     
739 commits
740 -------
742 o   Jeremy Allison <jra@samba.org>
743     * Ensure that Kerberos mutex is always properly unlocked.
744     * Removed Heimdal "in-memory keytab" support.
745     * Fixup the 'multiple-vuids' bugs in our server code.
746     * Correct return code from lsa_lookup_sids() on unmapped
747       sids (based on work by vl@samba.org).
748     * Fix the "too many fcntl locks" scalability problem 
749       raised by tridge.
750     * Fixup correct (as per W2K3) returns for lookupsids 
751       as well as lookupnames.
752     * Fixups for delete-on-close semantics as per Win2k3 behavior.
753     * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
754     * Fix "unable to initialize" bug when smbd hasn't been run with 
755       new system and a user is being added via pdbedit/smbpasswd.
756     * Added NTrename SMB (0xA5).
757     * Fixup correct timeout values for blocking lock timeouts.
758     * Fix various bugs reported by 'gentest'.
759     * More locking fixes in the case where we own the lock.
760     * Fix up regression in IS_NAME_VALID and renames.
761     * Don't set allocation size on directories.
762     * Return correct error code on fail if file exists and target 
763       is a directory.
764     * Added client "hardlink" comment to test doing NT rename with 
765       hard links.  Added hardlink_internals() code - UNIX extensions 
766       now use this as well.
767     * Use a common function to parse all pathnames from the wire for 
768       much closer emulation of Win2k3 error return codes.
769     * Implement check_path_syntax() and rewrite string sub 
770       functions for better multibyte support.
771     * Ensure msdfs referrals are multibyte safe.
772     * Allow msdfs symlink syntax to be more forgiving.
773       eg. sym_link -> msdfs://server/share/path/in/share 
774       or  sym_link -> msdfs:\\server\share\path\in\share.
775     * Cleanup multibyte netbios name support in nmbd ( based on patch
776       by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
777     * Fix check_path_syntax() for multibyte encodings which have 
778       no '\' as second byte (based on work by ab@samba.org.
779     * Fix the "dfs self-referrals as anonymous user" problem
780       (based on patch from vl@samba.org).
781     * BUG 1064: Ensure truncate attribute checking is done correctly 
782       on "hidden" dot files.
783     * Fix bug in anonymous dfs self-referrals again.
784     * Fix get/set of EA's in client library
785     * Added support for OS/2 EA's in smbd server.
786     * Added 'ea support' parameter to smb.conf.
787     * Added 'store dos attributes' parameter to smb.conf.
788     * Fix wildcard identical rename.
789     * Fix reply_ctemp - make compatible with w2k3.
790     * Fix wildcard unlink.
791     * Fix wildcard src with wildcard dest renames.      
792     * BUG 1139: Fix based on suggestion by jdev@panix.com.
793       swap lookups for user and group - group will do an
794       algorithmic lookup if it fails, user won't.
795     * Make EA's lookups case independent.
796     * Fix SETPATHINFO in 'unix extensions' support.
797     * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for 
798       the UNIX info levels, and the short case preserve names.
801 o   Timur Bakeyev <timur@com.bat.ru>
802     * BUG 1144: only set --with-fhs when the argument is 'yes'
803     * BUG 1152: Allow python modules to build despite libraries added 
804       to LDFLAGS instead of LDPATH.
805     * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
808 o   Craig Barratt <cbarratt@users.sourceforge.net>
809     * BUG 389: Allow multiple exclude arguments with smbclient 
810       tar -Xr options (better support for Amanda backup client).
813 o   Andrew Bartlett <abartlet@samba.org>
814     * Include support for linking with cracklib for enforcing strong 
815       password changes.
816     * Add support for >14 character password changes from Windows 
817       clients.
818     * Add 'admin set password' capability to 'net rpc'.
819     * Allow 'net rpc samdump' to work with any joined domain 
820       regardless of smb.conf settings.
821     * Use an allocated buffer for count_chars.
822     * Add sanity checks for changes in the domain SID in an 
823       LDAP DIT.
824     * Implement python unit tests for Samba's multibyte string 
825       support.
826     * Remove 'unicode' smb.conf option.
827     * BUG 1138: Fix support for 'optional' SMB signing and other 
828       signing bugs.
829     * BUG 169: Fix NTLMv2-only behavior.
830     * Ensure 'net' honors the 'netbios name' in the smb.conf by 
831       default.
832     * Support SMB signing on connections using only the LANMAN 
833       password and generate the correct the 'session key' for these 
834       connections.
835     * Implement --required-membership-of=, an ntlm_auth option 
836       that restricts all authentication to members of this particular 
837       group.
838     * Improve our fall back code for password changes.
839     * Only send the ntlm_auth 'ntlm-server-1' helper client a '.' 
840       after the server had said something (such as an error).
841     * Add 'ntlm-server-1' helper protocol to ntlm_auth.
843       
844 o   Alexander Bokovoy <ab@samba.org>
845     * Fix incorrect size calculation of the directory name 
846       in recycle.so.
847     * Fix problems with very long filenames in both smbd and smbclient
848       caused by truncating paths during character conversions.
849     * Fix smbfs problem with Tree Disconnect issued before smbfs 
850       starts its work.
853 o   Gerald Carter <jerry@samba.org>
854     * BUG 850: Fix 'make installmodules' bug on True64.
855     * BUG 66: mark 'only user' deprecated.
856     * Remove corrupt tdb and shutdown (only for printing tdbs, 
857       connections, sessionid & locking).
858     * decrement smbd counter in connections.tdb in smb_panic().
859     * RedHat specfile updates.
860     * Fix xattr.h build issue on Debian testing and SuSE 8.2.
861     * BUG 1147; bad pointer case in get_stored_queue_info() 
862       causing seg fault.
863     * BUG 761: read the config file before initialized default 
864       values for printing options; don't default to bsd printing 
865       Linux.
866     * Allow the 'printing' parameter to be set on a per share basis.
867     * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
868     * BUG 848: don't create winbind local users/groups that already 
869       exist in the tdb.
870     * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on 
871       LynxOS/ppc).
872     * BUG 488: fix the 'show client in col 1' button and correctly 
873       enumerate active connections.
874     * BUG 1007 (partial): Fix abort in smbd caused by byte ordering 
875       problem when storing the updating pid for the lpq cache.
876     * BUG 1007 (partial): Fix print change notify bugs.
877     * BUG 1165, 1126: Fix bug with secondary groups (security = ads) 
878       and winbind use default domain = yes.  Also ensures that 
879     * BUG 1151: Ensure that winbindd users are passed through 
880       the username map.
881     * Fix client rpc binds for ASU derived servers (pc netlink, 
882       etc...).
883     * BUG 417, 1128: Ensure that the current_user_info is set
884       consistently so that %[UuGg] is expanded correctly.
885     * BUG 1195: Fix crash in winbindd when the ADS server is 
886       unavailable.
887     * BUG 1185: Set reconnect time to be the same as the 
888       'winbind cache time'.
889     * Ensure that we return the sec_desc in smb_io_printer_info_2.
890     * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
891     * BUG 1095: Honor the '-l' option in smbclient.
892     * BUG 1023: surround get_group_from_gid() with become_unbecome_root() 
893       block.
894     * Ensure server schannel uses the auth level requested by the 
895       client.
896     * Removed --with-cracklib option due to potential crash issue.
897     * Fix -lcrypto linking problem with wbinfo.
898     * BUG 761: allow printing parameter to set defaults on a per 
899       share basis.
900     * Add 'cups options' parameter to allow raw printing without 
901       changing /etc/cups/cupsd.conf.
902     * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and 
903       winbindd.
904     * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
905     * BUG 1288: resolve any machine netbios name (0x00) and not just 
906       servers (0x20).
907     * BUG 1199: Fix potential symlink issue in 
908       examples/printing/smbprint.
911 o   Robert Dahlem <Robert.Dahlem@gmx.net>
912     * BUG 1048:  Don't return short names when when 'mangled names = no'
915 o   Guenther Deschner <gd@suse.com>
916     * Remove hard coded attribute name in the ads ranged retrieval
917       code.
918     * Add --with-libdir and --with-mandir to autoconf script.
921 o   Bostjan Golob <golob@gimb.org>
922     * BUG 1046: Fix  getpwent_list() so that the username is not 
923       overwritten by other fields.
926 o   Landon Fuller <landonf@opendarwin.org>
927     * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller) 
928       to fix user/group enumeration on systems whose libc does not 
929       call setgrent() before trying to enumerate users (i.e. 
930       FreeBSD 5.2).
933 o   Steve French <sfrench@us.ibm.com>
934     * Update mount.cifs to version 1.1.
935     * Disable dev (MS_NODEV) on user mounts from cifs vfs.
936     * Fixes to minor security bug in the mount helper.
937     * Fix credential file mounting for cifs vfs.
938     * Fix free of incremented pointer in cifsvfs mount helper.
939     * Fix path canonicalization of the mount target path and help 
940       text display in the cifs mount helper.
941     * Add missing guest mount option for mount.cifs.
944 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
945     * BUG 1055; formatting fixes for 'net share'.
946     * BUG 692: correct truncation of share names and workgroup 
947       names in smbclient.
948     * BUG 1088: use strchr_m() for query_host (smbclient -L).
949     * Patch from to internally count characters correctly.
952 o   Paul Green <paulg@samba.org>
953     * Update VOS _POSIX_C_SOURCE macro to 200112L.
954     * Fix bug in configure.ion by moving the first use of 
955       AC_CHECK_HEADERS so it is always executed.
956     * Fix configure.in to only use $BLDSHARED to select whether to 
957       build static or shared libraries.
960 o   Pat Haywarrd <Pat.Hayward@propero.net>
961     * Make the session_users list dynamic (max of 128K).
962     
963     
964 o   Cal Heldenbrand <calzplace@yahoo.com> 
965     * Fix for for 'pam_smbpass migrate' functionality.
968 o   Chris Hertel <crh@samba.org>
969     * fix enumeration of shares 12 characters in length via 
970       smbclient.
973 o   Ulrich Holeschak <ulrich@holeschak.de>
974     * BUG 932: fix local password change using pam_smbpass
977 o   Krischan Jodies <kj@sernet.de>
978     * Implement 'net rpc group delete'
981 o   John Klinger <john.klinger@lmco.com>
982     * Return NSS_SUCCESS once the max number of gids possible 
983        has been found in initgroups() on Solaris.
984     * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
987 o   Volker Lendecke <vl@samba.org>
988     * Fix success message for net groupmap modify.
989     * Fix errors when enumerating members of groups in 'net rpc'.
990     * Match Windows behavior in samr_lookup_names() by returning
991       ALIAS(4) when you search in BUILTIN. 
992     * Fix server SAMR code to be able to set alias info for 
993       builtin as well. 
994     * Fix duplication of logic when creating groups via smbd.
995     * Ensure that the HWM values are set correctly after running 
996       'net idmap'.
997     * Add 'net rpc group add'.
998     * Implement 'net groupmap set' and 'net groupmap cleanup'.
999     * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1000     * Fix wb_delgrpmem (wbinfo -o).
1001     * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1002     * Fix sambaUserWorkstations on a Samba DC.
1003     * Implement wbinfo -k: Have winbind generate an AFS token after
1004       authenticating the user.
1005     * Add expand_msdfs VFS module for providing referrals based on the
1006       the client's IP address.
1007     * Implement client side NETLOGON GetDCName function.
1008     * Fix caching of name->sid lookups.
1009     * Add support in winbindd for expanding nested local groups.
1010     * Fix memleak in winbindd.
1011     * Fix msdfs proxy.
1012     * Don't list domain groups from BUILTIN.
1013     * Fix memleak in policy handle utility functions.
1014     * Decrease winbindd startup time by only contacting trusted 
1015       domains as necessary.
1016     * Allow winbindd to ask the DC for its domain for a trusted 
1017       DC.
1018     * Fix Netscape DS schema based on comments from 
1019       <thomas.mueller@christ-wasser.de>.
1020     * Correct case where adding a domain user to a XP local group 
1021       did a lsalookupname on the user without domain prefix, and 
1022       failed.
1023     * Fix segfault in winbindd caused by 'wbinfo -a'.
1024     
1026 o   Herb Lewis <herb@samba.org>
1027     * Fix typo for tag in proto file.
1028     * Add missing #ifdef HAVE_BICONV stuff.
1029     * Truncate Samba's netbios name at the first '.' (not 
1030       right to left).
1033 o   Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1034     * Bug fixes and enhancements to libsmbclient library.
1036     
1037 o   Jianliang Lu <j.lu@tiesse.com>
1038     * Enforce the 'user must change password at next login' flag.
1039     * Decode meaning of 'fields present' flags (improves support 
1040       for usrmgr.exe).
1041     * NTLMv2 fixes.
1042     * Don't force an upper case domain name in the ntlmssp code.
1043     
1045 o   L. Lucius <ib@digicron.com>.
1046     * type fixes.
1049 o   Jim McDonough <jmcd@us.ibm.com>
1050     * Add versioning support to tdbsam.
1051     * Update the IBM Directory Server schema with the OpenLDAP 
1052       file.
1053     * Various decoding fixes to improve usrmgr.exe support.
1054     * Fix statfs redeclaration of statfs struct on ppc
1055     * Implement support for password lockout of Samba domain 
1056       controllers and standalone servers.
1057     * Get MungedDial attribute actually working with full TS 
1058       strings in it for pdb_ldap.
1059     * BUG 1208 (partial): Improvements for working with expired krb5 
1060       tickets in winbindd.
1061     * Use timegm, or our already existing replacement instead of 
1062       timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1063     * Remove modifyTimestamp from list of our attributes.  
1064     * Fix lsalookupnames to check for domain users as well as local 
1065       users. 
1066     * Merge struct uuid replacement for GUID from trunk.
1067     * BUG 1208: Finish support for handling expired tickets in 
1068       winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1071 o   Stefan Metzmacher <metze@samba.org>
1072     * Implement new VERSION schema based on subversion revision 
1073       numbers.
1074     * Add shadow_copy vfs module.
1075     * Fix segault in login_cache support.
1078 o    Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1079      o BUG 979 -- Fix quota display on AIX.
1082 o   James Peach <jpeach@sgi.com>
1083     * Correct check for printf() format when using the SGI MIPSPro 
1084       compiler.
1085     * BUG 1038: support backtrace for 'panic action' on IRIX.
1086     * BUG 768: Accept profileing arg to IRIX init script.
1087     * BUG 748: Relax arg parsing to sambalp script (IRIX).
1088     * BUG 758: Fix pdma build.
1089     * Search IRIX ABI paths for libiconv.  Based on initial fix from 
1090       Jason Mader.
1091       
1093 o   Kurt Pfeifle <kpfeifle@danka.de>
1094     * Add example shell script for migrating drivers and printers 
1095       from a Windows print server to a Samba print server using 
1096       smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1099 o   Tim Potter <tpot@samba.org>
1100     * Fix logic bug in tdb non-blocking lock routines when 
1101       errno == EAGAIN.
1102     * BUG 1025: Include sys/acl.h in check for broken nisplus 
1103       include files.      
1104     * BUG 1066: s/printf/d_printf/g in SWAT.
1105     * BUG 1098: rename internal msleep() function to fix build 
1106       problems on AIX.
1107     * BUG 1112: Fix for writable printerdata problem in python bindings.
1108     * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1109     * BUG 1155: enclose use of fchown() with guards.
1110     * Relicense tdb python module as LGPL.
1113 o   Richard Sharpe <rsharpe@samba.org>
1114     * Add support to smbclient for multiple logins on the same 
1115       session (based on work by abartlet@samba.org).
1116     * Correct blocking condition in smbd's use of accept() on IRIX.
1117     * Add support for printing out the MAC address on nmblookup.
1120 o   Simo Source <idra@samba.org>
1121     * Replace unknown_3 with fields_present in SAMR code.
1122     * More length checks in strlcat().
1125 o   Andrew Tridgell <tridge@samba.org>
1126     * Rewrote the AIX UESS backend for winbindd.
1127     * Fixed compilation with --enable-dmalloc.
1128     * Change tdb license to LGPL (see source/tdb/tdb.c).
1129     * Force winbindd to use schannel in clients connections to 
1130       DC's if possible.
1133 o   Jelmer Vernooij <jelmer@samba.org>
1134    * Fix ETA Calculation when resuming downloads in smbget.
1135    * Add -O (for writing downloaded files to standard out) 
1136      based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1137     * Fix syntax error in example mysql table
1139            
1140 o   TAKEDA yasuma <yasuma@miraclelinux.com>
1141     * BUG 900: fix token processing in cmd_symlink, cmd_link, 
1142       cmd_chown, cmd_chmod smbclient functions.
1145 o   Shiro Yamada <shiro@miraclelinux.com>
1146     * BUG 1129: install image files for SWAT.
1148       
1149     --------------------------------------------------
1151                   ==============================
1152                   Release Notes for Samba 3.0.2a
1153                         February 13, 2004
1154                   ==============================
1156 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1157 to address, in particular, a problem when using pdbedit to 
1158 sanitize (--force-initialized-passwords) Samba's tdbsam 
1159 backend.   This is the latest stable release of Samba. This 
1160 is the version that all production Samba servers should be 
1161 running for all current bug-fixes.  
1163 ******************* Attention! Achtung! Kree! *********************
1165 Beginning with Samba 3.0.2, passwords for accounts with a last 
1166 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1167 ldapsam, etc...) of zero (0) will be regarded as uninitialized 
1168 strings.  This will cause authentication to fail for such
1169 accounts.  If you have valid passwords that meet this criteria, 
1170 you must update the last change time to a non-zero value.  If you 
1171 do not, then  'pdbedit --force-initialized-passwords' will disable 
1172 these accounts and reset the password hashes to a string of X's.
1174 ******************* Attention! Achtung! Kree! *********************
1177 Changes since 3.0.2
1178 -------------------
1180 commits
1181 -------
1183 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1184 details.  The list of changes per contributor are as follows:
1187 o   Jeremy Allison <jra@samba.org>
1188     * Added paranoia checks in parsing code.
1189     
1191 o   Andrew Bartlett <abartlet@samba.org>
1192     * Ensure that changes to uninitialized passwords in ldapsam 
1193       are written to the DIT.
1196 o   Gerald (Jerry) Carter <jerry@samba.org>
1197     * Fixed iterator in tdbsam.
1198     * Fix bug that disabled accounts with a valid NT password 
1199       hash, but no LanMan hash.
1200     
1202 o   Steve French <sfrench@us.ibm.com>
1203     * Added missing nosetuid and noexec options.
1205     
1206 o   Bostjan Golob <golob@gimb.org>
1207     * BUG 1046: Don't overwrite usernames of entries returned 
1208       by getpwent_list().
1211 o   Sebastian Krahmer <krahmer@suse.de>
1212     * Fixed potential crash bug in NTLMSSP parsing code.
1215 o   Tim Potter <tpot@samba.org>
1216     * Fixed logic in tdb_brlock error checking.
1218     
1219 o   Urban Widmark <urban@teststation.com>
1220     * Set nosuid,nodev flags in smbmnt by default.
1221     
1222     
1223         --------------------------------------------------
1224                   
1225                   =============================
1226                   Release Notes for Samba 3.0.2
1227                         February 9, 2004
1228                   =============================
1230 It has been confirmed that previous versions of Samba 3.0 are
1231 susceptible to a password initialization bug that could grant an 
1232 attacker unauthorized access to a user account created by the
1233 mksmbpasswd.sh shell script.
1235 The Common Vulnerabilities and Exposures project (cve.mitre.org) 
1236 has assigned the name CAN-2004-0082 to this issue.
1238 Samba administrators not wishing to upgrade to the current 
1239 version should download the 3.0.2 release, build the pdbedit 
1240 tool, and run 
1242    root# pdbedit-3.0.2 --force-initialized-passwords
1243       
1244 This will disable all accounts not possessing a valid password
1245 (e.g. the password field has been set a string of X's).
1247 Samba servers running 3.0.2 are not vulnerable to this bug 
1248 regardless of whether or not pdbedit has been used to sanitize
1249 the passdb backend.
1251 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1252 release include:
1254   o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1255   o Logging onto a Samba domain from Windows XP clients.
1256   o Problems with the %U and %u smb.conf variables in relation to 
1257     Windows 9x/ME clients.
1258   o Kerberos failures due to an invalid in memory keytab detection
1259     test.
1260   o Updates to the ntlm_auth tool.
1261   o Fixes for various SMB signing errors.
1262   o Better separation of WINS and DNS queries for domain controllers.
1263   o Issues with nss_winbind FreeBSD and Solaris.
1264   o Several crash bugs in smbd and winbindd.
1265   o Output formatting fixes for smbclient for better compatibility
1266     with scripts based on the 2.2 version.
1269 Changes since 3.0.1
1270 -------------------
1272 smb.conf changes
1273 ----------------
1275     Parameter Name              Action
1276     --------------              ------
1277     ldap replication sleep      New
1278     read size                   removed (unused)
1279     source environment          removed (unused)
1282 commits
1283 -------
1285 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1286 details.  The list of changes per contributor are as follows:
1288 o   Jeremy Allison <jra@samba.org>
1289     * Revert change that broke Exchange clear text samlogons.
1290     * Fix gcc 3.4 warning in MS-DFS code.
1291     * Tidy up of NTLMSSP code.
1292     * Fixes for SMB signing errors
1293     * BUG 815: Workaround NT4 bug to support plaintext
1294       password logins and UNICODE.
1295     * Fix SMB signing bug when copying large files.
1296     * Correct error logic in mkdir_internals() (caused a panic
1297       when combined with --enable-developer).
1298     * BUG 830: Protect against crashes due to bad character 
1299       conversions.
1301       
1302 o   Petri Asikainen <paca@sci.fi>
1303     * BUG 330, 387:Fix single valued attribute updates when 
1304       working with Novell NDS.
1307 o   Andrew Bartlett <abartlet@samba.org>
1308     * Correctly handle per-pipe NTLMSSP inside a NULL session.
1309     * Fix segfault in gencache 
1310     * Fix early free() of encrypted_session_key.
1311     * Change DC lookup routines to more carefully separate
1312       DNS names (realms) from NetBIOS domain names.
1313     * Add new sid_to_dn() function for internal winbindd use.
1314     * Refactor cli_ds_enum_domain_trusts().
1315     * BUG 707: Implement range retrieval of ADS attributes (based 
1316       on work from Volker <vl@samba.org> and Guenther Deschner 
1317       <gd@suse.com>).
1318     * Automatically initialize the signing engine if a session key
1319       is available.
1320     * BUG 916: Do not perform a + -> ' ' substitution for squid URL 
1321       encoded strings, only form input in SWAT.
1322     * Resets the NTLMSSP state for new negotiate packets.
1323     * Add 2-byte alignments in net_samlogon() queries to parse 
1324       odd-length plain text passwords.
1325     * Allow Windows groups with no members in winbindd.
1326     * Allow normal authentication in the absence of a server 
1327       generated session key.
1328     * More optimizations for looking up UNIX group lists.
1329     * Clean up error codes and return values for pam_winbindd
1330       and winbindd PAM interface.
1331     * Fix string return values in ntlm_auth tool.
1332     * Fix segfault when 'security = ads' but no realm is defined.
1333     * BUG 722: Allow winbindd to map machine accounts to uids.
1334     * More cleanups for winbindd's find_our_domain().
1335     * More clearly detect whether a domain controller is an NT4
1336       or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1337     * Increase separation between DNS queries for hosts and queries
1338       for AD domain controllers.
1339     * Include additional NT_STATUS to PAM error mappings.
1340     * Password initialization fixes.
1342     
1343 o   Justin Baugh <justin.baugh@request.com>
1344     * BUG 948: Implement missing functions required for FreeBSD 
1345       nss_winbind support. 
1348 o   Alexander Bokovoy <ab@samba.org>
1349     * BUG 922: Make sure enable fast path for strlower_m() and 
1350       strupper_m().
1353 o   Luca Bolcioni <Luca.Bolcioni@yacme.com>
1354     * Fix crash when using 'security = server' and 'encrypt 
1355       passwords = no' by always initializing the session key.
1357       
1358 o   Dmitry Butskoj <buc@odusz.elektra.ru>
1359     * Fix for special files being hidden from admins.
1362 o   Gerald (Jerry) Carter <jerry@samba.org>
1363     * Fix bug in the lanman session key generation.  Caused 
1364       "decode_pw: incorrect password length" error messages.
1365     * Save the right case for the located user name in 
1366       fill_sam_account().  Fixes %U/%u expansion for win9x clients.
1367     * BUG 897: Add well known rid for pre win2k compatible access
1368       group.
1369     * BUG 887: Correct typo in delete user script example.
1370     * Use short lived TALLOC_CTX* for allocating printer objects 
1371       from the print handle cache.
1372     * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
1373     * Fix several warnings reported by the SUN Forte C compiler.
1374     * Fully control DNS queries for AD DC's using 'name resolve order'.
1375     * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
1376     * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
1377     * BUG 936: fix bind credentials for schannel binds in smbd.
1378     * BUG 446: Fix output of smbclient for better compatibility 
1379       with scripts based on the 2.2 version (including Amanda).
1380     * BUG 891, 949: Fedora packaging fixes.
1381     * Fix bug that caused rpcclient to incorrectly retrieve 
1382       the SID for a server (this causing all calls that required 
1383       this information to fail). 
1384     * BUG 977: Don't create a homes share for a user if a static 
1385       share already exists by the same name.
1386     * Removed unused smb.conf options.
1387     * Password initialization fixes.
1388     * Set the disable flag for template accounts created by
1389       mksmbpasswd.sh.
1390     * Disable any account has no passwords and does not have the
1391       ACB_PWNOTREQ bit set.
1394 o   Guenther Deschner <gd@suse.com>
1395     * Install smbwrapper.so should be put into the $(libdir) 
1396       and not $(bindir).
1397     * Add the capability to specify the new user password 
1398       for "net ads password" on the command line.
1399     * Correctly detect AFS headers on SuSE.
1400         
1402 o   James Flemer <jflemer@uvm.edu>
1403     * Fix AIX compile bug by linking HAVE_ATTR_LIST to 
1404       HAVE_SYS_ATTRIBUTES_H.
1407 o   Luke Howard <lukeh@PADL.COM>
1408     * Fix segfault in session setup reply caused by a early free().
1411 o   Stoian Ivanov <sdr@bultra.com>
1412     * Implement grepable output for smbclient -L.
1415 o   LaMont Jones <lamont@debian.org>
1416     * BUG 225328 (Debian): Correct false failure LFS test that resulted 
1417       in  _GNU_SOURCE not being defined (thus resulting in strndup() 
1418       not being defined).
1420       
1421 o   Volker Lendecke <vl@samba.org>
1422     * BUG 583: Ensure that user names always contain the short 
1423       version of the domain name.
1424     * Fix our parsing of the LDAP uri.
1425     * Don't show the 'afs username map' in the SWAT basic view.
1426     * Fix SMB signing issues in relation to failed NTLMSSP logins.
1427     * BUG 924: Fix return codes in smbtorture harness.
1428     * Always lower-case usernames before handing it to AFS code.
1429     * Add a German translation for SWAT.
1430     * Fix a segfaults in winbindd.
1431     * Fix the user's domain passed to register_vuid() from 
1432       reply_spnego_kerberos().
1433     * Add NSS example code in nss_winbind to convert UNIX 
1434       id's <-> Windows SIDs.
1435     * Display more descriptive error messages for login via 'net'.
1436     * Fix compiler warning in the net tool.
1437     * Fix length bug when decoding base64 strings.
1438     * Ensure we don't call getpwnam() inside a loop that is iterating 
1439       over users with getpwent().  This broke on glibc 2.3.2.
1442 o   Herb Lewis <herb@samba.org>
1443     * Fix bit rot in psec.
1446 o   Jianliang Lu <j.lu@tiesse.com>
1447     * Ensure we delete the group mapping before calling the delete 
1448       group script.
1449     * Define well known RID for managing the  "Power Users" group.
1450     * BUG 381: check builtin (not local) group SID when updating 
1451       group membership.
1452     * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement 
1453       packet.
1456 o   John Klinger <john.klinger@lmco.com>
1457     * Implement initgroups() call in nss_winbind on Solaris.
1460 o   Jim McDonough <jmcd@us.ibm.com>
1461     * Fix regression in net rpc join caused by recent changes 
1462       to cli_lsa_query_info_policy().
1463     * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
1464       machine account.
1467 o   MORIYAMA Masayuki <moriyama@miraclelinux.com>
1468     * BUG 570: Ensure that configure honors the LDFLAGS variable.
1471 o   Stefan Metzmacher <metze@samba.org>
1472     * Implement LDAP rebind sleep patch.
1473     * Revert to 2.2 quota code because of so many broken quota files 
1474       out there.
1475     * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
1476                       XFS_USER_QUOTA -> USRQUOTA
1477                       XFS_GROUP_QUOTA -> GRPQUOTA
1478     * Fix disk_free calculation with group quotas.
1479     * Add debug class 'quota' and a lot of DEBUG()'s 
1480       to the quota code.
1481     * Fix sys_chown() when no chown() is present.
1482     * Add SIGABRT to fault handling in order to catch got a 
1483       backtrace if an error occurs the OpenLDAP client libs.
1486 o   <ndb@theghet.to>
1487     * Allow an existing LDAP machine account to be re-used when 
1488       joining an AD domain.
1491 o   James Peach <jpeach@sgi.com>
1492     * BUG 889: Change smbd to use pread/pwrite on platforms that 
1493       support these calls. Can lead to a significant speed increase.
1496 o   Tim Potter <tpot@samba.org>
1497     * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
1498     * BUG 924: Fix typo in RW2 torture test.
1499     
1500     
1501 o   Richard Sharpe <rsharpe@samba.org>
1502     * Small fixes to torture.c to cleanup the error handling 
1503       and prevent crashes.
1506 o   J. Tournier <jerome.tournier@IDEALX.com>
1507     * Small fixes for the smbldap-tool scripts.
1510 o   Andrew Tridgell <tridge@samba.org>
1511     * Fix src len check in pull_usc2().
1512     
1513     
1514 o   Jelmer Vernooij <jelmer@samba.org>
1515     * Put functions for generating SQL queries in pdb_sql.c
1516     * Add pgSQL backend (based on patch by Hamish Friedlander)
1517     * BUG 908: Fix -s option to smbcontrol.    
1518     * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
1519     * Fix for libnss_wins on IRIX platforms.
1520     * Fix swatdir for --with-fhs.
1523         --------------------------------------------------
1525                   =============================
1526                   Release Notes for Samba 3.0.1
1527                         December 15, 2003
1528                   =============================
1530 Some of the more common bugs in 3.0.0 addressed in the release 
1531 include:
1533   o Substitution problems with smb.conf variables.
1534   o Errors in return codes which caused some applications
1535     to fail to open files.
1536   o General Protection Faults on Windows 2000/XP clients
1537     using Samba point-n-print features.
1538   o Several miscellaneous crash bugs.
1539   o Access problems when enumerating group mappings are
1540     stored in an LDAP Directory.
1541   o Several common SWAT bugs when writing changes to
1542     smb.conf.
1543   o Internal inconsistencies when 'winbind use default
1544     domain = yes'
1548 Changes since 3.0.0
1549 ----------------------
1551     Parameter Name              Action
1552     --------------              ------
1553     hide local users            Removed
1554     mangled map                 Deprecated
1555     mangled stack               Removed
1556     passwd chat timeout         New
1559 commits
1560 -------
1562 o   Change the interface for init_unistr2 to not take a length 
1563     but a flags field.  We were assuming that 
1564     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
1565 o   Allow d_printf() to handle strings with escaped quotation 
1566     marks since the msg file includes the escape character (bug 489).
1567 o   Fix bad html table row termination in SWAT wizard code (bug 413).
1568 o   Fix to parse the level-2 strings.
1569 o   Fix for "valid users = %S" in [homes].  Fix read/write 
1570     list as well. 
1571 o   Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
1572     This is the same way AC_CHECK_LIB works (bug 508).
1573 o   Testparm output fixes for clarity.
1574 o   Fix broken wins hook functionality -- i18n bug (bug 528).
1575 o   Take care of condition where DOS and NT error codes must differ.
1576 o   Default to using only built-in charsets when a working iconv 
1577     implementation cannot be located.
1578 o   Wrap internals of sys_setgroups() so the sys_XX() call can 
1579     be done unconditionally (bug 550).
1580 o   Remove duplicate smbspool link on SWAT's front page (bug 541).
1581 o   Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
1582     --enable-debug=[yes|no] works correctly.
1583 o   Allow ^C to interrupt smbpasswd if using our getpass 
1584     (e.g. smbpasswd command).
1585 o   Support signing only on RPC's (bug 167).
1586 o   Correct bug that prevented  Excel 2000 clients from opening 
1587     files marked as read-only.
1588 o   Portability fix bugs 546 - 549).
1589 o   Explicitly initialize the value of AR for vendor makes that don't
1590     do this (e.g. HPUX 11).  (bug 552).
1591 o   More i18n fixes for SWAT (bug 413).
1592 o   Change the cwd before the postexec script to ensure that a
1593     umount will succeed.
1594 o   Correct double free that caused winbindd to crash when a DC 
1595     is rebooted (bug 437).
1596 o   Fix incorrect mode sum (bug 562).
1597 o   Canonicalize SMB_INFO_ALLOCATION in the same was as
1598     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
1599 o   Add script to generate *msg files.
1600 o   Add Dutch SWAT translation file.
1601 o   Make sure to call get_user_groups() with the full winbindd 
1602     name for a user if he/she has one (bug 406).
1603 o   Fix up error code returns from Samba4 tester. Ensure invalid 
1604     paths are validated the same way.  
1605 o   Allow Samba3 to pass the Samba4 RAW-READ tests.
1606 o   Refuse to configure if --with-expsam=$BACKEND was used but no 
1607     libraries were found for $BACKEND.
1608 o   Move sysquotas autoconf tests to a separate file.
1609 o   Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
1610     tester
1611 o   Make sure that the files that contain the static_init_$subsystem; 
1612     macro get recompiled after configure by removing the object 
1613     files.
1614 o   Ensure canceling a blocking lock returns the correct error 
1615     message.
1616 o   Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
1617 o   Updated Japanese welcome file in SWAT.
1618 o   Fix to  nt-time <-> unix-time functions reversible.
1619 o   Ensure that winbindd uses the the escaped DN when querying
1620     an AD ldap server.
1621 o   Fix portability issues when compiling (bug 505, 550)
1622 o   Compile fix for tdbbackup when Samba needs to override 
1623     non-C99 compliant implementations of snprintf().
1624 o   Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
1625 o   Make sure we break out of samsync loop on error.
1626 o   Ensure error code path doesn't free unmalloc()'d memory
1627     (bug 628).
1628 o   Add configure test for krb5_keytab_entry keyblock vs key 
1629     member (bug 636).
1630 o   Fixed spinlocks.
1631 o   Modified testparm so that all output so all debug output goes 
1632     to stderr, and all file processing goes to stdout.
1633 o   Fix error return code for BUFFER_TOO_SMALL in smbcacls 
1634     and smbcquotas.
1635 o   Fix "NULL dest in safe_strcpy()" log message by ensuring that 
1636     we have a devmode before copying a string to the devicename.
1637 o   Support mapping REALM.COM\user to a local user account (without 
1638     running winbindd)  for compatibility with 2.2.x release.
1639 o   Ensure we don't use mmap() on blacklisted systems.
1640 o   fixed a number of bugs and memory leaks in the AIX 
1641     winbindd shim
1642 o   Call initgroups() in SWAT before becomming the user so that
1643     secondary group permissions can be used when writing to 
1644     smb.conf.
1645 o   Fix signing problems when reverse connecting back to a 
1646     client for printer notify
1647 o   Fix signing problems caused by a miss-sequence bug.
1648 o   Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
1649     Fixes NEXUS tools running on Win9x clients (bug 64).
1650 o   Don't leave the domain field uninitialized in cli_lsa.c if some 
1651     SID could not be mapped.
1652 o   Fix segfault in mount.cifs helper when there is no options 
1653     specified during mount.
1654 o   Change the \n after the password prompt to go to tty instead 
1655     of stdout (bug 668).
1656 o   Stop net -P from prompting for machine account password (bug 451).
1657 o   Change in behavior to Not only change the effective uid but also
1658     the real uid when becoming unprivileged.
1659 o   Cope with Exchange 5.5 cleartext pop password auth.
1660 o   New files for support of initshutdown pipe.  Win2k doesn't 
1661     respond properly to all requests on the winreg pipe, so we need 
1662     to handle this new pipe (bug 534).
1663 o   Added more va_copy() checks in configure.in.
1664 o   Include fixes for libsmbclient build problems.
1665 o   Missing UNIX -> DOS codepage conversion in lanman.c.
1666 o   Allow DFMS-S filenames can now have arbitrary case (bug 667).
1667 o   Parameterize the listen backlog in smbd and make it larger by
1668     default. A backlog of 5 is way too small these days.
1669 o   Check for an invalid fid before dereferencing the fsp pointer
1670     (bug 696).
1671 o   Remove invalid memory frees and return codes in pdb_ldap.c.
1672 o   Prompt for password when invoking --set-auth-user and no 
1673     password is given.
1674 o   Bind the nmbd sending socket to the 'socket address'.
1675 o   Re-order link command for smbd, rpcclient and smbpasswd to ensure 
1676     $LDFLAGS occurs before any library specification (bug 661).
1677 o   Fix large number of printf() calls for 64-bit size_t.
1678 o   Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
1679     keyblock in the krb5 structs.
1680 o   Remove #include <compat.h> in hopes to avoid problems with 
1681     apache header files.
1682 o   Correct winbindd build problems on HP-UX 11.
1683 o   Lowercase netgroups lookups (bug 703).
1684 o   Use the actual size of the buffer in strftime instead of a made
1685     up value which just happens to be less than sizeof(fstring).  
1686     (bug 713).
1687 o   Add ldaplibs to pdbedit link line (bug 651).
1688 o   Fix crash bug in smbclient completion (bug 659).
1689 o   Fix packet length for browse list reply (bug 771).
1690 o   Fix coredump in cli_get_backup_list().
1691 o   Make sure that we expand %N (bug 612).
1692 o   Allow rpcclient adddriver command to specify printer driver 
1693     version (bug 514).
1694 o   Compile tdbdump by default.
1695 o   Apply patches to fix iconv detection for FreeBSD.
1696 o   Do not allow the 'guest account' to be added to a passdb backend 
1697     using smbpasswd or pdbedit (bug 624).
1698 o   Save LDFLAGS during iconv detection (bug 57).
1699 o   Run krb5 logins through the username map if the winbindd 
1700     lookup fails (bug 698).
1701 o   Add const for lp_set_name_resolve_order() to avoid compiler 
1702     warnings (bug 471).
1703 o   Add support for the %i macro in smb.conf to stand in for the for
1704     the local IP address to which a client connected.
1705 o   Allow winbindd to match local accounts to domain SID when 
1706     'winbind trusted domains only = yes' (bug 680).
1707 o   Remove code in idmap_ldap that searches the user suffix and group 
1708     suffix.  It's not needed and provides inconsistent functionality 
1709     from the tdb backend.
1710 o   Patch to handle munged dial string for Windows 2000 TSE.
1711     Thanks to Gaz de France, Direction de la Recherche, Service 
1712     Informatique Métier for their supporting this work by Aurelien 
1713     Degrémont <adegremont@idealx.com>.
1714 o   Correct the "smbldap_open: cannot access when not root error"
1715     messages when looking up group information (bug 281).
1716 o   Skip over the winbind separator when looking up a user.
1717     This fixes the bug that prevented local users from
1718     matching an AD user when not running winbindd (bug 698).
1719 o   Fix a problem with configure on *BSD systems. Make sure
1720     we add -liconv etc to LDFLAGS.
1721 o   Fix core dump bug when "security = server" and the authentication
1722     server goes away.
1723 o   Correct crash bug due to an empty munged dial string.
1724 o   Show files locked by a specific user (smbstatus -u 'user') 
1725     (bug 590).
1726 o   Fix bug preventing print jobs from display in the queue
1727     monitor used by Windows NT and later clients (bug 660).
1728 o   Fix several reported problems with point-n-print from
1729     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
1730     reply (bug 338, 527 & 643).
1731 o   Fix a handful of potential memory leaks in the LDAP code used
1732     by ldapsam[_compat] and the LDAP idmap backend.
1733 o   Fix for pdbedit error code returns (bug 763).
1734 o   Make sure we only enumerate group mapping entries  (not 
1735     /etc/group) even when doing local aliases.
1736 o   Relax check on the pipe name in a dce/rpc bind response to work 
1737     around issues with establishing trusts to a Windows 2003 domain.
1738 o   Ensure we mangle names ending in '.' in hash2 mangling method.
1739 o   Correct parsing issues with munged dial string.
1740 o   Fix bugs in quota support for XFS.
1741 o   Add a cleaner method for applications that need to provide 
1742     name->SID mappings to do this via NSS rather than having to 
1743     know the winbindd pipe protocol.
1744 o   Adds a variant of the winbindd_getgroups() call called 
1745     winbindd_getusersids() that provides direct SID->SIDs listing of 
1746     a users supplementary groups. This is enough to allow non-Samba 
1747     applications to do ACL checking.
1748 o   Make sure we don't append the 'ldap suffix' when writing out the 
1749     'ldap XXX suffix' values in SWAT (bug 328).
1750 o   Fix renames across file systems.
1751 o   Ensure that items in a list of strings containing whitespace are 
1752     written out surrounded by single quotes.  This means that both 
1753     double and single quotes are now used to surround strings in 
1754     smb.conf (bug 481).
1755 o   Enable SWAT to correctly determine if winbindd is running (bug 
1756     398).
1757 o   Include WWW-Authenticate field in 401 response for bad auth 
1758     attempt (bug 629).
1759 o   Add support for NTLM2 (NTLMv2 session security).
1760 o   Add support for variable-length session keys.
1761 o   More privilege fixes for group enumeration in LDAP (bug 281).
1762 o   Use the dns name (or IP) as the originating client name when
1763     using CUPS (bug 467).
1764 o   Fix various SMB signing bugs.
1765 o   Fix ACL propagation on a DFS root (bug 263).
1766 o   Disable NTLM2 for RPC pipes.
1767 o   Allow the client to specify the NTLM2 flags got NTLMSSP 
1768     authentication.
1769 o   Change the name of the job passed off to cups from "Test Page" 
1770     to "smbprn.00000033 Test Page" so that we can get the smb 
1771     jobid back. This allow users to delete jobs with cups printing 
1772     backend (partial work on bug 770).
1773 o   Fix build of winbindd with static pdb modules.
1774 o   Retrieve the correct ACL group bits if the file has an ACL 
1775     (bug 802).
1776 o   Implement "net rpc group members": Get members of a domain group 
1777     in human-readable format.
1778 o   Add MacOSX (Darwin) specific charset module code.
1779 o   Use samr_dispinfo(level == 1) for enumerating domain users so we 
1780     can include the full name in gecos field (bug 587).
1781 o   Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1782 o   Implement 'net rpc group list [global|local|builtin]*' for a 
1783     select listing of the respective user databases.
1784 o   Don't automatically set NT status code flag unless client tells 
1785     us it can cope.
1786 o   Add 'net status [sessions|shares] [parseable]'.
1787 o   Don't mistake pre-existing UNIX jobs for smb jobs (remainder of  
1788     bug 770).
1789 o   Add 'Replicator' and 'RAS Servers' to list of builtin SIDs 
1790    (bug 608).
1791 o   Fix inverted logic in hosts allow/deny checks caused by 
1792     s/strcmp/strequal/ (bug 846).
1793 o   Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1794 o   Fix typo in 'hash' mangling algorithm.
1795 o   Support munged dial for ldapsam (bug 800).
1796 o   Fix process_incoming_data() to return the number of bytes handled 
1797     this call whether we have a complete PDU or not; fixes bug 
1798     with multiple PDU request rpc's broken over SMBwriteX calls 
1799     each.
1800 o   Fix incorrect smb flags2 for connections to pre-NT servers 
1801     (causes smbclient to fail to OS2 for example) (bug 821).
1802 o   Update version string in smbldap-tools Makefile to 0.8.2.
1803 o   Correct a problem with "net rpc vampire" mis-parsing the 
1804     alias member info reply.
1805 o   Ensure the ${libdir} is created by the installclientlib script.
1806 o   Fix detection of Windows 2003 client architecture in the smb.conf
1807     %a variable.
1808 o   Ensure that smbd calls the add user script for a missing UNIX 
1809     user on kerberos auth call (bug 445).
1810 o   Fix bugs in hosts allow/deny when using a mismatched 
1811     network/netmask pair.
1812 o   Protect alloc_sub_basic() from crashing when the source string 
1813     is NULL (partial work on bug 687).
1814 o   Fix spinlocks on IRIX.
1815 o   Corrected some bad destination paths when running "configure 
1816     --with-fhs".
1817 o   Add packaging files for Fedora Core 1.
1818 o   Correct bug in SWAT install script for non-english languages.
1819 o   Support character set ISO-8859-1 internally (bug 558).
1820 o   Fixed more LDAP access errors when looking up group mappings 
1821     (bug 281).
1822 o   Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID 
1823     resolution to fail on local files on on domain members 
1824     (bug 875).
1825 o   Fix uninitialized variable in passdb.c.
1826 o   Fix formal parameter type in get_static() in nsswitch/wins.c.
1827 o   Fix problem mounting directories when mount.cifs is installed 
1828     with the setuid bit on.
1829 o   Fix bug that prevent --mandir from overriding the defaults
1830     given in the --with-fhs macro.
1831 o   Fix bug in in-memory Kerberos keytab detection routines 
1832     in configure.in
1836 ######################################################################
1838               The original 3.0.0 release notes follow
1839               =======================================
1840                     WHATS NEW IN Samba 3.0.0
1841                         September 24, 2003
1842               =======================================
1845 Major new features:
1846 -------------------
1848 1)  Active Directory support.  Samba 3.0 is now able to  
1849     join a ADS realm as a member server and authenticate 
1850     users using LDAP/Kerberos.
1852 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
1853     and internally there is now a much better infrastructure for 
1854     multi-byte and UNICODE character sets.
1856 3)  New authentication system. The internal authentication system 
1857     has been almost completely rewritten. Most of the changes are 
1858     internal, but the new auth system is also very configurable.
1860 4)  New default filename mangling system.
1862 5)  A new "net" command has been added. It is somewhat similar to 
1863     the "net" command in windows. Eventually we plan to replace 
1864     numerous other utilities (such as smbpasswd) with subcommands 
1865     in "net".
1867 6)  Samba now negotiates NT-style status32 codes on the wire. This
1868     improves error handling a lot.
1870 7)  Better Windows 2000/XP/2003 printing support including publishing
1871     printer attributes in active directory.
1873 8)  New loadable module support for passdb backends and character 
1874     sets.
1876 9)  New default dual-daemon winbindd support for better performance.
1878 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
1879     domain and maintaining user, group and domain SIDs.
1881 11) Support for establishing trust relationships with Windows NT 4.0
1882     domain controllers.
1883   
1884 12) Initial support for a distributed Winbind architecture using
1885     an LDAP directory for storing SID to uid/gid mappings.
1886   
1887 13) Major updates to the Samba documentation tree.
1889 14) Full support for client and server SMB signing to ensure
1890     compatibility with default Windows 2003 security settings.
1892 15) Improvement of ACL mapping features based on code donated by
1893     Andreas Grünbacher.
1896 Plus lots of other improvements!
1899 Additional Documentation
1900 ------------------------
1902 Please refer to Samba documentation tree (included in the docs/ 
1903 subdirectory) for extensive explanations of installing, configuring
1904 and maintaining Samba 3.0 servers and clients.  It is advised to 
1905 begin with the Samba-HOWTO-Collection for overviews and specific 
1906 tasks (the current book is up to approximately 400 pages) and to 
1907 refer to the various man pages for information on individual options.
1909 We are very glad to be able to include the second edition of
1910 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1911 (O'Reilly & Associates) in this release.  The book is available
1912 on-line at http://samba.org/samba/docs/ and is included with 
1913 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
1914 publisher for making "Using Samba" under the GNU Free Documentation 
1915 License.
1918 ######################################################################
1919 Upgrading from a previous Samba 3.0 beta
1920 ########################################
1922 Beginning with Samba 3.0.0beta3, the RID allocation functions
1923 have been moved into winbindd.  Previously these were handled
1924 by each passdb backend.  This means that winbindd must be running
1925 to automatically allocate RIDs for users and/or groups.  Otherwise,
1926 smbd will use the 2.2 algorithm for generating new RIDs.
1928 If you are using 'passdb backend = tdbsam' with a previous Samba 
1929 3.0 beta release (or possibly alpha), it may be necessary to 
1930 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1931 to winbindd_idmap.tdb.  To do this:
1933 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
1934     once)
1935 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
1936     directory
1937 3)  run: (note that 'tdb>' is the tool's prompt for input)
1939        root# ./tdbtool /usr/local/samba/private/passdb.tdb
1940        tdb> show RID_COUNTER
1941        key 12 bytes
1942        RID_COUNTER
1943        data 4 bytes
1944        [000] 0A 52 00 00                                       .R.
1946        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1947        ....
1948        record moved
1950 If you are using 'passdb backend = ldapsam', it will be necessary to 
1951 store idmap entries in the LDAP directory as well (i.e. idmap backend 
1952 = ldap).  Refer to the 'net idmap' command for more information on 
1953 migrating SID<->UNIX id mappings from one backend to another.
1955 If the RID_COUNTER record does not exist, then these instructions are
1956 unneccessary and the new RID_COUNTER record will be correctly generated
1957 if needed.  
1961 ########################
1962 Upgrading from Samba 2.2
1963 ########################
1965 This section is provided to help administrators understand the details
1966 involved with upgrading a Samba 2.2 server to Samba 3.0.
1969 Building
1970 --------
1972 Many of the options to the GNU autoconf script have been modified 
1973 in the 3.0 release.  The most noticeable are:
1975   * removal of --with-tdbsam (is now included by default; see section
1976     on passdb backends and authentication for more details)
1977     
1978   * --with-ldapsam is now on used to provided backward compatible
1979     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
1980     backend and authentication section for more details
1981   
1982   * inclusion of non-standard passdb modules may be enabled using
1983     --with-expsam.  This includes an XML backend and a mysql backend.
1984       
1985   * removal of --with-msdfs (is now enabled by default)
1986   
1987   * removal of --with-ssl (no longer supported)
1988   
1989   * --with-utmp now defaults to 'yes' on supported systems
1990   
1991   * --with-sendfile-support is now enabled by default on supported 
1992     systems
1993   
1994     
1995 Parameters
1996 ----------
1998 This section contains a brief listing of changes to smb.conf options
1999 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
2000 complete descriptions of new or modified parameters.
2002 Removed Parameters (order alphabetically):
2004   * admin log
2005   * alternate permissions
2006   * character set
2007   * client codepage
2008   * code page directory
2009   * coding system
2010   * domain admin group
2011   * domain guest group
2012   * force unknown acl user
2013   * hide local users
2014   * mangled stack
2015   * nt smb support
2016   * postscript
2017   * printer driver
2018   * printer driver file
2019   * printer driver location
2020   * read size
2021   * source environment
2022   * status
2023   * strip dot
2024   * total print jobs
2025   * use rhosts
2026   * valid chars
2027   * vfs options
2029 New Parameters (new parameters have been grouped by function):
2031   Remote management
2032   -----------------
2033   * abort shutdown script
2034   * shutdown script
2036   User and Group Account Management
2037   ---------------------------------
2038   * add group script
2039   * add machine script
2040   * add user to group script
2041   * algorithmic rid base
2042   * delete group script
2043   * delete user from group script
2044   * passdb backend
2045   * set primary group script
2047   Authentication
2048   --------------
2049   * auth methods
2050   * realm
2051   * passwd chat timeout
2053   Protocol Options
2054   ----------------
2055   * client lanman auth
2056   * client NTLMv2 auth
2057   * client schannel
2058   * client signing
2059   * client use spnego
2060   * disable netbios
2061   * ntlm auth
2062   * paranoid server security
2063   * server schannel
2064   * server signing
2065   * smb ports
2066   * use spnego
2068   File Service
2069   ------------
2070   * get quota command
2071   * hide special files
2072   * hide unwriteable files
2073   * hostname lookups
2074   * kernel change notify
2075   * mangle prefix
2076   * map acl inherit
2077   * msdfs proxy
2078   * set quota command
2079   * use sendfile
2080   * vfs objects
2081   
2082   Printing
2083   --------
2084   * max reported print jobs
2086   UNICODE and Character Sets
2087   --------------------------
2088   * display charset
2089   * dos charset
2090   * unicode
2091   * unix charset
2092   
2093   SID to uid/gid Mappings
2094   -----------------------
2095   * idmap backend
2096   * idmap gid
2097   * idmap uid
2098   * winbind enable local accounts
2099   * winbind trusted domains only
2100   * template primary group
2101   * enable rid algorithm
2103   LDAP
2104   ----
2105   * ldap delete dn
2106   * ldap group suffix
2107   * ldap idmap suffix
2108   * ldap machine suffix
2109   * ldap passwd sync
2110   * ldap replication sleep
2111   * ldap user suffix
2112   
2113   General Configuration
2114   ---------------------
2115   * preload modules
2116   * private dir
2118 Modified Parameters (changes in behavior):
2120   * encrypt passwords (enabled by default)
2121   * mangling method (set to 'hash2' by default)
2122   * passwd chat
2123   * passwd program
2124   * restrict anonymous (integer value)
2125   * security (new 'ads' value)
2126   * strict locking (enabled by default)
2127   * unix extensions (enabled by default)
2128   * winbind cache time (increased to 5 minutes)
2129   * winbind uid (deprecated in favor of 'idmap uid')
2130   * winbind gid (deprecated in favor of 'idmap gid')
2133 Databases
2134 ---------
2136 This section contains brief descriptions of any new databases 
2137 introduced in Samba 3.0.  Please remember to backup your existing 
2138 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
2139 upgrade databases as they are opened (if necessary), but downgrading 
2140 from 3.0 to 2.2 is an unsupported path.
2142 Name                    Description                             Backup?
2143 ----                    -----------                             -------
2144 account_policy          User policy settings                    yes
2145 gencache                Generic caching db                      no
2146 group_mapping           Mapping table from Windows              yes
2147                         groups/SID to unix groups        
2148 winbindd_idmap          ID map table from SIDS to UNIX          yes
2149                         uids/gids.
2150 namecache               Name resolution cache entries           no
2151 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
2152                         returned as part of a successful
2153                         net_sam_logon request 
2154 printing/*.tdb          Cached output from 'lpq                 no
2155                         command' created on a per print 
2156                         service basis
2157 registry                Read-only samba registry skeleton       no
2158                         that provides support for exporting
2159                         various db tables via the winreg RPCs
2162 Changes in Behavior
2163 -------------------
2165 The following issues are known changes in behavior between Samba 2.2 and 
2166 Samba 3.0 that may affect certain installations of Samba.
2168   1)  When operating as a member of a Windows domain, Samba 2.2 would 
2169       map any users authenticated by the remote DC to the 'guest account'
2170       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
2171       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
2172       current work around to re-establish the 2.2 behavior.
2173       
2174   2)  When adding machines to a Samba 2.2 controlled domain, the 
2175       'add user script' was used to create the UNIX identity of the 
2176       machine trust account.  Samba 3.0 introduces a new 'add machine 
2177       script' that must be specified for this purpose.  Samba 3.0 will
2178       not fall back to using the 'add user script' in the absence of 
2179       an 'add machine script'
2180   
2182 ######################################################################
2183 Passdb Backends and Authentication
2184 ##################################
2186 There have been a few new changes that Samba administrators should be
2187 aware of when moving to Samba 3.0.
2189   1) encrypted passwords have been enabled by default in order to 
2190      inter-operate better with out-of-the-box Windows client 
2191      installations.  This does mean that either (a) a samba account
2192      must be created for each user, or (b) 'encrypt passwords = no'
2193      must be explicitly defined in smb.conf.
2194     
2195   2) Inclusion of new 'security = ads' option for integration 
2196      with an Active Directory domain using the native Windows
2197      Kerberos 5 and LDAP protocols.
2199      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
2200      type which is neccessary for servers on which the 
2201      administrator password has not been changed, or kerberos-enabled 
2202      SMB connections to servers that require Kerberos SMB signing.
2203      Besides this one difference, either MIT or Heimdal Kerberos
2204      distributions are usable by Samba 3.0.
2205      
2207 Samba 3.0 also includes the possibility of setting up chains
2208 of authentication methods (auth methods) and account storage 
2209 backends (passdb backend).  Please refer to the smb.conf(5) 
2210 man page for details.  While both parameters assume sane default 
2211 values, it is likely that you will need to understand what the 
2212 values actually mean in order to ensure Samba operates correctly.
2214 The recommended passdb backends at this time are
2216   * smbpasswd - 2.2 compatible flat file format
2217   * tdbsam - attribute rich database intended as an smbpasswd
2218     replacement for stand alone servers
2219   * ldapsam - attribute rich account storage and retrieval 
2220     backend utilizing an LDAP directory.  
2221   * ldapsam_compat - a 2.2 backward compatible LDAP account 
2222     backend
2223     
2224 Certain functions of the smbpasswd(8) tool have been split between the 
2225 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
2226 utility.  See the respective man pages for details.
2227     
2228      
2229 ######################################################################
2230 LDAP
2231 ####
2233 This section outlines the new features affecting Samba / LDAP 
2234 integration.
2236 New Schema
2237 ----------
2238   
2239 A new object class (sambaSamAccount) has been introduced to replace 
2240 the old sambaAccount.  This change aids us in the renaming of 
2241 attributes to prevent clashes with attributes from other vendors.  
2242 There is a conversion script (examples/LDAP/convertSambaAccount) to 
2243 modify and LDIF file to the new schema.
2244   
2245 Example:
2246   
2247   $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2248   $ convertSambaAccount --sid=<Domain SID> \
2249     --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2250     --changetype=[modify|add]
2251         
2252 The <DOM SID> can be obtained by running 'net getlocalsid 
2253 <DOMAINNAME>' on the Samba PDC as root.  The changetype determines 
2254 the format of the generated LDIF output--either create new entries 
2255 or modify existing entries.
2256     
2257 The old sambaAccount schema may still be used by specifying the 
2258 "ldapsam_compat" passdb backend.  However, the sambaAccount and
2259 associated attributes have been moved to the historical section of
2260 the schema file and must be uncommented before use if needed.
2261 The 2.2 object class declaration for a sambaAccount has not changed
2262 in the 3.0 samba.schema file. 
2263   
2264 Other new object classes and their uses include:
2265   
2266   * sambaDomain - domain information used to allocate rids 
2267     for users and groups as necessary.  The attributes are added
2268     in 'ldap suffix' directory entry automatically if 
2269     an idmap uid/gid range has been set and the 'ldapsam'
2270     passdb backend has been selected.
2271       
2272   * sambaGroupMapping - an object representing the 
2273     relationship between a posixGroup and a Windows
2274     group/SID.  These entries are stored in the 'ldap 
2275     group suffix' and managed by the 'net groupmap' command.
2276     
2277   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
2278     automatically and contains the next available 'idmap uid' and 
2279     'idmap gid'
2280     
2281   * sambaIdmapEntry - object storing a mapping between a 
2282     SID and a UNIX uid/gid.  These objects are created by the 
2283     idmap_ldap module as needed.
2285   * sambaSidEntry - object representing a SID alone, as a Structural
2286     class on which to build the sambaIdmapEntry.
2288     
2289 New Suffix for Searching
2290 ------------------------
2291   
2292 The following new smb.conf parameters have been added to aid in directing
2293 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2294 specified.
2296   * ldap suffix         - used to search for user and computer accounts
2297   * ldap user suffix    - used to store user accounts
2298   * ldap machine suffix - used to store machine trust accounts
2299   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
2300   * ldap idmap suffix   - location of sambaIdmapEntry objects
2302 If an 'ldap suffix' is defined, it will be appended to all of the 
2303 remaining sub-suffix parameters.  In this case, the order of the suffix
2304 listings in smb.conf is important.  Always place the 'ldap suffix' first
2305 in the list.  
2307 Due to a limitation in Samba's smb.conf parsing, you should not surround 
2308 the DN's with quotation marks.
2311 IdMap LDAP support
2312 ------------------
2314 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
2315 following options would inform Samba that the idmap table should be
2316 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2317 dc=org" partition.
2319  [global]
2320     ...
2321     idmap backend     = ldap:ldap://onterose/
2322     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2323     idmap uid         = 40000-50000
2324     idmap gid         = 40000-50000
2326 This configuration allows winbind installations on multiple servers to
2327 share a uid/gid number space, thus avoiding the interoperability problems
2328 with NFS that were present in Samba 2.2.
2329     
2332 ######################################################################
2333 Trust Relationships and a Samba Domain
2334 ######################################
2336 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
2337 allocating uids and gids to trusted users and groups.  More
2338 information regarding Samba's support for establishing trust 
2339 relationships can be found in the Samba-HOWTO-Collection included
2340 in the docs/ directory of this release.
2342 First create your Samba PDC and ensure that everything is 
2343 working correctly before moving on the trusts.
2345 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2346 4.0 domain named WINDOWS:
2348   1) create the trust account for SAMBA in "User Manager for Domains"
2349   2) connect the trust from the Samba domain using
2350      'net rpc trustdom establish GLASS'
2352 To create a trustlationship with SAMBA as the trusted domain:
2354   1) create the initial trust account for GLASS using
2355      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
2356      account for GLASS$ prior to this step (depending on your
2357      local configuration).
2358   2) connect the trust from a WINDOWS DC using "User Manager
2359      for Domains"
2361 Now join winbindd on the Samba PDC to the SAMBA domain using
2362 the normal steps for adding a Samba server to an NT4 domain:
2363 (note that smbd & nmbd must be running at this point)
2365    root# net rpc join -U root
2366    Password: <enter root password from smbpasswd file here>
2368 Start winbindd and test the join with 'wbinfo -t'.
2370 Now test the trust relationship by connecting to the SAMBA DC
2371 (e.g. POGO) as a user from the WINDOWS domain:
2373    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
2374    Password:
2376 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
2378    $ smbclient //crystal/netlogon -U root -W WINDOWS
2379    Password:
2381 ######################################################################
2382 Changes in Winbind
2383 ##################
2385 Beginning with Samba3.0.0beta3, winbindd has been given new account
2386 manage functionality equivalent to the 'add user script' family of
2387 smb.conf parameters.  The idmap design has also been changed to 
2388 centralize control of foreign SID lookups and matching to UNIX 
2389 uids and gids.
2392 Brief Description of Changes
2393 ----------------------------
2395 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
2396    reverted to the 2.2.x design.  This means that when resolving a 
2397    SID to a UID or similar mapping:
2399         a) First consult winbindd
2400         b) perform a local lookup only if winbindd fails to
2401            return a successful answer
2403    There are some variations to this, but these two rules generally
2404    apply.
2406 2) All idmap lookups have been moved into winbindd.  This means that
2407    a server must run winbindd (and support NSS) in order to achieve
2408    any mappings of SID to dynamically allocated UNIX ids.  This was
2409    a conscious design choice.
2411 3) New functions have been added to winbindd to emulate the 'add user 
2412    script' family of smbd functions without requiring that external
2413    scripts be defined.  This functionality is controlled by the 'winbind 
2414    enable local accounts' smb.conf parameter (enabled by default).
2416    However, this account management functionality is only supported 
2417    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
2418    must be shared among multiple Samba servers (such as a PDC and BDCs), 
2419    it will be necessary to define your own 'add user script', et. al.
2420    programs that place the accounts/groups in some form of directory
2421    such as NIS or LDAP.  This requirement was deemed beyond the scope
2422    of winbind's account management functions.  Solutions for 
2423    distributing UNIX system information have been deployed and tested 
2424    for many years.  We saw no need to reinvent the wheel.
2426 4) A member of a Samba controlled domain running winbindd is now able 
2427    to map domain users directly onto existing UNIX accounts while still
2428    automatically creating accounts for trusted users and groups.  This
2429    behavior is controlled by the 'winbind trusted domains only' smb.conf
2430    parameter (disabled by default to provide 2.2.x winbind behavior).
2432 5) Group mapping support is wrapped in the local_XX_to_XX() functions
2433    in smbd/uid.c.  The reason that group mappings are not included
2434    in winbindd is because the purpose of Samba's group map is to
2435    match any Windows SID with an existing UNIX group.  These UNIX
2436    groups can be created by winbindd (see next section), but the
2437    SID<->gid mapping is retreived by smbd, not winbindd.
2440 Examples
2441 --------
2443 * security = server running winbindd to allocate accounts on demand
2445 * Samba PDC running winbindd to handle the automatic creation of UNIX
2446   identities for machine trust accounts
2448 * Automtically creating UNIX user and groups when migrating a Windows NT
2449   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
2450   'net rpc vampire' for this to work.
2452    
2453 ######################################################################
2454 Known Issues
2455 ############
2457 * There are several bugs currently logged against the 3.0 codebase
2458   that affect the use of NT 4.0 GUI domain management tools when run
2459   against a Samba 3.0 PDC.  This bugs should be released in an early 
2460   3.0.x release.
2462 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
2463 filed against the Samba 3.0 codebase.
2466 ######################################################################
2467 Reporting bugs & Development Discussion
2468 #######################################
2470 Please discuss this release on the samba-technical mailing list or by
2471 joining the #samba-technical IRC channel on irc.freenode.net.
2473 If you do report problems then please try to send high quality
2474 feedback. If you don't provide vital information to help us track down
2475 the problem then you will probably be ignored.  
2477 A new bugzilla installation has been established to help support the 
2478 Samba 3.0 community of users.  This server, located at 
2479 https://bugzilla.samba.org/, has replaced the older jitterbug server 
2480 previously located at http://bugs.samba.org/.