Move the Client-IP based msdfs target expansion to a VFS module.
[Samba/gebeck_regimport.git] / WHATSNEW.txt
blobf7e986697a23f4ce86980e11a4ec03cefa6bdfca
1                  =================================
2                  Release Notes for Samba 3.0.3pre2
3                           XXXX XX, 2004
4                  =================================
6 This is a preview release of the Samba 3.0.3 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.2a 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 this preview release include:
17   o <FILL IN>
20 ######################################################################
21 Changes
22 #######
24 commits
25 -------
27 o   Jeremy Allison <jra@samba.org>
30 o   Andrew Bartlet <abartlet@samba.org>
33 o   Alexander Bokovoy <ab@samba.org>
36 o   Gerald Carter <jerry@samba.org>
37     * BUG 417, 1128: Ensure that the current_user_info is set
38       constistenly so that %[UuGg] is expanded correctly.
39     * BUG 1195: Fix crash in winbindd when the ADS server is 
40       unavailable.
41     * BUG 1185: Set reconnect time to be the same as the 
42       'winbind cache time'.
45 o   Volker Lendecke <vl@samba.org>
48 o   Herb Lewis <herb@samba.org>
51 o   Jim McDonough <jmcd@us.ibm.com>
54 o   Tim Potter <tpot@samba.org>
55       
57 o   Simo Source <idra@samba.org>
60 o   Richard Sharpe <rsharpe@samba.org>
63 o   Andrew Tridgell <tridge@samba.org>
64     
65     
66 o   Jelmer Vernooij <jelmer@samba.org>
69      
70 Changes for older versions follow below:
72         --------------------------------------------------
74                  =================================
75                  Release Notes for Samba 3.0.3pre1
76                           March 19, 2004
77                  =================================
80 Common bugs fixed in this preview release include:
82   o Crash bugs and change notify issues in Samba's
83     printing code.
84   o Honoring secondary group membership on domain
85     member servers.
86   o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST
87     flag.
89 New features introduced in this preview release include:
91   o Improved support for i18n character sets.
92   o Support for account lockout policy based on
93     bad password attempts.
94   o Improved support for long password changes (>14
95     characters) and strong password enforcement.
96   o Continued work on support Windows aliases (i.e.
97     nested groups).
100 Changes since 3.0.2a
101 --------------------
102 smb.conf changes
103 ----------------
105     Parameter Name              Action
106     --------------              ------
107     only user                   Deprecated
108     use cracklib                New
110     
111 Please refer to the CVS log for the SAMBA_3_0 branch for complete
112 details.  The list of changes per contributor are as follows:
115 commits
116 -------
118 o   Jeremy Allison <jra@samba.org>
119     * Ensure that Kerberos mutex is always properly unlocked.
120     * Removed Heimdal "in-memory keytab" support.
121     * Fixup the 'multiple-vuids' bugs in our server code.
122     * Correct return code from lsa_lookup_sids() on unmapped
123       sids (based on work by vl@samba.org).
124     * Fix the "too many fcntl locks" scalability problem 
125       raised by tridge.
126     * Fixup correct (as per W2K3) returns for lookupsids 
127       as well as lookupnames.
128     * Fixups for delete-on-close semantics as per Win2k3 behavior.
129     * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
130     * Fix "unable to initialize" bug when smbd hasn't been run with 
131       new system and a user is being added via pdbedit/smbpasswd.
132     * Added NTrename SMB (0xA5).
133     * Fixup correct timeout values for blocking lock timeouts.
134     * Fix various bugs reported by 'gentest'.
135     * More locking fixes in the case where we own the lock.
136     * Fix up regression in IS_NAME_VALID and renames.
137     * Don't set allocation size on directories.
138     * Return correct error code on fail if file exists and target 
139       is a directory.
140     * Added client "hardlink" comment to test doing NT rename with 
141       hard links.  Added hardlink_internals() code - UNIX extensions 
142       now use this as well.
143     * Use a common function to parse all pathnames from the wire for 
144       much closer emulation of Win2k3 error return codes.
145     * Implement check_path_syntax() and rewrite string sub 
146       functions for better multibyte support.
147     * Ensure msdfs referrals are multibyte safe.
148     * Allow msdfs symlink syntax to be more forgiving.
149       eg. sym_link -> msdfs://server/share/path/in/share 
150       or  sym_link -> msdfs:\\server\share\path\in\share.
151     * Cleanup multibyte netbios name support in nmbd ( based on patch
152       by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
153     * Fix check_path_syntax() for multibyte encodings which have 
154       no '\' as second byte (based on work by ab@samba.org.
155     * Fix the "dfs self-referrals as anonymous user" problem
156       (based on patch from vl@samba.org).
159 o   Timur Bakeyev <timur@com.bat.ru>
160     * BUG 1144: only set --with-fhs when the argument is 'yes'
162     
163 o   Craig Barratt <cbarratt@users.sourceforge.net>
164     * BUG 389: Allow multiple exclude arguments with smbclient 
165       tar -Xr options (better support for Amanda backup client).
168 o   Andrew Bartlet <abartlet@samba.org>
169     * Include support for linking with cracklib for enforcing strong 
170       password changes.
171     * Add support for >14 character password changes from Windows 
172       clients.
173     * Add 'admin set password' capability to 'net rpc'.
174     * Allow 'net rpc samdump' to work with any joined domain 
175       regardless of smb.conf settings.
176     * Use an allocated buffer for count_chars.
177     * Add sanity checks for changes in the domain SID in an 
178       LDAP DIT.
179     * Implement python unit tests for Samba's multibyte string 
180       support.
183 o   Alexander Bokovoy <ab@samba.org>
184     * Fix incorrect size calculation of the directory name 
185       in recycle.so.
186     * Fix problems with very long filenames in both smbd and smbclient
187       caused by truncating paths during character conversions.
190 o   Gerald (Jerry) Carter <jerry@samba.org>
191     * BUG 850: Fix 'make installmodules' bug on True64.
192     * BUG 66: mark 'only user' deprecated.
193     * Remove corrupt tdb and shutdown (only for printing tdbs, 
194       connections, sessionid & locking).
195     * decrement smbd counter in connections.tdb in smb_panic().
196     * RedHat specfile updates.
197     * Fix xattr.h build issue on Debian testing and SuSE 8.2.
198     * BUG 1147; bad pointer case in get_stored_queue_info() 
199       causing seg fault.
200     * BUG 761: read the config file before initialized default 
201       values for printing options; don't default to bsd printing 
202       Linux.
203     * Allow the 'printing' parameter to be set on a per share basis.
204     * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
205     * BUG 848: don't create winbind local users/groups that already 
206       exist in the tdb.
207     * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on 
208       LynxOS/ppc).
209     * BUG 488: fix the 'show client in col 1' button and correctly 
210       enumerate active connections.
211     * BUG 1007 (partial): Fix abort in smbd caused by byte ordering 
212       problem when storing the updating pid for the lpq cache.
213     * BUG 1007 (partial): Fix print change notify bugs.
214     * BUG 1165, 1126: Fix bug with secondary groups (security = ads) 
215       and winbind use default domain = yes.  Also ensures that 
216     * BUG 1151: Ensure that winbindd users are passed through 
217       the username map.
218     * Fix client rpc binds for ASU derived servers (pc netlink, 
219       etc...).
220       
222 o   Robert Dahlem <Robert.Dahlem@gmx.net>
223     * BUG 1048:  Don't return short names when when 'mangled names = no'
226 o   Guenther Deschner <gd@suse.com>
227     * Remove hard coded attribute name in the ads ranged retrieval
228       code.
229     * Add --with-libdir and --with-mandir to autoconf script.
232 o   Bostjan Golob <golob@gimb.org>
233     * BUG 1046: Fix  getpwent_list() so that the username is not 
234       overwritten by other fields.
237 o   Steve French <sfrench@us.ibm.com>
238     * Update mount.cifs to version 1.1.
239     * Disable dev (MS_NODEV) on user mounts from cifs vfs.
240     * Fixes to minor security bug in the mount helper.
243 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
244     * BUG 1055; formatting fixes for 'net share'.
245     * BUG 692: correct truncation of share names and workgroup 
246       names in smbclient.
247     * BUG 1088: use strchr_m() for query_host (smbclient -L).
248     * Patch from to internally count characters correctly.
251 o   Chris Hertel <crh@samba.org>
252     * fix enumeration of shares 12 characters in length via 
253       smbclient.
255 o   Ulrich Holeschak <ulrich@holeschak.de>
256     * BUG 932: fix local password change using pam_smbpass
259 o   John Klinger <john.klinger@lmco.com>
260     * Return NSS_SUCCESS once the max number of gids possible 
261        has been found in initgroups() on Solaris.
262     * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
265 o   Volker Lendecke <vl@samba.org>
266     * Fix success message for net groupmap modify.
267     * Fix errors when enumerating members of groups in 'net rpc'.
268     * Match Windows behavior in samr_lookup_names() by returning
269       ALIAS(4) when you search in BUILTIN. 
270     * Fix server SAMR code to be able to set alias info for 
271       builtin as well. 
272     * Fix duplication of logic when creating groups via smbd.
273     * Ensure that the HWM values are set correctly after running 
274       'net idmap'.
275     * Add 'net rpc group add'.
276     * Implement 'net groupmap set' and 'net groupmap cleanup'.
277     * Add 'net rpc group [add|del]mem' for domain groups and aliases.
278     * Fix wb_delgrpmem (wbinfo -o).
279     * As a DC we should not reply to lsalookupnames on DCNAME\\user.
280     * Fix sambaUserWorkstations on a Samba DC.
283 o   Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
284     * Bug fixes and enhancements to libsmbclient library.
287 o   Herb Lewis <herb@samba.org>
288     * Fix typo for tag in proto file.
289     * Add missing #ifdef HAVE_BICONV stuff.
290     * Truncate Samba's netbios name at the first '.' (not 
291       right to left).
292     
294 o   Jianliang Lu <j.lu@tiesse.com>
295     * Enforce the 'user must change password at next login' flag.
296     * Decode meaning of 'fields present' flags (improves support 
297       for usrmgr.exe).
300 o   L. Lucius <ib@digicron.com>.
301     * type fixes.
304 o   Jim McDonough <jmcd@us.ibm.com>
305     * Add versioning support to tdbsam.
306     * Update the IBM Directory Server schema with the OpenLDAP 
307       file.
308     * Various decoding fixes to improve usrmgr.exe support.
309     * Fix statfs redeclaration of statfs struct on ppc
310     * Implement support for password lockout of Samba domain 
311       controllers and standalone servers.
312     * Get MungedDial attribute actually working with full TS 
313       strings in it for pdb_ldap.
316 o    Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
317      o BUG 979 -- Fix quota display on AIX.
320 o   James Peach <jpeach@sgi.com>
321     * Correct check for printf() format when using the SGI MIPSPro 
322       compiler.
323     * BUG 1038: support backtrace for 'panic action' on IRIX.
324     * BUG 768: Accept profileing arg to IRIX init script.
325     * BUG 748: Relax arg parsing to sambalp script (IRIX).
326     * BUG 758: Fix pdma build.
329 o   Tim Potter <tpot@samba.org>
330     * Fix logic bug in tdb non-blocking lock routines when 
331       errno == EAGAIN.
332     * BUG 1025: Include sys/acl.h in check for broken nisplus 
333       include files.      
334     * BUG 1066: s/printf/d_printf/g in SWAT.
335     * BUG 1098: rename internal msleep() function to fix build 
336       problems on AIX.
337     * BUG 1112: Fix for writable printerdata problem in python bindings.
338     * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
339     * BUG 1155: enclose use of fchown() with guards.
340       
342 o   Simo Source <idra@samba.org>
343     * Replace unknown_3 with fields_present in SAMR code.
344     * More length checks in strlcat().
347 o   Richard Sharpe <rsharpe@samba.org>
348     * Add support to smbclient for multiple logins on the same 
349       session (based on work by abartlet@samba.org).
352 o   Andrew Tridgell <tridge@samba.org>
353     * Rewrote the AIX UESS backend for winbindd.
354     * Fixed compilation with --enable-dmalloc.
355     
356     
357 o   Jelmer Vernooij <jelmer@samba.org>
358    * Fix ETA Calculation when resuming downloads in smbget.
359    * Add -O (for writing downloaded files to standard out) 
360      based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
363 o   TAKEDA yasuma <yasuma@miraclelinux.com>
364     * BUG 900: fix token processing in cmd_symlink, cmd_link, 
365       cmd_chown, cmd_chmod smbclient functions.
368 o    Shiro Yamada <shiro@miraclelinux.com>
369      * BUG 1129: install image files for SWAT.
370       
372         --------------------------------------------------
374                   ==============================
375                   Release Notes for Samba 3.0.2a
376                         February 13, 2004
377                   ==============================
379 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
380 to address, in particular, a problem when using pdbedit to 
381 sanitize (--force-initialized-passwords) Samba's tdbsam 
382 backend.   This is the latest stable release of Samba. This 
383 is the version that all production Samba servers should be 
384 running for all current bug-fixes.  
386 ******************* Attention! Achtung! Kree! *********************
388 Beginning with Samba 3.0.2, passwords for accounts with a last 
389 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
390 ldapsam, etc...) of zero (0) will be regarded as uninitialized 
391 strings.  This will cause authentication to fail for such
392 accounts.  If you have valid passwords that meet this criteria, 
393 you must update the last change time to a non-zero value.  If you 
394 do not, then  'pdbedit --force-initialized-passwords' will disable 
395 these accounts and reset the password hashes to a string of X's.
397 ******************* Attention! Achtung! Kree! *********************
400 Changes since 3.0.2
401 -------------------
403 commits
404 -------
406 Please refer to the CVS log for the SAMBA_3_0 branch for complete
407 details.  The list of changes per contributor are as follows:
410 o   Jeremy Allison <jra@samba.org>
411     * Added paranoia checks in parsing code.
412     
414 o   Andrew Bartlet <abartlet@samba.org>
415     * Ensure that changes to uninitialized passwords in ldapsam 
416       are written to the DIT.
419 o   Gerald (Jerry) Carter <jerry@samba.org>
420     * Fixed iterator in tdbsam.
421     * Fix bug that disabled accounts with a valid NT password 
422       hash, but no LanMan hash.
423     
425 o   Steve French <sfrench@us.ibm.com>
426     * Added missing nosetuid and noexec options.
428     
429 o   Bostjan Golob <golob@gimb.org>
430     * BUG 1046: Don't overwrite usernames of entries returned 
431       by getpwent_list().
434 o   Sebastian Krahmer <krahmer@suse.de>
435     * Fixed potential crash bug in NTLMSSP parsing code.
438 o   Tim Potter <tpot@samba.org>
439     * Fixed logic in tdb_brlock error checking.
441     
442 o   Urban Widmark <urban@teststation.com>
443     * Set nosuid,nodev flags in smbmnt by default.
444     
445     
446         --------------------------------------------------
447                   
448                   =============================
449                   Release Notes for Samba 3.0.2
450                         February 9, 2004
451                   =============================
453 It has been confirmed that previous versions of Samba 3.0 are
454 susceptible to a password initialization bug that could grant an 
455 attacker unauthorized access to a user account created by the
456 mksmbpasswd.sh shell script.
458 The Common Vulnerabilities and Exposures project (cve.mitre.org) 
459 has assigned the name CAN-2004-0082 to this issue.
461 Samba administrators not wishing to upgrade to the current 
462 version should download the 3.0.2 release, build the pdbedit 
463 tool, and run 
465    root# pdbedit-3.0.2 --force-initialized-passwords
466       
467 This will disable all accounts not possessing a valid password
468 (e.g. the password field has been set a string of X's).
470 Samba servers running 3.0.2 are not vulnerable to this bug 
471 regardless of whether or not pdbedit has been used to sanitize
472 the passdb backend.
474 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
475 release include:
477   o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
478   o Logging onto a Samba domain from Windows XP clients.
479   o Problems with the %U and %u smb.conf variables in relation to 
480     Windows 9x/ME clients.
481   o Kerberos failures due to an invalid in memory keytab detection
482     test.
483   o Updates to the ntlm_auth tool.
484   o Fixes for various SMB signing errors.
485   o Better separation of WINS and DNS queries for domain controllers.
486   o Issues with nss_winbind FreeBSD and Solaris.
487   o Several crash bugs in smbd and winbindd.
488   o Output formatting fixes for smbclient for better compatibility
489     with scripts based on the 2.2 version.
492 Changes since 3.0.1
493 -------------------
495 smb.conf changes
496 ----------------
498     Parameter Name              Action
499     --------------              ------
500     ldap replication sleep      New
501     read size                   removed (unused)
502     source environment          removed (unused)
505 commits
506 -------
508 Please refer to the CVS log for the SAMBA_3_0 branch for complete
509 details.  The list of changes per contributor are as follows:
511 o   Jeremy Allison <jra@samba.org>
512     * Revert change that broke Exchange clear text samlogons.
513     * Fix gcc 3.4 warning in MS-DFS code.
514     * Tidy up of NTLMSSP code.
515     * Fixes for SMB signing errors
516     * BUG 815: Workaround NT4 bug to support plaintext
517       password logins and UNICODE.
518     * Fix SMB signing bug when copying large files.
519     * Correct error logic in mkdir_internals() (caused a panic
520       when combined with --enable-developer).
521     * BUG 830: Protect against crashes due to bad character 
522       conversions.
524       
525 o   Petri Asikainen <paca@sci.fi>
526     * BUG 330, 387:Fix single valued attribute updates when 
527       working with Novell NDS.
530 o   Andrew Bartlet <abartlet@samba.org>
531     * Correctly handle per-pipe NTLMSSP inside a NULL session.
532     * Fix segfault in gencache 
533     * Fix early free() of encrypted_session_key.
534     * Change DC lookup routines to more carefully separate
535       DNS names (realms) from NetBIOS domain names.
536     * Add new sid_to_dn() function for internal winbindd use.
537     * Refactor cli_ds_enum_domain_trusts().
538     * BUG 707: Implement range retrieval of ADS attributes (based 
539       on work from Volker <vl@samba.org> and Guenther Deschner 
540       <gd@suse.com>).
541     * Automatically initialize the signing engine if a session key
542       is available.
543     * BUG 916: Do not perform a + -> ' ' substitution for squid URL 
544       encoded strings, only form input in SWAT.
545     * Resets the NTLMSSP state for new negotiate packets.
546     * Add 2-byte alignments in net_samlogon() queries to parse 
547       odd-length plain text passwords.
548     * Allow Windows groups with no members in winbindd.
549     * Allow normal authentication in the absence of a server 
550       generated session key.
551     * More optimizations for looking up UNIX group lists.
552     * Clean up error codes and return values for pam_winbindd
553       and winbindd PAM interface.
554     * Fix string return values in ntlm_auth tool.
555     * Fix segfault when 'security = ads' but no realm is defined.
556     * BUG 722: Allow winbindd to map machine accounts to uids.
557     * More cleanups for winbindd's find_our_domain().
558     * More clearly detect whether a domain controller is an NT4
559       or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
560     * Increase separation between DNS queries for hosts and queries
561       for AD domain controllers.
562     * Include additional NT_STATUS to PAM error mappings.
563     * Password initialization fixes.
565     
566 o   Justin Baugh <justin.baugh@request.com>
567     * BUG 948: Implement missing functions required for FreeBSD 
568       nss_winbind support. 
571 o   Alexander Bokovoy <ab@samba.org>
572     * BUG 922: Make sure enable fast path for strlower_m() and 
573       strupper_m().
576 o   Luca Bolcioni <Luca.Bolcioni@yacme.com>
577     * Fix crash when using 'security = server' and 'encrypt 
578       passwords = no' by always initializing the session key.
580       
581 o   Dmitry Butskoj <buc@odusz.elektra.ru>
582     * Fix for special files being hidden from admins.
585 o   Gerald (Jerry) Carter <jerry@samba.org>
586     * Fix bug in the lanman session key generation.  Caused 
587       "decode_pw: incorrect password length" error messages.
588     * Save the right case for the located user name in 
589       fill_sam_account().  Fixes %U/%u expansion for win9x clients.
590     * BUG 897: Add well known rid for pre win2k compatible access
591       group.
592     * BUG 887: Correct typo in delete user script example.
593     * Use short lived TALLOC_CTX* for allocating printer objects 
594       from the print handle cache.
595     * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
596     * Fix several warnings reported by the SUN Forte C compiler.
597     * Fully control DNS queries for AD DC's using 'name resolve order'.
598     * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
599     * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
600     * BUG 936: fix bind credentials for schannel binds in smbd.
601     * BUG 446: Fix output of smbclient for better compatibility 
602       with scripts based on the 2.2 version (including Amanda).
603     * BUG 891, 949: Fedora packaging fixes.
604     * Fix bug that caused rpcclient to incorrectly retrieve 
605       the SID for a server (this causing all calls that required 
606       this information to fail). 
607     * BUG 977: Don't create a homes share for a user if a static 
608       share already exists by the same name.
609     * Removed unused smb.conf options.
610     * Password initialization fixes.
611     * Set the disable flag for template accounts created by
612       mksmbpasswd.sh.
613     * Disable any account has no passwords and does not have the
614       ACB_PWNOTREQ bit set.
617 o   Guenther Deschner <gd@suse.com>
618     * Install smbwrapper.so should be put into the $(libdir) 
619       and not $(bindir).
620     * Add the capability to specify the new user password 
621       for "net ads password" on the command line.
622     * Correctly detect AFS headers on SuSE.
623         
625 o   James Flemer <jflemer@uvm.edu>
626     * Fix AIX compile bug by linking HAVE_ATTR_LIST to 
627       HAVE_SYS_ATTRIBUTES_H.
630 o   Luke Howard <lukeh@PADL.COM>
631     * Fix segfault in session setup reply caused by a early free().
634 o   Stoian Ivanov <sdr@bultra.com>
635     * Implement grepable output for smbclient -L.
638 o   LaMont Jones <lamont@debian.org>
639     * BUG 225328 (Debian): Correct false failure LFS test that resulted 
640       in  _GNU_SOURCE not being defined (thus resulting in strndup() 
641       not being defined).
643       
644 o   Volker Lendecke <vl@samba.org>
645     * BUG 583: Ensure that user names always contain the short 
646       version of the domain name.
647     * Fix our parsing of the LDAP uri.
648     * Don't show the 'afs username map' in the SWAT basic view.
649     * Fix SMB signing issues in relation to failed NTLMSSP logins.
650     * BUG 924: Fix return codes in smbtorture harness.
651     * Always lower-case usernames before handing it to AFS code.
652     * Add a German translation for SWAT.
653     * Fix a segfaults in winbindd.
654     * Fix the user's domain passed to register_vuid() from 
655       reply_spnego_kerberos().
656     * Add NSS example code in nss_winbind to convert UNIX 
657       id's <-> Windows SIDs.
658     * Display more descriptive error messages for login via 'net'.
659     * Fix compiler warning in the net tool.
660     * Fix length bug when decoding base64 strings.
661     * Ensure we don't call getpwnam() inside a loop that is iterating 
662       over users with getpwent().  This broke on glibc 2.3.2.
665 o   Herb Lewis <herb@samba.org>
666     * Fix bit rot in psec.
669 o   Jianliang Lu <j.lu@tiesse.com>
670     * Ensure we delete the group mapping before calling the delete 
671       group script.
672     * Define well known RID for managing the  "Power Users" group.
673     * BUG 381: check builtin (not local) group SID when updating 
674       group membership.
675     * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement 
676       packet.
679 o   John Klinger <john.klinger@lmco.com>
680     * Implement initgroups() call in nss_winbind on Solaris.
683 o   Jim McDonough <jmcd@us.ibm.com>
684     * Fix regression in net rpc join caused by recent changes 
685       to cli_lsa_query_info_policy().
686     * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
687       machine account.
690 o   MORIYAMA Masayuki <moriyama@miraclelinux.com>
691     * BUG 570: Ensure that configure honors the LDFLAGS variable.
694 o   Stefan Metzmacher <metze@samba.org>
695     * Implement LDAP rebind sleep patch.
696     * Revert to 2.2 quota code because of so many broken quota files 
697       out there.
698     * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
699                       XFS_USER_QUOTA -> USRQUOTA
700                       XFS_GROUP_QUOTA -> GRPQUOTA
701     * Fix disk_free calculation with group quotas.
702     * Add debug class 'quota' and a lot of DEBUG()'s 
703       to the quota code.
704     * Fix sys_chown() when no chown() is present.
705     * Add SIGABRT to fault handling in order to catch got a 
706       backtrace if an error occurs the OpenLDAP client libs.
709 o   <ndb@theghet.to>
710     * Allow an existing LDAP machine account to be re-used when 
711       joining an AD domain.
714 o   James Peach <jpeach@sgi.com>
715     * BUG 889: Change smbd to use pread/pwrite on platforms that 
716       support these calls. Can lead to a significant speed increase.
719 o   Tim Potter <tpot@samba.org>
720     * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
721     * BUG 924: Fix typo in RW2 torture test.
722     
723     
724 o   Richard Sharpe <shape@samba.org>
725     * Small fixes to torture.c to cleanup the error handling 
726       and prevent crashes.
729 o   J. Tournier <jerome.tournier@IDEALX.com>
730     * Small fixes for the smbldap-tool scripts.
733 o   Andrew Tridgell <tridge@samba.org>
734     * Fix src len check in pull_usc2().
735     
736     
737 o   Jelmer Vernooij <jelmer@samba.org>
738     * Put functions for generating SQL queries in pdb_sql.c
739     * Add pgSQL backend (based on patch by Hamish Friedlander)
740     * BUG 908: Fix -s option to smbcontrol.    
741     * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
742     * Fix for libnss_wins on IRIX platforms.
743     * Fix swatdir for --with-fhs.
746         --------------------------------------------------
748                   =============================
749                   Release Notes for Samba 3.0.1
750                         December 15, 2003
751                   =============================
753 Some of the more common bugs in 3.0.0 addressed in the release 
754 include:
756   o Substitution problems with smb.conf variables.
757   o Errors in return codes which caused some applications
758     to fail to open files.
759   o General Protection Faults on Windows 2000/XP clients
760     using Samba point-n-print features.
761   o Several miscellaneous crash bugs.
762   o Access problems when enumerating group mappings are
763     stored in an LDAP Directory.
764   o Several common SWAT bugs when writing changes to
765     smb.conf.
766   o Internal inconsistencies when 'winbind use default
767     domain = yes'
771 Changes since 3.0.0
772 ----------------------
774     Parameter Name              Action
775     --------------              ------
776     hide local users            Removed
777     mangled map                 Deprecated
778     mangled stack               Removed
779     passwd chat timeout         New
782 commits
783 -------
785 o   Change the interface for init_unistr2 to not take a length 
786     but a flags field.  We were assuming that 
787     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
788 o   Allow d_printf() to handle strings with escaped quotation 
789     marks since the msg file includes the escape character (bug 489).
790 o   Fix bad html table row termination in SWAT wizard code (bug 413).
791 o   Fix to parse the level-2 strings.
792 o   Fix for "valid users = %S" in [homes].  Fix read/write 
793     list as well. 
794 o   Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
795     This is the same way AC_CHECK_LIB works (bug 508).
796 o   Testparm output fixes for clarity.
797 o   Fix broken wins hook functionality -- i18n bug (bug 528).
798 o   Take care of condition where DOS and NT error codes must differ.
799 o   Default to using only built-in charsets when a working iconv 
800     implementation cannot be located.
801 o   Wrap internals of sys_setgroups() so the sys_XX() call can 
802     be done unconditionally (bug 550).
803 o   Remove duplicate smbspool link on SWAT's front page (bug 541).
804 o   Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
805     --enable-debug=[yes|no] works correctly.
806 o   Allow ^C to interrupt smbpasswd if using our getpass 
807     (e.g. smbpasswd command).
808 o   Support signing only on RPC's (bug 167).
809 o   Correct bug that prevented  Excel 2000 clients from opening 
810     files marked as read-only.
811 o   Portability fix bugs 546 - 549).
812 o   Explicitly initialize the value of AR for vendor makes that don't
813     do this (e.g. HPUX 11).  (bug 552).
814 o   More i18n fixes for SWAT (bug 413).
815 o   Change the cwd before the postexec script to ensure that a
816     umount will succeed.
817 o   Correct double free that caused winbindd to crash when a DC 
818     is rebooted (bug 437).
819 o   Fix incorrect mode sum (bug 562).
820 o   Canonicalize SMB_INFO_ALLOCATION in the same was as
821     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
822 o   Add script to generate *msg files.
823 o   Add Dutch SWAT translation file.
824 o   Make sure to call get_user_groups() with the full winbindd 
825     name for a user if he/she has one (bug 406).
826 o   Fix up error code returns from Samba4 tester. Ensure invalid 
827     paths are validated the same way.  
828 o   Allow Samba3 to pass the Samba4 RAW-READ tests.
829 o   Refuse to configure if --with-expsam=$BACKEND was used but no 
830     libraries were found for $BACKEND.
831 o   Move sysquotas autoconf tests to a separate file.
832 o   Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
833     tester
834 o   Make sure that the files that contain the static_init_$subsystem; 
835     macro get recompiled after configure by removing the object 
836     files.
837 o   Ensure canceling a blocking lock returns the correct error 
838     message.
839 o   Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
840 o   Updated Japanese welcome file in SWAT.
841 o   Fix to  nt-time <-> unix-time functions reversible.
842 o   Ensure that winbindd uses the the escaped DN when querying
843     an AD ldap server.
844 o   Fix portability issues when compiling (bug 505, 550)
845 o   Compile fix for tdbbackup when Samba needs to override 
846     non-C99 compliant implementations of snprintf().
847 o   Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
848 o   Make sure we break out of samsync loop on error.
849 o   Ensure error code path doesn't free unmalloc()'d memory
850     (bug 628).
851 o   Add configure test for krb5_keytab_entry keyblock vs key 
852     member (bug 636).
853 o   Fixed spinlocks.
854 o   Modified testparm so that all output so all debug output goes 
855     to stderr, and all file processing goes to stdout.
856 o   Fix error return code for BUFFER_TOO_SMALL in smbcacls 
857     and smbcquotas.
858 o   Fix "NULL dest in safe_strcpy()" log message by ensuring that 
859     we have a devmode before copying a string to the devicename.
860 o   Support mapping REALM.COM\user to a local user account (without 
861     running winbindd)  for compatibility with 2.2.x release.
862 o   Ensure we don't use mmap() on blacklisted systems.
863 o   fixed a number of bugs and memory leaks in the AIX 
864     winbindd shim
865 o   Call initgroups() in SWAT before becomming the user so that
866     secondary group permissions can be used when writing to 
867     smb.conf.
868 o   Fix signing problems when reverse connecting back to a 
869     client for printer notify
870 o   Fix signing problems caused by a miss-sequence bug.
871 o   Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
872     Fixes NEXUS tools running on Win9x clients (bug 64).
873 o   Don't leave the domain field uninitialized in cli_lsa.c if some 
874     SID could not be mapped.
875 o   Fix segfault in mount.cifs helper when there is no options 
876     specified during mount.
877 o   Change the \n after the password prompt to go to tty instead 
878     of stdout (bug 668).
879 o   Stop net -P from prompting for machine account password (bug 451).
880 o   Change in behavior to Not only change the effective uid but also
881     the real uid when becoming unprivileged.
882 o   Cope with Exchange 5.5 cleartext pop password auth.
883 o   New files for support of initshutdown pipe.  Win2k doesn't 
884     respond properly to all requests on the winreg pipe, so we need 
885     to handle this new pipe (bug 534).
886 o   Added more va_copy() checks in configure.in.
887 o   Include fixes for libsmbclient build problems.
888 o   Missing UNIX -> DOS codepage conversion in lanman.c.
889 o   Allow DFMS-S filenames can now have arbitrary case (bug 667).
890 o   Parameterize the listen backlog in smbd and make it larger by
891     default. A backlog of 5 is way too small these days.
892 o   Check for an invalid fid before dereferencing the fsp pointer
893     (bug 696).
894 o   Remove invalid memory frees and return codes in pdb_ldap.c.
895 o   Prompt for password when invoking --set-auth-user and no 
896     password is given.
897 o   Bind the nmbd sending socket to the 'socket address'.
898 o   Re-order link command for smbd, rpcclient and smbpasswd to ensure 
899     $LDFLAGS occurs before any library specification (bug 661).
900 o   Fix large number of printf() calls for 64-bit size_t.
901 o   Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
902     keyblock in the krb5 structs.
903 o   Remove #include <compat.h> in hopes to avoid problems with 
904     apache header files.
905 o   Correct winbindd build problems on HP-UX 11.
906 o   Lowercase netgroups lookups (bug 703).
907 o   Use the actual size of the buffer in strftime instead of a made
908     up value which just happens to be less than sizeof(fstring).  
909     (bug 713).
910 o   Add ldaplibs to pdbedit link line (bug 651).
911 o   Fix crash bug in smbclient completion (bug 659).
912 o   Fix packet length for browse list reply (bug 771).
913 o   Fix coredump in cli_get_backup_list().
914 o   Make sure that we expand %N (bug 612).
915 o   Allow rpcclient adddriver command to specify printer driver 
916     version (bug 514).
917 o   Compile tdbdump by default.
918 o   Apply patches to fix iconv detection for FreeBSD.
919 o   Do not allow the 'guest account' to be added to a passdb backend 
920     using smbpasswd or pdbedit (bug 624).
921 o   Save LDFLAGS during iconv detection (bug 57).
922 o   Run krb5 logins through the username map if the winbindd 
923     lookup fails (bug 698).
924 o   Add const for lp_set_name_resolve_order() to avoid compiler 
925     warnings (bug 471).
926 o   Add support for the %i macro in smb.conf to stand in for the for
927     the local IP address to which a client connected.
928 o   Allow winbindd to match local accounts to domain SID when 
929     'winbind trusted domains only = yes' (bug 680).
930 o   Remove code in idmap_ldap that searches the user suffix and group 
931     suffix.  It's not needed and provides inconsistent functionality 
932     from the tdb backend.
933 o   Patch to handle munged dial string for Windows 2000 TSE.
934     Thanks to Gaz de France, Direction de la Recherche, Service 
935     Informatique Métier for their supporting this work by Aurelien 
936     Degrémont <adegremont@idealx.com>.
937 o   Correct the "smbldap_open: cannot access when not root error"
938     messages when looking up group information (bug 281).
939 o   Skip over the winbind separator when looking up a user.
940     This fixes the bug that prevented local users from
941     matching an AD user when not running winbindd (bug 698).
942 o   Fix a problem with configure on *BSD systems. Make sure
943     we add -liconv etc to LDFLAGS.
944 o   Fix core dump bug when "security = server" and the authentication
945     server goes away.
946 o   Correct crash bug due to an empty munged dial string.
947 o   Show files locked by a specific user (smbstatus -u 'user') 
948     (bug 590).
949 o   Fix bug preventing print jobs from display in the queue
950     monitor used by Windows NT and later clients (bug 660).
951 o   Fix several reported problems with point-n-print from
952     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
953     reply (bug 338, 527 & 643).
954 o   Fix a handful of potential memory leaks in the LDAP code used
955     by ldapsam[_compat] and the LDAP idmap backend.
956 o   Fix for pdbedit error code returns (bug 763).
957 o   Make sure we only enumerate group mapping entries  (not 
958     /etc/group) even when doing local aliases.
959 o   Relax check on the pipe name in a dce/rpc bind response to work 
960     around issues with establishing trusts to a Windows 2003 domain.
961 o   Ensure we mangle names ending in '.' in hash2 mangling method.
962 o   Correct parsing issues with munged dial string.
963 o   Fix bugs in quota support for XFS.
964 o   Add a cleaner method for applications that need to provide 
965     name->SID mappings to do this via NSS rather than having to 
966     know the winbindd pipe protocol.
967 o   Adds a variant of the winbindd_getgroups() call called 
968     winbindd_getusersids() that provides direct SID->SIDs listing of 
969     a users supplementary groups. This is enough to allow non-Samba 
970     applications to do ACL checking.
971 o   Make sure we don't append the 'ldap suffix' when writing out the 
972     'ldap XXX suffix' values in SWAT (bug 328).
973 o   Fix renames across file systems.
974 o   Ensure that items in a list of strings containing whitespace are 
975     written out surrounded by single quotes.  This means that both 
976     double and single quotes are now used to surround strings in 
977     smb.conf (bug 481).
978 o   Enable SWAT to correctly determine if winbindd is running (bug 
979     398).
980 o   Include WWW-Authenticate field in 401 response for bad auth 
981     attempt (bug 629).
982 o   Add support for NTLM2 (NTLMv2 session security).
983 o   Add support for variable-length session keys.
984 o   More privilege fixes for group enumeration in LDAP (bug 281).
985 o   Use the dns name (or IP) as the originating client name when
986     using CUPS (bug 467).
987 o   Fix various SMB signing bugs.
988 o   Fix ACL propagation on a DFS root (bug 263).
989 o   Disable NTLM2 for RPC pipes.
990 o   Allow the client to specify the NTLM2 flags got NTLMSSP 
991     authentication.
992 o   Change the name of the job passed off to cups from "Test Page" 
993     to "smbprn.00000033 Test Page" so that we can get the smb 
994     jobid back. This allow users to delete jobs with cups printing 
995     backend (partial work on bug 770).
996 o   Fix build of winbindd with static pdb modules.
997 o   Retrieve the correct ACL group bits if the file has an ACL 
998     (bug 802).
999 o   Implement "net rpc group members": Get members of a domain group 
1000     in human-readable format.
1001 o   Add MacOSX (Darwin) specific charset module code.
1002 o   Use samr_dispinfo(level == 1) for enumerating domain users so we 
1003     can include the full name in gecos field (bug 587).
1004 o   Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
1005 o   Implement 'net rpc group list [global|local|builtin]*' for a 
1006     select listing of the respective user databases.
1007 o   Don't automatically set NT status code flag unless client tells 
1008     us it can cope.
1009 o   Add 'net status [sessions|shares] [parseable]'.
1010 o   Don't mistake pre-existing UNIX jobs for smb jobs (remainder of  
1011     bug 770).
1012 o   Add 'Replicator' and 'RAS Servers' to list of builtin SIDs 
1013    (bug 608).
1014 o   Fix inverted logic in hosts allow/deny checks caused by 
1015     s/strcmp/strequal/ (bug 846).
1016 o   Implement correct version SamrRemoveSidForeignDomain() (bug 252).
1017 o   Fix typo in 'hash' mangling algorithm.
1018 o   Support munged dial for ldapsam (bug 800).
1019 o   Fix process_incoming_data() to return the number of bytes handled 
1020     this call whether we have a complete PDU or not; fixes bug 
1021     with multiple PDU request rpc's broken over SMBwriteX calls 
1022     each.
1023 o   Fix incorrect smb flags2 for connections to pre-NT servers 
1024     (causes smbclient to fail to OS2 for example) (bug 821).
1025 o   Update version string in smbldap-tools Makefile to 0.8.2.
1026 o   Correct a problem with "net rpc vampire" mis-parsing the 
1027     alias member info reply.
1028 o   Ensure the ${libdir} is created by the installclientlib script.
1029 o   Fix detection of Windows 2003 client architecture in the smb.conf
1030     %a variable.
1031 o   Ensure that smbd calls the add user script for a missing UNIX 
1032     user on kerberos auth call (bug 445).
1033 o   Fix bugs in hosts allow/deny when using a mismatched 
1034     network/netmask pair.
1035 o   Protect alloc_sub_basic() from crashing when the source string 
1036     is NULL (partial work on bug 687).
1037 o   Fix spinlocks on IRIX.
1038 o   Corrected some bad destination paths when running "configure 
1039     --with-fhs".
1040 o   Add packaging files for Fedora Core 1.
1041 o   Correct bug in SWAT install script for non-english languages.
1042 o   Support character set ISO-8859-1 internally (bug 558).
1043 o   Fixed more LDAP access errors when looking up group mappings 
1044     (bug 281).
1045 o   Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID 
1046     resolution to fail on local files on on domain members 
1047     (bug 875).
1048 o   Fix uninitialized variable in passdb.c.
1049 o   Fix formal parameter type in get_static() in nsswitch/wins.c.
1050 o   Fix problem mounting directories when mount.cifs is installed 
1051     with the setuid bit on.
1052 o   Fix bug that prevent --mandir from overriding the defaults
1053     given in the --with-fhs macro.
1054 o   Fix bug in in-memory Kerberos keytab detection routines 
1055     in configure.in
1059 ######################################################################
1061               The original 3.0.0 release notes follow
1062               =======================================
1063                     WHATS NEW IN Samba 3.0.0
1064                         September 24, 2003
1065               =======================================
1068 Major new features:
1069 -------------------
1071 1)  Active Directory support.  Samba 3.0 is now able to  
1072     join a ADS realm as a member server and authenticate 
1073     users using LDAP/Kerberos.
1075 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
1076     and internally there is now a much better infrastructure for 
1077     multi-byte and UNICODE character sets.
1079 3)  New authentication system. The internal authentication system 
1080     has been almost completely rewritten. Most of the changes are 
1081     internal, but the new auth system is also very configurable.
1083 4)  New default filename mangling system.
1085 5)  A new "net" command has been added. It is somewhat similar to 
1086     the "net" command in windows. Eventually we plan to replace 
1087     numerous other utilities (such as smbpasswd) with subcommands 
1088     in "net".
1090 6)  Samba now negotiates NT-style status32 codes on the wire. This
1091     improves error handling a lot.
1093 7)  Better Windows 2000/XP/2003 printing support including publishing
1094     printer attributes in active directory.
1096 8)  New loadable module support for passdb backends and character 
1097     sets.
1099 9)  New default dual-daemon winbindd support for better performance.
1101 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
1102     domain and maintaining user, group and domain SIDs.
1104 11) Support for establishing trust relationships with Windows NT 4.0
1105     domain controllers.
1106   
1107 12) Initial support for a distributed Winbind architecture using
1108     an LDAP directory for storing SID to uid/gid mappings.
1109   
1110 13) Major updates to the Samba documentation tree.
1112 14) Full support for client and server SMB signing to ensure
1113     compatibility with default Windows 2003 security settings.
1115 15) Improvement of ACL mapping features based on code donated by
1116     Andreas Grünbacher.
1119 Plus lots of other improvements!
1122 Additional Documentation
1123 ------------------------
1125 Please refer to Samba documentation tree (included in the docs/ 
1126 subdirectory) for extensive explanations of installing, configuring
1127 and maintaining Samba 3.0 servers and clients.  It is advised to 
1128 begin with the Samba-HOWTO-Collection for overviews and specific 
1129 tasks (the current book is up to approximately 400 pages) and to 
1130 refer to the various man pages for information on individual options.
1132 We are very glad to be able to include the second edition of
1133 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
1134 (O'Reilly & Associates) in this release.  The book is available
1135 on-line at http://samba.org/samba/docs/ and is included with 
1136 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
1137 publisher for making "Using Samba" under the GNU Free Documentation 
1138 License.
1141 ######################################################################
1142 Upgrading from a previous Samba 3.0 beta
1143 ########################################
1145 Beginning with Samba 3.0.0beta3, the RID allocation functions
1146 have been moved into winbindd.  Previously these were handled
1147 by each passdb backend.  This means that winbindd must be running
1148 to automatically allocate RIDs for users and/or groups.  Otherwise,
1149 smbd will use the 2.2 algorithm for generating new RIDs.
1151 If you are using 'passdb backend = tdbsam' with a previous Samba 
1152 3.0 beta release (or possibly alpha), it may be necessary to 
1153 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
1154 to winbindd_idmap.tdb.  To do this:
1156 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
1157     once)
1158 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
1159     directory
1160 3)  run: (note that 'tdb>' is the tool's prompt for input)
1162        root# ./tdbtool /usr/local/samba/private/passdb.tdb
1163        tdb> show RID_COUNTER
1164        key 12 bytes
1165        RID_COUNTER
1166        data 4 bytes
1167        [000] 0A 52 00 00                                       .R.
1169        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
1170        ....
1171        record moved
1173 If you are using 'passdb backend = ldapsam', it will be necessary to 
1174 store idmap entries in the LDAP directory as well (i.e. idmap backend 
1175 = ldap).  Refer to the 'net idmap' command for more information on 
1176 migrating SID<->UNIX id mappings from one backend to another.
1178 If the RID_COUNTER record does not exist, then these instructions are
1179 unneccessary and the new RID_COUNTER record will be correctly generated
1180 if needed.  
1184 ########################
1185 Upgrading from Samba 2.2
1186 ########################
1188 This section is provided to help administrators understand the details
1189 involved with upgrading a Samba 2.2 server to Samba 3.0.
1192 Building
1193 --------
1195 Many of the options to the GNU autoconf script have been modified 
1196 in the 3.0 release.  The most noticeable are:
1198   * removal of --with-tdbsam (is now included by default; see section
1199     on passdb backends and authentication for more details)
1200     
1201   * --with-ldapsam is now on used to provided backward compatible
1202     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
1203     backend and authentication section for more details
1204   
1205   * inclusion of non-standard passdb modules may be enabled using
1206     --with-expsam.  This includes an XML backend and a mysql backend.
1207       
1208   * removal of --with-msdfs (is now enabled by default)
1209   
1210   * removal of --with-ssl (no longer supported)
1211   
1212   * --with-utmp now defaults to 'yes' on supported systems
1213   
1214   * --with-sendfile-support is now enabled by default on supported 
1215     systems
1216   
1217     
1218 Parameters
1219 ----------
1221 This section contains a brief listing of changes to smb.conf options
1222 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
1223 complete descriptions of new or modified parameters.
1225 Removed Parameters (order alphabetically):
1227   * admin log
1228   * alternate permissions
1229   * character set
1230   * client codepage
1231   * code page directory
1232   * coding system
1233   * domain admin group
1234   * domain guest group
1235   * force unknown acl user
1236   * hide local users
1237   * mangled stack
1238   * nt smb support
1239   * postscript
1240   * printer driver
1241   * printer driver file
1242   * printer driver location
1243   * read size
1244   * source environment
1245   * status
1246   * strip dot
1247   * total print jobs
1248   * use rhosts
1249   * valid chars
1250   * vfs options
1252 New Parameters (new parameters have been grouped by function):
1254   Remote management
1255   -----------------
1256   * abort shutdown script
1257   * shutdown script
1259   User and Group Account Management
1260   ---------------------------------
1261   * add group script
1262   * add machine script
1263   * add user to group script
1264   * algorithmic rid base
1265   * delete group script
1266   * delete user from group script
1267   * passdb backend
1268   * set primary group script
1270   Authentication
1271   --------------
1272   * auth methods
1273   * realm
1274   * passwd chat timeout
1276   Protocol Options
1277   ----------------
1278   * client lanman auth
1279   * client NTLMv2 auth
1280   * client schannel
1281   * client signing
1282   * client use spnego
1283   * disable netbios
1284   * ntlm auth
1285   * paranoid server security
1286   * server schannel
1287   * server signing
1288   * smb ports
1289   * use spnego
1291   File Service
1292   ------------
1293   * get quota command
1294   * hide special files
1295   * hide unwriteable files
1296   * hostname lookups
1297   * kernel change notify
1298   * mangle prefix
1299   * map acl inherit
1300   * msdfs proxy
1301   * set quota command
1302   * use sendfile
1303   * vfs objects
1304   
1305   Printing
1306   --------
1307   * max reported print jobs
1309   UNICODE and Character Sets
1310   --------------------------
1311   * display charset
1312   * dos charset
1313   * unicode
1314   * unix charset
1315   
1316   SID to uid/gid Mappings
1317   -----------------------
1318   * idmap backend
1319   * idmap gid
1320   * idmap uid
1321   * winbind enable local accounts
1322   * winbind trusted domains only
1323   * template primary group
1324   * enable rid algorithm
1326   LDAP
1327   ----
1328   * ldap delete dn
1329   * ldap group suffix
1330   * ldap idmap suffix
1331   * ldap machine suffix
1332   * ldap passwd sync
1333   * ldap replication sleep
1334   * ldap user suffix
1335   
1336   General Configuration
1337   ---------------------
1338   * preload modules
1339   * private dir
1341 Modified Parameters (changes in behavior):
1343   * encrypt passwords (enabled by default)
1344   * mangling method (set to 'hash2' by default)
1345   * passwd chat
1346   * passwd program
1347   * restrict anonymous (integer value)
1348   * security (new 'ads' value)
1349   * strict locking (enabled by default)
1350   * unix extensions (enabled by default)
1351   * winbind cache time (increased to 5 minutes)
1352   * winbind uid (deprecated in favor of 'idmap uid')
1353   * winbind gid (deprecated in favor of 'idmap gid')
1356 Databases
1357 ---------
1359 This section contains brief descriptions of any new databases 
1360 introduced in Samba 3.0.  Please remember to backup your existing 
1361 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
1362 upgrade databases as they are opened (if necessary), but downgrading 
1363 from 3.0 to 2.2 is an unsupported path.
1365 Name                    Description                             Backup?
1366 ----                    -----------                             -------
1367 account_policy          User policy settings                    yes
1368 gencache                Generic caching db                      no
1369 group_mapping           Mapping table from Windows              yes
1370                         groups/SID to unix groups        
1371 winbindd_idmap          ID map table from SIDS to UNIX          yes
1372                         uids/gids.
1373 namecache               Name resolution cache entries           no
1374 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
1375                         returned as part of a successful
1376                         net_sam_logon request 
1377 printing/*.tdb          Cached output from 'lpq                 no
1378                         command' created on a per print 
1379                         service basis
1380 registry                Read-only samba registry skeleton       no
1381                         that provides support for exporting
1382                         various db tables via the winreg RPCs
1385 Changes in Behavior
1386 -------------------
1388 The following issues are known changes in behavior between Samba 2.2 and 
1389 Samba 3.0 that may affect certain installations of Samba.
1391   1)  When operating as a member of a Windows domain, Samba 2.2 would 
1392       map any users authenticated by the remote DC to the 'guest account'
1393       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
1394       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
1395       current work around to re-establish the 2.2 behavior.
1396       
1397   2)  When adding machines to a Samba 2.2 controlled domain, the 
1398       'add user script' was used to create the UNIX identity of the 
1399       machine trust account.  Samba 3.0 introduces a new 'add machine 
1400       script' that must be specified for this purpose.  Samba 3.0 will
1401       not fall back to using the 'add user script' in the absence of 
1402       an 'add machine script'
1403   
1405 ######################################################################
1406 Passdb Backends and Authentication
1407 ##################################
1409 There have been a few new changes that Samba administrators should be
1410 aware of when moving to Samba 3.0.
1412   1) encrypted passwords have been enabled by default in order to 
1413      inter-operate better with out-of-the-box Windows client 
1414      installations.  This does mean that either (a) a samba account
1415      must be created for each user, or (b) 'encrypt passwords = no'
1416      must be explicitly defined in smb.conf.
1417     
1418   2) Inclusion of new 'security = ads' option for integration 
1419      with an Active Directory domain using the native Windows
1420      Kerberos 5 and LDAP protocols.
1422      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
1423      type which is neccessary for servers on which the 
1424      administrator password has not been changed, or kerberos-enabled 
1425      SMB connections to servers that require Kerberos SMB signing.
1426      Besides this one difference, either MIT or Heimdal Kerberos
1427      distributions are usable by Samba 3.0.
1428      
1430 Samba 3.0 also includes the possibility of setting up chains
1431 of authentication methods (auth methods) and account storage 
1432 backends (passdb backend).  Please refer to the smb.conf(5) 
1433 man page for details.  While both parameters assume sane default 
1434 values, it is likely that you will need to understand what the 
1435 values actually mean in order to ensure Samba operates correctly.
1437 The recommended passdb backends at this time are
1439   * smbpasswd - 2.2 compatible flat file format
1440   * tdbsam - attribute rich database intended as an smbpasswd
1441     replacement for stand alone servers
1442   * ldapsam - attribute rich account storage and retrieval 
1443     backend utilizing an LDAP directory.  
1444   * ldapsam_compat - a 2.2 backward compatible LDAP account 
1445     backend
1446     
1447 Certain functions of the smbpasswd(8) tool have been split between the 
1448 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
1449 utility.  See the respective man pages for details.
1450     
1451      
1452 ######################################################################
1453 LDAP
1454 ####
1456 This section outlines the new features affecting Samba / LDAP 
1457 integration.
1459 New Schema
1460 ----------
1461   
1462 A new object class (sambaSamAccount) has been introduced to replace 
1463 the old sambaAccount.  This change aids us in the renaming of 
1464 attributes to prevent clashes with attributes from other vendors.  
1465 There is a conversion script (examples/LDAP/convertSambaAccount) to 
1466 modify and LDIF file to the new schema.
1467   
1468 Example:
1469   
1470   $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
1471   $ convertSambaAccount --sid=<Domain SID> \
1472     --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
1473     --changetype=[modify|add]
1474         
1475 The <DOM SID> can be obtained by running 'net getlocalsid 
1476 <DOMAINNAME>' on the Samba PDC as root.  The changetype determines 
1477 the format of the generated LDIF output--either create new entries 
1478 or modify existing entries.
1479     
1480 The old sambaAccount schema may still be used by specifying the 
1481 "ldapsam_compat" passdb backend.  However, the sambaAccount and
1482 associated attributes have been moved to the historical section of
1483 the schema file and must be uncommented before use if needed.
1484 The 2.2 object class declaration for a sambaAccount has not changed
1485 in the 3.0 samba.schema file. 
1486   
1487 Other new object classes and their uses include:
1488   
1489   * sambaDomain - domain information used to allocate rids 
1490     for users and groups as necessary.  The attributes are added
1491     in 'ldap suffix' directory entry automatically if 
1492     an idmap uid/gid range has been set and the 'ldapsam'
1493     passdb backend has been selected.
1494       
1495   * sambaGroupMapping - an object representing the 
1496     relationship between a posixGroup and a Windows
1497     group/SID.  These entries are stored in the 'ldap 
1498     group suffix' and managed by the 'net groupmap' command.
1499     
1500   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
1501     automatically and contains the next available 'idmap uid' and 
1502     'idmap gid'
1503     
1504   * sambaIdmapEntry - object storing a mapping between a 
1505     SID and a UNIX uid/gid.  These objects are created by the 
1506     idmap_ldap module as needed.
1508   * sambaSidEntry - object representing a SID alone, as a Structural
1509     class on which to build the sambaIdmapEntry.
1511     
1512 New Suffix for Searching
1513 ------------------------
1514   
1515 The following new smb.conf parameters have been added to aid in directing
1516 certain LDAP queries when 'passdb backend = ldapsam://...' has been
1517 specified.
1519   * ldap suffix         - used to search for user and computer accounts
1520   * ldap user suffix    - used to store user accounts
1521   * ldap machine suffix - used to store machine trust accounts
1522   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
1523   * ldap idmap suffix   - location of sambaIdmapEntry objects
1525 If an 'ldap suffix' is defined, it will be appended to all of the 
1526 remaining sub-suffix parameters.  In this case, the order of the suffix
1527 listings in smb.conf is important.  Always place the 'ldap suffix' first
1528 in the list.  
1530 Due to a limitation in Samba's smb.conf parsing, you should not surround 
1531 the DN's with quotation marks.
1534 IdMap LDAP support
1535 ------------------
1537 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
1538 following options would inform Samba that the idmap table should be
1539 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
1540 dc=org" partition.
1542  [global]
1543     ...
1544     idmap backend     = ldap:ldap://onterose/
1545     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
1546     idmap uid         = 40000-50000
1547     idmap gid         = 40000-50000
1549 This configuration allows winbind installations on multiple servers to
1550 share a uid/gid number space, thus avoiding the interoperability problems
1551 with NFS that were present in Samba 2.2.
1552     
1555 ######################################################################
1556 Trust Relationships and a Samba Domain
1557 ######################################
1559 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
1560 allocating uids and gids to trusted users and groups.  More
1561 information regarding Samba's support for establishing trust 
1562 relationships can be found in the Samba-HOWTO-Collection included
1563 in the docs/ directory of this release.
1565 First create your Samba PDC and ensure that everything is 
1566 working correctly before moving on the trusts.
1568 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
1569 4.0 domain named WINDOWS:
1571   1) create the trust account for SAMBA in "User Manager for Domains"
1572   2) connect the trust from the Samba domain using
1573      'net rpc trustdom establish GLASS'
1575 To create a trustlationship with SAMBA as the trusted domain:
1577   1) create the initial trust account for GLASS using
1578      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
1579      account for GLASS$ prior to this step (depending on your
1580      local configuration).
1581   2) connect the trust from a WINDOWS DC using "User Manager
1582      for Domains"
1584 Now join winbindd on the Samba PDC to the SAMBA domain using
1585 the normal steps for adding a Samba server to an NT4 domain:
1586 (note that smbd & nmbd must be running at this point)
1588    root# net rpc join -U root
1589    Password: <enter root password from smbpasswd file here>
1591 Start winbindd and test the join with 'wbinfo -t'.
1593 Now test the trust relationship by connecting to the SAMBA DC
1594 (e.g. POGO) as a user from the WINDOWS domain:
1596    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
1597    Password:
1599 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
1601    $ smbclient //crystal/netlogon -U root -W WINDOWS
1602    Password:
1604 ######################################################################
1605 Changes in Winbind
1606 ##################
1608 Beginning with Samba3.0.0beta3, winbindd has been given new account
1609 manage functionality equivalent to the 'add user script' family of
1610 smb.conf parameters.  The idmap design has also been changed to 
1611 centralize control of foreign SID lookups and matching to UNIX 
1612 uids and gids.
1615 Brief Description of Changes
1616 ----------------------------
1618 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
1619    reverted to the 2.2.x design.  This means that when resolving a 
1620    SID to a UID or similar mapping:
1622         a) First consult winbindd
1623         b) perform a local lookup only if winbindd fails to
1624            return a successful answer
1626    There are some variations to this, but these two rules generally
1627    apply.
1629 2) All idmap lookups have been moved into winbindd.  This means that
1630    a server must run winbindd (and support NSS) in order to achieve
1631    any mappings of SID to dynamically allocated UNIX ids.  This was
1632    a conscious design choice.
1634 3) New functions have been added to winbindd to emulate the 'add user 
1635    script' family of smbd functions without requiring that external
1636    scripts be defined.  This functionality is controlled by the 'winbind 
1637    enable local accounts' smb.conf parameter (enabled by default).
1639    However, this account management functionality is only supported 
1640    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
1641    must be shared among multiple Samba servers (such as a PDC and BDCs), 
1642    it will be necessary to define your own 'add user script', et. al.
1643    programs that place the accounts/groups in some form of directory
1644    such as NIS or LDAP.  This requirement was deemed beyond the scope
1645    of winbind's account management functions.  Solutions for 
1646    distributing UNIX system information have been deployed and tested 
1647    for many years.  We saw no need to reinvent the wheel.
1649 4) A member of a Samba controlled domain running winbindd is now able 
1650    to map domain users directly onto existing UNIX accounts while still
1651    automatically creating accounts for trusted users and groups.  This
1652    behavior is controlled by the 'winbind trusted domains only' smb.conf
1653    parameter (disabled by default to provide 2.2.x winbind behavior).
1655 5) Group mapping support is wrapped in the local_XX_to_XX() functions
1656    in smbd/uid.c.  The reason that group mappings are not included
1657    in winbindd is because the purpose of Samba's group map is to
1658    match any Windows SID with an existing UNIX group.  These UNIX
1659    groups can be created by winbindd (see next section), but the
1660    SID<->gid mapping is retreived by smbd, not winbindd.
1663 Examples
1664 --------
1666 * security = server running winbindd to allocate accounts on demand
1668 * Samba PDC running winbindd to handle the automatic creation of UNIX
1669   identities for machine trust accounts
1671 * Automtically creating UNIX user and groups when migrating a Windows NT
1672   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
1673   'net rpc vampire' for this to work.
1675    
1676 ######################################################################
1677 Known Issues
1678 ############
1680 * There are several bugs currently logged against the 3.0 codebase
1681   that affect the use of NT 4.0 GUI domain management tools when run
1682   against a Samba 3.0 PDC.  This bugs should be released in an early 
1683   3.0.x release.
1685 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
1686 filed against the Samba 3.0 codebase.
1689 ######################################################################
1690 Reporting bugs & Development Discussion
1691 #######################################
1693 Please discuss this release on the samba-technical mailing list or by
1694 joining the #samba-technical IRC channel on irc.freenode.net.
1696 If you do report problems then please try to send high quality
1697 feedback. If you don't provide vital information to help us track down
1698 the problem then you will probably be ignored.  
1700 A new bugzilla installation has been established to help support the 
1701 Samba 3.0 community of users.  This server, located at 
1702 https://bugzilla.samba.org/, has replaced the older jitterbug server 
1703 previously located at http://bugs.samba.org/.