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