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