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