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