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