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