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