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