r3614: latest draft of release notes for 3.0.8
[Samba.git] / WHATSNEW.txt
bloba3caaf9f7865f9ef787b454cefcc25a5c525ffee
1                    =============================
2                    Release Notes for Samba 3.0.8
3                              Nov 7, 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 important issues
9 fixes since the 3.0.7 release.  See the "Changes" section for
10 details on exact updates.
12 Common bugs fixed in 3.0.8 include:
14   o Compile fixes for HP-UX
15   o Fixes for the printer publishing code used when 
16     joined to an AD domain.
17   o Incompatibilities with file system quotas.
18   o Several bugs in the spoolss printing code and print 
19     system backends.
20   o Inconsistencies in the username map functionality 
21     when configured on domain member servers.
22   o Various compile warnings and errors on various platforms.
23   o Fixes for kerberos interoperability with Windows 200x 
24     domains when using DES keys.
25   
26 New features included in the 3.0.8 release are:
28   o New migration functionality added the the net tool
29     for files/directories, printers, and shares.
30   o New experimental idmap backend for assigning uids/gids
31     directly based on the user/group RID when acting as a
32     member of single domain without any trusts.
33   o Additional printer migration support for XP/2003 platforms.
36 Change in Winbindd Behavior
37 ---------------------------
39 All usernames returned by winbindd are now converted to lower 
40 case for better consistency.  This means any winbind installation
41 relying on the winbind username will need to rename existing 
42 directories and/or files based on the username (%u and %U) to lower 
43 case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`).  This may 
44 include mail spool files, home directories, valid user lines in 
45 smb.conf, etc....
48 Change in Username Map
49 ----------------------
51 Previous Samba releases would only support reading the fully qualified 
52 username (e.g. DOMAIN\user) from the username map when performing a 
53 kerberos login from a client.  However, when looking up a map 
54 entry for a user authenticated by NTLM[SSP], only the login name would be
55 used for matches.  This resulted in inconsistent behavior sometimes
56 even on the same server.
58 Samba 3.0.8 obeys the following rules when applying the username
59 map functionality:
61   * When performing local authentication, the username map is 
62     applied to the login name before attempting to authenticate 
63     the connection.
64   * When relying upon a external domain controller for validating
65     authentication requests, smbd will apply the username map 
66     to the fully qualified username (i.e. DOMAIN\user) only
67     after the user has been successfully authenticated.
70 ######################################################################
71 Changes
72 #######
74 Changes since 3.0.8pre2
75 -----------------------
76     Parameter Name                      Action
77     --------------                      ------
78     sendfile                            disabled by default
81 commits
82 -------
84 o   Jeremy Allison <jra@samba.org>
85     * BUG 1651: Adapted patch from Nalin Dahyabhai for ensuring 
86       that all of the appropriate service principal names are set 
87       upon joining an AD domain.
88     * Fix the correct use of resume name in the trans2 code.
89     * BUG 1717: Adapted patch from Nalin Dahyabhai to detect the
90       correct salt used when generated the DES key after joining an 
91       AD domain.
92     * Enhanced krb5 detection routines in the autoconf scripts.
95 o   Gerald Carter <jerry@samba.org>
96     * Packaging fixes for Solaris, Redhat, & Fedora.
99 o   Nalin Dahyabhai <nalin@redhat.com>
100     * SMB signing fix for 56-bit DES session keys.
101     
103 o   Guenther Deschner <gd@samba.org> 
104     * BUG 1661: Fix build with recent heimdal releases.
105     * Prevent idmap_rid from making unnecessary calls to domain 
106       controllers for trusted domains.
107     
109 o   SATOH Fumiyasu <fumiya@samba.gr.jp>
110     * BUG 1498: Ensure that acl entries are stored in the correct 
111       order.
114 o   Brett Funderburg <brett@deepfile.com>
115     * BUG 1884: Fixes for the Python bindings to use the value
116       of the desired_access filed passed into the lsa_open_policy()
117       routines.
120 o   Volker Lendecke <vl@samba.org>
121     * Memory leak fixes.
122     * Fix checks for the local pid of an smbd process after 
123       reopening tdbs.
125 o   Herb Lewis <herb@samba.org>
126     * Added tdbtool to be built by default.
129 o   Luke Mewburn <lukem@NetBSD.org>
130     * BUG 1782: Prevent testparm from displaying parameter synonyms.
133 o   Narayana Pattipati <narayana.pattipati@wipro.com>
134     * Solaris autoconf detection fixes.
137 o   Matt Selsky <selsky@columbia.edu>
138     * BUG 350: use autoconf 2.57 feature for checking header file
139       preprocessing (fixes configure warnings on Solaris).
142 o   Michael Sweet <mike@easysw.com>
143     * BUG 1892: Updated smbspool for use with newer CUPS libraries.
146 Changes since 3.0.7
147 -------------------
149 smb.conf changes
150 ----------------
152     Parameter Name                      Action
153     --------------                      ------
154     force printername                   New
156 commits
157 -------
159 o   Jeremy Allison <jra@samba.org>
160     * Ensure extended security bit is on only if we negotiated 
161       extended security.
162     * Simplify statcache to use an in-memory tdb. 
163     * If you're selecting a hash algorithm for tdb, you need 
164       to do it at open time.
165     * Removed old dir caching code - not being used now we 
166       have the statcache anyway.
167     * Simplify the mangle hash code to use an in-memory tdb.
168     * Merge iconv changes from Samba 4 branch.
169     * Fix parsing of names ending in dot and a few other error 
170       returns.
171     * BUG 1667: Smbpasswd file could be left locked on some 
172       error exits.
173     * Fixes for smbclient tar functionality.
174     * BUG 1743: Fix logic bug the deferred open code.
175     * Don't try to set security descriptors on shares where 
176       this has been turned off.
177     * Return correct error codes on old SEARCH call.
178     * Ensure we set errno = E2BIG when we overflow in the 
179       fast-path character conversion code.
180     * Fix the roundup problem (returning 1mb roundup) for 
181       non-Windows clients.
182     * Added 'stat' command to smbclient to exercise the 
183       UNIX_FILE_BASIC info level.
184     * Fix bug where we could incorrectly set sparse attribute.
185     * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys()
186       (reported by Taj Khattra <taj.khattra@gmail.com>).
187     * Remove locked keys tdb code.
188     * BUG 1886: Prevent delete on close being set for readonly files 
189       (and return the correct error code).
190     * Ensure we pass most of the new lock tests except for the cancel 
191       lock which is yet to be added (merged from Samba 4 branch).
192     * BUG 1947: Fix incorrect use of getpwnam() etc. interface.
193     * BUG 1956: Ensure errno is saved and restored consistently on a normal_close.
194   
196 o   Andrew Bartlett <abartlet@samba.org>
197     * Avoid changing the machine account password in the passdb 
198       backend, when it has 'already been changed'.  This occurs 
199       in situations where the secure channel between the workstation 
200       and the DC breaks down, such as occurred in the MS04-11 
201       security patch.
202     * Fix utility name in error message in ntlm_auth.
203     * Fix NTLMv2 for use with pam_winbind.
204     * Remove conversion to and from UTF8 on the winbind pipe.
205     * Allow 'require_membership_of' and 'require-membership-of'.
206     * Fix the error code for 'you didn't specify a domain' in 
207       ntlm_auth.
208     * Use sys_getgroups() rather than scanning all groups 
209       when generating SAMR replies.
212 o   Igor Belyi <sambauser@katehok.ac93.org>
213     * Ensure pdb user is deleted first before deleting UNIX 
214       user (LDAP backend needs this ordering).
217 o   Cornelio Bondad Jr <Corny.Bondad@hp.com>
218     * Fix core dump in 'net rpc vampire'.
219     
221 o   Vince Brimhall <vbrimhall@novell.com>
222     * Make ldapsam_compat robust against NULL attributes.
225 o   Gerald Carter <jerry@samba.org>
226     * Don't limit the number of groups returned by winbindd_getgroups()
227       by NGROUPS_MAX.
228     * BUG 1519: Match Windows 2000 behavior when opening a 
229       printer using a servername in the form of an IP address or 
230       DNS name.
231     * BUG 1907: remove extra slashes from the printer name in 
232       getprinterdriverdir_1().  
233     * Fix standard_sub_snum() to use the current user's gid.
234     * Fix background queue update bug (based on Volker's initial work 
235       in 3.1.0).
236     * Add 'force printername' service parameter for people that want 
237       to enforce printername == sharename for spoolss printing.
238     * Ensure consistent usage of the username map.  Use the fully 
239       qualified DOMAIN\user format for 'security = domain|ads' and 
240       apply after authentication has succeeded.
241     * Cosmetic fix for getent output -- lowercase the username only 
242       and not the complete domain\username string.
244     
245 o   Sean Chandler <sean.chandler@verizon.net>
246     * Fix memlieak in cliconnect.c.
249 o   Darren Chew <darrenc@vicscouts.asn.au>
250     * Solaris packaging fixes.
251     
253 o   Guenther Deschner <gd@samba.org> 
254     * add IA64 to the architecture table of printer-drivers.
255     * Add file/share/printer migration functionality to 
256       the net command.
257     * Show correct help for net groupmap commands.
258     * Fix deadlock loop in winbind's required_membership_sid
259       verification.
260     * Bring the same level of "required_membership"-functionality 
261       that ntlm_auth uses, to pam_winbindd as well.
262     * Prevent "net lookup kdc" from seg-faulting when
263       using our own implementation of krb5_lookup_kdc with 
264       heimdal.
265     * Adding getprinter level 7 to rpcclient.
266     * Support migrating printers|shares|files from Server A 
267       to Server B while running the net-command on client C.
268     * Fixed krb5_krbhost_get_addrinfo()-parameters and make 
269       failure of this call non-critical (Thanks to Love @ Heimdal
270       for the explanation and patch).
271     * Fix typos in net's usage-output.
272     * Fix the paranoia-check to ensure the ldap-attribute and the
273       smb.conf-parameter for samba's "algorithmic rid base" in ldapsam 
274       are identical.
275     * Fix several bugs in the _samr_query_useraliases() rpc reply.
276     * Check correct string length when verifying password-policies 
277       and using extended characters (Thanks to Uwe Morgenroth from CC 
278       Compunet and Volker).
279     * Make 'password history'-behavior in ldapsam more consistent. 
280     * Adding "Windows x64" as architecture string and driverdir "x64" 
281       for the 64bit AMD platform.
282     * BUG 1343: Readd WKGUID-binding to match the correct default-
283       locations of new User-, Group- and Machine-Accounts in Active 
284       Directory (this got lost during the last trunk-merge).
285     * Fix printer-migration w.r.t. to new naming-convention for
286       policy-handles.
287     * Allow to migrate win2k3/xp-drivers as well. 
288     * Add client-side support of triggering ads printer publishing 
289       over msrpc setprinter calls inside the net-tool. 
290     * Add the idmap_rid module (written in conjunction with 
291       Sumit Bose <sbose@suse.de>).
294 o   Arthur van Dongen <avdongen@xs4all.nl>
295     * Fix typos in pam_winbind log messages and SuSE 
296       packaging files.
299 o   Rob Foehl <rwf@loonybin.net>
300     * Typo fixes for log messages in printer publishing code.
301     * Fix memory leak in printer publishing code.
302     * Ensure print_backend_init() only gets called once.
303     * Have smbd check the published status of all printers 
304       at startup.
305     * Cleanup up the XXX_a_printer() API for consistency.
306     * Refactored the printer publishing code and include better 
307       error handling.
310 o   Steve French <sfrench@us.ibm.com>
311     * Fix IP address override in mount.cifs mount helper and clean 
312       up warning messages from the sparse tool and expand syntax help.
313     * Strip guest mount option off before sending to kernel mount 
314       routine to avoid logging spurious message.
317 o   Satoh Fumiyasu <fumiya@samba.gr.jp>
318     * BUG 1732: Limit share names returned by RAP based on windows 
319       character width, not unix character width.
322 o   Brett Funderburg <brett@deepfile.com>
323     * Pass create options parameter to nt_create_andx() function
324       from the python bindings.
325     * BUG 1864: Add sd->type field to security descriptor Python 
326       representation.
327     * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED
328       when trying to return the security descriptor for a file.
331 o   Michael Gravey <michel.gravey@optogone.com>
332     * BUG 1776: Fix warnings when building modules caused by 
333       certain versions of GNU ld not using the the default 
334       --allow-shlib-undefined flag.
337 o   Chris Hertel <crh@samba.org>
338     * Fix logic bug in splay tree data structure when finding 
339       a leaf node.
340     * Fix bug where an invalid MAC address would be printed by 
341       a node status lookup from nmblookup.
343       
344 o   Uli Iske <iske@elkb.de>
345     * Update the DNS/eDirectory LDAP schema file.
348 o   Björn Jacke <bjacke@sernet.de>
349     * BUG 1766: Unify charset-handling in Content-Type:-headers to 
350       UTF-8.  Reformat msgstr in msg-files to UTF-8.
351     * Do not use display charset for swat output.
352     * Convert the share names correctly from unix encoding to web 
353       encoding and vice versa. 
354     * Convert files from status page from unix charset to UTF-8.
357 o   Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
358     * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored).
361 o   Tom Lackemann <cessnatomny@yahoo.com>
362     * BUG 1954: Fix memory leak in posix acl code.
365 o   Volker Lendecke <vl@samba.org>
366     * Robustnss fix for winbindd when sending multiple requests 
367       at a high rate for a slow operation.  
368     * Solve the problem of user sids ending up with gid's 
369       and vice versa.
370     * Use sys_fork instead of fork for the dual daemon so that 
371       we get the correct debug pid in the logfiles.
372     * Based on patch from jmcd, implement special lists for the LDAP 
373       user attributes to delete.
374     * Fix creation of aliases via usrmgr. Winbind was too strict 
375       checking the type of sids.
376     * Lowercase all usernames returned by winbind.
377     * BUG 1545, 1823: Only issue the ldap extended password change 
378       operation if the ldap server supports it.  Also ignore object 
379       class violation errors from the extended operation.
380     * Optimization for 'idmap backend = ldap': When asking sid2id 
381       for the wrong type, don't ask ldap when we have the opposite mapping 
382       in the local tdb.
383     * Fix ldapsam_compat homeDrive.
384     * Add usersidlist and allowedusers subcommands to the net tool
385       in order to support scanning a file server's share and list 
386       all users who have permission to connect there.
387     * Allow for multiple DC's to be named as #1c names in lmhosts.
390 o   Love <lha@stacken.kth.se>
391     * BUG 1955: Inconsistent error return.
394 o   Sorin Manolache <sorinm@gmail.com>
395     * Memory leak fix.
398 o   Jim McDonough <jmcd@us.ibm.com>
399     * Allow 'net ads lookup' to rely on command line arguments 
400       if contacting an ADS server fails; utilize cldap for lookups.
401     * Fixup formatting errors in TDB_LOG calls; add printf attribute
402       support to tdb log functions.
405 o   Bill McGonigle <bill+samba@bfccomputing.com>
406     * BUG 1926: Type in debug message.
409 o   Sean McGrath
410     * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS
411       for libsmbclient.
414 o   Stefan Metzmacher <metze@samba.org>    
415     * Fix crash in smbcquotas and smbcacls caused by setup_logging().
416     * Fix client quota support.
417     * Fix opening of system quota file.
420 o   Lars Mueller <lmuelle@suse.de>
421     * Small fixes for autogen.sh to deal with version detection 
422       of autoconf and autoheader; fixes for examples using 
423       libtool to adhere to stricter syntax of newer version.
426 o   Henrik Nordstrom <hno@squid-cache.org>
427     * Allow winbindd to return the correct number of groups 
428       when the groups array must be enlarged.
431 o   Tim Potter <tpot@samba.org>
432     * BUG 1360: (correct fix) Use -Wl when passing flags to 
433       the linker.
434     * HP-UX compile fixes (from JBravo on #samba-technical).
435     * BUG 1731: More HP-UX compiles fixes.
436     * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2 
437       spits the dummy otherwise.
438     * Fix bug in Python printerdata wrapper.
439     * BUG 1762: nss_winbind fixes on AIX 5.x (patch from 
440       <bugzilla-samba@thewrittenword.com>).
441     * Fix parameter confusion in priming of name-to-sid cache
442       (Found by Qiao Yang).
443     * BUG 1888: Remove '..' from all pre-processor commands.
444     * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef 
445       DEBUG_PASSWORD.
448 o   Richard Renard <rrenard@idealx.com>
449     * Fix usermgr.exe and trust relationships.
452 o   Paul Szabo <psz@maths.usyd.edu.au>
453     * Fix to make find_workgroup use the same 
454       truncation as create_workgroup.
457 o   Richard Sharpe <rsharpe@samba.org>
458     * Ensure cli_write() can support writes >= 65536 bytes.
461 o   Simo Sorce <idra@samba.org>
462     * Added check password script code in examples/auth/crackcheck/
463     * Fix memory corruption bug caused in freeing static memory.
466 o   Andrew Tridgell <tridge@samba.org>
467     * Remove lp_use_mmap() from map_file() since the latter 
468       is for read only and does not require coherence.
469     * Ensure that the uuid pack/unpack routines do not go past 
470       the end of the structure.
471     * Converted Samba 3 tree to use the new utf-16 aware iconv 
472       code. 
473     * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms.
474     * Ensure configure only uses '=' instead of the bashism '=='.
475     * Reduces the number of tdb locking calls made on file IO.
476     
478 o   Jelmer Vernooij <jelmer@samba.org>
479     * Convert internal data to UTF-8 before calling libxml2.
480     * Complain if 'password chat' doesn't contain the %u variable
481       (based on a patch by Ronan Waide).
482     
484 o   Josef Zlomek
485     * BUG 1541:  Fix recursive ls in smbclient. 
487     
488 o   Igor Zhbanov <bsg@uniyar.ac.ru>
489     * BUG 1797: Prevent winbind and nmbd from ignoring the "-l" 
490       option.
493 Changes for older versions follow below:
495       --------------------------------------------------
496                   =============================
497                   Release Notes for Samba 3.0.7
498                            Sept 13, 2004
499                   =============================
501 This is the latest stable release of Samba. This is the version
502 that production Samba servers should be running for all
503 current bug-fixes.  There have been several important issues
504 fixes since the 3.0.6 release.  See the "Changes" section for
505 details on exact updates.
507 Common bugs fixed in 3.0.7 include:
509   o Fixes for two Denial of Service vulnerabilities
510     (CVE ID# CAN-2004-0807 & CAN-2004-0808).
511   o Winbind failure to return user entries under certain
512     conditions.
513   o Syntax errors in the OpenLDAP schema file (samba.schema).
514   o Printing errors caused by not setting default values
515     for the various printing commands.
518 Changes since 3.0.6
519 -------------------
521 smb.conf changes
522 ----------------
524     Parameter Name                      Action
525     --------------                      ------
526     winbind enable local accounts       disabled by default
528     
529 commits
530 -------
531 o   Jeremy Allison <jra@samba.org>
532     * Fix parsing of names ending in dot and a few other error 
533       returns.
534     * BUG 1674: Move the symlinks checks into reduce_name().
535     * Fix memleak when checking the valid names smb.conf option.
536     * Fix memleak on error return path in the file open code.
537     * More paranoia checks in the hash2 mangling code.
538     * Fix syntax error in configure.in.
539     * Match Win2k3's behavior for pathname parsing error returns.
540     * Make nmbd more robust against bad netbios packets 
541       (CAN-2004-0808).
542     * Add more checks for invalid ASN.1 packets for SPNEGO packets
543       (CAN-2004-0807).
545   
546 o   Andrew Bartlett <abartlet@samba.org>  
547     * Janitor work in loadparm.c -- remove unused parameters.
550 o   Gerald Carter <jerry@samba.org>
551     * BUG 1464: Ensure that printing commands are initialized even
552       if the 'printing' parameter is not explicitly set.
553     * Resolve name conflict on DEC OSF-5.1 (inspired by patch from 
554       Adharsh Praveen <rprav@india.hp.com>)
555     * Work around parsing error in the print change notify code.
556     * remove duplicate declaration of getprintprocdir from 
557       rpcclient.
558     * Only use sAMAccountName and not userPrincipalName when looking
559       up a username in AD since the breaks winbindd (lookup_name() 
560       only works with the sAMAccountName).
561     * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not 
562       filling in the username in the user_info3.
563     * Fix logic bug in the check for creating a user's home directory 
564       in register_vuid(); caused home directory to be mismatched to 
565       the first share in smb.conf under certain conditions.
566     * BUG 1656: rename auto.a to auto.smb.
567     * Ensure that we assign our pid to print jobs (and not our 
568       parent's pid); ensures that spooling jobs from dead smbds 
569       are removed from the tdb.
570     * Disable 'winbind enable local accounts' by default.
571     * Adding some initial checks for DragonFly (same as 
572       FreeBSD 4.1).
573     
575 o   Guenther Deschner <gd@samba.org> 
576     * Use SMB_ASSERT() to track down NULL printer names in 
577       the tdb open code.
578     * Revert fix for BUG 1474 to avoid unnecessary packaging 
579       dependencies.
582 o   Olaf Flebbe <o.flebbe@science-computing.de>.  
583     * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 
584       and 5.1.
585     * BUG 1626: More compile fixes.
588 o   Rob Foehl <rwf@loonybin.net>
589     * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset 
590       by attempts to sanitize the defined attributes.
593 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
594     * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
597 o   Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
598     * BUG 1657: Remove used initialized variable, 
599     * BUG 1658: Add a little bit of const.
602 o   Volker Lendecke <vl@samba.org>
603     * If there's garbage in the pidfile, we should not panic 
604       but assume that no one else is around. We can't find the 
605       other guy anyway.
608 o   Jim McDonough <jmcd@us.ibm.com>
609     * Fixup format string in the tdb error messages.
612 o   Jonas Olsson <lexicon@lysator.liu.se>
613     * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when 
614       reporting the list in usrmgr.exe.
617 o   Tim Potter <tpot@samba.org>
618     * Fix out-of-tree builds (problem with the script to generate 
619       the svn version number).
620     * BUG 1360:  Need to use -Wl when passing flags to the linker.
621     * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which 
622       doesn't have one of its own.
624 o   Simo Sorce <idra@samba.org>
625     * Fixup compile issues on AIX caused by broken strlen() and 
626       strdup().
627     * Update debian packaging files.
630 o   Dimitri van der Spek <dwspek@aboveit.nl>
631     * Use the correct counter when copying group rids from the 
632       user_info3 struct in pam_winbind.
633       
635 o   Qiao Yang <qyang@stbernard.com>
636     * BUG 1622: Only cache the user
639       --------------------------------------------------
640       
641                   =============================
642                   Release Notes for Samba 3.0.6
643                            Aug 19, 2004
644                   =============================
646 Common bugs fixed in 3.0.6 include:
648   o Schannel failure in winbindd.
649   o Numerous memory leaks.
650   o Incompatibilities between the 'write list' and 'force user'
651     smb.conf options.
652   o Premature optimization of the open_directory() internal 
653     function that broke tools such as the ArcServe backup 
654     agent, Macromedia HomeSite, and Robocopy.
655   o Corrupt workgroup names in nmbd's browse.dat.
656   o Sharing violation errors commonly seen when opening
657     when serving Microsoft Office documents from a Samba 
658     file share.
659   o Browsing problems caused by an apostrophe (') in the 
660     computer's description field.
661   o Problems creating special file types from UNIX CIFS 
662     clients and enabling 'unix extensions'.
663   o Fix stalls in smbd caused by inaccessible LDAP servers.
664   o Remove various memory leaks.
665   o Fix issues in the password lockout feature.
667 New features introduced in this release include:
669   O Support symlinks created by CIFS clients which 
670     can be followed on the server.
671   o Using a cups server other than localhost.
672   o Maintaining the service principal entry in the system 
673     keytab for integration with other kerberized services.
674     Please refer to the 'use kerberos keytab' entry in 
675     smb.conf(5).  When using the heimdal kerberos libraries,
676     you must also specify the following in /etc/krb5.conf:
677     [libdefaults]
678        default_keytab_name = FILE:/etc/krb5.keytab
679   o Support for maintaining individual printer names
680     stored separately from the printer's sharename.
681   o Support for maintaining user password history.
682   o Support for honoring the logon times for user in a 
683     Samba domain.
685 --------------------------------------------
686 unix extensions = yes (default) and symlinks
687 --------------------------------------------
689 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1), 
690 clients supporting the UNIX extensions to the CIFS protocol 
691 can create symlinks to absolute paths which will be **followed** 
692 by the server.  This functionality has been requested in order 
693 to correctly support certain applications when the user's home 
694 directory is mounted using some type of CIFS client (e.g. the 
695 cifsvfs in the Linux 2.6 kernel).
697 If this behavior is not acceptable for your production environment
698 you can set 'wide links = no' in the specific share declaration in 
699 the server's smb.conf.  Be aware that disabling wide link support 
700 out of a share in Samba may impact the server's performance due 
701 to the fact that smbd will now have to check each path additional 
702 times before traversing it.
703   
704 ------------------------
705 Password History Support 
706 ------------------------
708 The new password history feature allows smbd to check the new 
709 password in password change requests against a list of the user's
710 previous passwords.  The number of previous passwords to save can 
711 be set using pdbedit (4 in this example):
713    root# pdbedit -P "password history" -C 4
715 When using the ldapsam passdb backend, it is vital to secure the 
716 following attributes from access by non-administrative users:
718    * sambaNTPassword
719    * sambaLMPassword
720    * sambaPasswordHistory
722 You should refer to your directory server's documentation on how 
723 to implement this restriction.
726 Changes since 3.0.5
727 -------------------
729 smb.conf changes
730 ----------------
732     Parameter Name              Action
733     --------------              ------
734     cups server                 New
735     defer sharing violations    New
736     force unknown acl user      New
737     ldap timeout                New
738     printcap cache time         New
739     use kerberos keytab         New
740     
741 commits
742 -------
743 o   Jeremy Allison <jra@samba.org> 
744     * Correct path parsing bug that broke DeletePrinterDriverEx().
745     * Fix bugs in check_path_syntax() caught by asserts.
746     * Internal change - rearrange internal global case setting 
747       variables to a per connection basis.
748     * BUG 1345: Fix premature optimization in unix_convert(). 
749     * Allow clients to truncate a locked file.
750     * BUG 1319: Always check to see if a user as write access
751       to a share, even when 'force user' is set.
752     * Fix specific case of open that doesn't cause oplock break, 
753       or share mode check.
754     * Correct sid type is WKN_GROUP, not alias. Added some 
755       more known types (inspired by patch from Jianliang Lu).
756     * Allow creation of absolute symlink paths via CIFS clients.
757     * Fix charset bug in when invoking send_mailslot().
758     * When using widelinks = no, use realpath to canonicalize 
759       the connection path on connection create for the user. 
760     * Enhance stat open code.
761     * Fix unix extensions mknod code path.
762     * Allow unix domain socket creation via unix extensions.
763     * Auto disable the 'store dos attribute' parameter if the 
764       underlying filesystem doesn't support EAs.
765     * Implement deferred open code to fix a bug with Excel files 
766       on Samba shares.
767     * BUG 1427: Catch bad path errors at the right point.  Ensure 
768       all our pathname parsing is consistent.
769     * Fix SMB signing error introduced by the new deferred open 
770       code.
771     * Change default setting for case sensitivity to "auto". (see 
772       commit message -- r1154 -- for details).
773     * Add new remote client arch -- CIFSFS.
774     * Allow smbd to maintain the service principal entry in the 
775       system keytab file (based on patch Dan Perry <dperry@pppl.gov>, 
776       Guenther Deschner, et. al.).
777     * Fix longstanding memleak bug with logfile name.
778     * Fix incorrect type in printer publishing (struct uuid, 
779       not UUID_FLAT).
780     * Heimdal compile fixes after introduction of the new ketyab 
781       feature.
782     * Ensure we check attributes correctly on rename request.
783     * Ensure we defer a sharing violation on rename correctly.
784     * BUG 607: Ensure we remove DNS and DNSFAIL records immediately 
785       on timeout.
786     * Fix bogus error message when using "mangling method = hash" 
787       rather than hash2.
788     * Turn on sendfile by default for non-Win9x clients.
789     * Handle non-io opens that cause oplock breaks correctly.
790     * Ensure ldap replication sleep time is not more than 5 seconds.
791     * Add support for storing a user's password history.
792       LDAP portion of the code was based on a patch from 
793       Jianliang Lu <j.lu@tiesse.com>.
794     * Correct memory leaks found in the password change code.
795     * Fix support for the mknod command with the Linux CIFS client.
796     * Remove support for passing the new password to smbpasswd 
797       on the command line without using the -s option.
798     * Ensure home directory service number is correctly reused
799       (inspired by patches from Michael Collin Nielsen 
800       <michael@hum.aau.dk>).
801     * Fix to stop printing accounts from resetting the bas 
802       password and account lockout flags.
803     * If a account was locked out by an admin (and has a bad 
804       password count of zero) leave it locked out until an admin 
805       unlocks it (but log a message).
806     * Ensure we return the same ACL revision on the wire that 
807       W2K3 does.
808     * BUG 1578: Hardcode replacement for invalid characters as '_'
809       (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
810     * Fix hashed password history for LDAP backends.
811     * Enforce logon hours restrictions if confiogured (based on code 
812       from Richard Renard <rrenard@idealx.com>).
813     * BUG 1606: Force smbd to disable sendfile with DOS clients 
814       and ensure that the chained header is filled in for ...&X 
815       commands.
816     * BUG 1602: Fix access to shares when all symlink support 
817       has been disabled.
821 o   Tom Alsberg <alsbergt@cs.huji.ac.il>
822     * Allow pdbedit to export a single user from a passdb backend.
823     
825 o   Andrew Bartlett <abartlet@samba.org>  
826     * Fix parsing bug in GetDomPwInfo().
827     * Fix segfault in 'ntlm_auth --diagnostics'.
828     * Re-enable code to allow sid_to_gid() to perform a group 
829       mapping lookup before checking with winbindd.
830     * Fix memory leak in the trans2 signing code.
831     * Allow more flexible GSS-SPENGO client and server operation 
832       in ntlm_auth.
833     * Improve smbd's internal random number generation.
834     * Fix a few outstanding long password changes in smbd.
835     * Fix LANMAN2 session setup code.
838 o   Eric Boehm <boehm@nortelnetworks.com>
839     BUG 703: Final touches on netgroup case lookups.
840     
841     
842 o   Jerome Borsboom <j.borsboom@erasmusmc.nl>
843     * Ensure error status codes don't get overwritten in 
844       lsa_lookup_sids() server code.
845     * Correct bug that caused smbd to overwrite certain error 
846       codes when returning up the call stack.
847     * Ensure the correct sid type returned for builtin sids.
850 o   Gerald Carter <jerry@samba.org>
851     * Fix a few bugs in the Fedora Packaging files.
852     * Fix for setting the called name to by our IP if the 
853       called name was *SMBSERVER and *SMBSERV.   Fixes issue 
854       with connecting to printers via \\ip.ad.dr.ess\printer 
855       UNC path.
856     * BUG 1315: fix for schannel client connections to servers
857       when we haven't specifically negotiated AUTH_PIPE_SEAL.
858     * Allow PrinterDriverData valuenames with embedded backslashes
859       (Fixes bug with one of the Konica Fiery drivers).
860     * Fixed string length miscalculation in netbios names that 
861       resulted in corrupt workgroup names in browse.dat.
862     * When running smbd as a daemon, launch child smbd to update 
863       the lpq cache listing in the background.
864     * Allow printers "Printers..." folder to be renamed to a string 
865       other than the share name.
866     * Allow winbindd to use domain trust account passwords when 
867       running on a Samba DC to establish an schannel to remote 
868       domains.
869     * Fix bad merge and ensure that we always use tdb_open_log() 
870       instead of tdb_open_ex() (the former call enforce the 'use 
871       mmap' parameter).
872     * BUG 1221: revert old change that used single and double 
873       quotes as delimeters in next_token(), and change 
874       print_parameter() to print out parm values surrounded by 
875       double quotes (instead of single quotes).
876     * Prevent home directories added during the SMBsesssetup&X from 
877       being removed as unused services.
878     * Invalidate the print object cache for open printer handles when
879       smbd receives a message that an attribute on a given printer 
880       has been changed.
881     * Cause the configure script to exit if --enable-cups[=yes] is 
882       defined and the system does not have the cups devel files 
883       installed.
884     * BUG 1297: Prevent map_username() from being called twice 
885       during logon.
886     * Ensure that we use the userPrincipalName AD attribute 
887       value for LDAP SASL binds.
888     * Ensure we remove the tdb entry when deleting a job that 
889       is being spooled.
890     * BUG 1520: Work around bug in Windows XP SP2 RC2 where the 
891       client sends a FindNextPrintChangeNotify() request without 
892       previously sending a FindFirstPrintChangeNotify().  Return 
893       the same error code as Windows 2000 SP4.
894     * BUG 1516: Manually declare ldap_open_with_timeout() to 
895       workaround compiler errors on IRIX (or other systems without 
896       LDAP headers).
897     * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from 
898       3.0.5.
899     * Corrected syntax error in the OID for sambaUnixIdPool, 
900       sambaSidEntry, & sambaIdmapEntry object classes.
901     * Tighten the cache consistency with the ntprinters.tdb entry 
902       an the in memory cache associated with open printer handles.
903     * Make sure that register_messages_flags() doesn't overwrite 
904       the originally registered flags.
907 o   Fabien Chevalier <fabien.chevalier@supelec.fr>
908     * Debian BUG 252591: Ensure that the return value from the 
909       number of available interfaces is initialized in case no 
910       interfaces are actually available.
913 o   Guenther Deschner <gd@sernet.de> 
914     * Implement 'rpcclient setprintername'.
915     * Add local groups to the user's NT_TOKEN since they are 
916       actually supported now.
917     * Heimdal compile fixes after introduction of the new keytab 
918       feature.
919     * Correctly honor the info level parameter in 'rpcclient 
920       enumprinters'.
921     * Reintroduce 'force unknown acl user' parameter.  When getting a 
922       security descriptor for a file, if the owner sid is not known, 
923       the owner uid is set to the current uid. Same for group sid.
924     * Ensure that REG_SZ values in the SetPrinterData actually 
925       get written in UNICODE strings rather than ASCII.
926     * Ensure that the last kerberos error return is not invalid.
927     * Display share ACL entries from rpcclient.
928     * Correct infinite loop in pam_winbind's verification of 
929       group membership in the 'other sids' field in the user_info3 
930       struct.
933 o   Fabian Franz <FabianFranz@gmx.de>
934     * Support specifying a port in the device URL passed to smbspool.
935     
936     
937 o   Steve French <sfrench@us.ibm.com>
938     * Handle -S and user mount parms in mount.cifs.
939     * Fix user unmount of shares mount with suid mount.cifs.
940     * prevent infinite recusion in reopen_logs() when expanding 
941       the smb.conf variable %I.
944 o   Bjoern Jacke <bj@sernet.de>
945     * Install libsmbclient into $(LIBDIR), not into hard coded 
946       ${prefix}/lib. This helps amd64 systems with /lib and /lib64 
947       and an explicit configure --libdir setting.
950 o   <kawasa_r@itg.hitachi.co.jp>
951     * Correct more memory leaks and initialization bugs.
952     * Fix bug that prevented core dumps from being generated 
953       even if you tried.
954     * Connect to the winbind pipe in non-blocking mode to 
955       prevent processes from hanging.
956     * Memory leak fixes.
959 o   Stephan Kulow <coolo@suse.de>
960     * Fix crash bug in libsmbclient.
963 o   Volker Lendecke <vl@samba.org>
964     * Added vfs_full_audit module.
965     * Add vfs_afsacl.c which can display & set AFS acls via 
966       the NT security editor.
967     * Fix crash bug caused by trying to Base64 encode a NULL string.
968     * Fix DOS error code bug in reply_chkpath().
969     * Correct misunderstanding of the max_size field in 
970       cli_samr_enum_als_groups;  it is more like an account_control 
971       field with individual bits what to retrieve.
972     * Implement 'net rpc group rename' -- rename domain groups.
973     * Implement the 'cups server' option. This makes it possible 
974       to have virtual smbd's connect to different cups daemons.
975     * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
976     * Fix sid_to_gid() calls in winbindd to prevent loops.
977     * Ensure that local_sid_to_gid() sets the type of the group on 
978       return.
979     * Make sure that the clients are given back the IP address to 
980       which they connected in the case of a multi-homed host. Only 
981       affects strings the spoolss printing replies.
982     * Fix the bad password lockout. This has not worked as pdb_ldap.c 
983       did not ask for the modifyTimestamp attribute, so it could 
984       not find it.   Try not to regress by not putting that attrib 
985       in the main list but append it manually for the relevant searches.
986     * Fix two memleaks in login_cache.c.
987     * fixes memory bloat when unmarshalling strings.
988     * Fix compile errors using gcc 3.2 on SuSE 8.2.
989     * Fix the build for systems without kerberos headers.
990     * Allow winbindd to handle authentication requests only when 
991       started without either an 'idmap uid' or 'idmap gid' range.
992     * Fix the build for systems without ldap headers.
993     * Fix interaction between share security descriptor and the 
994       'read only' smb.conf option.
995     * Fix bug that caused _samr_lookupsids() with more than 32 (
996       MAX_REF_DOMAINS) SIDs to fail.
997     * Allow the 'idmap backend' parameter to accept a list of 
998       LDAP servers for failover purposes.
999     * Revert code in smbd to remove a tdb when it has become 
1000       corrupted.
1001     * Add paranoid checks when mapping SIDs to a uid/gid to 
1002       ensure that the type is correct.
1003     * Initial work on getting client support for sending mailslot 
1004       datagrams.
1005     * Add 'ldap timeout' parameter.
1006     * Dont always uppercase 'afs username map'.
1007     * Expand aliases for getusersids as well.
1008     * Improved NT->AFS ACL mapping VFS module.
1011 o   Herb Lewis <herb@samba.org>
1012     * Add the acls debug class.
1013     * Fix logic bug in netbios name truncate routine.
1014     * Fix smbd crash caused by smbtorture IOCTL test.
1015     * Fix errno tromping before calling iconv to reset the 
1016       conversion state.
1017     * need to leave empty dacl so we can remove last ACE.
1020 o    Jianliang Lu <Jianliang.Lu@getronics.com>
1021     * Fix to stop smbd hanging on missing group member in 
1022       get_memberuids().
1023     * Make sure Samba returns the correct group types.
1024      * Reset the bad password count password counts upon a successful login.
1025      
1026      
1027 o   Jason Mader <jason@ncac.gwu.edu>
1028     * BUG 1385: Don't use non-consts in a structure initialization.
1029     
1031 o   Jim McDonough <jmcd@us.ibm.com>
1032     * BUG 1279: SMBjobid fix for Samba print servers running on 
1033       Big-Endian platforms.
1036 o   Joe Meadows <jameadows@webopolis.com>
1037     * Add optional timeout parameter to ldap open calls.
1038     * Allow get_dc_list() to check the negative cache.
1041 o   Stefan Metzmacher <metze@samba.org>    
1042     * fix a configure logic bug for linux/XFS quotas when 
1043       using --with-sys-quotas.
1044     * Use quota debug class in quota code.
1045     * print out the SVN revision by configure,
1046     
1048 o   Buchan Milne <bgmilne@mandrake.org>
1049     * Mandrake packaging fixes.
1050     
1051     
1052 o   Lars Mueller <lmuelle@suse.de>
1053     * BUG 1279: Added 'printcap cache time' parameter.
1054     * Fix afs related build issues on SuSE.
1055     * Fix compiler warnings in the kerberos client code.
1058 o   James Peach <jpeach@sgi.com>
1059     * More iconv detection fixes for IRIX.
1060     * Compile fixed for systems that do not have C99/UNIX98 compliant 
1061       vsnprintf by default.
1062     * Prevent smbd from attempting to use sendfile at all if it is 
1063       not supported by the server's OS.
1064     * Allow SWAT to search for index.html when serving html files 
1065       in a directory.
1068 o   Dan Peterson
1069     * Implement NFS quota support on FreeBSD.
1072 o   Tim Potter <tpot@samba.org>
1073     * BUG 1360: Use -Bsymbolic when creating shared libraries to 
1074       avoid conflicts with identical symbols in the global namespace 
1075       when loading libnss_wins.so.
1078 o   Richard Renard <rrenard@idealx.com>
1079     * Save the current password as it is being changed into the 
1080       password history list.
1083 o   Richard Sharpe <rsharpe@samba.org>
1084     * Fix error return codes on some lock messages.
1085     * BUG 1178: Make the libsmbclient routines callable 
1086       by C++ programs.
1087     * BUG 1333: Make sure we return an error code when 
1088       things go wrong.
1089     * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when 
1090       share mode locking requests fail.
1093 o   Simo Sorce <idra@samba.org>
1094     * Update Debian stable & unstable packaging.
1095     * Tidy up parametric options in testparm output.
1098 o   Richard Sharpe <rsharpe@samba.org>
1099     * Add sigchild handling to winbindd to restart the child 
1100       daemon if necessary.
1103 o   Tom Shaw <tomisfaraway@gmail.com>
1104     * Use winbindd_fill_pwent() consistently.
1107 o   Nick Thompson <nickthompson@agere.com>
1108     * Protect smbd against broken filesystems which return zero 
1109       blocksize.
1112 o   Andrew Tridgell <tridge@samba.org>
1113     * Fixed bug in handling of timeout in socket connections.
1114      
1116 o   Nick Wellnhofer <wellnhofer@aevum.de>    
1117     * Prevent lp_interfaces() list from being corrupted.  Fixes
1118       bug where nmbd would lose the list of network interfaces 
1119       on the system and consequently shutdown.
1121       
1122 o   James Wilkinson <jwilk@alumni.cse.ucsc.edu>
1123     * Fix ntlm_auth memory leaks.
1126 o   Jelmer Vernooij <jelmer@samba.org>
1127     * Additional NT status to unix error mappings.
1128     * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't 
1129       get duplicate symbol errors.
1130     * Return an error when the last command read from stdin 
1131       fails in smbclient.
1132     * Prepare for better error checking in tar.
1133     * BUG 1474: Fix build of --with-expsam stuff on Solaris.
1134       
1136 Changes for older versions follow below:
1138       --------------------------------------------------
1139       
1140                  =============================
1141                  Release Notes for Samba 3.0.5
1142                          July 20, 2004
1143                  =============================
1145 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with 
1146 the exception of correcting the two security issues outlined 
1147 below.
1149 ######################## SECURITY RELEASE ########################
1151 Summary:       Multiple Potential Buffer Overruns in Samba 3.0.x
1152 CVE ID:        CAN-2004-0600, CAN-2004-0686
1153                (http://cve.mitre.org/)
1156 This is the latest stable release of Samba. This is the version
1157 that production Samba servers should be running for all current
1158 bug-fixes.
1160 It has been confirmed that versions of Samba 3 prior to v3.0.4
1161 are vulnerable to two potential buffer overruns.  The individual
1162 details are given below.
1164 -------------
1165 CAN-2004-0600
1166 -------------
1168 Affected Versions:      Samba 3.0.2 and later
1170 The internal routine used by the Samba Web Administration
1171 Tool (SWAT v3.0.2 and later) to decode the base64 data
1172 during HTTP basic authentication is subject to a buffer
1173 overrun caused by an invalid base64 character.  It is
1174 recommended that all Samba v3.0.2 or later installations
1175 running SWAT either (a) upgrade to v3.0.5, or (b) disable
1176 the swat administration service as a temporary workaround.
1178 This same code is used internally to decode the
1179 sambaMungedDial attribute value when using the ldapsam
1180 passdb backend. While we do not believe that the base64
1181 decoding routines used by the ldapsam passdb backend can
1182 be exploited, sites using an LDAP directory service with
1183 Samba are strongly encouraged to verify that the DIT only
1184 allows write access to sambaSamAccount attributes by a
1185 sufficiently authorized user.
1187 The Samba Team would like to heartily thank Evgeny Demidov
1188 for analyzing and reporting this bug.
1190 -------------
1191 CAN-2004-0686
1192 -------------
1194 Affected Versions:      Samba 3.0.0 and later
1196 A buffer overrun has been located in the code used to support
1197 the 'mangling method = hash' smb.conf option.  Please be aware
1198 that the default setting for this parameter is 'mangling method
1199 = hash2' and therefore not vulnerable.
1201 Affected Samba 3 installations can avoid this possible security
1202 bug by using the default hash2 mangling method.  Server
1203 installations requiring the hash mangling method are encouraged
1204 to upgrade to Samba 3.0.5.
1207 ##################################################################
1209     --------------------------------------------------
1210                  
1211                  =============================
1212                  Release Notes for Samba 3.0.4
1213                           May 8, 2004
1214                  =============================
1216 Common bugs fixed in Samba 3.0.4 include:
1218   o Password changing after applying the patch described in 
1219     the Microsoft KB828741 article to Windows clients.
1220   o Crashes in smbd.
1221   o Managing print jobs via Windows on Big-Endian servers.
1222   o Several memory leaks in winbindd and smbd.
1223   o Compile issues on AIX and *BSD.
1225 Changes since 3.0.3
1226 --------------------
1228 commits
1229 -------
1231 o   Jeremy Allison <jra@samba.org>
1232     * Fix path processing for DeletePrinterDriverEx().
1233     * BUG 1303: Fix for Microsoft hotfix MS04-011 password change 
1234       breakage.
1237 o   Andrew Bartlett <abartlet@samba.org>
1238     * Fix alignment bug in GetDomPwInfo().
1241 o   Alexander Bokovoy <ab@samba.org>
1242     * Fix utime[s]() issues in smbwrapper on systems 
1243       that can boot both the 2.4 and 2.6 Linux kernels.
1246 o   Gerald Carter <jerry@samba.org>
1247     * Fedora packaging fixes.
1248     * BUG 1302: Fix seg fault by not trying to optimize a list of 
1249       invalid gids using the wrong array size.
1250     * BUG 1309: fix seg fault caused by trying to strdup(NULL)
1251       seen when 'security = share'.
1252     * Fix problems when using IBM's compiler on AIX.
1253     * Link Developer's Guide, Example Guide, and multi-page HOWTO
1254       into SWAT's welcome page.
1255     * BUG 1293: fix double free in printer publishing code.
1257     
1258 o   Wim Delvaux <wim.delvaux@adaptiveplanet.com>
1259     * Fix for handling timeouts in socket connections.
1262 o   Michel Gravey <michel.gravey@optogone.com>
1263     * BUG 483: patch from  to fix password hash creation in SWAT.
1264     
1266 o   Volker Lendecke <vl@samba.org>
1267     * Close the open NT pipes before the tdis.
1268     * Fix AFS related build issues.
1269     * Handle error conditions when base64 encoding a blob of 0 bytes.
1271     
1272 o   Herb Lewis <herb@samba.org>
1273     * Added 'acls' debug class.
1275 o   kawasa_r@itg.hitachi.co.jp
1276     * Multiple variable initialization and memory leak fixes.
1277     
1278     
1279 o   Stephan Kulow <coolo@suse.de>
1280     * Fix string length bug in libsmbclient that caused KDE's 
1281       Konqueror to crash.
1282     * BUG 429: More libsmbclient fixes.
1285 o   Jim McDonough <jmcd@us.ibm.com>
1286     * BUG 1007, 1279: Store the print job using a little-endian key.
1289 o   Eric Mertens
1290     o Compile fix for OpenBSD (ENOTSUP not supported).
1292     
1293 o   Stefan Metzmacher <metze@samba.org>
1294     * Correct bug in disks quota views from explorer.
1296     
1297 o   Tim Potter <tpot@samba.org>
1298     BUG 1305: Correct debug output.
1301 o   Richard Sharpe <rsharpe@samba.org>
1302     * Fix incorrect error code mapping.
1305 o   Jelmer Vernooij <jelmer@samba.org>
1306     * Add additional NT_STATUS errorm mappings.
1307     
1309 Changes for older versions follow below:
1311     --------------------------------------------------
1313                  =============================
1314                  Release Notes for Samba 3.0.3
1315                         April 29, 2004
1316                  =============================
1319 Common bugs fixed in Samba 3.0.3 include:
1321   o Crash bugs and change notify issues in Samba's printing code.
1322   o Honoring secondary group membership on domain member servers.
1323   o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
1324   o Substitution errors for %[UuGg] in smb.conf.
1325   o winbindd crashes when using ADS security mode.
1326   o SMB signing errors.
1327   o Delays in winbindd startup caused by unnecessary 
1328     connections to trusted domain controllers.
1329   o Various small memory leaks.
1330   o Winbindd failing due to expired Kerberos tickets.
1332 New features introduced in Samba 3.0.3 include:
1334   o Improved support for i18n character sets.
1335   o Support for account lockout policy based on
1336     bad password attempts.
1337   o Improved support for long password changes (>14
1338     characters) and strong password enforcement.
1339   o Support for Windows aliases (i.e. nested groups).
1340   o Experimental support for storing DOS attribute on files
1341     and folders in Extended Attributes.
1342   o Support for local nested groups via winbindd.
1343   o Specifying options to be passed directly to the CUPS libraries.
1345 Please be aware that the Samba source code repository was 
1346 migrated from CVS to Subversion on April 4, 2004.  Details on 
1347 accessing the Samba source tree via anonymous svn can be found 
1348 at http://svn.samba.org/samba/subversion.html.
1351 Changes since 3.0.2a
1352 --------------------
1353 smb.conf changes
1354 ----------------
1356     Parameter Name              Action
1357     --------------              ------
1358     cups options                New
1359     ea support                  New
1360     only user                   Deprecated
1361     store dos attributes        New
1362     unicode                     Removed
1363     winbind nested groups       New
1365     
1366 commits
1367 -------
1369 o   Jeremy Allison <jra@samba.org>
1370     * Ensure that Kerberos mutex is always properly unlocked.
1371     * Removed Heimdal "in-memory keytab" support.
1372     * Fixup the 'multiple-vuids' bugs in our server code.
1373     * Correct return code from lsa_lookup_sids() on unmapped
1374       sids (based on work by vl@samba.org).
1375     * Fix the "too many fcntl locks" scalability problem 
1376       raised by tridge.
1377     * Fixup correct (as per W2K3) returns for lookupsids 
1378       as well as lookupnames.
1379     * Fixups for delete-on-close semantics as per Win2k3 behavior.
1380     * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
1381     * Fix "unable to initialize" bug when smbd hasn't been run with 
1382       new system and a user is being added via pdbedit/smbpasswd.
1383     * Added NTrename SMB (0xA5).
1384     * Fixup correct timeout values for blocking lock timeouts.
1385     * Fix various bugs reported by 'gentest'.
1386     * More locking fixes in the case where we own the lock.
1387     * Fix up regression in IS_NAME_VALID and renames.
1388     * Don't set allocation size on directories.
1389     * Return correct error code on fail if file exists and target 
1390       is a directory.
1391     * Added client "hardlink" comment to test doing NT rename with 
1392       hard links.  Added hardlink_internals() code - UNIX extensions 
1393       now use this as well.
1394     * Use a common function to parse all pathnames from the wire for 
1395       much closer emulation of Win2k3 error return codes.
1396     * Implement check_path_syntax() and rewrite string sub 
1397       functions for better multibyte support.
1398     * Ensure msdfs referrals are multibyte safe.
1399     * Allow msdfs symlink syntax to be more forgiving.
1400       eg. sym_link -> msdfs://server/share/path/in/share 
1401       or  sym_link -> msdfs:\\server\share\path\in\share.
1402     * Cleanup multibyte netbios name support in nmbd ( based on patch
1403       by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
1404     * Fix check_path_syntax() for multibyte encodings which have 
1405       no '\' as second byte (based on work by ab@samba.org.
1406     * Fix the "dfs self-referrals as anonymous user" problem
1407       (based on patch from vl@samba.org).
1408     * BUG 1064: Ensure truncate attribute checking is done correctly 
1409       on "hidden" dot files.
1410     * Fix bug in anonymous dfs self-referrals again.
1411     * Fix get/set of EA's in client library
1412     * Added support for OS/2 EA's in smbd server.
1413     * Added 'ea support' parameter to smb.conf.
1414     * Added 'store dos attributes' parameter to smb.conf.
1415     * Fix wildcard identical rename.
1416     * Fix reply_ctemp - make compatible with w2k3.
1417     * Fix wildcard unlink.
1418     * Fix wildcard src with wildcard dest renames.      
1419     * BUG 1139: Fix based on suggestion by jdev@panix.com.
1420       swap lookups for user and group - group will do an
1421       algorithmic lookup if it fails, user won't.
1422     * Make EA's lookups case independent.
1423     * Fix SETPATHINFO in 'unix extensions' support.
1424     * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for 
1425       the UNIX info levels, and the short case preserve names.
1428 o   Timur Bakeyev <timur@com.bat.ru>
1429     * BUG 1144: only set --with-fhs when the argument is 'yes'
1430     * BUG 1152: Allow python modules to build despite libraries added 
1431       to LDFLAGS instead of LDPATH.
1432     * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
1435 o   Craig Barratt <cbarratt@users.sourceforge.net>
1436     * BUG 389: Allow multiple exclude arguments with smbclient 
1437       tar -Xr options (better support for Amanda backup client).
1440 o   Andrew Bartlett <abartlet@samba.org>
1441     * Include support for linking with cracklib for enforcing strong 
1442       password changes.
1443     * Add support for >14 character password changes from Windows 
1444       clients.
1445     * Add 'admin set password' capability to 'net rpc'.
1446     * Allow 'net rpc samdump' to work with any joined domain 
1447       regardless of smb.conf settings.
1448     * Use an allocated buffer for count_chars.
1449     * Add sanity checks for changes in the domain SID in an 
1450       LDAP DIT.
1451     * Implement python unit tests for Samba's multibyte string 
1452       support.
1453     * Remove 'unicode' smb.conf option.
1454     * BUG 1138: Fix support for 'optional' SMB signing and other 
1455       signing bugs.
1456     * BUG 169: Fix NTLMv2-only behavior.
1457     * Ensure 'net' honors the 'netbios name' in the smb.conf by 
1458       default.
1459     * Support SMB signing on connections using only the LANMAN 
1460       password and generate the correct the 'session key' for these 
1461       connections.
1462     * Implement --required-membership-of=, an ntlm_auth option 
1463       that restricts all authentication to members of this particular 
1464       group.
1465     * Improve our fall back code for password changes.
1466     * Only send the ntlm_auth 'ntlm-server-1' helper client a '.' 
1467       after the server had said something (such as an error).
1468     * Add 'ntlm-server-1' helper protocol to ntlm_auth.
1470       
1471 o   Alexander Bokovoy <ab@samba.org>
1472     * Fix incorrect size calculation of the directory name 
1473       in recycle.so.
1474     * Fix problems with very long filenames in both smbd and smbclient
1475       caused by truncating paths during character conversions.
1476     * Fix smbfs problem with Tree Disconnect issued before smbfs 
1477       starts its work.
1480 o   Gerald Carter <jerry@samba.org>
1481     * BUG 850: Fix 'make installmodules' bug on True64.
1482     * BUG 66: mark 'only user' deprecated.
1483     * Remove corrupt tdb and shutdown (only for printing tdbs, 
1484       connections, sessionid & locking).
1485     * decrement smbd counter in connections.tdb in smb_panic().
1486     * RedHat specfile updates.
1487     * Fix xattr.h build issue on Debian testing and SuSE 8.2.
1488     * BUG 1147; bad pointer case in get_stored_queue_info() 
1489       causing seg fault.
1490     * BUG 761: read the config file before initialized default 
1491       values for printing options; don't default to bsd printing 
1492       Linux.
1493     * Allow the 'printing' parameter to be set on a per share basis.
1494     * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
1495     * BUG 848: don't create winbind local users/groups that already 
1496       exist in the tdb.
1497     * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on 
1498       LynxOS/ppc).
1499     * BUG 488: fix the 'show client in col 1' button and correctly 
1500       enumerate active connections.
1501     * BUG 1007 (partial): Fix abort in smbd caused by byte ordering 
1502       problem when storing the updating pid for the lpq cache.
1503     * BUG 1007 (partial): Fix print change notify bugs.
1504     * BUG 1165, 1126: Fix bug with secondary groups (security = ads) 
1505       and winbind use default domain = yes.  Also ensures that 
1506     * BUG 1151: Ensure that winbindd users are passed through 
1507       the username map.
1508     * Fix client rpc binds for ASU derived servers (pc netlink, 
1509       etc...).
1510     * BUG 417, 1128: Ensure that the current_user_info is set
1511       consistently so that %[UuGg] is expanded correctly.
1512     * BUG 1195: Fix crash in winbindd when the ADS server is 
1513       unavailable.
1514     * BUG 1185: Set reconnect time to be the same as the 
1515       'winbind cache time'.
1516     * Ensure that we return the sec_desc in smb_io_printer_info_2.
1517     * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
1518     * BUG 1095: Honor the '-l' option in smbclient.
1519     * BUG 1023: surround get_group_from_gid() with become_unbecome_root() 
1520       block.
1521     * Ensure server schannel uses the auth level requested by the 
1522       client.
1523     * Removed --with-cracklib option due to potential crash issue.
1524     * Fix -lcrypto linking problem with wbinfo.
1525     * BUG 761: allow printing parameter to set defaults on a per 
1526       share basis.
1527     * Add 'cups options' parameter to allow raw printing without 
1528       changing /etc/cups/cupsd.conf.
1529     * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and 
1530       winbindd.
1531     * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
1532     * BUG 1288: resolve any machine netbios name (0x00) and not just 
1533       servers (0x20).
1534     * BUG 1199: Fix potential symlink issue in 
1535       examples/printing/smbprint.
1538 o   Robert Dahlem <Robert.Dahlem@gmx.net>
1539     * BUG 1048:  Don't return short names when when 'mangled names = no'
1542 o   Guenther Deschner <gd@suse.com>
1543     * Remove hard coded attribute name in the ads ranged retrieval
1544       code.
1545     * Add --with-libdir and --with-mandir to autoconf script.
1548 o   Bostjan Golob <golob@gimb.org>
1549     * BUG 1046: Fix  getpwent_list() so that the username is not 
1550       overwritten by other fields.
1553 o   Landon Fuller <landonf@opendarwin.org>
1554     * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller) 
1555       to fix user/group enumeration on systems whose libc does not 
1556       call setgrent() before trying to enumerate users (i.e. 
1557       FreeBSD 5.2).
1560 o   Steve French <sfrench@us.ibm.com>
1561     * Update mount.cifs to version 1.1.
1562     * Disable dev (MS_NODEV) on user mounts from cifs vfs.
1563     * Fixes to minor security bug in the mount helper.
1564     * Fix credential file mounting for cifs vfs.
1565     * Fix free of incremented pointer in cifsvfs mount helper.
1566     * Fix path canonicalization of the mount target path and help 
1567       text display in the cifs mount helper.
1568     * Add missing guest mount option for mount.cifs.
1571 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
1572     * BUG 1055; formatting fixes for 'net share'.
1573     * BUG 692: correct truncation of share names and workgroup 
1574       names in smbclient.
1575     * BUG 1088: use strchr_m() for query_host (smbclient -L).
1576     * Patch from to internally count characters correctly.
1579 o   Paul Green <paulg@samba.org>
1580     * Update VOS _POSIX_C_SOURCE macro to 200112L.
1581     * Fix bug in configure.ion by moving the first use of 
1582       AC_CHECK_HEADERS so it is always executed.
1583     * Fix configure.in to only use $BLDSHARED to select whether to 
1584       build static or shared libraries.
1587 o   Pat Haywarrd <Pat.Hayward@propero.net>
1588     * Make the session_users list dynamic (max of 128K).
1589     
1590     
1591 o   Cal Heldenbrand <calzplace@yahoo.com> 
1592     * Fix for for 'pam_smbpass migrate' functionality.
1595 o   Chris Hertel <crh@samba.org>
1596     * fix enumeration of shares 12 characters in length via 
1597       smbclient.
1600 o   Ulrich Holeschak <ulrich@holeschak.de>
1601     * BUG 932: fix local password change using pam_smbpass
1604 o   Krischan Jodies <kj@sernet.de>
1605     * Implement 'net rpc group delete'
1608 o   John Klinger <john.klinger@lmco.com>
1609     * Return NSS_SUCCESS once the max number of gids possible 
1610        has been found in initgroups() on Solaris.
1611     * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1614 o   Volker Lendecke <vl@samba.org>
1615     * Fix success message for net groupmap modify.
1616     * Fix errors when enumerating members of groups in 'net rpc'.
1617     * Match Windows behavior in samr_lookup_names() by returning
1618       ALIAS(4) when you search in BUILTIN. 
1619     * Fix server SAMR code to be able to set alias info for 
1620       builtin as well. 
1621     * Fix duplication of logic when creating groups via smbd.
1622     * Ensure that the HWM values are set correctly after running 
1623       'net idmap'.
1624     * Add 'net rpc group add'.
1625     * Implement 'net groupmap set' and 'net groupmap cleanup'.
1626     * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1627     * Fix wb_delgrpmem (wbinfo -o).
1628     * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1629     * Fix sambaUserWorkstations on a Samba DC.
1630     * Implement wbinfo -k: Have winbind generate an AFS token after
1631       authenticating the user.
1632     * Add expand_msdfs VFS module for providing referrals based on the
1633       the client's IP address.
1634     * Implement client side NETLOGON GetDCName function.
1635     * Fix caching of name->sid lookups.
1636     * Add support in winbindd for expanding nested local groups.
1637     * Fix memleak in winbindd.
1638     * Fix msdfs proxy.
1639     * Don't list domain groups from BUILTIN.
1640     * Fix memleak in policy handle utility functions.
1641     * Decrease winbindd startup time by only contacting trusted 
1642       domains as necessary.
1643     * Allow winbindd to ask the DC for its domain for a trusted 
1644       DC.
1645     * Fix Netscape DS schema based on comments from 
1646       <thomas.mueller@christ-wasser.de>.
1647     * Correct case where adding a domain user to a XP local group 
1648       did a lsalookupname on the user without domain prefix, and 
1649       failed.
1650     * Fix segfault in winbindd caused by 'wbinfo -a'.
1651     
1653 o   Herb Lewis <herb@samba.org>
1654     * Fix typo for tag in proto file.
1655     * Add missing #ifdef HAVE_BICONV stuff.
1656     * Truncate Samba's netbios name at the first '.' (not 
1657       right to left).
1660 o   Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1661     * Bug fixes and enhancements to libsmbclient library.
1663     
1664 o   Jianliang Lu <j.lu@tiesse.com>
1665     * Enforce the 'user must change password at next login' flag.
1666     * Decode meaning of 'fields present' flags (improves support 
1667       for usrmgr.exe).
1668     * NTLMv2 fixes.
1669     * Don't force an upper case domain name in the ntlmssp code.
1670     
1672 o   L. Lucius <ib@digicron.com>.
1673     * type fixes.
1676 o   Jim McDonough <jmcd@us.ibm.com>
1677     * Add versioning support to tdbsam.
1678     * Update the IBM Directory Server schema with the OpenLDAP 
1679       file.
1680     * Various decoding fixes to improve usrmgr.exe support.
1681     * Fix statfs redeclaration of statfs struct on ppc
1682     * Implement support for password lockout of Samba domain 
1683       controllers and standalone servers.
1684     * Get MungedDial attribute actually working with full TS 
1685       strings in it for pdb_ldap.
1686     * BUG 1208 (partial): Improvements for working with expired krb5 
1687       tickets in winbindd.
1688     * Use timegm, or our already existing replacement instead of 
1689       timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1690     * Remove modifyTimestamp from list of our attributes.  
1691     * Fix lsalookupnames to check for domain users as well as local 
1692       users. 
1693     * Merge struct uuid replacement for GUID from trunk.
1694     * BUG 1208: Finish support for handling expired tickets in 
1695       winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1698 o   Stefan Metzmacher <metze@samba.org>
1699     * Implement new VERSION schema based on subversion revision 
1700       numbers.
1701     * Add shadow_copy vfs module.
1702     * Fix segault in login_cache support.
1705 o    Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1706      o BUG 979 -- Fix quota display on AIX.
1709 o   James Peach <jpeach@sgi.com>
1710     * Correct check for printf() format when using the SGI MIPSPro 
1711       compiler.
1712     * BUG 1038: support backtrace for 'panic action' on IRIX.
1713     * BUG 768: Accept profileing arg to IRIX init script.
1714     * BUG 748: Relax arg parsing to sambalp script (IRIX).
1715     * BUG 758: Fix pdma build.
1716     * Search IRIX ABI paths for libiconv.  Based on initial fix from 
1717       Jason Mader.
1718       
1720 o   Kurt Pfeifle <kpfeifle@danka.de>
1721     * Add example shell script for migrating drivers and printers 
1722       from a Windows print server to a Samba print server using 
1723       smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1726 o   Tim Potter <tpot@samba.org>
1727     * Fix logic bug in tdb non-blocking lock routines when 
1728       errno == EAGAIN.
1729     * BUG 1025: Include sys/acl.h in check for broken nisplus 
1730       include files.      
1731     * BUG 1066: s/printf/d_printf/g in SWAT.
1732     * BUG 1098: rename internal msleep() function to fix build 
1733       problems on AIX.
1734     * BUG 1112: Fix for writable printerdata problem in python bindings.
1735     * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1736     * BUG 1155: enclose use of fchown() with guards.
1737     * Relicense tdb python module as LGPL.
1740 o   Richard Sharpe <rsharpe@samba.org>
1741     * Add support to smbclient for multiple logins on the same 
1742       session (based on work by abartlet@samba.org).
1743     * Correct blocking condition in smbd's use of accept() on IRIX.
1744     * Add support for printing out the MAC address on nmblookup.
1747 o   Simo Sorce <idra@samba.org>
1748     * Replace unknown_3 with fields_present in SAMR code.
1749     * More length checks in strlcat().
1752 o   Andrew Tridgell <tridge@samba.org>
1753     * Rewrote the AIX UESS backend for winbindd.
1754     * Fixed compilation with --enable-dmalloc.
1755     * Change tdb license to LGPL (see source/tdb/tdb.c).
1756     * Force winbindd to use schannel in clients connections to 
1757       DC's if possible.
1760 o   Jelmer Vernooij <jelmer@samba.org>
1761    * Fix ETA Calculation when resuming downloads in smbget.
1762    * Add -O (for writing downloaded files to standard out) 
1763      based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1764     * Fix syntax error in example mysql table
1766            
1767 o   TAKEDA yasuma <yasuma@miraclelinux.com>
1768     * BUG 900: fix token processing in cmd_symlink, cmd_link, 
1769       cmd_chown, cmd_chmod smbclient functions.
1772 o   Shiro Yamada <shiro@miraclelinux.com>
1773     * BUG 1129: install image files for SWAT.
1775       
1776     --------------------------------------------------
1778                   ==============================
1779                   Release Notes for Samba 3.0.2a
1780                         February 13, 2004
1781                   ==============================
1783 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1784 to address, in particular, a problem when using pdbedit to 
1785 sanitize (--force-initialized-passwords) Samba's tdbsam 
1786 backend.   This is the latest stable release of Samba. This 
1787 is the version that all production Samba servers should be 
1788 running for all current bug-fixes.  
1790 ******************* Attention! Achtung! Kree! *********************
1792 Beginning with Samba 3.0.2, passwords for accounts with a last 
1793 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1794 ldapsam, etc...) of zero (0) will be regarded as uninitialized 
1795 strings.  This will cause authentication to fail for such
1796 accounts.  If you have valid passwords that meet this criteria, 
1797 you must update the last change time to a non-zero value.  If you 
1798 do not, then  'pdbedit --force-initialized-passwords' will disable 
1799 these accounts and reset the password hashes to a string of X's.
1801 ******************* Attention! Achtung! Kree! *********************
1804 Changes since 3.0.2
1805 -------------------
1807 commits
1808 -------
1810 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1811 details.  The list of changes per contributor are as follows:
1814 o   Jeremy Allison <jra@samba.org>
1815     * Added paranoia checks in parsing code.
1816     
1818 o   Andrew Bartlett <abartlet@samba.org>
1819     * Ensure that changes to uninitialized passwords in ldapsam 
1820       are written to the DIT.
1823 o   Gerald (Jerry) Carter <jerry@samba.org>
1824     * Fixed iterator in tdbsam.
1825     * Fix bug that disabled accounts with a valid NT password 
1826       hash, but no LanMan hash.
1827     
1829 o   Steve French <sfrench@us.ibm.com>
1830     * Added missing nosetuid and noexec options.
1832     
1833 o   Bostjan Golob <golob@gimb.org>
1834     * BUG 1046: Don't overwrite usernames of entries returned 
1835       by getpwent_list().
1838 o   Sebastian Krahmer <krahmer@suse.de>
1839     * Fixed potential crash bug in NTLMSSP parsing code.
1842 o   Tim Potter <tpot@samba.org>
1843     * Fixed logic in tdb_brlock error checking.
1845     
1846 o   Urban Widmark <urban@teststation.com>
1847     * Set nosuid,nodev flags in smbmnt by default.
1848     
1849     
1850         --------------------------------------------------
1851                   
1852                   =============================
1853                   Release Notes for Samba 3.0.2
1854                         February 9, 2004
1855                   =============================
1857 It has been confirmed that previous versions of Samba 3.0 are
1858 susceptible to a password initialization bug that could grant an 
1859 attacker unauthorized access to a user account created by the
1860 mksmbpasswd.sh shell script.
1862 The Common Vulnerabilities and Exposures project (cve.mitre.org) 
1863 has assigned the name CAN-2004-0082 to this issue.
1865 Samba administrators not wishing to upgrade to the current 
1866 version should download the 3.0.2 release, build the pdbedit 
1867 tool, and run 
1869    root# pdbedit-3.0.2 --force-initialized-passwords
1870       
1871 This will disable all accounts not possessing a valid password
1872 (e.g. the password field has been set a string of X's).
1874 Samba servers running 3.0.2 are not vulnerable to this bug 
1875 regardless of whether or not pdbedit has been used to sanitize
1876 the passdb backend.
1878 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1879 release include:
1881   o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1882   o Logging onto a Samba domain from Windows XP clients.
1883   o Problems with the %U and %u smb.conf variables in relation to 
1884     Windows 9x/ME clients.
1885   o Kerberos failures due to an invalid in memory keytab detection
1886     test.
1887   o Updates to the ntlm_auth tool.
1888   o Fixes for various SMB signing errors.
1889   o Better separation of WINS and DNS queries for domain controllers.
1890   o Issues with nss_winbind FreeBSD and Solaris.
1891   o Several crash bugs in smbd and winbindd.
1892   o Output formatting fixes for smbclient for better compatibility
1893     with scripts based on the 2.2 version.
1896 Changes since 3.0.1
1897 -------------------
1899 smb.conf changes
1900 ----------------
1902     Parameter Name              Action
1903     --------------              ------
1904     ldap replication sleep      New
1905     read size                   removed (unused)
1906     source environment          removed (unused)
1909 commits
1910 -------
1912 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1913 details.  The list of changes per contributor are as follows:
1915 o   Jeremy Allison <jra@samba.org>
1916     * Revert change that broke Exchange clear text samlogons.
1917     * Fix gcc 3.4 warning in MS-DFS code.
1918     * Tidy up of NTLMSSP code.
1919     * Fixes for SMB signing errors
1920     * BUG 815: Workaround NT4 bug to support plaintext
1921       password logins and UNICODE.
1922     * Fix SMB signing bug when copying large files.
1923     * Correct error logic in mkdir_internals() (caused a panic
1924       when combined with --enable-developer).
1925     * BUG 830: Protect against crashes due to bad character 
1926       conversions.
1928       
1929 o   Petri Asikainen <paca@sci.fi>
1930     * BUG 330, 387:Fix single valued attribute updates when 
1931       working with Novell NDS.
1934 o   Andrew Bartlett <abartlet@samba.org>
1935     * Correctly handle per-pipe NTLMSSP inside a NULL session.
1936     * Fix segfault in gencache 
1937     * Fix early free() of encrypted_session_key.
1938     * Change DC lookup routines to more carefully separate
1939       DNS names (realms) from NetBIOS domain names.
1940     * Add new sid_to_dn() function for internal winbindd use.
1941     * Refactor cli_ds_enum_domain_trusts().
1942     * BUG 707: Implement range retrieval of ADS attributes (based 
1943       on work from Volker <vl@samba.org> and Guenther Deschner 
1944       <gd@suse.com>).
1945     * Automatically initialize the signing engine if a session key
1946       is available.
1947     * BUG 916: Do not perform a + -> ' ' substitution for squid URL 
1948       encoded strings, only form input in SWAT.
1949     * Resets the NTLMSSP state for new negotiate packets.
1950     * Add 2-byte alignments in net_samlogon() queries to parse 
1951       odd-length plain text passwords.
1952     * Allow Windows groups with no members in winbindd.
1953     * Allow normal authentication in the absence of a server 
1954       generated session key.
1955     * More optimizations for looking up UNIX group lists.
1956     * Clean up error codes and return values for pam_winbindd
1957       and winbindd PAM interface.
1958     * Fix string return values in ntlm_auth tool.
1959     * Fix segfault when 'security = ads' but no realm is defined.
1960     * BUG 722: Allow winbindd to map machine accounts to uids.
1961     * More cleanups for winbindd's find_our_domain().
1962     * More clearly detect whether a domain controller is an NT4
1963       or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
1964     * Increase separation between DNS queries for hosts and queries
1965       for AD domain controllers.
1966     * Include additional NT_STATUS to PAM error mappings.
1967     * Password initialization fixes.
1969     
1970 o   Justin Baugh <justin.baugh@request.com>
1971     * BUG 948: Implement missing functions required for FreeBSD 
1972       nss_winbind support. 
1975 o   Alexander Bokovoy <ab@samba.org>
1976     * BUG 922: Make sure enable fast path for strlower_m() and 
1977       strupper_m().
1980 o   Luca Bolcioni <Luca.Bolcioni@yacme.com>
1981     * Fix crash when using 'security = server' and 'encrypt 
1982       passwords = no' by always initializing the session key.
1984       
1985 o   Dmitry Butskoj <buc@odusz.elektra.ru>
1986     * Fix for special files being hidden from admins.
1989 o   Gerald (Jerry) Carter <jerry@samba.org>
1990     * Fix bug in the lanman session key generation.  Caused 
1991       "decode_pw: incorrect password length" error messages.
1992     * Save the right case for the located user name in 
1993       fill_sam_account().  Fixes %U/%u expansion for win9x clients.
1994     * BUG 897: Add well known rid for pre win2k compatible access
1995       group.
1996     * BUG 887: Correct typo in delete user script example.
1997     * Use short lived TALLOC_CTX* for allocating printer objects 
1998       from the print handle cache.
1999     * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
2000     * Fix several warnings reported by the SUN Forte C compiler.
2001     * Fully control DNS queries for AD DC's using 'name resolve order'.
2002     * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
2003     * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
2004     * BUG 936: fix bind credentials for schannel binds in smbd.
2005     * BUG 446: Fix output of smbclient for better compatibility 
2006       with scripts based on the 2.2 version (including Amanda).
2007     * BUG 891, 949: Fedora packaging fixes.
2008     * Fix bug that caused rpcclient to incorrectly retrieve 
2009       the SID for a server (this causing all calls that required 
2010       this information to fail). 
2011     * BUG 977: Don't create a homes share for a user if a static 
2012       share already exists by the same name.
2013     * Removed unused smb.conf options.
2014     * Password initialization fixes.
2015     * Set the disable flag for template accounts created by
2016       mksmbpasswd.sh.
2017     * Disable any account has no passwords and does not have the
2018       ACB_PWNOTREQ bit set.
2021 o   Guenther Deschner <gd@suse.com>
2022     * Install smbwrapper.so should be put into the $(libdir) 
2023       and not $(bindir).
2024     * Add the capability to specify the new user password 
2025       for "net ads password" on the command line.
2026     * Correctly detect AFS headers on SuSE.
2027         
2029 o   James Flemer <jflemer@uvm.edu>
2030     * Fix AIX compile bug by linking HAVE_ATTR_LIST to 
2031       HAVE_SYS_ATTRIBUTES_H.
2034 o   Luke Howard <lukeh@PADL.COM>
2035     * Fix segfault in session setup reply caused by a early free().
2038 o   Stoian Ivanov <sdr@bultra.com>
2039     * Implement grepable output for smbclient -L.
2042 o   LaMont Jones <lamont@debian.org>
2043     * BUG 225328 (Debian): Correct false failure LFS test that resulted 
2044       in  _GNU_SOURCE not being defined (thus resulting in strndup() 
2045       not being defined).
2047       
2048 o   Volker Lendecke <vl@samba.org>
2049     * BUG 583: Ensure that user names always contain the short 
2050       version of the domain name.
2051     * Fix our parsing of the LDAP uri.
2052     * Don't show the 'afs username map' in the SWAT basic view.
2053     * Fix SMB signing issues in relation to failed NTLMSSP logins.
2054     * BUG 924: Fix return codes in smbtorture harness.
2055     * Always lower-case usernames before handing it to AFS code.
2056     * Add a German translation for SWAT.
2057     * Fix a segfaults in winbindd.
2058     * Fix the user's domain passed to register_vuid() from 
2059       reply_spnego_kerberos().
2060     * Add NSS example code in nss_winbind to convert UNIX 
2061       id's <-> Windows SIDs.
2062     * Display more descriptive error messages for login via 'net'.
2063     * Fix compiler warning in the net tool.
2064     * Fix length bug when decoding base64 strings.
2065     * Ensure we don't call getpwnam() inside a loop that is iterating 
2066       over users with getpwent().  This broke on glibc 2.3.2.
2069 o   Herb Lewis <herb@samba.org>
2070     * Fix bit rot in psec.
2073 o   Jianliang Lu <j.lu@tiesse.com>
2074     * Ensure we delete the group mapping before calling the delete 
2075       group script.
2076     * Define well known RID for managing the  "Power Users" group.
2077     * BUG 381: check builtin (not local) group SID when updating 
2078       group membership.
2079     * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement 
2080       packet.
2083 o   John Klinger <john.klinger@lmco.com>
2084     * Implement initgroups() call in nss_winbind on Solaris.
2087 o   Jim McDonough <jmcd@us.ibm.com>
2088     * Fix regression in net rpc join caused by recent changes 
2089       to cli_lsa_query_info_policy().
2090     * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
2091       machine account.
2094 o   MORIYAMA Masayuki <moriyama@miraclelinux.com>
2095     * BUG 570: Ensure that configure honors the LDFLAGS variable.
2098 o   Stefan Metzmacher <metze@samba.org>
2099     * Implement LDAP rebind sleep patch.
2100     * Revert to 2.2 quota code because of so many broken quota files 
2101       out there.
2102     * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
2103                       XFS_USER_QUOTA -> USRQUOTA
2104                       XFS_GROUP_QUOTA -> GRPQUOTA
2105     * Fix disk_free calculation with group quotas.
2106     * Add debug class 'quota' and a lot of DEBUG()'s 
2107       to the quota code.
2108     * Fix sys_chown() when no chown() is present.
2109     * Add SIGABRT to fault handling in order to catch got a 
2110       backtrace if an error occurs the OpenLDAP client libs.
2113 o   <ndb@theghet.to>
2114     * Allow an existing LDAP machine account to be re-used when 
2115       joining an AD domain.
2118 o   James Peach <jpeach@sgi.com>
2119     * BUG 889: Change smbd to use pread/pwrite on platforms that 
2120       support these calls. Can lead to a significant speed increase.
2123 o   Tim Potter <tpot@samba.org>
2124     * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
2125     * BUG 924: Fix typo in RW2 torture test.
2126     
2127     
2128 o   Richard Sharpe <rsharpe@samba.org>
2129     * Small fixes to torture.c to cleanup the error handling 
2130       and prevent crashes.
2133 o   J. Tournier <jerome.tournier@IDEALX.com>
2134     * Small fixes for the smbldap-tool scripts.
2137 o   Andrew Tridgell <tridge@samba.org>
2138     * Fix src len check in pull_usc2().
2139     
2140     
2141 o   Jelmer Vernooij <jelmer@samba.org>
2142     * Put functions for generating SQL queries in pdb_sql.c
2143     * Add pgSQL backend (based on patch by Hamish Friedlander)
2144     * BUG 908: Fix -s option to smbcontrol.    
2145     * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
2146     * Fix for libnss_wins on IRIX platforms.
2147     * Fix swatdir for --with-fhs.
2150         --------------------------------------------------
2152                   =============================
2153                   Release Notes for Samba 3.0.1
2154                         December 15, 2003
2155                   =============================
2157 Some of the more common bugs in 3.0.0 addressed in the release 
2158 include:
2160   o Substitution problems with smb.conf variables.
2161   o Errors in return codes which caused some applications
2162     to fail to open files.
2163   o General Protection Faults on Windows 2000/XP clients
2164     using Samba point-n-print features.
2165   o Several miscellaneous crash bugs.
2166   o Access problems when enumerating group mappings are
2167     stored in an LDAP Directory.
2168   o Several common SWAT bugs when writing changes to
2169     smb.conf.
2170   o Internal inconsistencies when 'winbind use default
2171     domain = yes'
2175 Changes since 3.0.0
2176 ----------------------
2178     Parameter Name              Action
2179     --------------              ------
2180     hide local users            Removed
2181     mangled map                 Deprecated
2182     mangled stack               Removed
2183     passwd chat timeout         New
2186 commits
2187 -------
2189 o   Change the interface for init_unistr2 to not take a length 
2190     but a flags field.  We were assuming that 
2191     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
2192 o   Allow d_printf() to handle strings with escaped quotation 
2193     marks since the msg file includes the escape character (bug 489).
2194 o   Fix bad html table row termination in SWAT wizard code (bug 413).
2195 o   Fix to parse the level-2 strings.
2196 o   Fix for "valid users = %S" in [homes].  Fix read/write 
2197     list as well. 
2198 o   Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
2199     This is the same way AC_CHECK_LIB works (bug 508).
2200 o   Testparm output fixes for clarity.
2201 o   Fix broken wins hook functionality -- i18n bug (bug 528).
2202 o   Take care of condition where DOS and NT error codes must differ.
2203 o   Default to using only built-in charsets when a working iconv 
2204     implementation cannot be located.
2205 o   Wrap internals of sys_setgroups() so the sys_XX() call can 
2206     be done unconditionally (bug 550).
2207 o   Remove duplicate smbspool link on SWAT's front page (bug 541).
2208 o   Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
2209     --enable-debug=[yes|no] works correctly.
2210 o   Allow ^C to interrupt smbpasswd if using our getpass 
2211     (e.g. smbpasswd command).
2212 o   Support signing only on RPC's (bug 167).
2213 o   Correct bug that prevented  Excel 2000 clients from opening 
2214     files marked as read-only.
2215 o   Portability fix bugs 546 - 549).
2216 o   Explicitly initialize the value of AR for vendor makes that don't
2217     do this (e.g. HPUX 11).  (bug 552).
2218 o   More i18n fixes for SWAT (bug 413).
2219 o   Change the cwd before the postexec script to ensure that a
2220     umount will succeed.
2221 o   Correct double free that caused winbindd to crash when a DC 
2222     is rebooted (bug 437).
2223 o   Fix incorrect mode sum (bug 562).
2224 o   Canonicalize SMB_INFO_ALLOCATION in the same was as
2225     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
2226 o   Add script to generate *msg files.
2227 o   Add Dutch SWAT translation file.
2228 o   Make sure to call get_user_groups() with the full winbindd 
2229     name for a user if he/she has one (bug 406).
2230 o   Fix up error code returns from Samba4 tester. Ensure invalid 
2231     paths are validated the same way.  
2232 o   Allow Samba3 to pass the Samba4 RAW-READ tests.
2233 o   Refuse to configure if --with-expsam=$BACKEND was used but no 
2234     libraries were found for $BACKEND.
2235 o   Move sysquotas autoconf tests to a separate file.
2236 o   Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
2237     tester
2238 o   Make sure that the files that contain the static_init_$subsystem; 
2239     macro get recompiled after configure by removing the object 
2240     files.
2241 o   Ensure canceling a blocking lock returns the correct error 
2242     message.
2243 o   Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
2244 o   Updated Japanese welcome file in SWAT.
2245 o   Fix to  nt-time <-> unix-time functions reversible.
2246 o   Ensure that winbindd uses the the escaped DN when querying
2247     an AD ldap server.
2248 o   Fix portability issues when compiling (bug 505, 550)
2249 o   Compile fix for tdbbackup when Samba needs to override 
2250     non-C99 compliant implementations of snprintf().
2251 o   Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
2252 o   Make sure we break out of samsync loop on error.
2253 o   Ensure error code path doesn't free unmalloc()'d memory
2254     (bug 628).
2255 o   Add configure test for krb5_keytab_entry keyblock vs key 
2256     member (bug 636).
2257 o   Fixed spinlocks.
2258 o   Modified testparm so that all output so all debug output goes 
2259     to stderr, and all file processing goes to stdout.
2260 o   Fix error return code for BUFFER_TOO_SMALL in smbcacls 
2261     and smbcquotas.
2262 o   Fix "NULL dest in safe_strcpy()" log message by ensuring that 
2263     we have a devmode before copying a string to the devicename.
2264 o   Support mapping REALM.COM\user to a local user account (without 
2265     running winbindd)  for compatibility with 2.2.x release.
2266 o   Ensure we don't use mmap() on blacklisted systems.
2267 o   fixed a number of bugs and memory leaks in the AIX 
2268     winbindd shim
2269 o   Call initgroups() in SWAT before becomming the user so that
2270     secondary group permissions can be used when writing to 
2271     smb.conf.
2272 o   Fix signing problems when reverse connecting back to a 
2273     client for printer notify
2274 o   Fix signing problems caused by a miss-sequence bug.
2275 o   Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
2276     Fixes NEXUS tools running on Win9x clients (bug 64).
2277 o   Don't leave the domain field uninitialized in cli_lsa.c if some 
2278     SID could not be mapped.
2279 o   Fix segfault in mount.cifs helper when there is no options 
2280     specified during mount.
2281 o   Change the \n after the password prompt to go to tty instead 
2282     of stdout (bug 668).
2283 o   Stop net -P from prompting for machine account password (bug 451).
2284 o   Change in behavior to Not only change the effective uid but also
2285     the real uid when becoming unprivileged.
2286 o   Cope with Exchange 5.5 cleartext pop password auth.
2287 o   New files for support of initshutdown pipe.  Win2k doesn't 
2288     respond properly to all requests on the winreg pipe, so we need 
2289     to handle this new pipe (bug 534).
2290 o   Added more va_copy() checks in configure.in.
2291 o   Include fixes for libsmbclient build problems.
2292 o   Missing UNIX -> DOS codepage conversion in lanman.c.
2293 o   Allow DFMS-S filenames can now have arbitrary case (bug 667).
2294 o   Parameterize the listen backlog in smbd and make it larger by
2295     default. A backlog of 5 is way too small these days.
2296 o   Check for an invalid fid before dereferencing the fsp pointer
2297     (bug 696).
2298 o   Remove invalid memory frees and return codes in pdb_ldap.c.
2299 o   Prompt for password when invoking --set-auth-user and no 
2300     password is given.
2301 o   Bind the nmbd sending socket to the 'socket address'.
2302 o   Re-order link command for smbd, rpcclient and smbpasswd to ensure 
2303     $LDFLAGS occurs before any library specification (bug 661).
2304 o   Fix large number of printf() calls for 64-bit size_t.
2305 o   Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
2306     keyblock in the krb5 structs.
2307 o   Remove #include <compat.h> in hopes to avoid problems with 
2308     apache header files.
2309 o   Correct winbindd build problems on HP-UX 11.
2310 o   Lowercase netgroups lookups (bug 703).
2311 o   Use the actual size of the buffer in strftime instead of a made
2312     up value which just happens to be less than sizeof(fstring).  
2313     (bug 713).
2314 o   Add ldaplibs to pdbedit link line (bug 651).
2315 o   Fix crash bug in smbclient completion (bug 659).
2316 o   Fix packet length for browse list reply (bug 771).
2317 o   Fix coredump in cli_get_backup_list().
2318 o   Make sure that we expand %N (bug 612).
2319 o   Allow rpcclient adddriver command to specify printer driver 
2320     version (bug 514).
2321 o   Compile tdbdump by default.
2322 o   Apply patches to fix iconv detection for FreeBSD.
2323 o   Do not allow the 'guest account' to be added to a passdb backend 
2324     using smbpasswd or pdbedit (bug 624).
2325 o   Save LDFLAGS during iconv detection (bug 57).
2326 o   Run krb5 logins through the username map if the winbindd 
2327     lookup fails (bug 698).
2328 o   Add const for lp_set_name_resolve_order() to avoid compiler 
2329     warnings (bug 471).
2330 o   Add support for the %i macro in smb.conf to stand in for the for
2331     the local IP address to which a client connected.
2332 o   Allow winbindd to match local accounts to domain SID when 
2333     'winbind trusted domains only = yes' (bug 680).
2334 o   Remove code in idmap_ldap that searches the user suffix and group 
2335     suffix.  It's not needed and provides inconsistent functionality 
2336     from the tdb backend.
2337 o   Patch to handle munged dial string for Windows 2000 TSE.
2338     Thanks to Gaz de France, Direction de la Recherche, Service 
2339     Informatique Métier for their supporting this work by Aurelien 
2340     Degrémont <adegremont@idealx.com>.
2341 o   Correct the "smbldap_open: cannot access when not root error"
2342     messages when looking up group information (bug 281).
2343 o   Skip over the winbind separator when looking up a user.
2344     This fixes the bug that prevented local users from
2345     matching an AD user when not running winbindd (bug 698).
2346 o   Fix a problem with configure on *BSD systems. Make sure
2347     we add -liconv etc to LDFLAGS.
2348 o   Fix core dump bug when "security = server" and the authentication
2349     server goes away.
2350 o   Correct crash bug due to an empty munged dial string.
2351 o   Show files locked by a specific user (smbstatus -u 'user') 
2352     (bug 590).
2353 o   Fix bug preventing print jobs from display in the queue
2354     monitor used by Windows NT and later clients (bug 660).
2355 o   Fix several reported problems with point-n-print from
2356     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
2357     reply (bug 338, 527 & 643).
2358 o   Fix a handful of potential memory leaks in the LDAP code used
2359     by ldapsam[_compat] and the LDAP idmap backend.
2360 o   Fix for pdbedit error code returns (bug 763).
2361 o   Make sure we only enumerate group mapping entries  (not 
2362     /etc/group) even when doing local aliases.
2363 o   Relax check on the pipe name in a dce/rpc bind response to work 
2364     around issues with establishing trusts to a Windows 2003 domain.
2365 o   Ensure we mangle names ending in '.' in hash2 mangling method.
2366 o   Correct parsing issues with munged dial string.
2367 o   Fix bugs in quota support for XFS.
2368 o   Add a cleaner method for applications that need to provide 
2369     name->SID mappings to do this via NSS rather than having to 
2370     know the winbindd pipe protocol.
2371 o   Adds a variant of the winbindd_getgroups() call called 
2372     winbindd_getusersids() that provides direct SID->SIDs listing of 
2373     a users supplementary groups. This is enough to allow non-Samba 
2374     applications to do ACL checking.
2375 o   Make sure we don't append the 'ldap suffix' when writing out the 
2376     'ldap XXX suffix' values in SWAT (bug 328).
2377 o   Fix renames across file systems.
2378 o   Ensure that items in a list of strings containing whitespace are 
2379     written out surrounded by single quotes.  This means that both 
2380     double and single quotes are now used to surround strings in 
2381     smb.conf (bug 481).
2382 o   Enable SWAT to correctly determine if winbindd is running (bug 
2383     398).
2384 o   Include WWW-Authenticate field in 401 response for bad auth 
2385     attempt (bug 629).
2386 o   Add support for NTLM2 (NTLMv2 session security).
2387 o   Add support for variable-length session keys.
2388 o   More privilege fixes for group enumeration in LDAP (bug 281).
2389 o   Use the dns name (or IP) as the originating client name when
2390     using CUPS (bug 467).
2391 o   Fix various SMB signing bugs.
2392 o   Fix ACL propagation on a DFS root (bug 263).
2393 o   Disable NTLM2 for RPC pipes.
2394 o   Allow the client to specify the NTLM2 flags got NTLMSSP 
2395     authentication.
2396 o   Change the name of the job passed off to cups from "Test Page" 
2397     to "smbprn.00000033 Test Page" so that we can get the smb 
2398     jobid back. This allow users to delete jobs with cups printing 
2399     backend (partial work on bug 770).
2400 o   Fix build of winbindd with static pdb modules.
2401 o   Retrieve the correct ACL group bits if the file has an ACL 
2402     (bug 802).
2403 o   Implement "net rpc group members": Get members of a domain group 
2404     in human-readable format.
2405 o   Add MacOSX (Darwin) specific charset module code.
2406 o   Use samr_dispinfo(level == 1) for enumerating domain users so we 
2407     can include the full name in gecos field (bug 587).
2408 o   Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
2409 o   Implement 'net rpc group list [global|local|builtin]*' for a 
2410     select listing of the respective user databases.
2411 o   Don't automatically set NT status code flag unless client tells 
2412     us it can cope.
2413 o   Add 'net status [sessions|shares] [parseable]'.
2414 o   Don't mistake pre-existing UNIX jobs for smb jobs (remainder of  
2415     bug 770).
2416 o   Add 'Replicator' and 'RAS Servers' to list of builtin SIDs 
2417    (bug 608).
2418 o   Fix inverted logic in hosts allow/deny checks caused by 
2419     s/strcmp/strequal/ (bug 846).
2420 o   Implement correct version SamrRemoveSidForeignDomain() (bug 252).
2421 o   Fix typo in 'hash' mangling algorithm.
2422 o   Support munged dial for ldapsam (bug 800).
2423 o   Fix process_incoming_data() to return the number of bytes handled 
2424     this call whether we have a complete PDU or not; fixes bug 
2425     with multiple PDU request rpc's broken over SMBwriteX calls 
2426     each.
2427 o   Fix incorrect smb flags2 for connections to pre-NT servers 
2428     (causes smbclient to fail to OS2 for example) (bug 821).
2429 o   Update version string in smbldap-tools Makefile to 0.8.2.
2430 o   Correct a problem with "net rpc vampire" mis-parsing the 
2431     alias member info reply.
2432 o   Ensure the ${libdir} is created by the installclientlib script.
2433 o   Fix detection of Windows 2003 client architecture in the smb.conf
2434     %a variable.
2435 o   Ensure that smbd calls the add user script for a missing UNIX 
2436     user on kerberos auth call (bug 445).
2437 o   Fix bugs in hosts allow/deny when using a mismatched 
2438     network/netmask pair.
2439 o   Protect alloc_sub_basic() from crashing when the source string 
2440     is NULL (partial work on bug 687).
2441 o   Fix spinlocks on IRIX.
2442 o   Corrected some bad destination paths when running "configure 
2443     --with-fhs".
2444 o   Add packaging files for Fedora Core 1.
2445 o   Correct bug in SWAT install script for non-english languages.
2446 o   Support character set ISO-8859-1 internally (bug 558).
2447 o   Fixed more LDAP access errors when looking up group mappings 
2448     (bug 281).
2449 o   Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID 
2450     resolution to fail on local files on on domain members 
2451     (bug 875).
2452 o   Fix uninitialized variable in passdb.c.
2453 o   Fix formal parameter type in get_static() in nsswitch/wins.c.
2454 o   Fix problem mounting directories when mount.cifs is installed 
2455     with the setuid bit on.
2456 o   Fix bug that prevent --mandir from overriding the defaults
2457     given in the --with-fhs macro.
2458 o   Fix bug in in-memory Kerberos keytab detection routines 
2459     in configure.in
2463 ######################################################################
2465               The original 3.0.0 release notes follow
2466               =======================================
2467                     WHATS NEW IN Samba 3.0.0
2468                         September 24, 2003
2469               =======================================
2472 Major new features:
2473 -------------------
2475 1)  Active Directory support.  Samba 3.0 is now able to  
2476     join a ADS realm as a member server and authenticate 
2477     users using LDAP/Kerberos.
2479 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
2480     and internally there is now a much better infrastructure for 
2481     multi-byte and UNICODE character sets.
2483 3)  New authentication system. The internal authentication system 
2484     has been almost completely rewritten. Most of the changes are 
2485     internal, but the new auth system is also very configurable.
2487 4)  New default filename mangling system.
2489 5)  A new "net" command has been added. It is somewhat similar to 
2490     the "net" command in windows. Eventually we plan to replace 
2491     numerous other utilities (such as smbpasswd) with subcommands 
2492     in "net".
2494 6)  Samba now negotiates NT-style status32 codes on the wire. This
2495     improves error handling a lot.
2497 7)  Better Windows 2000/XP/2003 printing support including publishing
2498     printer attributes in active directory.
2500 8)  New loadable module support for passdb backends and character 
2501     sets.
2503 9)  New default dual-daemon winbindd support for better performance.
2505 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
2506     domain and maintaining user, group and domain SIDs.
2508 11) Support for establishing trust relationships with Windows NT 4.0
2509     domain controllers.
2510   
2511 12) Initial support for a distributed Winbind architecture using
2512     an LDAP directory for storing SID to uid/gid mappings.
2513   
2514 13) Major updates to the Samba documentation tree.
2516 14) Full support for client and server SMB signing to ensure
2517     compatibility with default Windows 2003 security settings.
2519 15) Improvement of ACL mapping features based on code donated by
2520     Andreas Grünbacher.
2523 Plus lots of other improvements!
2526 Additional Documentation
2527 ------------------------
2529 Please refer to Samba documentation tree (included in the docs/ 
2530 subdirectory) for extensive explanations of installing, configuring
2531 and maintaining Samba 3.0 servers and clients.  It is advised to 
2532 begin with the Samba-HOWTO-Collection for overviews and specific 
2533 tasks (the current book is up to approximately 400 pages) and to 
2534 refer to the various man pages for information on individual options.
2536 We are very glad to be able to include the second edition of
2537 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
2538 (O'Reilly & Associates) in this release.  The book is available
2539 on-line at http://samba.org/samba/docs/ and is included with 
2540 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
2541 publisher for making "Using Samba" under the GNU Free Documentation 
2542 License.
2545 ######################################################################
2546 Upgrading from a previous Samba 3.0 beta
2547 ########################################
2549 Beginning with Samba 3.0.0beta3, the RID allocation functions
2550 have been moved into winbindd.  Previously these were handled
2551 by each passdb backend.  This means that winbindd must be running
2552 to automatically allocate RIDs for users and/or groups.  Otherwise,
2553 smbd will use the 2.2 algorithm for generating new RIDs.
2555 If you are using 'passdb backend = tdbsam' with a previous Samba 
2556 3.0 beta release (or possibly alpha), it may be necessary to 
2557 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
2558 to winbindd_idmap.tdb.  To do this:
2560 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
2561     once)
2562 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
2563     directory
2564 3)  run: (note that 'tdb>' is the tool's prompt for input)
2566        root# ./tdbtool /usr/local/samba/private/passdb.tdb
2567        tdb> show RID_COUNTER
2568        key 12 bytes
2569        RID_COUNTER
2570        data 4 bytes
2571        [000] 0A 52 00 00                                       .R.
2573        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
2574        ....
2575        record moved
2577 If you are using 'passdb backend = ldapsam', it will be necessary to 
2578 store idmap entries in the LDAP directory as well (i.e. idmap backend 
2579 = ldap).  Refer to the 'net idmap' command for more information on 
2580 migrating SID<->UNIX id mappings from one backend to another.
2582 If the RID_COUNTER record does not exist, then these instructions are
2583 unneccessary and the new RID_COUNTER record will be correctly generated
2584 if needed.  
2588 ########################
2589 Upgrading from Samba 2.2
2590 ########################
2592 This section is provided to help administrators understand the details
2593 involved with upgrading a Samba 2.2 server to Samba 3.0.
2596 Building
2597 --------
2599 Many of the options to the GNU autoconf script have been modified 
2600 in the 3.0 release.  The most noticeable are:
2602   * removal of --with-tdbsam (is now included by default; see section
2603     on passdb backends and authentication for more details)
2604     
2605   * --with-ldapsam is now on used to provided backward compatible
2606     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
2607     backend and authentication section for more details
2608   
2609   * inclusion of non-standard passdb modules may be enabled using
2610     --with-expsam.  This includes an XML backend and a mysql backend.
2611       
2612   * removal of --with-msdfs (is now enabled by default)
2613   
2614   * removal of --with-ssl (no longer supported)
2615   
2616   * --with-utmp now defaults to 'yes' on supported systems
2617   
2618   * --with-sendfile-support is now enabled by default on supported 
2619     systems
2620   
2621     
2622 Parameters
2623 ----------
2625 This section contains a brief listing of changes to smb.conf options
2626 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
2627 complete descriptions of new or modified parameters.
2629 Removed Parameters (order alphabetically):
2631   * admin log
2632   * alternate permissions
2633   * character set
2634   * client codepage
2635   * code page directory
2636   * coding system
2637   * domain admin group
2638   * domain guest group
2639   * force unknown acl user
2640   * hide local users
2641   * mangled stack
2642   * nt smb support
2643   * postscript
2644   * printer driver
2645   * printer driver file
2646   * printer driver location
2647   * read size
2648   * source environment
2649   * status
2650   * strip dot
2651   * total print jobs
2652   * use rhosts
2653   * valid chars
2654   * vfs options
2656 New Parameters (new parameters have been grouped by function):
2658   Remote management
2659   -----------------
2660   * abort shutdown script
2661   * shutdown script
2663   User and Group Account Management
2664   ---------------------------------
2665   * add group script
2666   * add machine script
2667   * add user to group script
2668   * algorithmic rid base
2669   * delete group script
2670   * delete user from group script
2671   * passdb backend
2672   * set primary group script
2674   Authentication
2675   --------------
2676   * auth methods
2677   * realm
2678   * passwd chat timeout
2680   Protocol Options
2681   ----------------
2682   * client lanman auth
2683   * client NTLMv2 auth
2684   * client schannel
2685   * client signing
2686   * client use spnego
2687   * disable netbios
2688   * ntlm auth
2689   * paranoid server security
2690   * server schannel
2691   * server signing
2692   * smb ports
2693   * use spnego
2695   File Service
2696   ------------
2697   * get quota command
2698   * hide special files
2699   * hide unwriteable files
2700   * hostname lookups
2701   * kernel change notify
2702   * mangle prefix
2703   * map acl inherit
2704   * msdfs proxy
2705   * set quota command
2706   * use sendfile
2707   * vfs objects
2708   
2709   Printing
2710   --------
2711   * max reported print jobs
2713   UNICODE and Character Sets
2714   --------------------------
2715   * display charset
2716   * dos charset
2717   * unicode
2718   * unix charset
2719   
2720   SID to uid/gid Mappings
2721   -----------------------
2722   * idmap backend
2723   * idmap gid
2724   * idmap uid
2725   * winbind enable local accounts
2726   * winbind trusted domains only
2727   * template primary group
2728   * enable rid algorithm
2730   LDAP
2731   ----
2732   * ldap delete dn
2733   * ldap group suffix
2734   * ldap idmap suffix
2735   * ldap machine suffix
2736   * ldap passwd sync
2737   * ldap replication sleep
2738   * ldap user suffix
2739   
2740   General Configuration
2741   ---------------------
2742   * preload modules
2743   * private dir
2745 Modified Parameters (changes in behavior):
2747   * encrypt passwords (enabled by default)
2748   * mangling method (set to 'hash2' by default)
2749   * passwd chat
2750   * passwd program
2751   * restrict anonymous (integer value)
2752   * security (new 'ads' value)
2753   * strict locking (enabled by default)
2754   * unix extensions (enabled by default)
2755   * winbind cache time (increased to 5 minutes)
2756   * winbind uid (deprecated in favor of 'idmap uid')
2757   * winbind gid (deprecated in favor of 'idmap gid')
2760 Databases
2761 ---------
2763 This section contains brief descriptions of any new databases 
2764 introduced in Samba 3.0.  Please remember to backup your existing 
2765 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
2766 upgrade databases as they are opened (if necessary), but downgrading 
2767 from 3.0 to 2.2 is an unsupported path.
2769 Name                    Description                             Backup?
2770 ----                    -----------                             -------
2771 account_policy          User policy settings                    yes
2772 gencache                Generic caching db                      no
2773 group_mapping           Mapping table from Windows              yes
2774                         groups/SID to unix groups        
2775 winbindd_idmap          ID map table from SIDS to UNIX          yes
2776                         uids/gids.
2777 namecache               Name resolution cache entries           no
2778 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
2779                         returned as part of a successful
2780                         net_sam_logon request 
2781 printing/*.tdb          Cached output from 'lpq                 no
2782                         command' created on a per print 
2783                         service basis
2784 registry                Read-only samba registry skeleton       no
2785                         that provides support for exporting
2786                         various db tables via the winreg RPCs
2789 Changes in Behavior
2790 -------------------
2792 The following issues are known changes in behavior between Samba 2.2 and 
2793 Samba 3.0 that may affect certain installations of Samba.
2795   1)  When operating as a member of a Windows domain, Samba 2.2 would 
2796       map any users authenticated by the remote DC to the 'guest account'
2797       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
2798       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
2799       current work around to re-establish the 2.2 behavior.
2800       
2801   2)  When adding machines to a Samba 2.2 controlled domain, the 
2802       'add user script' was used to create the UNIX identity of the 
2803       machine trust account.  Samba 3.0 introduces a new 'add machine 
2804       script' that must be specified for this purpose.  Samba 3.0 will
2805       not fall back to using the 'add user script' in the absence of 
2806       an 'add machine script'
2807   
2809 ######################################################################
2810 Passdb Backends and Authentication
2811 ##################################
2813 There have been a few new changes that Samba administrators should be
2814 aware of when moving to Samba 3.0.
2816   1) encrypted passwords have been enabled by default in order to 
2817      inter-operate better with out-of-the-box Windows client 
2818      installations.  This does mean that either (a) a samba account
2819      must be created for each user, or (b) 'encrypt passwords = no'
2820      must be explicitly defined in smb.conf.
2821     
2822   2) Inclusion of new 'security = ads' option for integration 
2823      with an Active Directory domain using the native Windows
2824      Kerberos 5 and LDAP protocols.
2826      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
2827      type which is neccessary for servers on which the 
2828      administrator password has not been changed, or kerberos-enabled 
2829      SMB connections to servers that require Kerberos SMB signing.
2830      Besides this one difference, either MIT or Heimdal Kerberos
2831      distributions are usable by Samba 3.0.
2832      
2834 Samba 3.0 also includes the possibility of setting up chains
2835 of authentication methods (auth methods) and account storage 
2836 backends (passdb backend).  Please refer to the smb.conf(5) 
2837 man page for details.  While both parameters assume sane default 
2838 values, it is likely that you will need to understand what the 
2839 values actually mean in order to ensure Samba operates correctly.
2841 The recommended passdb backends at this time are
2843   * smbpasswd - 2.2 compatible flat file format
2844   * tdbsam - attribute rich database intended as an smbpasswd
2845     replacement for stand alone servers
2846   * ldapsam - attribute rich account storage and retrieval 
2847     backend utilizing an LDAP directory.  
2848   * ldapsam_compat - a 2.2 backward compatible LDAP account 
2849     backend
2850     
2851 Certain functions of the smbpasswd(8) tool have been split between the 
2852 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
2853 utility.  See the respective man pages for details.
2854     
2855      
2856 ######################################################################
2857 LDAP
2858 ####
2860 This section outlines the new features affecting Samba / LDAP 
2861 integration.
2863 New Schema
2864 ----------
2865   
2866 A new object class (sambaSamAccount) has been introduced to replace 
2867 the old sambaAccount.  This change aids us in the renaming of 
2868 attributes to prevent clashes with attributes from other vendors.  
2869 There is a conversion script (examples/LDAP/convertSambaAccount) to 
2870 modify and LDIF file to the new schema.
2871   
2872 Example:
2873   
2874   $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2875   $ convertSambaAccount --sid=<Domain SID> \
2876     --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2877     --changetype=[modify|add]
2878         
2879 The <DOM SID> can be obtained by running 'net getlocalsid 
2880 <DOMAINNAME>' on the Samba PDC as root.  The changetype determines 
2881 the format of the generated LDIF output--either create new entries 
2882 or modify existing entries.
2883     
2884 The old sambaAccount schema may still be used by specifying the 
2885 "ldapsam_compat" passdb backend.  However, the sambaAccount and
2886 associated attributes have been moved to the historical section of
2887 the schema file and must be uncommented before use if needed.
2888 The 2.2 object class declaration for a sambaAccount has not changed
2889 in the 3.0 samba.schema file. 
2890   
2891 Other new object classes and their uses include:
2892   
2893   * sambaDomain - domain information used to allocate rids 
2894     for users and groups as necessary.  The attributes are added
2895     in 'ldap suffix' directory entry automatically if 
2896     an idmap uid/gid range has been set and the 'ldapsam'
2897     passdb backend has been selected.
2898       
2899   * sambaGroupMapping - an object representing the 
2900     relationship between a posixGroup and a Windows
2901     group/SID.  These entries are stored in the 'ldap 
2902     group suffix' and managed by the 'net groupmap' command.
2903     
2904   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
2905     automatically and contains the next available 'idmap uid' and 
2906     'idmap gid'
2907     
2908   * sambaIdmapEntry - object storing a mapping between a 
2909     SID and a UNIX uid/gid.  These objects are created by the 
2910     idmap_ldap module as needed.
2912   * sambaSidEntry - object representing a SID alone, as a Structural
2913     class on which to build the sambaIdmapEntry.
2915     
2916 New Suffix for Searching
2917 ------------------------
2918   
2919 The following new smb.conf parameters have been added to aid in directing
2920 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2921 specified.
2923   * ldap suffix         - used to search for user and computer accounts
2924   * ldap user suffix    - used to store user accounts
2925   * ldap machine suffix - used to store machine trust accounts
2926   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
2927   * ldap idmap suffix   - location of sambaIdmapEntry objects
2929 If an 'ldap suffix' is defined, it will be appended to all of the 
2930 remaining sub-suffix parameters.  In this case, the order of the suffix
2931 listings in smb.conf is important.  Always place the 'ldap suffix' first
2932 in the list.  
2934 Due to a limitation in Samba's smb.conf parsing, you should not surround 
2935 the DN's with quotation marks.
2938 IdMap LDAP support
2939 ------------------
2941 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
2942 following options would inform Samba that the idmap table should be
2943 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
2944 dc=org" partition.
2946  [global]
2947     ...
2948     idmap backend     = ldap:ldap://onterose/
2949     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
2950     idmap uid         = 40000-50000
2951     idmap gid         = 40000-50000
2953 This configuration allows winbind installations on multiple servers to
2954 share a uid/gid number space, thus avoiding the interoperability problems
2955 with NFS that were present in Samba 2.2.
2956     
2959 ######################################################################
2960 Trust Relationships and a Samba Domain
2961 ######################################
2963 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
2964 allocating uids and gids to trusted users and groups.  More
2965 information regarding Samba's support for establishing trust 
2966 relationships can be found in the Samba-HOWTO-Collection included
2967 in the docs/ directory of this release.
2969 First create your Samba PDC and ensure that everything is 
2970 working correctly before moving on the trusts.
2972 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
2973 4.0 domain named WINDOWS:
2975   1) create the trust account for SAMBA in "User Manager for Domains"
2976   2) connect the trust from the Samba domain using
2977      'net rpc trustdom establish GLASS'
2979 To create a trustlationship with SAMBA as the trusted domain:
2981   1) create the initial trust account for GLASS using
2982      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
2983      account for GLASS$ prior to this step (depending on your
2984      local configuration).
2985   2) connect the trust from a WINDOWS DC using "User Manager
2986      for Domains"
2988 Now join winbindd on the Samba PDC to the SAMBA domain using
2989 the normal steps for adding a Samba server to an NT4 domain:
2990 (note that smbd & nmbd must be running at this point)
2992    root# net rpc join -U root
2993    Password: <enter root password from smbpasswd file here>
2995 Start winbindd and test the join with 'wbinfo -t'.
2997 Now test the trust relationship by connecting to the SAMBA DC
2998 (e.g. POGO) as a user from the WINDOWS domain:
3000    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
3001    Password:
3003 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
3005    $ smbclient //crystal/netlogon -U root -W WINDOWS
3006    Password:
3008 ######################################################################
3009 Changes in Winbind
3010 ##################
3012 Beginning with Samba3.0.0beta3, winbindd has been given new account
3013 manage functionality equivalent to the 'add user script' family of
3014 smb.conf parameters.  The idmap design has also been changed to 
3015 centralize control of foreign SID lookups and matching to UNIX 
3016 uids and gids.
3019 Brief Description of Changes
3020 ----------------------------
3022 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
3023    reverted to the 2.2.x design.  This means that when resolving a 
3024    SID to a UID or similar mapping:
3026         a) First consult winbindd
3027         b) perform a local lookup only if winbindd fails to
3028            return a successful answer
3030    There are some variations to this, but these two rules generally
3031    apply.
3033 2) All idmap lookups have been moved into winbindd.  This means that
3034    a server must run winbindd (and support NSS) in order to achieve
3035    any mappings of SID to dynamically allocated UNIX ids.  This was
3036    a conscious design choice.
3038 3) New functions have been added to winbindd to emulate the 'add user 
3039    script' family of smbd functions without requiring that external
3040    scripts be defined.  This functionality is controlled by the 'winbind 
3041    enable local accounts' smb.conf parameter (enabled by default).
3043    However, this account management functionality is only supported 
3044    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
3045    must be shared among multiple Samba servers (such as a PDC and BDCs), 
3046    it will be necessary to define your own 'add user script', et. al.
3047    programs that place the accounts/groups in some form of directory
3048    such as NIS or LDAP.  This requirement was deemed beyond the scope
3049    of winbind's account management functions.  Solutions for 
3050    distributing UNIX system information have been deployed and tested 
3051    for many years.  We saw no need to reinvent the wheel.
3053 4) A member of a Samba controlled domain running winbindd is now able 
3054    to map domain users directly onto existing UNIX accounts while still
3055    automatically creating accounts for trusted users and groups.  This
3056    behavior is controlled by the 'winbind trusted domains only' smb.conf
3057    parameter (disabled by default to provide 2.2.x winbind behavior).
3059 5) Group mapping support is wrapped in the local_XX_to_XX() functions
3060    in smbd/uid.c.  The reason that group mappings are not included
3061    in winbindd is because the purpose of Samba's group map is to
3062    match any Windows SID with an existing UNIX group.  These UNIX
3063    groups can be created by winbindd (see next section), but the
3064    SID<->gid mapping is retreived by smbd, not winbindd.
3067 Examples
3068 --------
3070 * security = server running winbindd to allocate accounts on demand
3072 * Samba PDC running winbindd to handle the automatic creation of UNIX
3073   identities for machine trust accounts
3075 * Automtically creating UNIX user and groups when migrating a Windows NT
3076   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
3077   'net rpc vampire' for this to work.
3079    
3080 ######################################################################
3081 Known Issues
3082 ############
3084 * There are several bugs currently logged against the 3.0 codebase
3085   that affect the use of NT 4.0 GUI domain management tools when run
3086   against a Samba 3.0 PDC.  This bugs should be released in an early 
3087   3.0.x release.
3089 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
3090 filed against the Samba 3.0 codebase.
3093 ######################################################################
3094 Reporting bugs & Development Discussion
3095 #######################################
3097 Please discuss this release on the samba-technical mailing list or by
3098 joining the #samba-technical IRC channel on irc.freenode.net.
3100 If you do report problems then please try to send high quality
3101 feedback. If you don't provide vital information to help us track down
3102 the problem then you will probably be ignored.  
3104 A new bugzilla installation has been established to help support the 
3105 Samba 3.0 community of users.  This server, located at 
3106 https://bugzilla.samba.org/, has replaced the older jitterbug server 
3107 previously located at http://bugs.samba.org/.