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