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