r5741: missed adding one file
[Samba.git] / WHATSNEW.txt
blobe9755ebeb36f21655485f4f114a6c674b945ea43
1                    ==================================
2                    Release Notes for Samba 3.0.12pre1
3                              Feb 25, 2005
4                    ===================================
6 This is a preview release of the Samba 3.0.12 code base and
7 is provided for testing only.  This release is *not* intended
8 for production servers.  However, there have been several bug
9 fixes and new features added since 3.0.11 that we feel are 
10 important to make available to the Samba community for wider 
11 testing.
13 Common bugs fixed in 3.0.12pre1 include:
15   o Winbind failures when using 'disable netbios = yes'
16   o Failure to establish a trust relationship via 'net rpc 
17     trust establish'
18   o Various portability & compiler issues.
19   o Read only file deletion failure caused by new delete 
20     semantics in Windows XP SP2 and the MS 04-044 security 
21     hotfix.
23 Additional features introduced in Samba 3.0.12pre1:
25   o Performance enhancements when serving directories 
26     containing large number of files.
27   o MS-DFS support added to smbclient.
28   o More performance improvements when using Samba/OpenLDAP
29     based DC's via the 'ldapsam:trusted=yes' option.
32 Large Directory Support
33 -----------------------
35 Samba 3.0.12pre1 introduces a specific mechanism for dealing
36 with file services that frequently contain a large number of files
37 per directory.  Historically Samba's performance has suffered 
38 in such environments due to the translation from case 
39 insensitive lookups by Windows client to the case sensitive
40 storage mechanisms used by UNIX filesystems.
42 Configuration details along with a short HOWTO can be found at:
44 http://www.samba.org/samba/ftp/HOWTO/Samba-LargeDirectory-HOWTO
46     
48 ######################################################################
49 Changes
50 #######
52 Changes since 3.0.11
53 --------------------
54 smb.conf changes
55 ----------------
57     Parameter Name                      Action
58     --------------                      ------
59     log nt token command                New
62 commits
63 -------
64 o   Jeremy Allison <jra@samba.org>
65     * BUG 2146: Return correct allocation sizes so as not to crash 
66       the VC++ compiler.
67     * BUG 962: Ensure that parsing of service names in smb.conf is 
68       multibyte safe.
69     * BUG 2201, 2227: Support new delete semantics used by MS04-044
70       and XP SP2.
71     * BUG 1525: Correctly timestamps interpreted on 64-bit time_t 
72       values (patch submitted by Jay Fenlason <fenlason@redhat.com>).
73     * Add special hooks when serving directories containing large
74       numbers of files.
75     * Ensure that WINS negative name query responses and WACK 
76       packets use the correct RR type of 0xA instead of reflecting 
77       back what the query RR type was (0x20).
78     * BUG 2310: Only do 16-bit normalization on small dfree request.
79     * BUG 2323: Correct authentication failure when using plaintext 
80       passwords from Windows XP clients.
81     
82     
83 o   Andrew Bartlett <abartlet@samba.org>
84     * Avoid length-limited intermediate copy of NT and LM responses 
85       in NETLOGON client.
86     * Debug message cleanups in the NTLMSSP implementation.
87       
89 o   Manuel Baena <mbaena@lcc.uma.es>
90     * Print actual error message in smbmnt.c:fullpath().
93 o   Gerald (Jerry) Carter <jerry@samba.org>
94     * Add trans2 client call for checking dfs referrals
95     * Convert smbclient to use TRANS_QPATHINFO(SMB_QUERY_FILE_BASIC_INFO) 
96       when checking directories on modern CIFS servers.
97     * Add MS-DFS support to smbclient.
98     * Code cleanup of adt_tree.[ch].
99     * Add missing checks to allow root to manage user rights.
100     * Allow domain admins to manage rights assignments on domain members
101       servers.
102     * BUG 2333: Use the lpq command to pass in the correct printer name 
103       for cups_queue_get().  CUPS backend now sets 'lpq command= %p' as 
104       the default.
105     * BUG 1439: make sure to initialize pointer to prevent invalid 
106       free()'s on exit.
107     * BUG 2329: fix to re-enable winbindd to locate DC's when 'disable 
108       netbios = yes'.
109     * Add cups-devel to BuidlRequires directive in Fedora spec file.
110     * BUG 858: Fix order of popt args evaluation so we don't crash 
111       when given no command line args.
112     * Remove dependency on bash for source/autogen.sh.
113     * Fix clitar.c compile issues caused by broken MIT 1.4 headers.
114      
116 o   Guenther Deschner <gd@samba.org>
117     * Fix crash bug in the client-spoolss enumdataex-call.
118     * Expand the valid-workstation-scheme by expanding names 
119       beginning with a plus (+) as a unix group.
120     * Allow own netbios name to be set in smbclient's session setup.
121     * Better handling of LDAP over IPC connections that have expired 
122       on the LDAP-Server.
123     * Fix pipe-mismatch for NETDFS in cli_dfs.c.
124     * Add examples/misc/adssearch.pl.
125     * BUG 2343: Build fixes.
126     * Support get_user_info_7 in SAMR server RPC.
127     * Fix server_role in the samr_query_dom_info calls. 
128     
129     
130 o   Steve French <sfrench@us.ibm.com>
131     * Ignore users mount parm in mount.cifs.
134 o   SATOH Fumiyasu <fumiya@samba.gr.jp>
135     * BUG 1549: Don't truncate service names in smbstatus.
136     
138 o   S Murthy Kambhampaty <smk_va@yahoo.com>
139     * Add idmap_rid module to Fedora and RedHat spec files.
142 o   Volker Lendecke <vl@samba.org>
143     * Fix a memory leaks in privileges code and passdb backends.
144     * Fixes for samr_lookup_sids() client call.
145     * Optimize _samr_query_groupmem with LDAP backend for large 
146       domains.
147     * Support SIDs as %s replacements in the afs username map 
148       parameter.
149     * Add 'log nt token command' parameter. If set, %s is replaced 
150       with the user sid, and %t takes all the group sids.
151     * Do not use the "Local Unix Group"-default description for 
152       all kinds of group-mappings. 
153     * Fix uninitialized variable in Linux nss_winbind library.
154     * Move 'net afskey' into a subcommand of its own, 'net afs key'.
155     * Implement 'net afs impersonate'.
156     
158 o   Herb Lewis <herb@samba.org>
159     * Fix build problem when HAVE_POSIX_ACL is not defined.
160     
161     
162 o   Jason Mader <jason@ncac.gwu.edu>
163     * Compiler warning fixes (BUGS BUG 2132, 2134, 2289, 2327, 2340, 2341, 
164        2342)
165     
166         
167 o   Jim McDonough <jmcd@us.ibm.com>
168     * Fixes for server schannel implementation when 'restrict 
169       anonymous = 1' is set in smb.conf.
170     * Fix bug in server side lookupsids reply that crashed lsass.exe 
171       on Windows clients.
172     * Fix 'net rpc trustdom establish'.
173     * BUG 2062: Turn off broadcast for all 390 NICs.
176 o   Stefan Metzmacher <metze@samba.org>    
177     * Fix memleaks in the nttrans code.
180 o   Mike Nix <mnix@wanm.com.au>
181     * Add SMBsplopen and SMBsplclose client calls.
182     
184 o   James Peach <jpeach@sgi.com>
185     * Fixes in string handling code.
186     
188 o   Tim Potter <tpot@samba.org>
189     * Fix up example pdb modules after prototype change for 
190       setsampwent.
191     * BUG 2058: Fix for shared object creation in examples.
192     * BUG 2315: Fix segv in LSA privileges server code.
193     * Build fixes for python wrapper libraries.
196 o   Richard Sharpe <rsharpe@samba.org>
197     * BUG 2044: Fix segv in profiles tool.
198     * Fix bogus error messages when enumerating user group 
199       membership via 'net rpc'.
202 o   Simo Sorce <idra@samba.org>
203     * Debian packaging fixes.
204       
205       
206 o   Doug VanLeuven <roamdad-at-sonic.net>
207     * AIX compile fixes.
208     
210 o   Shlomi Yaakobovich" <Shlomi@exanet.com>
211     * Detect infinite loops when traversing tdbs.
212     
214 Release Notes for older release follow:
216       --------------------------------------------------
217                    ==============================
218                    Release Notes for Samba 3.0.11
219                              Feb 5, 2005
220                    ==============================
222 This is the latest stable release of Samba. This is the version
223 that production Samba servers should be running for all current
224 bug-fixes.  Please read the following important changes in this 
225 release.
227 Common bugs fixed in 3.0.11 include:
229   o Crash in smbd when using CUPS printing.
230   o Parsing error of other SIDs included in the user_info_3
231     structure returned from domain controllers.
232   o Inefficiencies when searching non-AD LDAP directories.
233   o Failure to expand variables in user domain attributes
234     in tdbsam and ldapsam.
235   o Memory leaks.
236   o Failure to retrieve certain attribute when migrating from 
237     a Windows DC to a Samba DC via 'net rpc vampire'.
238   o Numerous printing bugs bugs including memory 
239     bloating on large/busy print servers.
240   o Compatibility issues with Exchange 5.5 SP4.
241   o sendfile fixes.
243 Additional features introduced in Samba 3.0.11:
245   o Winbindd performance improvements.
246   o More 'net rpc vampire' functionality.
247   o Support for the Windows privilege model to assign rights
248     to specific SIDs.
249   o New administrative options to the 'net rpc' command.
252 LDAP Changes
253 ------------
255 If "ldap user suffix" or "ldap machine suffix" are defined in
256 smb.conf, all user-accounts must reside below the user suffix,
257 and all machine and inter-domain trust-accounts must be located 
258 below the machine suffix.  Previous Samba releases would fall 
259 back to searching the 'ldap suffix' in some cases.
262 Privilege Model
263 ---------------
265 Samba 3.0.11 supports the following assignable rights
267 SeMachineAccountPrivilege  Add machines to domain
268 SePrintOperatorPrivilege   Manage printers
269 SeAddUsersPrivilege        Add users and groups to the domain
270 SeRemoteShutdownPrivilege  Force shutdown from a remote system
271 SeDiskOperatorPrivilege    Manage disk shares
273 These rights can be assigned to arbitrary users or groups
274 via the 'net rpc rights grant/revoke' command.  More details
275 of Samba's privilege implementation can be found in the 
276 Samba-HOWTO-Collection.
277     
279 ######################################################################
280 Changes
281 #######
283 Changes since 3.0.11rc1
284 -----------------------
286 commits
287 -------
288 o   Timur Bakeyev <timur@com.bat.ru>
289     * BUG 2263: Guard base64_encode_data_blob() against empty blobs.
292 o   Gerald (Jerry) Carter <jerry@samba.org>
293     * BUG 2262: Add support in configure.in for *freebsd6*.
294     * BUG 2266: Portability fixes for quota code on FreeBSD4.
295     * BUG 2264: Remove shutdown and abortshutdown commands from 
296       rpcclient in favor of using the same functions in 'net'.
297     * BUG 2295: Prevent smbd from returning an empty server name
298       in certain lanman api calls.
299     * BUG 2290: Fix autogen.sh script in examples (based on original
300       patch from Lars Mueller).
301     * Fix bug enumerating domain trusts in security = ads.
302     * Fix segv in rpcclient's dsenumdomtrusts.
303     * Fix bug in expansion of %U and %G in included filenames.
304     * BUG 2291: Restrict creation of server trust and domain trust
305       accounts to members of the "Domain Admins" group.
306     
308 o   Guenther Deschner <gd@samba.org>
309     * BUG 2291: Call the 'add machine script' for server trust and 
310       domain trust accounts as well as workstation accounts.
313 o   Levente Farkas <lfarkas@lfarkas.org>
314     * BUG 2299: Better logrotate scripts for RedHat and Fedora 
315       packages.
318 o   Jay Fenlason <fenlason@redhat.com>
319     * Several patches from RedHat's Fedora Core RPMS.
322 o   Deryck Hodge <deryck@samba.org>
323     * Add -P (--password-only-menu) to SWAT for displaying only the
324       password change page to non-root users.
327 o   Jason Mader <jason@ncac.gwu.edu>
328     * BUG 2113, 2289: Remove dead code.
331 o   Tim Potter <tpot@samba.org>
332     * Compile fixes after new setsampwent() API.
335 o   Richard Renard <rrenard@idealx.com>
336     * Update Netscape DS 5.2 LDAP schema.
339 o   Simo Sorce <idra@samba.org>
340     * Log a warning in testparm if a print command is defined for
341       a print service using 'printing = cups'.
344 Changes since 3.0.10
345 --------------------
347 smb.conf changes
348 ----------------
350     Parameter Name                      Action
351     --------------                      ------
352     afs token lifetime                  New
353     enable privileges                   New
354     ldap password sync                  Alias
355     min password length                 Deprecated
356     winbind enable local accounts       Deprecated
359 commits
360 -------
361 o   Jeremy Allison <jra@samba.org>
362     * Extend vfs to add seekdir/telldir/rewinddir.
363     * Fix dirent return.
364     * Fix bugs when handling secondary trans2 requests.
365     * Implementation of get posix acls in UNIX extensions.
366     * Added set posix acl functionality into the UNIX extensions code.
367     * Updated config.guess/config.sub .
368     * Fix error reply when 'follow symlinks = no'.
369     * BUG 1061, 2045: Only set mtime from pending_modtime if it's 
370       not already zero.
371     * Fixes for LARGE_READX support.
372     * Fix the problem we get on Linux where sendfile fails, but we've
373       already sent the header using send().
374     * BUG 2081: Ensure SE_DESC_DACL_PROTECTED is set if 'map acl 
375       inherit = no'.
376     * BUG 2088: Ensure inherit permissions is only applied on a new 
377       file, not an existing one.
378     * Don't go fishing for the krb5 authorization data unless we know
379       it's there.
380     * Fixes for libsmbclient to ensure that interrupted system calls
381       are restarted minus the already expired portion of the timeout
382       (based on work by Derrell Lipman).
383     * More Unicode string parsing fixes.
384     * Convert the winreg pipe to use WERROR returns.
385     * Make all LDAP timeouts consistent (input from Joe Meadows 
386       <jameadows@webopolis.com>).
387     * BUG 2231: Remove double "\\" from client findfirst.
388     * BUG 2238: Fix memory leak in shadow copy vfs.
389     * Return correct DOS/NT error code on transact named pipe on 
390       closed pipe handle.
391     * BUG 2211: Fix security descriptor parsing bug (based on work by 
392       Mrinal Kalakrishnan <mail@mrinal.net>).
393     * BUG 2270: Fix memory leaks in cups printing backend support 
394       (based on work by Lars Mueller).
395     * BUG 2255: Fix debug level in kerberos error messages.
396     * BUG 2110: Ensure we convert to ucs2 correctly after the 
397       CAN-2004-0930 patch.
398     * Make strict locking an enum. Auto means use oplock optimization.
399     * Fix client  & server to allow 127k READX calls.
400     * More *alloc fixes (includes additional fixes by Albert Chin.
401     * Catch sendfile errors correctly and return the correct values 
402       we want the caller to return.
403     * BUG 2092: Prevent auto-anonymous logins via libsmbclient 
404       for better use by desktop environments such as GNOME.
405     * Ensure we can't remove a level II oplock without having the
406       shared memory area locked.
407             
409 o   Timur Bakeyev <timur@com.bat.ru>
410     * BUG 2100: change the way we check for errors after a dlopen().
411     
412     
413 o   Andrew Bartlett <abartlet@samba.org>
414     * Clarify error message when 'lanman auth = no'.
415     * Remove the unnecessary UTF-8 conversion calls in the calls to
416       auth_winbind from smbd.
417     * Don't store the auth-user credentials with the cli_state* as 
418       this can cause the schannel setup to fail when the auth-user
419       domain is not our primary domain.
422 o   Grigory Batalov <bga@altlinux.org>
423     * Fix encoding while receiving of a message which was actually 
424       sent using STR_ASCII.
427 o   Daniel Beschorner <db@unit-netz.de>
428     * BUG 603: Correct access mask check for _samr_lookup_domain()
429       to work with Windows RAS server
432 o   Jerome Borsboom <j.borsboom@erasmusmc.nl>
433     * Fix missing printer_tdb reference decrement.
434     
436 o   Gerald (Jerry) Carter <jerry@samba.org>
437     * BUG 2073: fall back to smb_name if current_user_info is not
438       available in lp_file_list_changed().
439     * Fixes the spurious 'register_message_flags: tdb fetch failed' 
440       errors.
441     * Don't run the background LPQ daemon when we are running in
442       interactive mode.
443     * prevent the background LPQ daemon from updating the print queue
444       cache just because multiple smbd processes sent a message that
445       it was out of date.
446     * consolidate printer searches to use find_service rather than 
447       for(...) loops.
448     * BUG 2091: don't remove statically defined printers in 
449       remove_stale_printers().
450     * Fix logic error in add_a_form() that only compared N characters 
451       instead of the entire form name.
452     * BUG 2107: fix memory bloating caused by large numbers of 
453       print_queue_updates() requests sent via messages.tdb.
454     * Check the setprinter(3) based on the access permissions on 
455       the handle and avoid the call to print_access_check().
456     * Re-instantiate previous semantics for calling init_unistr2() 
457       with a NULL source buffer.
458     * Support Windows privilege model for assigning rights
459       to specific SIDs.  Based on work by Simo Sorce in the trunk 
460       svn branch.  This feature is controlled by the 'enable 
461       privileges = [yes|no]' smb.conf(5) option.
462     * Add some smb.conf scripts for add/delete/change shares and 
463       deleting cups printers.
464     * Expand variables in the profile path, logon home and logon script 
465       values when using either tdbsam or ldapsam.
466     * Add Domain Admins (Full Control) to the default printer security 
467       descriptor if we are a DC.
468     * RedHat and Fedora Packaging fixes for perl dependencies.
469     * Remove unused schema items from OpenLDAP schema file.
470     * Remove duplicate enumeration of "Windows x86" architecture
471       when listing printer drivers via rpcclient.
472     * Fail set_privileges() if 'enable privileges = no' to prevent 
473       confused admins.
474     * Fix segfault in cups_queue_get().
475     * Tighten restrictions on changing user passwords when 
476       the connected user possesses the SeMachineAccountPrivilege.
477     * Ensure we set NETBIOSNAME.domainname for the long machine name
478       when publishing printers in AD (based on input from Rob Foehl).
479     * Mark 'winbind enable local accounts' as deprecated.
480     * Mark testprns tool as deprecated.
481     * Allow root to grant/revoke privilege assignments.
482     * Correct interaction between user rights and se_access_check() on
483       SAMR objects.
484     * BUG 2286: Fix typo OpenLDAP schema file for sambaConfig object 
485       class.
488 o   Nadav Danieli <nadavd@exanet.com>
489     * Short circuit some is_locked() tests if we are oplocked.
490     
491     
492 o   Guenther Deschner <gd@samba.org>
493     * Allow 'localhost' as a valid server name in the smbd for the
494       spoolss calls.
495     * Fix KRB5_SETPW-defines, no change in behavior (Thanks to Luke
496       Mewburn for the input).
497     * BUG 2059: Add additional checks needed after logic change to the
498       HAVE_WRFILE_KEYTAB detection test.
499     * BUG 1076: Fix interaction with Exchange 5.5. SP4 and a 
500       Samba DC.  Allow us to lookup at least our own SID.
501     * More fixes to have proper German in swat (Thanks to Reiner 
502       Klaproth and Björn Jacke.
503     * BUG 404, 2076: Allow to set OWNER- and GROUP-entries while 
504       setting security descriptors with smbcacls and using with 
505       the -S or -M switch. 
506     * Include the munged_dial, bad_password_count, logon_count, and 
507       logon_hours attributes when running 'net rpc vampire'.
508     * Fix segfault in idmap_rid.
509     * When winbindd is operating in the multi-mapping mode of 
510       idmap_rid, allow BUILTIN domain-mapping.
511     * Display infolevel 12 in query_dom_info in rpcclient.
512     * Fix bug in winbindd's lowercasing of usernames.
513     * Allow -v or -l for displaying verbose groupmap-listing 
514       as well as "verbose".
515     * Backport Samba4 SAM_DELTA_DOMAIN_INFO for use in 'net rpc 
516       vampire'.
517     * Close LDAP-Connection before retrying to open a new connection 
518       in the retry-loop.
519     * Marking "min password length" as depreciated.  
520     * Implement SAMR query_dom_info-call info-level 8 server- and 
521       client-side, based on samba4-idl.
522     * Allow rpcclient to define a port to use when connecting 
523       to a remote server.
524     * Allow Account Lockout with Lockout Duration "forever" (until 
525       admin unlocks) to be set and displayed in User Manager.
526     * Allow to set acb_mask in rpcclient's enumdomusers.
527     * Add more generic rootDSE inspection function to check 
528       for given controls or extensions and remember these on a 
529       per server basis.
530     * Improve LDAP search efficiency by passing the acb_mask to 
531       pdb_setsampwent().
532     * Fixes for ldapsam_enum_group_memberships().
533     * Add createdomgroup to rpcclient.
534     * Add "net rpc user RENAME"-command.
535     * Display sam_user_info_7 in rpcclient.
536     * Make multi-domain-mode in idmap_rid accessible from outside 
537       (can be compiled with -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS).
538     * When vampiring account policy AP_LOCK_ACCOUNT_DURATION honor 
539       "Lockout Duration: Forever".
540     * Fix configure.in tests using KRB5_CONFIG variable and krb5-
541       config utility.
542     * Require assignment of Administrator SID in the passdb 
543       backend.  Fall back to the default name of 'Administrator' if
544       the lookup fails rather than using the first name in the
545       default 'admin users' list.
546     * Enhance LDAP failure debug messages.
547     
548     
549 o   Jay Fenlason <fenlason@redhat.com>
550     * Fix crash in 'net join' due to calling free on 
551       static buffers.
554 o   Rob Foehl <rwf@loonybin.net>.
555     * Compiler warnings.
556     * Try modifying printer published attributes before adding it a
557       new entry in AD.
558     * Solaris packaging fixes.
559     * Don't force the cups printer-make-and-model tag as the comment
560       for autoloaded printers.
561     * Implement caching of names from printcap to support a true
562       'printcap cache time'.
565 o   Johann Hanne <jhml@gmx.net>
566     * BUG 2038: Only fail winbindd_getgroups() if all lookups fail.
569 o   Jeff Hardy <hardyjm@potsdam.edu>
570     * Example script for 'add print command' when using CUPS.
573 o   David Hu <david.hu@hp.com>
574     * Copy structure from print_queue_update() message rather than 
575       referencing it.  Fixes seg fault on HP-UX.
576       
577       
578 o   Buck Huppmann <buckh@pobox.com>
579     * BUG 2186: Don't free uninitialized credentials.
580     * BUG 2189: Add the HOST/fqdn servicePrincipalName even when 
581       dnsDomainName != realm.
582    
584 o   Björn Jacke <bjoern@j3e.de>
585     * BUG 2040: Ensure the locale is reset to C to get ASCII-
586       compatible toupper/lower functions.
589 o   William Jojo <jojowil@hvcc.edu>
590     * Fix HPUX sendfile and add configure.in tests and code for
591       sendfile on AIX.
592     * AIX 5.3 compile fixes.
595 o   Volker Lendecke <vl@samba.org>
596     * Optimize anonymous session setups by workstations in a 
597       Samba domain.
598     * Reimplment the QueryUserAliases() server RPC reply.
599     * Re-add the getpwnam-cache for performance.
600     * Cache the result of a pdb_getsampwnam for later SID lookup 
601       queries.
602     * Unify the means of localtaing a user's global groups on a 
603       Samba DC.
604     * Fix bug when serving the 'Start Menu' in a roaming user profile..
605     * Map more pre-defined NT security descriptors to AFS acls.
606     * Add timeout to AD search requests.
607     * If a connection to a DC is requested (in winbindd), open
608       connections simultaneously to all DCs found.
609     * Memleak fixes.
610     * Fix logic error in handling of 'printcap name' parameter.
611     * Prevent winbindd from SPAM'ing the log files with 'user root 
612       does not exist'.
613     * Backport samr_DomInfo2 IDL specification from Samba 4.
614     * Implement smbstatus -n, don't lookup users and groups.
615     * Implement simple mapping that maps the space to another character 
616       defined by afsacl:space.
617     * Add support for 'net idmap delete <idmap-file> <SID>'.
618     * Add new parameter 'afs token lifetime' tells the AFS client 
619       when to throw away a token (patch from kllin@it.su.se).
620     * Initial work to allow support for multiple pipe opens on a 
621       single cli_state*.
622     * Ensure that we still retrieve the netbios name of any DC 
623       listed as a 'password server' to work around cases where the 
624       DC was defined using an IP address or fqdn.
625     * Fix memleak in winbindd connection code.
626     * Fix cli_samr_queryuseraliases.
627     * Allow wbinfo --user-sids to expand expand domain local groups.
628     * Allow 'rpcclient -c enumtrust' to enumerate more than 10 trusts.
629     * Fix parsing of other_sids in net_user_info3.
630     * Correct bad failure logic when user was not a member of any 
631       domain local groups.
632     
634 o   Jim McDonough <jmcd@us.ibm.com>
635     * BUG 1952: Try INITSHUTDOWN pipe first, used by newer 
636       clients.  If it fails, fall back to WINREG.
637     * BUG 1770: Remove READ_ATTRIBUTES from GENERIC_EXECUTE.
638     * BUG 2198: Set password last change time when running 'net rpc 
639       vampire'.
640     * Add "refuse machine password change" policy field.
643 o   Luke Mewburn <lukem@NetBSD.org>
644     * BUG 2150: shmget() - Use POSIX definitions instead of non-
645       standard SHM_.
646       
648 o   Stefan Metzmacher <metze@samba.org>    
649     * autogen.sh fixes.
652 o   Buchan Milne <bgmilne@mandrake.org>
653     * Mandrake packaging fixes.
656 o   Lars Mueller <lmuelle@suse.de>
657     * Fix build of libsmbclient on x86_64.
658     * BUG 2013: Fix testsuite build issues when libsmbclient.so 
659       is installed in a non-default location.
660     * BUG 2050: Calculate max_fd for select correctly.
661     * Fix inverted logic heck for HAVE_WRFILE_KEYTAB in autoconf 
662       script.
665 o   Jason Mader <jason@ncac.gwu.edu>
666     * BUG 2069: Remove unused variables.
667     * BUG 2075: Remove dead code paths.
668     * BUG 2083: Fix compiler warnings caused by bad type casts.
671 o   James Peach <jpeach@sgi.com>
672     * Fix rewinddir -> rewind_dir when using VFS macros.
673     
675 o   Gavrie Philipson <gavrie@disksites.com>
676     * BUG 1838: Remove stale printers imeeddiately when 
677       processing a SIGHUP and during smb.conf reload.
679       
680 o   Tim Potter <tpot@samba.org>
681     * BUG 2080: Fix duplicate call to pdb_get_acct_desc().
682     * BUG 2168: Fix cast in SMB_XMALLOC_ARRAY.
683     * Change the license for the winbindd external interface 
684       more liberal.
685     * HP-UX compile fixes.
688 o   Simo Sorce <idra@samba.org>
689     * Backport pdbedit changes from trunk.
690     * Allows the add/change share command to create the shared 
691       directory directory on disk.
692      
693 o   Jelmer Vernooij <jelmer@samba.org>
694     * Bug fixes for pdb_{xml,pqsql,xml}
695     * Fixes for pdb_mysql.
698 o   Andrew Tridgell <tridge@samba.org>
699     * Bring Samba3 into line with the Samba4 password change code.
700     
702 o   Shiro Yamada <shiro@miraclelinux.com>
703     * BUG 2190: Force SWAT to display parameters in unix charset and 
704       not UTF-8.
707       --------------------------------------------------
708                    ==============================
709                    Release Notes for Samba 3.0.10
710                              Dec 16, 2004
711                    ==============================
713 Common bugs fixed in 3.0.10 include:
715   o Fix for security issues described in CAN-2004-1154.
718       
719 Changes since 3.0.9
720 -------------------
723 commits
724 -------
726 o   Jeremy Allison <jra@samba.org>
727     * Added checks surrounding all *alloc() calls to fix
728       CAN-2004-1154.
729     * Fix long standing memory size bug in bitmap_allocate().
730     * Remove bogus error check in deferred open file serving 
731       code.
734 o   Thomas Bork <tombork@web.de>
735     * Fix autoconf script on platforms using a version of GNU ld
736       that does not include a date stamp in the output of --version.
739 o   Luke Mewburn <lukem@NetBSD.org>
740     * Fix the swat install script to deal with the new image
741       destination directory used by the docs.
742      
745       --------------------------------------------------
747                    =============================
748                    Release Notes for Samba 3.0.9
749                              Nov 15, 2004
750                    =============================
752 Common bugs fixed in 3.0.9 include:
754   o Problem updating roaming user profiles.
755   o Crash in smbd when printing from a Windows 9x client.
756   o Unresolved symbols in libsmbclient which caused
757     applications such as KDE's konqueror to fail when
758     accessing smb:// URLs.
761 Changes since 3.0.8
762 -------------------
765 commits
766 -------
768 o   Jeremy Allison <jra@samba.org>
769     * Correctly detect errno for no acl/ea support.
770     * BUG 2036: Fix seg fault in 'net ads join'.
772     
773 o   Gerald (Jerry) Carter <jerry@samba.org>
774     * Solaris packaging fixes.
775     * Fix seg fault in lanman printing code.
776     * BUG 2017: fix testparm reporting for the passwd program 
777       string.
778     * Fix output of smbstatus to match the man page.
779     * BUG 2027: fix conflict with declaration MD5_CTX in system 
780       headers.
781     * 2028: Avoid false error messages when copying a long 
782       printer name to the device mode.
785 o   Guenther Deschner <gd@samba.org> 
786     * Allow deldriverex in rpcclient to delete drivers for a 
787       specific architecture and a specific version.
788     * Fix a couple of rpcclient spoolss commands (setprinter, 
789       setprintername, getdriver) w.r.t to printer-naming scheme.
790       Allow 'localhost' in the server string for certain server-side
791       spoolss functions.
792     * BUG 2015: Do not fail on setting file attributes with 
793       acl support enabled.
796 o   Michel Gravey <michel.gravey@optogone.com>
797     * Fix build when using gcc 3.0.
800 o   Volker Lendecke <vl@samba.org>
801     * Fix tdb open logic when checking our local_pid after 
802       the fork().
805 o   Jim McDonough <jmcd@us.ibm.com>
806     * BUG 1932: Fix crash in 'net getlocalsid' when run as 
807       non-root user.
810 o   Luke Mewburn <lukem@NetBSD.org>
811     BUG 1661: Fix KRB5_SETPW-defines
814 o   Buchan Milne <bgmilne@mandrake.org> 
815     * BUG 2023: Mandrake packaging fixes for building 3.0.9.
818 o   Lars Müller <lmuelle@suse.de>
819     * BUG 2013: Fix unresolved symbols in libsmbclient.so.
822 o   Martin Zielinski <mz@seh.de>
823     * Add DeletePrinterDriverEx() functionality to rpcclient.
824     
826       --------------------------------------------------
828                    =============================
829                    Release Notes for Samba 3.0.8
830                              Nov 7, 2004
831                    =============================
833 Common bugs fixed in 3.0.8 include:
835   o Compile fixes for HP-UX
836   o Fixes for the printer publishing code used when joined to 
837     an AD domain.
838   o Incompatibilities with file system quotas.
839   o Several bugs in the spoolss printing code and print system 
840     backends.
841   o Inconsistencies in the username map functionality when 
842     configured on domain member servers.
843   o Various compile warnings and errors on various platforms.
844   o Fixes for kerberos interoperability with Windows 200x 
845     domains when using DES keys.
846   o Fix for CAN-2004-0930 -- smbd remote DoS vulnerability.
847   o Fix for CAN-2004-0882 -- possible buffer overrun in smbd.
849     
850 New features included in the 3.0.8 release are:
852   o New migration functionality added the the net tool
853     for files/directories, printers, and shares.
854   o New experimental idmap backend for assigning uids/gids
855     directly based on the user/group RID when acting as a
856     member of single domain without any trusts.
857   o Additional printer migration support for XP/2003 platforms.
860 Change in Winbindd Behavior
861 ---------------------------
863 All usernames returned by winbindd are now converted to lower 
864 case for better consistency.  This means any winbind installation
865 relying on the winbind username will need to rename existing 
866 directories and/or files based on the username (%u and %U) to lower 
867 case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`).  This may 
868 include mail spool files, home directories, valid user lines in 
869 smb.conf, etc....
872 Change in Username Map
873 ----------------------
875 Previous Samba releases would only support reading the fully qualified 
876 username (e.g. DOMAIN\user) from the username map when performing a 
877 kerberos login from a client.  However, when looking up a map 
878 entry for a user authenticated by NTLM[SSP], only the login name would be
879 used for matches.  This resulted in inconsistent behavior sometimes
880 even on the same server.
882 Samba 3.0.8 obeys the following rules when applying the username
883 map functionality:
885   * When performing local authentication, the username map is 
886     applied to the login name before attempting to authenticate 
887     the connection.
888   * When relying upon a external domain controller for validating
889     authentication requests, smbd will apply the username map 
890     to the fully qualified username (i.e. DOMAIN\user) only
891     after the user has been successfully authenticated.
894 ######################################################################
895 Changes
896 #######
898 Changes since 3.0.7
899 -------------------
901 smb.conf changes
902 ----------------
903     Parameter Name                      Action
904     --------------                      ------
905     force printername                   New
906     sendfile                            disabled by default
909 commits
910 -------
912 o   Jeremy Allison <jra@samba.org>
913     * Ensure extended security bit is on only if we negotiated 
914       extended security.
915     * Simplify statcache to use an in-memory tdb. 
916     * If you're selecting a hash algorithm for tdb, you need 
917       to do it at open time.
918     * Removed old dir caching code - not being used now we 
919       have the statcache anyway.
920     * Simplify the mangle hash code to use an in-memory tdb.
921     * Merge iconv changes from Samba 4 branch.
922     * Fix parsing of names ending in dot and a few other error 
923       returns.
924     * BUG 1667: Smbpasswd file could be left locked on some 
925       error exits.
926     * Fixes for smbclient tar functionality.
927     * BUG 1743: Fix logic bug the deferred open code.
928     * Don't try to set security descriptors on shares where 
929       this has been turned off.
930     * Return correct error codes on old SEARCH call.
931     * Ensure we set errno = E2BIG when we overflow in the 
932       fast-path character conversion code.
933     * Fix the roundup problem (returning 1mb roundup) for 
934       non-Windows clients.
935     * Added 'stat' command to smbclient to exercise the 
936       UNIX_FILE_BASIC info level.
937     * Fix bug where we could incorrectly set sparse attribute.
938     * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys()
939       (reported by Taj Khattra <taj.khattra@gmail.com>).
940     * Remove locked keys tdb code.
941     * BUG 1886: Prevent delete on close being set for readonly files 
942       (and return the correct error code).
943     * Ensure we pass most of the new lock tests except for the cancel 
944       lock which is yet to be added (merged from Samba 4 branch).
945     * BUG 1947: Fix incorrect use of getpwnam() etc. interface.
946     * BUG 1956: Ensure errno is saved and restored consistently on a 
947       normal_close.
948     * BUG 1651: Adapted patch from Nalin Dahyabhai for ensuring 
949       that all of the appropriate service principal names are set 
950       upon joining an AD domain.
951     * Fix the correct use of resume name in the trans2 code.
952     * BUG 1717: Adapted patch from Nalin Dahyabhai to detect the
953       correct salt used when generated the DES key after joining an 
954       AD domain.
955     * Enhanced krb5 detection routines in the autoconf scripts.
956   
958 o   Andrew Bartlett <abartlet@samba.org>
959     * Avoid changing the machine account password in the passdb 
960       backend, when it has 'already been changed'.  This occurs 
961       in situations where the secure channel between the workstation 
962       and the DC breaks down, such as occurred in the MS04-11 
963       security patch.
964     * Fix utility name in error message in ntlm_auth.
965     * Fix NTLMv2 for use with pam_winbind.
966     * Remove conversion to and from UTF8 on the winbind pipe.
967     * Allow 'require_membership_of' and 'require-membership-of'.
968     * Fix the error code for 'you didn't specify a domain' in 
969       ntlm_auth.
970     * Use sys_getgroups() rather than scanning all groups 
971       when generating SAMR replies.
974 o   Igor Belyi <sambauser@katehok.ac93.org>
975     * Ensure pdb user is deleted first before deleting UNIX 
976       user (LDAP backend needs this ordering).
979 o   Cornelio Bondad Jr <Corny.Bondad@hp.com>
980     * Fix core dump in 'net rpc vampire'.
981     
983 o   Vince Brimhall <vbrimhall@novell.com>
984     * Make ldapsam_compat robust against NULL attributes.
987 o   Gerald Carter <jerry@samba.org>
988     * Don't limit the number of groups returned by winbindd_getgroups()
989       by NGROUPS_MAX.
990     * BUG 1519: Match Windows 2000 behavior when opening a 
991       printer using a servername in the form of an IP address or 
992       DNS name.
993     * BUG 1907: remove extra slashes from the printer name in 
994       getprinterdriverdir_1().  
995     * Fix standard_sub_snum() to use the current user's gid.
996     * Fix background queue update bug (based on Volker's initial work 
997       in 3.1.0).
998     * Add 'force printername' service parameter for people that want 
999       to enforce printername == sharename for spoolss printing.
1000     * Ensure consistent usage of the username map.  Use the fully 
1001       qualified DOMAIN\user format for 'security = domain|ads' and 
1002       apply after authentication has succeeded.
1003     * Cosmetic fix for getent output -- lowercase the username only 
1004       and not the complete domain\username string.
1005     * Packaging fixes for Solaris, Redhat, & Fedora.
1007     
1008 o   Sean Chandler <sean.chandler@verizon.net>
1009     * Fix memlieak in cliconnect.c.
1012 o   Darren Chew <darrenc@vicscouts.asn.au>
1013     * Solaris packaging fixes.
1014     
1016 o   Nalin Dahyabhai <nalin@redhat.com>
1017     * SMB signing fix for 56-bit DES session keys.
1020 o   Guenther Deschner <gd@samba.org> 
1021     * add IA64 to the architecture table of printer-drivers.
1022     * Add file/share/printer migration functionality to 
1023       the net command.
1024     * Show correct help for net groupmap commands.
1025     * Fix deadlock loop in winbind's required_membership_sid
1026       verification.
1027     * Bring the same level of "required_membership"-functionality 
1028       that ntlm_auth uses, to pam_winbindd as well.
1029     * Prevent "net lookup kdc" from seg-faulting when
1030       using our own implementation of krb5_lookup_kdc with 
1031       heimdal.
1032     * Adding getprinter level 7 to rpcclient.
1033     * Support migrating printers|shares|files from Server A 
1034       to Server B while running the net-command on client C.
1035     * Fixed krb5_krbhost_get_addrinfo()-parameters and make 
1036       failure of this call non-critical (Thanks to Love @ Heimdal
1037       for the explanation and patch).
1038     * Fix typos in net's usage-output.
1039     * Fix the paranoia-check to ensure the ldap-attribute and the
1040       smb.conf-parameter for samba's "algorithmic rid base" in ldapsam 
1041       are identical.
1042     * Fix several bugs in the _samr_query_useraliases() rpc reply.
1043     * Check correct string length when verifying password-policies 
1044       and using extended characters (Thanks to Uwe Morgenroth from CC 
1045       Compunet and Volker).
1046     * Make 'password history'-behavior in ldapsam more consistent. 
1047     * Adding "Windows x64" as architecture string and driverdir "x64" 
1048       for the 64bit AMD platform.
1049     * BUG 1343: Readd WKGUID-binding to match the correct default-
1050       locations of new User-, Group- and Machine-Accounts in Active 
1051       Directory (this got lost during the last trunk-merge).
1052     * Fix printer-migration w.r.t. to new naming-convention for
1053       policy-handles.
1054     * Allow to migrate win2k3/xp-drivers as well. 
1055     * Add client-side support of triggering ads printer publishing 
1056       over msrpc setprinter calls inside the net-tool. 
1057     * Add the idmap_rid module (written in conjunction with 
1058       Sumit Bose <sbose@suse.de>).
1059     * BUG 1661: Fix build with recent heimdal releases.
1060     * Prevent idmap_rid from making unnecessary calls to domain 
1061       controllers for trusted domains.
1064 o   Arthur van Dongen <avdongen@xs4all.nl>
1065     * Fix typos in pam_winbind log messages and SuSE 
1066       packaging files.
1069 o   Rob Foehl <rwf@loonybin.net>
1070     * Typo fixes for log messages in printer publishing code.
1071     * Fix memory leak in printer publishing code.
1072     * Ensure print_backend_init() only gets called once.
1073     * Have smbd check the published status of all printers 
1074       at startup.
1075     * Cleanup up the XXX_a_printer() API for consistency.
1076     * Refactored the printer publishing code and include better 
1077       error handling.
1080 o   Steve French <sfrench@us.ibm.com>
1081     * Fix IP address override in mount.cifs mount helper and clean 
1082       up warning messages from the sparse tool and expand syntax help.
1083     * Strip guest mount option off before sending to kernel mount 
1084       routine to avoid logging spurious message.
1087 o   Satoh Fumiyasu <fumiya@samba.gr.jp>
1088     * BUG 1732: Limit share names returned by RAP based on windows 
1089       character width, not unix character width.
1090     * BUG 1498: Ensure that acl entries are stored in the correct 
1091       order.
1094 o   Brett Funderburg <brett@deepfile.com>
1095     * Pass create options parameter to nt_create_andx() function
1096       from the python bindings.
1097     * BUG 1864: Add sd->type field to security descriptor Python 
1098       representation.
1099     * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED
1100       when trying to return the security descriptor for a file.
1101     * BUG 1884: Fixes for the Python bindings to use the value
1102       of the desired_access filed passed into the lsa_open_policy()
1103       routines.
1106 o   Michael Gravey <michel.gravey@optogone.com>
1107     * BUG 1776: Fix warnings when building modules caused by 
1108       certain versions of GNU ld not using the the default 
1109       --allow-shlib-undefined flag.
1112 o   Chris Hertel <crh@samba.org>
1113     * Fix logic bug in splay tree data structure when finding 
1114       a leaf node.
1115     * Fix bug where an invalid MAC address would be printed by 
1116       a node status lookup from nmblookup.
1118       
1119 o   Uli Iske <iske@elkb.de>
1120     * Update the DNS/eDirectory LDAP schema file.
1123 o   Björn Jacke <bjacke@sernet.de>
1124     * BUG 1766: Unify charset-handling in Content-Type:-headers to 
1125       UTF-8.  Reformat msgstr in msg-files to UTF-8.
1126     * Do not use display charset for swat output.
1127     * Convert the share names correctly from unix encoding to web 
1128       encoding and vice versa. 
1129     * Convert files from status page from unix charset to UTF-8.
1132 o   Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
1133     * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored).
1136 o   Tom Lackemann <cessnatomny@yahoo.com>
1137     * BUG 1954: Fix memory leak in posix acl code.
1140 o   Volker Lendecke <vl@samba.org>
1141     * Robustnss fix for winbindd when sending multiple requests 
1142       at a high rate for a slow operation.  
1143     * Solve the problem of user sids ending up with gid's 
1144       and vice versa.
1145     * Use sys_fork instead of fork for the dual daemon so that 
1146       we get the correct debug pid in the logfiles.
1147     * Based on patch from jmcd, implement special lists for the LDAP 
1148       user attributes to delete.
1149     * Fix creation of aliases via usrmgr. Winbind was too strict 
1150       checking the type of sids.
1151     * Lowercase all usernames returned by winbind.
1152     * BUG 1545, 1823: Only issue the ldap extended password change 
1153       operation if the ldap server supports it.  Also ignore object 
1154       class violation errors from the extended operation.
1155     * Optimization for 'idmap backend = ldap': When asking sid2id 
1156       for the wrong type, don't ask ldap when we have the opposite mapping 
1157       in the local tdb.
1158     * Fix ldapsam_compat homeDrive.
1159     * Add usersidlist and allowedusers subcommands to the net tool
1160       in order to support scanning a file server's share and list 
1161       all users who have permission to connect there.
1162     * Allow for multiple DC's to be named as #1c names in lmhosts.
1163     * Memory leak fixes.
1164     * Fix checks for the local pid of an smbd process after 
1165       reopening tdbs.
1168 o   Herb Lewis <herb@samba.org>
1169     * Added tdbtool to be built by default.
1172 o   Love <lha@stacken.kth.se>
1173     * BUG 1955: Inconsistent error return.
1176 o   Sorin Manolache <sorinm@gmail.com>
1177     * Memory leak fix.
1180 o   Jim McDonough <jmcd@us.ibm.com>
1181     * Allow 'net ads lookup' to rely on command line arguments 
1182       if contacting an ADS server fails; utilize cldap for lookups.
1183     * Fixup formatting errors in TDB_LOG calls; add printf attribute
1184       support to tdb log functions.
1187 o   Bill McGonigle <bill+samba@bfccomputing.com>
1188     * BUG 1926: Type in debug message.
1191 o   Sean McGrath
1192     * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS
1193       for libsmbclient.
1196 o   Luke Mewburn <lukem@NetBSD.org>
1197     * BUG 1782: Prevent testparm from displaying parameter synonyms.
1200 o   Stefan Metzmacher <metze@samba.org>    
1201     * Fix crash in smbcquotas and smbcacls caused by setup_logging().
1202     * Fix client quota support.
1203     * Fix opening of system quota file.
1206 o   Lars Mueller <lmuelle@suse.de>
1207     * Small fixes for autogen.sh to deal with version detection 
1208       of autoconf and autoheader; fixes for examples using 
1209       libtool to adhere to stricter syntax of newer version.
1212 o   Henrik Nordstrom <hno@squid-cache.org>
1213     * Allow winbindd to return the correct number of groups 
1214       when the groups array must be enlarged.
1217 o   Narayana Pattipati <narayana.pattipati@wipro.com>
1218     * Solaris autoconf detection fixes.
1221 o   Tim Potter <tpot@samba.org>
1222     * BUG 1360: (correct fix) Use -Wl when passing flags to 
1223       the linker.
1224     * HP-UX compile fixes (from JBravo on #samba-technical).
1225     * BUG 1731: More HP-UX compiles fixes.
1226     * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2 
1227       spits the dummy otherwise.
1228     * Fix bug in Python printerdata wrapper.
1229     * BUG 1762: nss_winbind fixes on AIX 5.x (patch from 
1230       <bugzilla-samba@thewrittenword.com>).
1231     * Fix parameter confusion in priming of name-to-sid cache
1232       (Found by Qiao Yang).
1233     * BUG 1888: Remove '..' from all pre-processor commands.
1234     * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef 
1235       DEBUG_PASSWORD.
1238 o   Matt Selsky <selsky@columbia.edu>
1239     * BUG 350: use autoconf 2.57 feature for checking header file
1240       preprocessing (fixes configure warnings on Solaris).
1243 o   Richard Renard <rrenard@idealx.com>
1244     * Fix usermgr.exe and trust relationships.
1247 o   Paul Szabo <psz@maths.usyd.edu.au>
1248     * Fix to make find_workgroup use the same 
1249       truncation as create_workgroup.
1252 o   Richard Sharpe <rsharpe@samba.org>
1253     * Ensure cli_write() can support writes >= 65536 bytes.
1256 o   Simo Sorce <idra@samba.org>
1257     * Added check password script code in examples/auth/crackcheck/
1258     * Fix memory corruption bug caused in freeing static memory.
1261 o   Andrew Tridgell <tridge@samba.org>
1262     * Remove lp_use_mmap() from map_file() since the latter 
1263       is for read only and does not require coherence.
1264     * Ensure that the uuid pack/unpack routines do not go past 
1265       the end of the structure.
1266     * Converted Samba 3 tree to use the new utf-16 aware iconv 
1267       code. 
1268     * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms.
1269     * Ensure configure only uses '=' instead of the bashism '=='.
1270     * Reduces the number of tdb locking calls made on file IO.
1271     
1273 o   Jelmer Vernooij <jelmer@samba.org>
1274     * Convert internal data to UTF-8 before calling libxml2.
1275     * Complain if 'password chat' doesn't contain the %u variable
1276       (based on a patch by Ronan Waide).
1277     
1279 o   Josef Zlomek
1280     * BUG 1541:  Fix recursive ls in smbclient. 
1282     
1283 o   Igor Zhbanov <bsg@uniyar.ac.ru>
1284     * BUG 1797: Prevent winbind and nmbd from ignoring the "-l" 
1285       option.
1287       --------------------------------------------------
1289                   =============================
1290                   Release Notes for Samba 3.0.7
1291                            Sept 13, 2004
1292                   =============================
1294 This is the latest stable release of Samba. This is the version
1295 that production Samba servers should be running for all
1296 current bug-fixes.  There have been several important issues
1297 fixes since the 3.0.6 release.  See the "Changes" section for
1298 details on exact updates.
1300 Common bugs fixed in 3.0.7 include:
1302   o Fixes for two Denial of Service vulnerabilities
1303     (CVE ID# CAN-2004-0807 & CAN-2004-0808).
1304   o Winbind failure to return user entries under certain
1305     conditions.
1306   o Syntax errors in the OpenLDAP schema file (samba.schema).
1307   o Printing errors caused by not setting default values
1308     for the various printing commands.
1311 Changes since 3.0.6
1312 -------------------
1314 smb.conf changes
1315 ----------------
1317     Parameter Name                      Action
1318     --------------                      ------
1319     winbind enable local accounts       disabled by default
1321     
1322 commits
1323 -------
1324 o   Jeremy Allison <jra@samba.org>
1325     * Fix parsing of names ending in dot and a few other error 
1326       returns.
1327     * BUG 1674: Move the symlinks checks into reduce_name().
1328     * Fix memleak when checking the valid names smb.conf option.
1329     * Fix memleak on error return path in the file open code.
1330     * More paranoia checks in the hash2 mangling code.
1331     * Fix syntax error in configure.in.
1332     * Match Win2k3's behavior for pathname parsing error returns.
1333     * Make nmbd more robust against bad netbios packets 
1334       (CAN-2004-0808).
1335     * Add more checks for invalid ASN.1 packets for SPNEGO packets
1336       (CAN-2004-0807).
1338   
1339 o   Andrew Bartlett <abartlet@samba.org>  
1340     * Janitor work in loadparm.c -- remove unused parameters.
1343 o   Gerald Carter <jerry@samba.org>
1344     * BUG 1464: Ensure that printing commands are initialized even
1345       if the 'printing' parameter is not explicitly set.
1346     * Resolve name conflict on DEC OSF-5.1 (inspired by patch from 
1347       Adharsh Praveen <rprav@india.hp.com>)
1348     * Work around parsing error in the print change notify code.
1349     * remove duplicate declaration of getprintprocdir from 
1350       rpcclient.
1351     * Only use sAMAccountName and not userPrincipalName when looking
1352       up a username in AD since the breaks winbindd (lookup_name() 
1353       only works with the sAMAccountName).
1354     * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not 
1355       filling in the username in the user_info3.
1356     * Fix logic bug in the check for creating a user's home directory 
1357       in register_vuid(); caused home directory to be mismatched to 
1358       the first share in smb.conf under certain conditions.
1359     * BUG 1656: rename auto.a to auto.smb.
1360     * Ensure that we assign our pid to print jobs (and not our 
1361       parent's pid); ensures that spooling jobs from dead smbds 
1362       are removed from the tdb.
1363     * Disable 'winbind enable local accounts' by default.
1364     * Adding some initial checks for DragonFly (same as 
1365       FreeBSD 4.1).
1366     
1368 o   Guenther Deschner <gd@samba.org> 
1369     * Use SMB_ASSERT() to track down NULL printer names in 
1370       the tdb open code.
1371     * Revert fix for BUG 1474 to avoid unnecessary packaging 
1372       dependencies.
1375 o   Olaf Flebbe <o.flebbe@science-computing.de>.  
1376     * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 
1377       and 5.1.
1378     * BUG 1626: More compile fixes.
1381 o   Rob Foehl <rwf@loonybin.net>
1382     * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset 
1383       by attempts to sanitize the defined attributes.
1386 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
1387     * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
1390 o   Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
1391     * BUG 1657: Remove used initialized variable, 
1392     * BUG 1658: Add a little bit of const.
1395 o   Volker Lendecke <vl@samba.org>
1396     * If there's garbage in the pidfile, we should not panic 
1397       but assume that no one else is around. We can't find the 
1398       other guy anyway.
1401 o   Jim McDonough <jmcd@us.ibm.com>
1402     * Fixup format string in the tdb error messages.
1405 o   Jonas Olsson <lexicon@lysator.liu.se>
1406     * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when 
1407       reporting the list in usrmgr.exe.
1410 o   Tim Potter <tpot@samba.org>
1411     * Fix out-of-tree builds (problem with the script to generate 
1412       the svn version number).
1413     * BUG 1360:  Need to use -Wl when passing flags to the linker.
1414     * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which 
1415       doesn't have one of its own.
1417 o   Simo Sorce <idra@samba.org>
1418     * Fixup compile issues on AIX caused by broken strlen() and 
1419       strdup().
1420     * Update debian packaging files.
1423 o   Dimitri van der Spek <dwspek@aboveit.nl>
1424     * Use the correct counter when copying group rids from the 
1425       user_info3 struct in pam_winbind.
1426       
1428 o   Qiao Yang <qyang@stbernard.com>
1429     * BUG 1622: Only cache the user
1432       --------------------------------------------------
1433       
1434                   =============================
1435                   Release Notes for Samba 3.0.6
1436                            Aug 19, 2004
1437                   =============================
1439 Common bugs fixed in 3.0.6 include:
1441   o Schannel failure in winbindd.
1442   o Numerous memory leaks.
1443   o Incompatibilities between the 'write list' and 'force user'
1444     smb.conf options.
1445   o Premature optimization of the open_directory() internal 
1446     function that broke tools such as the ArcServe backup 
1447     agent, Macromedia HomeSite, and Robocopy.
1448   o Corrupt workgroup names in nmbd's browse.dat.
1449   o Sharing violation errors commonly seen when opening
1450     when serving Microsoft Office documents from a Samba 
1451     file share.
1452   o Browsing problems caused by an apostrophe (') in the 
1453     computer's description field.
1454   o Problems creating special file types from UNIX CIFS 
1455     clients and enabling 'unix extensions'.
1456   o Fix stalls in smbd caused by inaccessible LDAP servers.
1457   o Remove various memory leaks.
1458   o Fix issues in the password lockout feature.
1460 New features introduced in this release include:
1462   O Support symlinks created by CIFS clients which 
1463     can be followed on the server.
1464   o Using a cups server other than localhost.
1465   o Maintaining the service principal entry in the system 
1466     keytab for integration with other kerberized services.
1467     Please refer to the 'use kerberos keytab' entry in 
1468     smb.conf(5).  When using the heimdal kerberos libraries,
1469     you must also specify the following in /etc/krb5.conf:
1470     [libdefaults]
1471        default_keytab_name = FILE:/etc/krb5.keytab
1472   o Support for maintaining individual printer names
1473     stored separately from the printer's sharename.
1474   o Support for maintaining user password history.
1475   o Support for honoring the logon times for user in a 
1476     Samba domain.
1478 --------------------------------------------
1479 unix extensions = yes (default) and symlinks
1480 --------------------------------------------
1482 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1), 
1483 clients supporting the UNIX extensions to the CIFS protocol 
1484 can create symlinks to absolute paths which will be **followed** 
1485 by the server.  This functionality has been requested in order 
1486 to correctly support certain applications when the user's home 
1487 directory is mounted using some type of CIFS client (e.g. the 
1488 cifsvfs in the Linux 2.6 kernel).
1490 If this behavior is not acceptable for your production environment
1491 you can set 'wide links = no' in the specific share declaration in 
1492 the server's smb.conf.  Be aware that disabling wide link support 
1493 out of a share in Samba may impact the server's performance due 
1494 to the fact that smbd will now have to check each path additional 
1495 times before traversing it.
1496   
1497 ------------------------
1498 Password History Support 
1499 ------------------------
1501 The new password history feature allows smbd to check the new 
1502 password in password change requests against a list of the user's
1503 previous passwords.  The number of previous passwords to save can 
1504 be set using pdbedit (4 in this example):
1506    root# pdbedit -P "password history" -C 4
1508 When using the ldapsam passdb backend, it is vital to secure the 
1509 following attributes from access by non-administrative users:
1511    * sambaNTPassword
1512    * sambaLMPassword
1513    * sambaPasswordHistory
1515 You should refer to your directory server's documentation on how 
1516 to implement this restriction.
1519 Changes since 3.0.5
1520 -------------------
1522 smb.conf changes
1523 ----------------
1525     Parameter Name              Action
1526     --------------              ------
1527     cups server                 New
1528     defer sharing violations    New
1529     force unknown acl user      New
1530     ldap timeout                New
1531     printcap cache time         New
1532     use kerberos keytab         New
1533     
1534 commits
1535 -------
1536 o   Jeremy Allison <jra@samba.org> 
1537     * Correct path parsing bug that broke DeletePrinterDriverEx().
1538     * Fix bugs in check_path_syntax() caught by asserts.
1539     * Internal change - rearrange internal global case setting 
1540       variables to a per connection basis.
1541     * BUG 1345: Fix premature optimization in unix_convert(). 
1542     * Allow clients to truncate a locked file.
1543     * BUG 1319: Always check to see if a user as write access
1544       to a share, even when 'force user' is set.
1545     * Fix specific case of open that doesn't cause oplock break, 
1546       or share mode check.
1547     * Correct sid type is WKN_GROUP, not alias. Added some 
1548       more known types (inspired by patch from Jianliang Lu).
1549     * Allow creation of absolute symlink paths via CIFS clients.
1550     * Fix charset bug in when invoking send_mailslot().
1551     * When using widelinks = no, use realpath to canonicalize 
1552       the connection path on connection create for the user. 
1553     * Enhance stat open code.
1554     * Fix unix extensions mknod code path.
1555     * Allow unix domain socket creation via unix extensions.
1556     * Auto disable the 'store dos attribute' parameter if the 
1557       underlying filesystem doesn't support EAs.
1558     * Implement deferred open code to fix a bug with Excel files 
1559       on Samba shares.
1560     * BUG 1427: Catch bad path errors at the right point.  Ensure 
1561       all our pathname parsing is consistent.
1562     * Fix SMB signing error introduced by the new deferred open 
1563       code.
1564     * Change default setting for case sensitivity to "auto". (see 
1565       commit message -- r1154 -- for details).
1566     * Add new remote client arch -- CIFSFS.
1567     * Allow smbd to maintain the service principal entry in the 
1568       system keytab file (based on patch Dan Perry <dperry@pppl.gov>, 
1569       Guenther Deschner, et. al.).
1570     * Fix longstanding memleak bug with logfile name.
1571     * Fix incorrect type in printer publishing (struct uuid, 
1572       not UUID_FLAT).
1573     * Heimdal compile fixes after introduction of the new ketyab 
1574       feature.
1575     * Ensure we check attributes correctly on rename request.
1576     * Ensure we defer a sharing violation on rename correctly.
1577     * BUG 607: Ensure we remove DNS and DNSFAIL records immediately 
1578       on timeout.
1579     * Fix bogus error message when using "mangling method = hash" 
1580       rather than hash2.
1581     * Turn on sendfile by default for non-Win9x clients.
1582     * Handle non-io opens that cause oplock breaks correctly.
1583     * Ensure ldap replication sleep time is not more than 5 seconds.
1584     * Add support for storing a user's password history.
1585       LDAP portion of the code was based on a patch from 
1586       Jianliang Lu <j.lu@tiesse.com>.
1587     * Correct memory leaks found in the password change code.
1588     * Fix support for the mknod command with the Linux CIFS client.
1589     * Remove support for passing the new password to smbpasswd 
1590       on the command line without using the -s option.
1591     * Ensure home directory service number is correctly reused
1592       (inspired by patches from Michael Collin Nielsen 
1593       <michael@hum.aau.dk>).
1594     * Fix to stop printing accounts from resetting the bas 
1595       password and account lockout flags.
1596     * If a account was locked out by an admin (and has a bad 
1597       password count of zero) leave it locked out until an admin 
1598       unlocks it (but log a message).
1599     * Ensure we return the same ACL revision on the wire that 
1600       W2K3 does.
1601     * BUG 1578: Hardcode replacement for invalid characters as '_'
1602       (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
1603     * Fix hashed password history for LDAP backends.
1604     * Enforce logon hours restrictions if confiogured (based on code 
1605       from Richard Renard <rrenard@idealx.com>).
1606     * BUG 1606: Force smbd to disable sendfile with DOS clients 
1607       and ensure that the chained header is filled in for ...&X 
1608       commands.
1609     * BUG 1602: Fix access to shares when all symlink support 
1610       has been disabled.
1614 o   Tom Alsberg <alsbergt@cs.huji.ac.il>
1615     * Allow pdbedit to export a single user from a passdb backend.
1616     
1618 o   Andrew Bartlett <abartlet@samba.org>  
1619     * Fix parsing bug in GetDomPwInfo().
1620     * Fix segfault in 'ntlm_auth --diagnostics'.
1621     * Re-enable code to allow sid_to_gid() to perform a group 
1622       mapping lookup before checking with winbindd.
1623     * Fix memory leak in the trans2 signing code.
1624     * Allow more flexible GSS-SPENGO client and server operation 
1625       in ntlm_auth.
1626     * Improve smbd's internal random number generation.
1627     * Fix a few outstanding long password changes in smbd.
1628     * Fix LANMAN2 session setup code.
1631 o   Eric Boehm <boehm@nortelnetworks.com>
1632     BUG 703: Final touches on netgroup case lookups.
1633     
1634     
1635 o   Jerome Borsboom <j.borsboom@erasmusmc.nl>
1636     * Ensure error status codes don't get overwritten in 
1637       lsa_lookup_sids() server code.
1638     * Correct bug that caused smbd to overwrite certain error 
1639       codes when returning up the call stack.
1640     * Ensure the correct sid type returned for builtin sids.
1643 o   Gerald Carter <jerry@samba.org>
1644     * Fix a few bugs in the Fedora Packaging files.
1645     * Fix for setting the called name to by our IP if the 
1646       called name was *SMBSERVER and *SMBSERV.   Fixes issue 
1647       with connecting to printers via \\ip.ad.dr.ess\printer 
1648       UNC path.
1649     * BUG 1315: fix for schannel client connections to servers
1650       when we haven't specifically negotiated AUTH_PIPE_SEAL.
1651     * Allow PrinterDriverData valuenames with embedded backslashes
1652       (Fixes bug with one of the Konica Fiery drivers).
1653     * Fixed string length miscalculation in netbios names that 
1654       resulted in corrupt workgroup names in browse.dat.
1655     * When running smbd as a daemon, launch child smbd to update 
1656       the lpq cache listing in the background.
1657     * Allow printers "Printers..." folder to be renamed to a string 
1658       other than the share name.
1659     * Allow winbindd to use domain trust account passwords when 
1660       running on a Samba DC to establish an schannel to remote 
1661       domains.
1662     * Fix bad merge and ensure that we always use tdb_open_log() 
1663       instead of tdb_open_ex() (the former call enforce the 'use 
1664       mmap' parameter).
1665     * BUG 1221: revert old change that used single and double 
1666       quotes as delimeters in next_token(), and change 
1667       print_parameter() to print out parm values surrounded by 
1668       double quotes (instead of single quotes).
1669     * Prevent home directories added during the SMBsesssetup&X from 
1670       being removed as unused services.
1671     * Invalidate the print object cache for open printer handles when
1672       smbd receives a message that an attribute on a given printer 
1673       has been changed.
1674     * Cause the configure script to exit if --enable-cups[=yes] is 
1675       defined and the system does not have the cups devel files 
1676       installed.
1677     * BUG 1297: Prevent map_username() from being called twice 
1678       during logon.
1679     * Ensure that we use the userPrincipalName AD attribute 
1680       value for LDAP SASL binds.
1681     * Ensure we remove the tdb entry when deleting a job that 
1682       is being spooled.
1683     * BUG 1520: Work around bug in Windows XP SP2 RC2 where the 
1684       client sends a FindNextPrintChangeNotify() request without 
1685       previously sending a FindFirstPrintChangeNotify().  Return 
1686       the same error code as Windows 2000 SP4.
1687     * BUG 1516: Manually declare ldap_open_with_timeout() to 
1688       workaround compiler errors on IRIX (or other systems without 
1689       LDAP headers).
1690     * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from 
1691       3.0.5.
1692     * Corrected syntax error in the OID for sambaUnixIdPool, 
1693       sambaSidEntry, & sambaIdmapEntry object classes.
1694     * Tighten the cache consistency with the ntprinters.tdb entry 
1695       an the in memory cache associated with open printer handles.
1696     * Make sure that register_messages_flags() doesn't overwrite 
1697       the originally registered flags.
1700 o   Fabien Chevalier <fabien.chevalier@supelec.fr>
1701     * Debian BUG 252591: Ensure that the return value from the 
1702       number of available interfaces is initialized in case no 
1703       interfaces are actually available.
1706 o   Guenther Deschner <gd@sernet.de> 
1707     * Implement 'rpcclient setprintername'.
1708     * Add local groups to the user's NT_TOKEN since they are 
1709       actually supported now.
1710     * Heimdal compile fixes after introduction of the new keytab 
1711       feature.
1712     * Correctly honor the info level parameter in 'rpcclient 
1713       enumprinters'.
1714     * Reintroduce 'force unknown acl user' parameter.  When getting a 
1715       security descriptor for a file, if the owner sid is not known, 
1716       the owner uid is set to the current uid. Same for group sid.
1717     * Ensure that REG_SZ values in the SetPrinterData actually 
1718       get written in UNICODE strings rather than ASCII.
1719     * Ensure that the last kerberos error return is not invalid.
1720     * Display share ACL entries from rpcclient.
1721     * Correct infinite loop in pam_winbind's verification of 
1722       group membership in the 'other sids' field in the user_info3 
1723       struct.
1726 o   Fabian Franz <FabianFranz@gmx.de>
1727     * Support specifying a port in the device URL passed to smbspool.
1728     
1729     
1730 o   Steve French <sfrench@us.ibm.com>
1731     * Handle -S and user mount parms in mount.cifs.
1732     * Fix user unmount of shares mount with suid mount.cifs.
1733     * prevent infinite recusion in reopen_logs() when expanding 
1734       the smb.conf variable %I.
1737 o   Bjoern Jacke <bj@sernet.de>
1738     * Install libsmbclient into $(LIBDIR), not into hard coded 
1739       ${prefix}/lib. This helps amd64 systems with /lib and /lib64 
1740       and an explicit configure --libdir setting.
1743 o   <kawasa_r@itg.hitachi.co.jp>
1744     * Correct more memory leaks and initialization bugs.
1745     * Fix bug that prevented core dumps from being generated 
1746       even if you tried.
1747     * Connect to the winbind pipe in non-blocking mode to 
1748       prevent processes from hanging.
1749     * Memory leak fixes.
1752 o   Stephan Kulow <coolo@suse.de>
1753     * Fix crash bug in libsmbclient.
1756 o   Volker Lendecke <vl@samba.org>
1757     * Added vfs_full_audit module.
1758     * Add vfs_afsacl.c which can display & set AFS acls via 
1759       the NT security editor.
1760     * Fix crash bug caused by trying to Base64 encode a NULL string.
1761     * Fix DOS error code bug in reply_chkpath().
1762     * Correct misunderstanding of the max_size field in 
1763       cli_samr_enum_als_groups;  it is more like an account_control 
1764       field with individual bits what to retrieve.
1765     * Implement 'net rpc group rename' -- rename domain groups.
1766     * Implement the 'cups server' option. This makes it possible 
1767       to have virtual smbd's connect to different cups daemons.
1768     * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
1769     * Fix sid_to_gid() calls in winbindd to prevent loops.
1770     * Ensure that local_sid_to_gid() sets the type of the group on 
1771       return.
1772     * Make sure that the clients are given back the IP address to 
1773       which they connected in the case of a multi-homed host. Only 
1774       affects strings the spoolss printing replies.
1775     * Fix the bad password lockout. This has not worked as pdb_ldap.c 
1776       did not ask for the modifyTimestamp attribute, so it could 
1777       not find it.   Try not to regress by not putting that attrib 
1778       in the main list but append it manually for the relevant searches.
1779     * Fix two memleaks in login_cache.c.
1780     * fixes memory bloat when unmarshalling strings.
1781     * Fix compile errors using gcc 3.2 on SuSE 8.2.
1782     * Fix the build for systems without kerberos headers.
1783     * Allow winbindd to handle authentication requests only when 
1784       started without either an 'idmap uid' or 'idmap gid' range.
1785     * Fix the build for systems without ldap headers.
1786     * Fix interaction between share security descriptor and the 
1787       'read only' smb.conf option.
1788     * Fix bug that caused _samr_lookupsids() with more than 32 (
1789       MAX_REF_DOMAINS) SIDs to fail.
1790     * Allow the 'idmap backend' parameter to accept a list of 
1791       LDAP servers for failover purposes.
1792     * Revert code in smbd to remove a tdb when it has become 
1793       corrupted.
1794     * Add paranoid checks when mapping SIDs to a uid/gid to 
1795       ensure that the type is correct.
1796     * Initial work on getting client support for sending mailslot 
1797       datagrams.
1798     * Add 'ldap timeout' parameter.
1799     * Dont always uppercase 'afs username map'.
1800     * Expand aliases for getusersids as well.
1801     * Improved NT->AFS ACL mapping VFS module.
1804 o   Herb Lewis <herb@samba.org>
1805     * Add the acls debug class.
1806     * Fix logic bug in netbios name truncate routine.
1807     * Fix smbd crash caused by smbtorture IOCTL test.
1808     * Fix errno tromping before calling iconv to reset the 
1809       conversion state.
1810     * need to leave empty dacl so we can remove last ACE.
1813 o    Jianliang Lu <Jianliang.Lu@getronics.com>
1814     * Fix to stop smbd hanging on missing group member in 
1815       get_memberuids().
1816     * Make sure Samba returns the correct group types.
1817      * Reset the bad password count password counts upon a successful login.
1818      
1819      
1820 o   Jason Mader <jason@ncac.gwu.edu>
1821     * BUG 1385: Don't use non-consts in a structure initialization.
1822     
1824 o   Jim McDonough <jmcd@us.ibm.com>
1825     * BUG 1279: SMBjobid fix for Samba print servers running on 
1826       Big-Endian platforms.
1829 o   Joe Meadows <jameadows@webopolis.com>
1830     * Add optional timeout parameter to ldap open calls.
1831     * Allow get_dc_list() to check the negative cache.
1834 o   Stefan Metzmacher <metze@samba.org>    
1835     * fix a configure logic bug for linux/XFS quotas when 
1836       using --with-sys-quotas.
1837     * Use quota debug class in quota code.
1838     * print out the SVN revision by configure,
1839     
1841 o   Buchan Milne <bgmilne@mandrake.org>
1842     * Mandrake packaging fixes.
1843     
1844     
1845 o   Lars Mueller <lmuelle@suse.de>
1846     * BUG 1279: Added 'printcap cache time' parameter.
1847     * Fix afs related build issues on SuSE.
1848     * Fix compiler warnings in the kerberos client code.
1851 o   James Peach <jpeach@sgi.com>
1852     * More iconv detection fixes for IRIX.
1853     * Compile fixed for systems that do not have C99/UNIX98 compliant 
1854       vsnprintf by default.
1855     * Prevent smbd from attempting to use sendfile at all if it is 
1856       not supported by the server's OS.
1857     * Allow SWAT to search for index.html when serving html files 
1858       in a directory.
1861 o   Dan Peterson
1862     * Implement NFS quota support on FreeBSD.
1865 o   Tim Potter <tpot@samba.org>
1866     * BUG 1360: Use -Bsymbolic when creating shared libraries to 
1867       avoid conflicts with identical symbols in the global namespace 
1868       when loading libnss_wins.so.
1871 o   Richard Renard <rrenard@idealx.com>
1872     * Save the current password as it is being changed into the 
1873       password history list.
1876 o   Richard Sharpe <rsharpe@samba.org>
1877     * Fix error return codes on some lock messages.
1878     * BUG 1178: Make the libsmbclient routines callable 
1879       by C++ programs.
1880     * BUG 1333: Make sure we return an error code when 
1881       things go wrong.
1882     * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when 
1883       share mode locking requests fail.
1886 o   Simo Sorce <idra@samba.org>
1887     * Update Debian stable & unstable packaging.
1888     * Tidy up parametric options in testparm output.
1891 o   Richard Sharpe <rsharpe@samba.org>
1892     * Add sigchild handling to winbindd to restart the child 
1893       daemon if necessary.
1896 o   Tom Shaw <tomisfaraway@gmail.com>
1897     * Use winbindd_fill_pwent() consistently.
1900 o   Nick Thompson <nickthompson@agere.com>
1901     * Protect smbd against broken filesystems which return zero 
1902       blocksize.
1905 o   Andrew Tridgell <tridge@samba.org>
1906     * Fixed bug in handling of timeout in socket connections.
1907      
1909 o   Nick Wellnhofer <wellnhofer@aevum.de>    
1910     * Prevent lp_interfaces() list from being corrupted.  Fixes
1911       bug where nmbd would lose the list of network interfaces 
1912       on the system and consequently shutdown.
1914       
1915 o   James Wilkinson <jwilk@alumni.cse.ucsc.edu>
1916     * Fix ntlm_auth memory leaks.
1919 o   Jelmer Vernooij <jelmer@samba.org>
1920     * Additional NT status to unix error mappings.
1921     * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't 
1922       get duplicate symbol errors.
1923     * Return an error when the last command read from stdin 
1924       fails in smbclient.
1925     * Prepare for better error checking in tar.
1926     * BUG 1474: Fix build of --with-expsam stuff on Solaris.
1927       
1929 Changes for older versions follow below:
1931       --------------------------------------------------
1932       
1933                  =============================
1934                  Release Notes for Samba 3.0.5
1935                          July 20, 2004
1936                  =============================
1938 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with 
1939 the exception of correcting the two security issues outlined 
1940 below.
1942 ######################## SECURITY RELEASE ########################
1944 Summary:       Multiple Potential Buffer Overruns in Samba 3.0.x
1945 CVE ID:        CAN-2004-0600, CAN-2004-0686
1946                (http://cve.mitre.org/)
1949 This is the latest stable release of Samba. This is the version
1950 that production Samba servers should be running for all current
1951 bug-fixes.
1953 It has been confirmed that versions of Samba 3 prior to v3.0.4
1954 are vulnerable to two potential buffer overruns.  The individual
1955 details are given below.
1957 -------------
1958 CAN-2004-0600
1959 -------------
1961 Affected Versions:      Samba 3.0.2 and later
1963 The internal routine used by the Samba Web Administration
1964 Tool (SWAT v3.0.2 and later) to decode the base64 data
1965 during HTTP basic authentication is subject to a buffer
1966 overrun caused by an invalid base64 character.  It is
1967 recommended that all Samba v3.0.2 or later installations
1968 running SWAT either (a) upgrade to v3.0.5, or (b) disable
1969 the swat administration service as a temporary workaround.
1971 This same code is used internally to decode the
1972 sambaMungedDial attribute value when using the ldapsam
1973 passdb backend. While we do not believe that the base64
1974 decoding routines used by the ldapsam passdb backend can
1975 be exploited, sites using an LDAP directory service with
1976 Samba are strongly encouraged to verify that the DIT only
1977 allows write access to sambaSamAccount attributes by a
1978 sufficiently authorized user.
1980 The Samba Team would like to heartily thank Evgeny Demidov
1981 for analyzing and reporting this bug.
1983 -------------
1984 CAN-2004-0686
1985 -------------
1987 Affected Versions:      Samba 3.0.0 and later
1989 A buffer overrun has been located in the code used to support
1990 the 'mangling method = hash' smb.conf option.  Please be aware
1991 that the default setting for this parameter is 'mangling method
1992 = hash2' and therefore not vulnerable.
1994 Affected Samba 3 installations can avoid this possible security
1995 bug by using the default hash2 mangling method.  Server
1996 installations requiring the hash mangling method are encouraged
1997 to upgrade to Samba 3.0.5.
2000 ##################################################################
2002     --------------------------------------------------
2003                  
2004                  =============================
2005                  Release Notes for Samba 3.0.4
2006                           May 8, 2004
2007                  =============================
2009 Common bugs fixed in Samba 3.0.4 include:
2011   o Password changing after applying the patch described in 
2012     the Microsoft KB828741 article to Windows clients.
2013   o Crashes in smbd.
2014   o Managing print jobs via Windows on Big-Endian servers.
2015   o Several memory leaks in winbindd and smbd.
2016   o Compile issues on AIX and *BSD.
2018 Changes since 3.0.3
2019 --------------------
2021 commits
2022 -------
2024 o   Jeremy Allison <jra@samba.org>
2025     * Fix path processing for DeletePrinterDriverEx().
2026     * BUG 1303: Fix for Microsoft hotfix MS04-011 password change 
2027       breakage.
2030 o   Andrew Bartlett <abartlet@samba.org>
2031     * Fix alignment bug in GetDomPwInfo().
2034 o   Alexander Bokovoy <ab@samba.org>
2035     * Fix utime[s]() issues in smbwrapper on systems 
2036       that can boot both the 2.4 and 2.6 Linux kernels.
2039 o   Gerald Carter <jerry@samba.org>
2040     * Fedora packaging fixes.
2041     * BUG 1302: Fix seg fault by not trying to optimize a list of 
2042       invalid gids using the wrong array size.
2043     * BUG 1309: fix seg fault caused by trying to strdup(NULL)
2044       seen when 'security = share'.
2045     * Fix problems when using IBM's compiler on AIX.
2046     * Link Developer's Guide, Example Guide, and multi-page HOWTO
2047       into SWAT's welcome page.
2048     * BUG 1293: fix double free in printer publishing code.
2050     
2051 o   Wim Delvaux <wim.delvaux@adaptiveplanet.com>
2052     * Fix for handling timeouts in socket connections.
2055 o   Michel Gravey <michel.gravey@optogone.com>
2056     * BUG 483: patch from  to fix password hash creation in SWAT.
2057     
2059 o   Volker Lendecke <vl@samba.org>
2060     * Close the open NT pipes before the tdis.
2061     * Fix AFS related build issues.
2062     * Handle error conditions when base64 encoding a blob of 0 bytes.
2064     
2065 o   Herb Lewis <herb@samba.org>
2066     * Added 'acls' debug class.
2068 o   kawasa_r@itg.hitachi.co.jp
2069     * Multiple variable initialization and memory leak fixes.
2070     
2071     
2072 o   Stephan Kulow <coolo@suse.de>
2073     * Fix string length bug in libsmbclient that caused KDE's 
2074       Konqueror to crash.
2075     * BUG 429: More libsmbclient fixes.
2078 o   Jim McDonough <jmcd@us.ibm.com>
2079     * BUG 1007, 1279: Store the print job using a little-endian key.
2082 o   Eric Mertens
2083     o Compile fix for OpenBSD (ENOTSUP not supported).
2085     
2086 o   Stefan Metzmacher <metze@samba.org>
2087     * Correct bug in disks quota views from explorer.
2089     
2090 o   Tim Potter <tpot@samba.org>
2091     BUG 1305: Correct debug output.
2094 o   Richard Sharpe <rsharpe@samba.org>
2095     * Fix incorrect error code mapping.
2098 o   Jelmer Vernooij <jelmer@samba.org>
2099     * Add additional NT_STATUS errorm mappings.
2100     
2102 Changes for older versions follow below:
2104     --------------------------------------------------
2106                  =============================
2107                  Release Notes for Samba 3.0.3
2108                         April 29, 2004
2109                  =============================
2112 Common bugs fixed in Samba 3.0.3 include:
2114   o Crash bugs and change notify issues in Samba's printing code.
2115   o Honoring secondary group membership on domain member servers.
2116   o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
2117   o Substitution errors for %[UuGg] in smb.conf.
2118   o winbindd crashes when using ADS security mode.
2119   o SMB signing errors.
2120   o Delays in winbindd startup caused by unnecessary 
2121     connections to trusted domain controllers.
2122   o Various small memory leaks.
2123   o Winbindd failing due to expired Kerberos tickets.
2125 New features introduced in Samba 3.0.3 include:
2127   o Improved support for i18n character sets.
2128   o Support for account lockout policy based on
2129     bad password attempts.
2130   o Improved support for long password changes (>14
2131     characters) and strong password enforcement.
2132   o Support for Windows aliases (i.e. nested groups).
2133   o Experimental support for storing DOS attribute on files
2134     and folders in Extended Attributes.
2135   o Support for local nested groups via winbindd.
2136   o Specifying options to be passed directly to the CUPS libraries.
2138 Please be aware that the Samba source code repository was 
2139 migrated from CVS to Subversion on April 4, 2004.  Details on 
2140 accessing the Samba source tree via anonymous svn can be found 
2141 at http://svn.samba.org/samba/subversion.html.
2144 Changes since 3.0.2a
2145 --------------------
2146 smb.conf changes
2147 ----------------
2149     Parameter Name              Action
2150     --------------              ------
2151     cups options                New
2152     ea support                  New
2153     only user                   Deprecated
2154     store dos attributes        New
2155     unicode                     Removed
2156     winbind nested groups       New
2158     
2159 commits
2160 -------
2162 o   Jeremy Allison <jra@samba.org>
2163     * Ensure that Kerberos mutex is always properly unlocked.
2164     * Removed Heimdal "in-memory keytab" support.
2165     * Fixup the 'multiple-vuids' bugs in our server code.
2166     * Correct return code from lsa_lookup_sids() on unmapped
2167       sids (based on work by vl@samba.org).
2168     * Fix the "too many fcntl locks" scalability problem 
2169       raised by tridge.
2170     * Fixup correct (as per W2K3) returns for lookupsids 
2171       as well as lookupnames.
2172     * Fixups for delete-on-close semantics as per Win2k3 behavior.
2173     * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
2174     * Fix "unable to initialize" bug when smbd hasn't been run with 
2175       new system and a user is being added via pdbedit/smbpasswd.
2176     * Added NTrename SMB (0xA5).
2177     * Fixup correct timeout values for blocking lock timeouts.
2178     * Fix various bugs reported by 'gentest'.
2179     * More locking fixes in the case where we own the lock.
2180     * Fix up regression in IS_NAME_VALID and renames.
2181     * Don't set allocation size on directories.
2182     * Return correct error code on fail if file exists and target 
2183       is a directory.
2184     * Added client "hardlink" comment to test doing NT rename with 
2185       hard links.  Added hardlink_internals() code - UNIX extensions 
2186       now use this as well.
2187     * Use a common function to parse all pathnames from the wire for 
2188       much closer emulation of Win2k3 error return codes.
2189     * Implement check_path_syntax() and rewrite string sub 
2190       functions for better multibyte support.
2191     * Ensure msdfs referrals are multibyte safe.
2192     * Allow msdfs symlink syntax to be more forgiving.
2193       eg. sym_link -> msdfs://server/share/path/in/share 
2194       or  sym_link -> msdfs:\\server\share\path\in\share.
2195     * Cleanup multibyte netbios name support in nmbd ( based on patch
2196       by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
2197     * Fix check_path_syntax() for multibyte encodings which have 
2198       no '\' as second byte (based on work by ab@samba.org.
2199     * Fix the "dfs self-referrals as anonymous user" problem
2200       (based on patch from vl@samba.org).
2201     * BUG 1064: Ensure truncate attribute checking is done correctly 
2202       on "hidden" dot files.
2203     * Fix bug in anonymous dfs self-referrals again.
2204     * Fix get/set of EA's in client library
2205     * Added support for OS/2 EA's in smbd server.
2206     * Added 'ea support' parameter to smb.conf.
2207     * Added 'store dos attributes' parameter to smb.conf.
2208     * Fix wildcard identical rename.
2209     * Fix reply_ctemp - make compatible with w2k3.
2210     * Fix wildcard unlink.
2211     * Fix wildcard src with wildcard dest renames.      
2212     * BUG 1139: Fix based on suggestion by jdev@panix.com.
2213       swap lookups for user and group - group will do an
2214       algorithmic lookup if it fails, user won't.
2215     * Make EA's lookups case independent.
2216     * Fix SETPATHINFO in 'unix extensions' support.
2217     * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for 
2218       the UNIX info levels, and the short case preserve names.
2221 o   Timur Bakeyev <timur@com.bat.ru>
2222     * BUG 1144: only set --with-fhs when the argument is 'yes'
2223     * BUG 1152: Allow python modules to build despite libraries added 
2224       to LDFLAGS instead of LDPATH.
2225     * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
2228 o   Craig Barratt <cbarratt@users.sourceforge.net>
2229     * BUG 389: Allow multiple exclude arguments with smbclient 
2230       tar -Xr options (better support for Amanda backup client).
2233 o   Andrew Bartlett <abartlet@samba.org>
2234     * Include support for linking with cracklib for enforcing strong 
2235       password changes.
2236     * Add support for >14 character password changes from Windows 
2237       clients.
2238     * Add 'admin set password' capability to 'net rpc'.
2239     * Allow 'net rpc samdump' to work with any joined domain 
2240       regardless of smb.conf settings.
2241     * Use an allocated buffer for count_chars.
2242     * Add sanity checks for changes in the domain SID in an 
2243       LDAP DIT.
2244     * Implement python unit tests for Samba's multibyte string 
2245       support.
2246     * Remove 'unicode' smb.conf option.
2247     * BUG 1138: Fix support for 'optional' SMB signing and other 
2248       signing bugs.
2249     * BUG 169: Fix NTLMv2-only behavior.
2250     * Ensure 'net' honors the 'netbios name' in the smb.conf by 
2251       default.
2252     * Support SMB signing on connections using only the LANMAN 
2253       password and generate the correct the 'session key' for these 
2254       connections.
2255     * Implement --required-membership-of=, an ntlm_auth option 
2256       that restricts all authentication to members of this particular 
2257       group.
2258     * Improve our fall back code for password changes.
2259     * Only send the ntlm_auth 'ntlm-server-1' helper client a '.' 
2260       after the server had said something (such as an error).
2261     * Add 'ntlm-server-1' helper protocol to ntlm_auth.
2263       
2264 o   Alexander Bokovoy <ab@samba.org>
2265     * Fix incorrect size calculation of the directory name 
2266       in recycle.so.
2267     * Fix problems with very long filenames in both smbd and smbclient
2268       caused by truncating paths during character conversions.
2269     * Fix smbfs problem with Tree Disconnect issued before smbfs 
2270       starts its work.
2273 o   Gerald Carter <jerry@samba.org>
2274     * BUG 850: Fix 'make installmodules' bug on True64.
2275     * BUG 66: mark 'only user' deprecated.
2276     * Remove corrupt tdb and shutdown (only for printing tdbs, 
2277       connections, sessionid & locking).
2278     * decrement smbd counter in connections.tdb in smb_panic().
2279     * RedHat specfile updates.
2280     * Fix xattr.h build issue on Debian testing and SuSE 8.2.
2281     * BUG 1147; bad pointer case in get_stored_queue_info() 
2282       causing seg fault.
2283     * BUG 761: read the config file before initialized default 
2284       values for printing options; don't default to bsd printing 
2285       Linux.
2286     * Allow the 'printing' parameter to be set on a per share basis.
2287     * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
2288     * BUG 848: don't create winbind local users/groups that already 
2289       exist in the tdb.
2290     * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on 
2291       LynxOS/ppc).
2292     * BUG 488: fix the 'show client in col 1' button and correctly 
2293       enumerate active connections.
2294     * BUG 1007 (partial): Fix abort in smbd caused by byte ordering 
2295       problem when storing the updating pid for the lpq cache.
2296     * BUG 1007 (partial): Fix print change notify bugs.
2297     * BUG 1165, 1126: Fix bug with secondary groups (security = ads) 
2298       and winbind use default domain = yes.  Also ensures that 
2299     * BUG 1151: Ensure that winbindd users are passed through 
2300       the username map.
2301     * Fix client rpc binds for ASU derived servers (pc netlink, 
2302       etc...).
2303     * BUG 417, 1128: Ensure that the current_user_info is set
2304       consistently so that %[UuGg] is expanded correctly.
2305     * BUG 1195: Fix crash in winbindd when the ADS server is 
2306       unavailable.
2307     * BUG 1185: Set reconnect time to be the same as the 
2308       'winbind cache time'.
2309     * Ensure that we return the sec_desc in smb_io_printer_info_2.
2310     * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
2311     * BUG 1095: Honor the '-l' option in smbclient.
2312     * BUG 1023: surround get_group_from_gid() with become_unbecome_root() 
2313       block.
2314     * Ensure server schannel uses the auth level requested by the 
2315       client.
2316     * Removed --with-cracklib option due to potential crash issue.
2317     * Fix -lcrypto linking problem with wbinfo.
2318     * BUG 761: allow printing parameter to set defaults on a per 
2319       share basis.
2320     * Add 'cups options' parameter to allow raw printing without 
2321       changing /etc/cups/cupsd.conf.
2322     * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and 
2323       winbindd.
2324     * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
2325     * BUG 1288: resolve any machine netbios name (0x00) and not just 
2326       servers (0x20).
2327     * BUG 1199: Fix potential symlink issue in 
2328       examples/printing/smbprint.
2331 o   Robert Dahlem <Robert.Dahlem@gmx.net>
2332     * BUG 1048:  Don't return short names when when 'mangled names = no'
2335 o   Guenther Deschner <gd@suse.com>
2336     * Remove hard coded attribute name in the ads ranged retrieval
2337       code.
2338     * Add --with-libdir and --with-mandir to autoconf script.
2341 o   Bostjan Golob <golob@gimb.org>
2342     * BUG 1046: Fix  getpwent_list() so that the username is not 
2343       overwritten by other fields.
2346 o   Landon Fuller <landonf@opendarwin.org>
2347     * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller) 
2348       to fix user/group enumeration on systems whose libc does not 
2349       call setgrent() before trying to enumerate users (i.e. 
2350       FreeBSD 5.2).
2353 o   Steve French <sfrench@us.ibm.com>
2354     * Update mount.cifs to version 1.1.
2355     * Disable dev (MS_NODEV) on user mounts from cifs vfs.
2356     * Fixes to minor security bug in the mount helper.
2357     * Fix credential file mounting for cifs vfs.
2358     * Fix free of incremented pointer in cifsvfs mount helper.
2359     * Fix path canonicalization of the mount target path and help 
2360       text display in the cifs mount helper.
2361     * Add missing guest mount option for mount.cifs.
2364 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
2365     * BUG 1055; formatting fixes for 'net share'.
2366     * BUG 692: correct truncation of share names and workgroup 
2367       names in smbclient.
2368     * BUG 1088: use strchr_m() for query_host (smbclient -L).
2369     * Patch from to internally count characters correctly.
2372 o   Paul Green <paulg@samba.org>
2373     * Update VOS _POSIX_C_SOURCE macro to 200112L.
2374     * Fix bug in configure.ion by moving the first use of 
2375       AC_CHECK_HEADERS so it is always executed.
2376     * Fix configure.in to only use $BLDSHARED to select whether to 
2377       build static or shared libraries.
2380 o   Pat Haywarrd <Pat.Hayward@propero.net>
2381     * Make the session_users list dynamic (max of 128K).
2382     
2383     
2384 o   Cal Heldenbrand <calzplace@yahoo.com> 
2385     * Fix for for 'pam_smbpass migrate' functionality.
2388 o   Chris Hertel <crh@samba.org>
2389     * fix enumeration of shares 12 characters in length via 
2390       smbclient.
2393 o   Ulrich Holeschak <ulrich@holeschak.de>
2394     * BUG 932: fix local password change using pam_smbpass
2397 o   Krischan Jodies <kj@sernet.de>
2398     * Implement 'net rpc group delete'
2401 o   John Klinger <john.klinger@lmco.com>
2402     * Return NSS_SUCCESS once the max number of gids possible 
2403        has been found in initgroups() on Solaris.
2404     * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
2407 o   Volker Lendecke <vl@samba.org>
2408     * Fix success message for net groupmap modify.
2409     * Fix errors when enumerating members of groups in 'net rpc'.
2410     * Match Windows behavior in samr_lookup_names() by returning
2411       ALIAS(4) when you search in BUILTIN. 
2412     * Fix server SAMR code to be able to set alias info for 
2413       builtin as well. 
2414     * Fix duplication of logic when creating groups via smbd.
2415     * Ensure that the HWM values are set correctly after running 
2416       'net idmap'.
2417     * Add 'net rpc group add'.
2418     * Implement 'net groupmap set' and 'net groupmap cleanup'.
2419     * Add 'net rpc group [add|del]mem' for domain groups and aliases.
2420     * Fix wb_delgrpmem (wbinfo -o).
2421     * As a DC we should not reply to lsalookupnames on DCNAME\\user.
2422     * Fix sambaUserWorkstations on a Samba DC.
2423     * Implement wbinfo -k: Have winbind generate an AFS token after
2424       authenticating the user.
2425     * Add expand_msdfs VFS module for providing referrals based on the
2426       the client's IP address.
2427     * Implement client side NETLOGON GetDCName function.
2428     * Fix caching of name->sid lookups.
2429     * Add support in winbindd for expanding nested local groups.
2430     * Fix memleak in winbindd.
2431     * Fix msdfs proxy.
2432     * Don't list domain groups from BUILTIN.
2433     * Fix memleak in policy handle utility functions.
2434     * Decrease winbindd startup time by only contacting trusted 
2435       domains as necessary.
2436     * Allow winbindd to ask the DC for its domain for a trusted 
2437       DC.
2438     * Fix Netscape DS schema based on comments from 
2439       <thomas.mueller@christ-wasser.de>.
2440     * Correct case where adding a domain user to a XP local group 
2441       did a lsalookupname on the user without domain prefix, and 
2442       failed.
2443     * Fix segfault in winbindd caused by 'wbinfo -a'.
2444     
2446 o   Herb Lewis <herb@samba.org>
2447     * Fix typo for tag in proto file.
2448     * Add missing #ifdef HAVE_BICONV stuff.
2449     * Truncate Samba's netbios name at the first '.' (not 
2450       right to left).
2453 o   Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
2454     * Bug fixes and enhancements to libsmbclient library.
2456     
2457 o   Jianliang Lu <j.lu@tiesse.com>
2458     * Enforce the 'user must change password at next login' flag.
2459     * Decode meaning of 'fields present' flags (improves support 
2460       for usrmgr.exe).
2461     * NTLMv2 fixes.
2462     * Don't force an upper case domain name in the ntlmssp code.
2463     
2465 o   L. Lucius <ib@digicron.com>.
2466     * type fixes.
2469 o   Jim McDonough <jmcd@us.ibm.com>
2470     * Add versioning support to tdbsam.
2471     * Update the IBM Directory Server schema with the OpenLDAP 
2472       file.
2473     * Various decoding fixes to improve usrmgr.exe support.
2474     * Fix statfs redeclaration of statfs struct on ppc
2475     * Implement support for password lockout of Samba domain 
2476       controllers and standalone servers.
2477     * Get MungedDial attribute actually working with full TS 
2478       strings in it for pdb_ldap.
2479     * BUG 1208 (partial): Improvements for working with expired krb5 
2480       tickets in winbindd.
2481     * Use timegm, or our already existing replacement instead of 
2482       timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
2483     * Remove modifyTimestamp from list of our attributes.  
2484     * Fix lsalookupnames to check for domain users as well as local 
2485       users. 
2486     * Merge struct uuid replacement for GUID from trunk.
2487     * BUG 1208: Finish support for handling expired tickets in 
2488       winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
2491 o   Stefan Metzmacher <metze@samba.org>
2492     * Implement new VERSION schema based on subversion revision 
2493       numbers.
2494     * Add shadow_copy vfs module.
2495     * Fix segault in login_cache support.
2498 o    Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
2499      o BUG 979 -- Fix quota display on AIX.
2502 o   James Peach <jpeach@sgi.com>
2503     * Correct check for printf() format when using the SGI MIPSPro 
2504       compiler.
2505     * BUG 1038: support backtrace for 'panic action' on IRIX.
2506     * BUG 768: Accept profileing arg to IRIX init script.
2507     * BUG 748: Relax arg parsing to sambalp script (IRIX).
2508     * BUG 758: Fix pdma build.
2509     * Search IRIX ABI paths for libiconv.  Based on initial fix from 
2510       Jason Mader.
2511       
2513 o   Kurt Pfeifle <kpfeifle@danka.de>
2514     * Add example shell script for migrating drivers and printers 
2515       from a Windows print server to a Samba print server using 
2516       smbclient/rpcclient (examples/printing/VamireDriversFunctions).
2519 o   Tim Potter <tpot@samba.org>
2520     * Fix logic bug in tdb non-blocking lock routines when 
2521       errno == EAGAIN.
2522     * BUG 1025: Include sys/acl.h in check for broken nisplus 
2523       include files.      
2524     * BUG 1066: s/printf/d_printf/g in SWAT.
2525     * BUG 1098: rename internal msleep() function to fix build 
2526       problems on AIX.
2527     * BUG 1112: Fix for writable printerdata problem in python bindings.
2528     * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
2529     * BUG 1155: enclose use of fchown() with guards.
2530     * Relicense tdb python module as LGPL.
2533 o   Richard Sharpe <rsharpe@samba.org>
2534     * Add support to smbclient for multiple logins on the same 
2535       session (based on work by abartlet@samba.org).
2536     * Correct blocking condition in smbd's use of accept() on IRIX.
2537     * Add support for printing out the MAC address on nmblookup.
2540 o   Simo Sorce <idra@samba.org>
2541     * Replace unknown_3 with fields_present in SAMR code.
2542     * More length checks in strlcat().
2545 o   Andrew Tridgell <tridge@samba.org>
2546     * Rewrote the AIX UESS backend for winbindd.
2547     * Fixed compilation with --enable-dmalloc.
2548     * Change tdb license to LGPL (see source/tdb/tdb.c).
2549     * Force winbindd to use schannel in clients connections to 
2550       DC's if possible.
2553 o   Jelmer Vernooij <jelmer@samba.org>
2554    * Fix ETA Calculation when resuming downloads in smbget.
2555    * Add -O (for writing downloaded files to standard out) 
2556      based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
2557     * Fix syntax error in example mysql table
2559            
2560 o   TAKEDA yasuma <yasuma@miraclelinux.com>
2561     * BUG 900: fix token processing in cmd_symlink, cmd_link, 
2562       cmd_chown, cmd_chmod smbclient functions.
2565 o   Shiro Yamada <shiro@miraclelinux.com>
2566     * BUG 1129: install image files for SWAT.
2568       
2569     --------------------------------------------------
2571                   ==============================
2572                   Release Notes for Samba 3.0.2a
2573                         February 13, 2004
2574                   ==============================
2576 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
2577 to address, in particular, a problem when using pdbedit to 
2578 sanitize (--force-initialized-passwords) Samba's tdbsam 
2579 backend.   This is the latest stable release of Samba. This 
2580 is the version that all production Samba servers should be 
2581 running for all current bug-fixes.  
2583 ******************* Attention! Achtung! Kree! *********************
2585 Beginning with Samba 3.0.2, passwords for accounts with a last 
2586 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
2587 ldapsam, etc...) of zero (0) will be regarded as uninitialized 
2588 strings.  This will cause authentication to fail for such
2589 accounts.  If you have valid passwords that meet this criteria, 
2590 you must update the last change time to a non-zero value.  If you 
2591 do not, then  'pdbedit --force-initialized-passwords' will disable 
2592 these accounts and reset the password hashes to a string of X's.
2594 ******************* Attention! Achtung! Kree! *********************
2597 Changes since 3.0.2
2598 -------------------
2600 commits
2601 -------
2603 Please refer to the CVS log for the SAMBA_3_0 branch for complete
2604 details.  The list of changes per contributor are as follows:
2607 o   Jeremy Allison <jra@samba.org>
2608     * Added paranoia checks in parsing code.
2609     
2611 o   Andrew Bartlett <abartlet@samba.org>
2612     * Ensure that changes to uninitialized passwords in ldapsam 
2613       are written to the DIT.
2616 o   Gerald (Jerry) Carter <jerry@samba.org>
2617     * Fixed iterator in tdbsam.
2618     * Fix bug that disabled accounts with a valid NT password 
2619       hash, but no LanMan hash.
2620     
2622 o   Steve French <sfrench@us.ibm.com>
2623     * Added missing nosetuid and noexec options.
2625     
2626 o   Bostjan Golob <golob@gimb.org>
2627     * BUG 1046: Don't overwrite usernames of entries returned 
2628       by getpwent_list().
2631 o   Sebastian Krahmer <krahmer@suse.de>
2632     * Fixed potential crash bug in NTLMSSP parsing code.
2635 o   Tim Potter <tpot@samba.org>
2636     * Fixed logic in tdb_brlock error checking.
2638     
2639 o   Urban Widmark <urban@teststation.com>
2640     * Set nosuid,nodev flags in smbmnt by default.
2641     
2642     
2643         --------------------------------------------------
2644                   
2645                   =============================
2646                   Release Notes for Samba 3.0.2
2647                         February 9, 2004
2648                   =============================
2650 It has been confirmed that previous versions of Samba 3.0 are
2651 susceptible to a password initialization bug that could grant an 
2652 attacker unauthorized access to a user account created by the
2653 mksmbpasswd.sh shell script.
2655 The Common Vulnerabilities and Exposures project (cve.mitre.org) 
2656 has assigned the name CAN-2004-0082 to this issue.
2658 Samba administrators not wishing to upgrade to the current 
2659 version should download the 3.0.2 release, build the pdbedit 
2660 tool, and run 
2662    root# pdbedit-3.0.2 --force-initialized-passwords
2663       
2664 This will disable all accounts not possessing a valid password
2665 (e.g. the password field has been set a string of X's).
2667 Samba servers running 3.0.2 are not vulnerable to this bug 
2668 regardless of whether or not pdbedit has been used to sanitize
2669 the passdb backend.
2671 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
2672 release include:
2674   o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
2675   o Logging onto a Samba domain from Windows XP clients.
2676   o Problems with the %U and %u smb.conf variables in relation to 
2677     Windows 9x/ME clients.
2678   o Kerberos failures due to an invalid in memory keytab detection
2679     test.
2680   o Updates to the ntlm_auth tool.
2681   o Fixes for various SMB signing errors.
2682   o Better separation of WINS and DNS queries for domain controllers.
2683   o Issues with nss_winbind FreeBSD and Solaris.
2684   o Several crash bugs in smbd and winbindd.
2685   o Output formatting fixes for smbclient for better compatibility
2686     with scripts based on the 2.2 version.
2689 Changes since 3.0.1
2690 -------------------
2692 smb.conf changes
2693 ----------------
2695     Parameter Name              Action
2696     --------------              ------
2697     ldap replication sleep      New
2698     read size                   removed (unused)
2699     source environment          removed (unused)
2702 commits
2703 -------
2705 Please refer to the CVS log for the SAMBA_3_0 branch for complete
2706 details.  The list of changes per contributor are as follows:
2708 o   Jeremy Allison <jra@samba.org>
2709     * Revert change that broke Exchange clear text samlogons.
2710     * Fix gcc 3.4 warning in MS-DFS code.
2711     * Tidy up of NTLMSSP code.
2712     * Fixes for SMB signing errors
2713     * BUG 815: Workaround NT4 bug to support plaintext
2714       password logins and UNICODE.
2715     * Fix SMB signing bug when copying large files.
2716     * Correct error logic in mkdir_internals() (caused a panic
2717       when combined with --enable-developer).
2718     * BUG 830: Protect against crashes due to bad character 
2719       conversions.
2721       
2722 o   Petri Asikainen <paca@sci.fi>
2723     * BUG 330, 387:Fix single valued attribute updates when 
2724       working with Novell NDS.
2727 o   Andrew Bartlett <abartlet@samba.org>
2728     * Correctly handle per-pipe NTLMSSP inside a NULL session.
2729     * Fix segfault in gencache 
2730     * Fix early free() of encrypted_session_key.
2731     * Change DC lookup routines to more carefully separate
2732       DNS names (realms) from NetBIOS domain names.
2733     * Add new sid_to_dn() function for internal winbindd use.
2734     * Refactor cli_ds_enum_domain_trusts().
2735     * BUG 707: Implement range retrieval of ADS attributes (based 
2736       on work from Volker <vl@samba.org> and Guenther Deschner 
2737       <gd@suse.com>).
2738     * Automatically initialize the signing engine if a session key
2739       is available.
2740     * BUG 916: Do not perform a + -> ' ' substitution for squid URL 
2741       encoded strings, only form input in SWAT.
2742     * Resets the NTLMSSP state for new negotiate packets.
2743     * Add 2-byte alignments in net_samlogon() queries to parse 
2744       odd-length plain text passwords.
2745     * Allow Windows groups with no members in winbindd.
2746     * Allow normal authentication in the absence of a server 
2747       generated session key.
2748     * More optimizations for looking up UNIX group lists.
2749     * Clean up error codes and return values for pam_winbindd
2750       and winbindd PAM interface.
2751     * Fix string return values in ntlm_auth tool.
2752     * Fix segfault when 'security = ads' but no realm is defined.
2753     * BUG 722: Allow winbindd to map machine accounts to uids.
2754     * More cleanups for winbindd's find_our_domain().
2755     * More clearly detect whether a domain controller is an NT4
2756       or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
2757     * Increase separation between DNS queries for hosts and queries
2758       for AD domain controllers.
2759     * Include additional NT_STATUS to PAM error mappings.
2760     * Password initialization fixes.
2762     
2763 o   Justin Baugh <justin.baugh@request.com>
2764     * BUG 948: Implement missing functions required for FreeBSD 
2765       nss_winbind support. 
2768 o   Alexander Bokovoy <ab@samba.org>
2769     * BUG 922: Make sure enable fast path for strlower_m() and 
2770       strupper_m().
2773 o   Luca Bolcioni <Luca.Bolcioni@yacme.com>
2774     * Fix crash when using 'security = server' and 'encrypt 
2775       passwords = no' by always initializing the session key.
2777       
2778 o   Dmitry Butskoj <buc@odusz.elektra.ru>
2779     * Fix for special files being hidden from admins.
2782 o   Gerald (Jerry) Carter <jerry@samba.org>
2783     * Fix bug in the lanman session key generation.  Caused 
2784       "decode_pw: incorrect password length" error messages.
2785     * Save the right case for the located user name in 
2786       fill_sam_account().  Fixes %U/%u expansion for win9x clients.
2787     * BUG 897: Add well known rid for pre win2k compatible access
2788       group.
2789     * BUG 887: Correct typo in delete user script example.
2790     * Use short lived TALLOC_CTX* for allocating printer objects 
2791       from the print handle cache.
2792     * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
2793     * Fix several warnings reported by the SUN Forte C compiler.
2794     * Fully control DNS queries for AD DC's using 'name resolve order'.
2795     * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
2796     * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
2797     * BUG 936: fix bind credentials for schannel binds in smbd.
2798     * BUG 446: Fix output of smbclient for better compatibility 
2799       with scripts based on the 2.2 version (including Amanda).
2800     * BUG 891, 949: Fedora packaging fixes.
2801     * Fix bug that caused rpcclient to incorrectly retrieve 
2802       the SID for a server (this causing all calls that required 
2803       this information to fail). 
2804     * BUG 977: Don't create a homes share for a user if a static 
2805       share already exists by the same name.
2806     * Removed unused smb.conf options.
2807     * Password initialization fixes.
2808     * Set the disable flag for template accounts created by
2809       mksmbpasswd.sh.
2810     * Disable any account has no passwords and does not have the
2811       ACB_PWNOTREQ bit set.
2814 o   Guenther Deschner <gd@suse.com>
2815     * Install smbwrapper.so should be put into the $(libdir) 
2816       and not $(bindir).
2817     * Add the capability to specify the new user password 
2818       for "net ads password" on the command line.
2819     * Correctly detect AFS headers on SuSE.
2820         
2822 o   James Flemer <jflemer@uvm.edu>
2823     * Fix AIX compile bug by linking HAVE_ATTR_LIST to 
2824       HAVE_SYS_ATTRIBUTES_H.
2827 o   Luke Howard <lukeh@PADL.COM>
2828     * Fix segfault in session setup reply caused by a early free().
2831 o   Stoian Ivanov <sdr@bultra.com>
2832     * Implement grepable output for smbclient -L.
2835 o   LaMont Jones <lamont@debian.org>
2836     * BUG 225328 (Debian): Correct false failure LFS test that resulted 
2837       in  _GNU_SOURCE not being defined (thus resulting in strndup() 
2838       not being defined).
2840       
2841 o   Volker Lendecke <vl@samba.org>
2842     * BUG 583: Ensure that user names always contain the short 
2843       version of the domain name.
2844     * Fix our parsing of the LDAP uri.
2845     * Don't show the 'afs username map' in the SWAT basic view.
2846     * Fix SMB signing issues in relation to failed NTLMSSP logins.
2847     * BUG 924: Fix return codes in smbtorture harness.
2848     * Always lower-case usernames before handing it to AFS code.
2849     * Add a German translation for SWAT.
2850     * Fix a segfaults in winbindd.
2851     * Fix the user's domain passed to register_vuid() from 
2852       reply_spnego_kerberos().
2853     * Add NSS example code in nss_winbind to convert UNIX 
2854       id's <-> Windows SIDs.
2855     * Display more descriptive error messages for login via 'net'.
2856     * Fix compiler warning in the net tool.
2857     * Fix length bug when decoding base64 strings.
2858     * Ensure we don't call getpwnam() inside a loop that is iterating 
2859       over users with getpwent().  This broke on glibc 2.3.2.
2862 o   Herb Lewis <herb@samba.org>
2863     * Fix bit rot in psec.
2866 o   Jianliang Lu <j.lu@tiesse.com>
2867     * Ensure we delete the group mapping before calling the delete 
2868       group script.
2869     * Define well known RID for managing the  "Power Users" group.
2870     * BUG 381: check builtin (not local) group SID when updating 
2871       group membership.
2872     * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement 
2873       packet.
2876 o   John Klinger <john.klinger@lmco.com>
2877     * Implement initgroups() call in nss_winbind on Solaris.
2880 o   Jim McDonough <jmcd@us.ibm.com>
2881     * Fix regression in net rpc join caused by recent changes 
2882       to cli_lsa_query_info_policy().
2883     * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
2884       machine account.
2887 o   MORIYAMA Masayuki <moriyama@miraclelinux.com>
2888     * BUG 570: Ensure that configure honors the LDFLAGS variable.
2891 o   Stefan Metzmacher <metze@samba.org>
2892     * Implement LDAP rebind sleep patch.
2893     * Revert to 2.2 quota code because of so many broken quota files 
2894       out there.
2895     * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
2896                       XFS_USER_QUOTA -> USRQUOTA
2897                       XFS_GROUP_QUOTA -> GRPQUOTA
2898     * Fix disk_free calculation with group quotas.
2899     * Add debug class 'quota' and a lot of DEBUG()'s 
2900       to the quota code.
2901     * Fix sys_chown() when no chown() is present.
2902     * Add SIGABRT to fault handling in order to catch got a 
2903       backtrace if an error occurs the OpenLDAP client libs.
2906 o   <ndb@theghet.to>
2907     * Allow an existing LDAP machine account to be re-used when 
2908       joining an AD domain.
2911 o   James Peach <jpeach@sgi.com>
2912     * BUG 889: Change smbd to use pread/pwrite on platforms that 
2913       support these calls. Can lead to a significant speed increase.
2916 o   Tim Potter <tpot@samba.org>
2917     * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
2918     * BUG 924: Fix typo in RW2 torture test.
2919     
2920     
2921 o   Richard Sharpe <rsharpe@samba.org>
2922     * Small fixes to torture.c to cleanup the error handling 
2923       and prevent crashes.
2926 o   J. Tournier <jerome.tournier@IDEALX.com>
2927     * Small fixes for the smbldap-tool scripts.
2930 o   Andrew Tridgell <tridge@samba.org>
2931     * Fix src len check in pull_usc2().
2932     
2933     
2934 o   Jelmer Vernooij <jelmer@samba.org>
2935     * Put functions for generating SQL queries in pdb_sql.c
2936     * Add pgSQL backend (based on patch by Hamish Friedlander)
2937     * BUG 908: Fix -s option to smbcontrol.    
2938     * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
2939     * Fix for libnss_wins on IRIX platforms.
2940     * Fix swatdir for --with-fhs.
2943         --------------------------------------------------
2945                   =============================
2946                   Release Notes for Samba 3.0.1
2947                         December 15, 2003
2948                   =============================
2950 Some of the more common bugs in 3.0.0 addressed in the release 
2951 include:
2953   o Substitution problems with smb.conf variables.
2954   o Errors in return codes which caused some applications
2955     to fail to open files.
2956   o General Protection Faults on Windows 2000/XP clients
2957     using Samba point-n-print features.
2958   o Several miscellaneous crash bugs.
2959   o Access problems when enumerating group mappings are
2960     stored in an LDAP Directory.
2961   o Several common SWAT bugs when writing changes to
2962     smb.conf.
2963   o Internal inconsistencies when 'winbind use default
2964     domain = yes'
2968 Changes since 3.0.0
2969 ----------------------
2971     Parameter Name              Action
2972     --------------              ------
2973     hide local users            Removed
2974     mangled map                 Deprecated
2975     mangled stack               Removed
2976     passwd chat timeout         New
2979 commits
2980 -------
2982 o   Change the interface for init_unistr2 to not take a length 
2983     but a flags field.  We were assuming that 
2984     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
2985 o   Allow d_printf() to handle strings with escaped quotation 
2986     marks since the msg file includes the escape character (bug 489).
2987 o   Fix bad html table row termination in SWAT wizard code (bug 413).
2988 o   Fix to parse the level-2 strings.
2989 o   Fix for "valid users = %S" in [homes].  Fix read/write 
2990     list as well. 
2991 o   Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
2992     This is the same way AC_CHECK_LIB works (bug 508).
2993 o   Testparm output fixes for clarity.
2994 o   Fix broken wins hook functionality -- i18n bug (bug 528).
2995 o   Take care of condition where DOS and NT error codes must differ.
2996 o   Default to using only built-in charsets when a working iconv 
2997     implementation cannot be located.
2998 o   Wrap internals of sys_setgroups() so the sys_XX() call can 
2999     be done unconditionally (bug 550).
3000 o   Remove duplicate smbspool link on SWAT's front page (bug 541).
3001 o   Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
3002     --enable-debug=[yes|no] works correctly.
3003 o   Allow ^C to interrupt smbpasswd if using our getpass 
3004     (e.g. smbpasswd command).
3005 o   Support signing only on RPC's (bug 167).
3006 o   Correct bug that prevented  Excel 2000 clients from opening 
3007     files marked as read-only.
3008 o   Portability fix bugs 546 - 549).
3009 o   Explicitly initialize the value of AR for vendor makes that don't
3010     do this (e.g. HPUX 11).  (bug 552).
3011 o   More i18n fixes for SWAT (bug 413).
3012 o   Change the cwd before the postexec script to ensure that a
3013     umount will succeed.
3014 o   Correct double free that caused winbindd to crash when a DC 
3015     is rebooted (bug 437).
3016 o   Fix incorrect mode sum (bug 562).
3017 o   Canonicalize SMB_INFO_ALLOCATION in the same was as
3018     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
3019 o   Add script to generate *msg files.
3020 o   Add Dutch SWAT translation file.
3021 o   Make sure to call get_user_groups() with the full winbindd 
3022     name for a user if he/she has one (bug 406).
3023 o   Fix up error code returns from Samba4 tester. Ensure invalid 
3024     paths are validated the same way.  
3025 o   Allow Samba3 to pass the Samba4 RAW-READ tests.
3026 o   Refuse to configure if --with-expsam=$BACKEND was used but no 
3027     libraries were found for $BACKEND.
3028 o   Move sysquotas autoconf tests to a separate file.
3029 o   Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
3030     tester
3031 o   Make sure that the files that contain the static_init_$subsystem; 
3032     macro get recompiled after configure by removing the object 
3033     files.
3034 o   Ensure canceling a blocking lock returns the correct error 
3035     message.
3036 o   Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
3037 o   Updated Japanese welcome file in SWAT.
3038 o   Fix to  nt-time <-> unix-time functions reversible.
3039 o   Ensure that winbindd uses the the escaped DN when querying
3040     an AD ldap server.
3041 o   Fix portability issues when compiling (bug 505, 550)
3042 o   Compile fix for tdbbackup when Samba needs to override 
3043     non-C99 compliant implementations of snprintf().
3044 o   Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
3045 o   Make sure we break out of samsync loop on error.
3046 o   Ensure error code path doesn't free unmalloc()'d memory
3047     (bug 628).
3048 o   Add configure test for krb5_keytab_entry keyblock vs key 
3049     member (bug 636).
3050 o   Fixed spinlocks.
3051 o   Modified testparm so that all output so all debug output goes 
3052     to stderr, and all file processing goes to stdout.
3053 o   Fix error return code for BUFFER_TOO_SMALL in smbcacls 
3054     and smbcquotas.
3055 o   Fix "NULL dest in safe_strcpy()" log message by ensuring that 
3056     we have a devmode before copying a string to the devicename.
3057 o   Support mapping REALM.COM\user to a local user account (without 
3058     running winbindd)  for compatibility with 2.2.x release.
3059 o   Ensure we don't use mmap() on blacklisted systems.
3060 o   fixed a number of bugs and memory leaks in the AIX 
3061     winbindd shim
3062 o   Call initgroups() in SWAT before becomming the user so that
3063     secondary group permissions can be used when writing to 
3064     smb.conf.
3065 o   Fix signing problems when reverse connecting back to a 
3066     client for printer notify
3067 o   Fix signing problems caused by a miss-sequence bug.
3068 o   Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
3069     Fixes NEXUS tools running on Win9x clients (bug 64).
3070 o   Don't leave the domain field uninitialized in cli_lsa.c if some 
3071     SID could not be mapped.
3072 o   Fix segfault in mount.cifs helper when there is no options 
3073     specified during mount.
3074 o   Change the \n after the password prompt to go to tty instead 
3075     of stdout (bug 668).
3076 o   Stop net -P from prompting for machine account password (bug 451).
3077 o   Change in behavior to Not only change the effective uid but also
3078     the real uid when becoming unprivileged.
3079 o   Cope with Exchange 5.5 cleartext pop password auth.
3080 o   New files for support of initshutdown pipe.  Win2k doesn't 
3081     respond properly to all requests on the winreg pipe, so we need 
3082     to handle this new pipe (bug 534).
3083 o   Added more va_copy() checks in configure.in.
3084 o   Include fixes for libsmbclient build problems.
3085 o   Missing UNIX -> DOS codepage conversion in lanman.c.
3086 o   Allow DFMS-S filenames can now have arbitrary case (bug 667).
3087 o   Parameterize the listen backlog in smbd and make it larger by
3088     default. A backlog of 5 is way too small these days.
3089 o   Check for an invalid fid before dereferencing the fsp pointer
3090     (bug 696).
3091 o   Remove invalid memory frees and return codes in pdb_ldap.c.
3092 o   Prompt for password when invoking --set-auth-user and no 
3093     password is given.
3094 o   Bind the nmbd sending socket to the 'socket address'.
3095 o   Re-order link command for smbd, rpcclient and smbpasswd to ensure 
3096     $LDFLAGS occurs before any library specification (bug 661).
3097 o   Fix large number of printf() calls for 64-bit size_t.
3098 o   Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
3099     keyblock in the krb5 structs.
3100 o   Remove #include <compat.h> in hopes to avoid problems with 
3101     apache header files.
3102 o   Correct winbindd build problems on HP-UX 11.
3103 o   Lowercase netgroups lookups (bug 703).
3104 o   Use the actual size of the buffer in strftime instead of a made
3105     up value which just happens to be less than sizeof(fstring).  
3106     (bug 713).
3107 o   Add ldaplibs to pdbedit link line (bug 651).
3108 o   Fix crash bug in smbclient completion (bug 659).
3109 o   Fix packet length for browse list reply (bug 771).
3110 o   Fix coredump in cli_get_backup_list().
3111 o   Make sure that we expand %N (bug 612).
3112 o   Allow rpcclient adddriver command to specify printer driver 
3113     version (bug 514).
3114 o   Compile tdbdump by default.
3115 o   Apply patches to fix iconv detection for FreeBSD.
3116 o   Do not allow the 'guest account' to be added to a passdb backend 
3117     using smbpasswd or pdbedit (bug 624).
3118 o   Save LDFLAGS during iconv detection (bug 57).
3119 o   Run krb5 logins through the username map if the winbindd 
3120     lookup fails (bug 698).
3121 o   Add const for lp_set_name_resolve_order() to avoid compiler 
3122     warnings (bug 471).
3123 o   Add support for the %i macro in smb.conf to stand in for the for
3124     the local IP address to which a client connected.
3125 o   Allow winbindd to match local accounts to domain SID when 
3126     'winbind trusted domains only = yes' (bug 680).
3127 o   Remove code in idmap_ldap that searches the user suffix and group 
3128     suffix.  It's not needed and provides inconsistent functionality 
3129     from the tdb backend.
3130 o   Patch to handle munged dial string for Windows 2000 TSE.
3131     Thanks to Gaz de France, Direction de la Recherche, Service 
3132     Informatique Métier for their supporting this work by Aurelien 
3133     Degrémont <adegremont@idealx.com>.
3134 o   Correct the "smbldap_open: cannot access when not root error"
3135     messages when looking up group information (bug 281).
3136 o   Skip over the winbind separator when looking up a user.
3137     This fixes the bug that prevented local users from
3138     matching an AD user when not running winbindd (bug 698).
3139 o   Fix a problem with configure on *BSD systems. Make sure
3140     we add -liconv etc to LDFLAGS.
3141 o   Fix core dump bug when "security = server" and the authentication
3142     server goes away.
3143 o   Correct crash bug due to an empty munged dial string.
3144 o   Show files locked by a specific user (smbstatus -u 'user') 
3145     (bug 590).
3146 o   Fix bug preventing print jobs from display in the queue
3147     monitor used by Windows NT and later clients (bug 660).
3148 o   Fix several reported problems with point-n-print from
3149     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
3150     reply (bug 338, 527 & 643).
3151 o   Fix a handful of potential memory leaks in the LDAP code used
3152     by ldapsam[_compat] and the LDAP idmap backend.
3153 o   Fix for pdbedit error code returns (bug 763).
3154 o   Make sure we only enumerate group mapping entries  (not 
3155     /etc/group) even when doing local aliases.
3156 o   Relax check on the pipe name in a dce/rpc bind response to work 
3157     around issues with establishing trusts to a Windows 2003 domain.
3158 o   Ensure we mangle names ending in '.' in hash2 mangling method.
3159 o   Correct parsing issues with munged dial string.
3160 o   Fix bugs in quota support for XFS.
3161 o   Add a cleaner method for applications that need to provide 
3162     name->SID mappings to do this via NSS rather than having to 
3163     know the winbindd pipe protocol.
3164 o   Adds a variant of the winbindd_getgroups() call called 
3165     winbindd_getusersids() that provides direct SID->SIDs listing of 
3166     a users supplementary groups. This is enough to allow non-Samba 
3167     applications to do ACL checking.
3168 o   Make sure we don't append the 'ldap suffix' when writing out the 
3169     'ldap XXX suffix' values in SWAT (bug 328).
3170 o   Fix renames across file systems.
3171 o   Ensure that items in a list of strings containing whitespace are 
3172     written out surrounded by single quotes.  This means that both 
3173     double and single quotes are now used to surround strings in 
3174     smb.conf (bug 481).
3175 o   Enable SWAT to correctly determine if winbindd is running (bug 
3176     398).
3177 o   Include WWW-Authenticate field in 401 response for bad auth 
3178     attempt (bug 629).
3179 o   Add support for NTLM2 (NTLMv2 session security).
3180 o   Add support for variable-length session keys.
3181 o   More privilege fixes for group enumeration in LDAP (bug 281).
3182 o   Use the dns name (or IP) as the originating client name when
3183     using CUPS (bug 467).
3184 o   Fix various SMB signing bugs.
3185 o   Fix ACL propagation on a DFS root (bug 263).
3186 o   Disable NTLM2 for RPC pipes.
3187 o   Allow the client to specify the NTLM2 flags got NTLMSSP 
3188     authentication.
3189 o   Change the name of the job passed off to cups from "Test Page" 
3190     to "smbprn.00000033 Test Page" so that we can get the smb 
3191     jobid back. This allow users to delete jobs with cups printing 
3192     backend (partial work on bug 770).
3193 o   Fix build of winbindd with static pdb modules.
3194 o   Retrieve the correct ACL group bits if the file has an ACL 
3195     (bug 802).
3196 o   Implement "net rpc group members": Get members of a domain group 
3197     in human-readable format.
3198 o   Add MacOSX (Darwin) specific charset module code.
3199 o   Use samr_dispinfo(level == 1) for enumerating domain users so we 
3200     can include the full name in gecos field (bug 587).
3201 o   Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
3202 o   Implement 'net rpc group list [global|local|builtin]*' for a 
3203     select listing of the respective user databases.
3204 o   Don't automatically set NT status code flag unless client tells 
3205     us it can cope.
3206 o   Add 'net status [sessions|shares] [parseable]'.
3207 o   Don't mistake pre-existing UNIX jobs for smb jobs (remainder of  
3208     bug 770).
3209 o   Add 'Replicator' and 'RAS Servers' to list of builtin SIDs 
3210    (bug 608).
3211 o   Fix inverted logic in hosts allow/deny checks caused by 
3212     s/strcmp/strequal/ (bug 846).
3213 o   Implement correct version SamrRemoveSidForeignDomain() (bug 252).
3214 o   Fix typo in 'hash' mangling algorithm.
3215 o   Support munged dial for ldapsam (bug 800).
3216 o   Fix process_incoming_data() to return the number of bytes handled 
3217     this call whether we have a complete PDU or not; fixes bug 
3218     with multiple PDU request rpc's broken over SMBwriteX calls 
3219     each.
3220 o   Fix incorrect smb flags2 for connections to pre-NT servers 
3221     (causes smbclient to fail to OS2 for example) (bug 821).
3222 o   Update version string in smbldap-tools Makefile to 0.8.2.
3223 o   Correct a problem with "net rpc vampire" mis-parsing the 
3224     alias member info reply.
3225 o   Ensure the ${libdir} is created by the installclientlib script.
3226 o   Fix detection of Windows 2003 client architecture in the smb.conf
3227     %a variable.
3228 o   Ensure that smbd calls the add user script for a missing UNIX 
3229     user on kerberos auth call (bug 445).
3230 o   Fix bugs in hosts allow/deny when using a mismatched 
3231     network/netmask pair.
3232 o   Protect alloc_sub_basic() from crashing when the source string 
3233     is NULL (partial work on bug 687).
3234 o   Fix spinlocks on IRIX.
3235 o   Corrected some bad destination paths when running "configure 
3236     --with-fhs".
3237 o   Add packaging files for Fedora Core 1.
3238 o   Correct bug in SWAT install script for non-english languages.
3239 o   Support character set ISO-8859-1 internally (bug 558).
3240 o   Fixed more LDAP access errors when looking up group mappings 
3241     (bug 281).
3242 o   Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID 
3243     resolution to fail on local files on on domain members 
3244     (bug 875).
3245 o   Fix uninitialized variable in passdb.c.
3246 o   Fix formal parameter type in get_static() in nsswitch/wins.c.
3247 o   Fix problem mounting directories when mount.cifs is installed 
3248     with the setuid bit on.
3249 o   Fix bug that prevent --mandir from overriding the defaults
3250     given in the --with-fhs macro.
3251 o   Fix bug in in-memory Kerberos keytab detection routines 
3252     in configure.in
3256 ######################################################################
3258               The original 3.0.0 release notes follow
3259               =======================================
3260                     WHATS NEW IN Samba 3.0.0
3261                         September 24, 2003
3262               =======================================
3265 Major new features:
3266 -------------------
3268 1)  Active Directory support.  Samba 3.0 is now able to  
3269     join a ADS realm as a member server and authenticate 
3270     users using LDAP/Kerberos.
3272 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
3273     and internally there is now a much better infrastructure for 
3274     multi-byte and UNICODE character sets.
3276 3)  New authentication system. The internal authentication system 
3277     has been almost completely rewritten. Most of the changes are 
3278     internal, but the new auth system is also very configurable.
3280 4)  New default filename mangling system.
3282 5)  A new "net" command has been added. It is somewhat similar to 
3283     the "net" command in windows. Eventually we plan to replace 
3284     numerous other utilities (such as smbpasswd) with subcommands 
3285     in "net".
3287 6)  Samba now negotiates NT-style status32 codes on the wire. This
3288     improves error handling a lot.
3290 7)  Better Windows 2000/XP/2003 printing support including publishing
3291     printer attributes in active directory.
3293 8)  New loadable module support for passdb backends and character 
3294     sets.
3296 9)  New default dual-daemon winbindd support for better performance.
3298 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
3299     domain and maintaining user, group and domain SIDs.
3301 11) Support for establishing trust relationships with Windows NT 4.0
3302     domain controllers.
3303   
3304 12) Initial support for a distributed Winbind architecture using
3305     an LDAP directory for storing SID to uid/gid mappings.
3306   
3307 13) Major updates to the Samba documentation tree.
3309 14) Full support for client and server SMB signing to ensure
3310     compatibility with default Windows 2003 security settings.
3312 15) Improvement of ACL mapping features based on code donated by
3313     Andreas Grünbacher.
3316 Plus lots of other improvements!
3319 Additional Documentation
3320 ------------------------
3322 Please refer to Samba documentation tree (included in the docs/ 
3323 subdirectory) for extensive explanations of installing, configuring
3324 and maintaining Samba 3.0 servers and clients.  It is advised to 
3325 begin with the Samba-HOWTO-Collection for overviews and specific 
3326 tasks (the current book is up to approximately 400 pages) and to 
3327 refer to the various man pages for information on individual options.
3329 We are very glad to be able to include the second edition of
3330 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
3331 (O'Reilly & Associates) in this release.  The book is available
3332 on-line at http://samba.org/samba/docs/ and is included with 
3333 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
3334 publisher for making "Using Samba" under the GNU Free Documentation 
3335 License.
3338 ######################################################################
3339 Upgrading from a previous Samba 3.0 beta
3340 ########################################
3342 Beginning with Samba 3.0.0beta3, the RID allocation functions
3343 have been moved into winbindd.  Previously these were handled
3344 by each passdb backend.  This means that winbindd must be running
3345 to automatically allocate RIDs for users and/or groups.  Otherwise,
3346 smbd will use the 2.2 algorithm for generating new RIDs.
3348 If you are using 'passdb backend = tdbsam' with a previous Samba 
3349 3.0 beta release (or possibly alpha), it may be necessary to 
3350 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
3351 to winbindd_idmap.tdb.  To do this:
3353 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
3354     once)
3355 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
3356     directory
3357 3)  run: (note that 'tdb>' is the tool's prompt for input)
3359        root# ./tdbtool /usr/local/samba/private/passdb.tdb
3360        tdb> show RID_COUNTER
3361        key 12 bytes
3362        RID_COUNTER
3363        data 4 bytes
3364        [000] 0A 52 00 00                                       .R.
3366        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
3367        ....
3368        record moved
3370 If you are using 'passdb backend = ldapsam', it will be necessary to 
3371 store idmap entries in the LDAP directory as well (i.e. idmap backend 
3372 = ldap).  Refer to the 'net idmap' command for more information on 
3373 migrating SID<->UNIX id mappings from one backend to another.
3375 If the RID_COUNTER record does not exist, then these instructions are
3376 unneccessary and the new RID_COUNTER record will be correctly generated
3377 if needed.  
3381 ########################
3382 Upgrading from Samba 2.2
3383 ########################
3385 This section is provided to help administrators understand the details
3386 involved with upgrading a Samba 2.2 server to Samba 3.0.
3389 Building
3390 --------
3392 Many of the options to the GNU autoconf script have been modified 
3393 in the 3.0 release.  The most noticeable are:
3395   * removal of --with-tdbsam (is now included by default; see section
3396     on passdb backends and authentication for more details)
3397     
3398   * --with-ldapsam is now on used to provided backward compatible
3399     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
3400     backend and authentication section for more details
3401   
3402   * inclusion of non-standard passdb modules may be enabled using
3403     --with-expsam.  This includes an XML backend and a mysql backend.
3404       
3405   * removal of --with-msdfs (is now enabled by default)
3406   
3407   * removal of --with-ssl (no longer supported)
3408   
3409   * --with-utmp now defaults to 'yes' on supported systems
3410   
3411   * --with-sendfile-support is now enabled by default on supported 
3412     systems
3413   
3414     
3415 Parameters
3416 ----------
3418 This section contains a brief listing of changes to smb.conf options
3419 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
3420 complete descriptions of new or modified parameters.
3422 Removed Parameters (order alphabetically):
3424   * admin log
3425   * alternate permissions
3426   * character set
3427   * client codepage
3428   * code page directory
3429   * coding system
3430   * domain admin group
3431   * domain guest group
3432   * force unknown acl user
3433   * hide local users
3434   * mangled stack
3435   * nt smb support
3436   * postscript
3437   * printer driver
3438   * printer driver file
3439   * printer driver location
3440   * read size
3441   * source environment
3442   * status
3443   * strip dot
3444   * total print jobs
3445   * use rhosts
3446   * valid chars
3447   * vfs options
3449 New Parameters (new parameters have been grouped by function):
3451   Remote management
3452   -----------------
3453   * abort shutdown script
3454   * shutdown script
3456   User and Group Account Management
3457   ---------------------------------
3458   * add group script
3459   * add machine script
3460   * add user to group script
3461   * algorithmic rid base
3462   * delete group script
3463   * delete user from group script
3464   * passdb backend
3465   * set primary group script
3467   Authentication
3468   --------------
3469   * auth methods
3470   * realm
3471   * passwd chat timeout
3473   Protocol Options
3474   ----------------
3475   * client lanman auth
3476   * client NTLMv2 auth
3477   * client schannel
3478   * client signing
3479   * client use spnego
3480   * disable netbios
3481   * ntlm auth
3482   * paranoid server security
3483   * server schannel
3484   * server signing
3485   * smb ports
3486   * use spnego
3488   File Service
3489   ------------
3490   * get quota command
3491   * hide special files
3492   * hide unwriteable files
3493   * hostname lookups
3494   * kernel change notify
3495   * mangle prefix
3496   * map acl inherit
3497   * msdfs proxy
3498   * set quota command
3499   * use sendfile
3500   * vfs objects
3501   
3502   Printing
3503   --------
3504   * max reported print jobs
3506   UNICODE and Character Sets
3507   --------------------------
3508   * display charset
3509   * dos charset
3510   * unicode
3511   * unix charset
3512   
3513   SID to uid/gid Mappings
3514   -----------------------
3515   * idmap backend
3516   * idmap gid
3517   * idmap uid
3518   * winbind enable local accounts
3519   * winbind trusted domains only
3520   * template primary group
3521   * enable rid algorithm
3523   LDAP
3524   ----
3525   * ldap delete dn
3526   * ldap group suffix
3527   * ldap idmap suffix
3528   * ldap machine suffix
3529   * ldap passwd sync
3530   * ldap replication sleep
3531   * ldap user suffix
3532   
3533   General Configuration
3534   ---------------------
3535   * preload modules
3536   * private dir
3538 Modified Parameters (changes in behavior):
3540   * encrypt passwords (enabled by default)
3541   * mangling method (set to 'hash2' by default)
3542   * passwd chat
3543   * passwd program
3544   * restrict anonymous (integer value)
3545   * security (new 'ads' value)
3546   * strict locking (enabled by default)
3547   * unix extensions (enabled by default)
3548   * winbind cache time (increased to 5 minutes)
3549   * winbind uid (deprecated in favor of 'idmap uid')
3550   * winbind gid (deprecated in favor of 'idmap gid')
3553 Databases
3554 ---------
3556 This section contains brief descriptions of any new databases 
3557 introduced in Samba 3.0.  Please remember to backup your existing 
3558 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
3559 upgrade databases as they are opened (if necessary), but downgrading 
3560 from 3.0 to 2.2 is an unsupported path.
3562 Name                    Description                             Backup?
3563 ----                    -----------                             -------
3564 account_policy          User policy settings                    yes
3565 gencache                Generic caching db                      no
3566 group_mapping           Mapping table from Windows              yes
3567                         groups/SID to unix groups        
3568 winbindd_idmap          ID map table from SIDS to UNIX          yes
3569                         uids/gids.
3570 namecache               Name resolution cache entries           no
3571 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
3572                         returned as part of a successful
3573                         net_sam_logon request 
3574 printing/*.tdb          Cached output from 'lpq                 no
3575                         command' created on a per print 
3576                         service basis
3577 registry                Read-only samba registry skeleton       no
3578                         that provides support for exporting
3579                         various db tables via the winreg RPCs
3582 Changes in Behavior
3583 -------------------
3585 The following issues are known changes in behavior between Samba 2.2 and 
3586 Samba 3.0 that may affect certain installations of Samba.
3588   1)  When operating as a member of a Windows domain, Samba 2.2 would 
3589       map any users authenticated by the remote DC to the 'guest account'
3590       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
3591       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
3592       current work around to re-establish the 2.2 behavior.
3593       
3594   2)  When adding machines to a Samba 2.2 controlled domain, the 
3595       'add user script' was used to create the UNIX identity of the 
3596       machine trust account.  Samba 3.0 introduces a new 'add machine 
3597       script' that must be specified for this purpose.  Samba 3.0 will
3598       not fall back to using the 'add user script' in the absence of 
3599       an 'add machine script'
3600   
3602 ######################################################################
3603 Passdb Backends and Authentication
3604 ##################################
3606 There have been a few new changes that Samba administrators should be
3607 aware of when moving to Samba 3.0.
3609   1) encrypted passwords have been enabled by default in order to 
3610      inter-operate better with out-of-the-box Windows client 
3611      installations.  This does mean that either (a) a samba account
3612      must be created for each user, or (b) 'encrypt passwords = no'
3613      must be explicitly defined in smb.conf.
3614     
3615   2) Inclusion of new 'security = ads' option for integration 
3616      with an Active Directory domain using the native Windows
3617      Kerberos 5 and LDAP protocols.
3619      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
3620      type which is neccessary for servers on which the 
3621      administrator password has not been changed, or kerberos-enabled 
3622      SMB connections to servers that require Kerberos SMB signing.
3623      Besides this one difference, either MIT or Heimdal Kerberos
3624      distributions are usable by Samba 3.0.
3625      
3627 Samba 3.0 also includes the possibility of setting up chains
3628 of authentication methods (auth methods) and account storage 
3629 backends (passdb backend).  Please refer to the smb.conf(5) 
3630 man page for details.  While both parameters assume sane default 
3631 values, it is likely that you will need to understand what the 
3632 values actually mean in order to ensure Samba operates correctly.
3634 The recommended passdb backends at this time are
3636   * smbpasswd - 2.2 compatible flat file format
3637   * tdbsam - attribute rich database intended as an smbpasswd
3638     replacement for stand alone servers
3639   * ldapsam - attribute rich account storage and retrieval 
3640     backend utilizing an LDAP directory.  
3641   * ldapsam_compat - a 2.2 backward compatible LDAP account 
3642     backend
3643     
3644 Certain functions of the smbpasswd(8) tool have been split between the 
3645 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
3646 utility.  See the respective man pages for details.
3647     
3648      
3649 ######################################################################
3650 LDAP
3651 ####
3653 This section outlines the new features affecting Samba / LDAP 
3654 integration.
3656 New Schema
3657 ----------
3658   
3659 A new object class (sambaSamAccount) has been introduced to replace 
3660 the old sambaAccount.  This change aids us in the renaming of 
3661 attributes to prevent clashes with attributes from other vendors.  
3662 There is a conversion script (examples/LDAP/convertSambaAccount) to 
3663 modify and LDIF file to the new schema.
3664   
3665 Example:
3666   
3667   $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
3668   $ convertSambaAccount --sid=<Domain SID> \
3669     --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
3670     --changetype=[modify|add]
3671         
3672 The <DOM SID> can be obtained by running 'net getlocalsid 
3673 <DOMAINNAME>' on the Samba PDC as root.  The changetype determines 
3674 the format of the generated LDIF output--either create new entries 
3675 or modify existing entries.
3676     
3677 The old sambaAccount schema may still be used by specifying the 
3678 "ldapsam_compat" passdb backend.  However, the sambaAccount and
3679 associated attributes have been moved to the historical section of
3680 the schema file and must be uncommented before use if needed.
3681 The 2.2 object class declaration for a sambaAccount has not changed
3682 in the 3.0 samba.schema file. 
3683   
3684 Other new object classes and their uses include:
3685   
3686   * sambaDomain - domain information used to allocate rids 
3687     for users and groups as necessary.  The attributes are added
3688     in 'ldap suffix' directory entry automatically if 
3689     an idmap uid/gid range has been set and the 'ldapsam'
3690     passdb backend has been selected.
3691       
3692   * sambaGroupMapping - an object representing the 
3693     relationship between a posixGroup and a Windows
3694     group/SID.  These entries are stored in the 'ldap 
3695     group suffix' and managed by the 'net groupmap' command.
3696     
3697   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
3698     automatically and contains the next available 'idmap uid' and 
3699     'idmap gid'
3700     
3701   * sambaIdmapEntry - object storing a mapping between a 
3702     SID and a UNIX uid/gid.  These objects are created by the 
3703     idmap_ldap module as needed.
3705   * sambaSidEntry - object representing a SID alone, as a Structural
3706     class on which to build the sambaIdmapEntry.
3708     
3709 New Suffix for Searching
3710 ------------------------
3711   
3712 The following new smb.conf parameters have been added to aid in directing
3713 certain LDAP queries when 'passdb backend = ldapsam://...' has been
3714 specified.
3716   * ldap suffix         - used to search for user and computer accounts
3717   * ldap user suffix    - used to store user accounts
3718   * ldap machine suffix - used to store machine trust accounts
3719   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
3720   * ldap idmap suffix   - location of sambaIdmapEntry objects
3722 If an 'ldap suffix' is defined, it will be appended to all of the 
3723 remaining sub-suffix parameters.  In this case, the order of the suffix
3724 listings in smb.conf is important.  Always place the 'ldap suffix' first
3725 in the list.  
3727 Due to a limitation in Samba's smb.conf parsing, you should not surround 
3728 the DN's with quotation marks.
3731 IdMap LDAP support
3732 ------------------
3734 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
3735 following options would inform Samba that the idmap table should be
3736 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
3737 dc=org" partition.
3739  [global]
3740     ...
3741     idmap backend     = ldap:ldap://onterose/
3742     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
3743     idmap uid         = 40000-50000
3744     idmap gid         = 40000-50000
3746 This configuration allows winbind installations on multiple servers to
3747 share a uid/gid number space, thus avoiding the interoperability problems
3748 with NFS that were present in Samba 2.2.
3749     
3752 ######################################################################
3753 Trust Relationships and a Samba Domain
3754 ######################################
3756 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
3757 allocating uids and gids to trusted users and groups.  More
3758 information regarding Samba's support for establishing trust 
3759 relationships can be found in the Samba-HOWTO-Collection included
3760 in the docs/ directory of this release.
3762 First create your Samba PDC and ensure that everything is 
3763 working correctly before moving on the trusts.
3765 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
3766 4.0 domain named WINDOWS:
3768   1) create the trust account for SAMBA in "User Manager for Domains"
3769   2) connect the trust from the Samba domain using
3770      'net rpc trustdom establish GLASS'
3772 To create a trustlationship with SAMBA as the trusted domain:
3774   1) create the initial trust account for GLASS using
3775      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
3776      account for GLASS$ prior to this step (depending on your
3777      local configuration).
3778   2) connect the trust from a WINDOWS DC using "User Manager
3779      for Domains"
3781 Now join winbindd on the Samba PDC to the SAMBA domain using
3782 the normal steps for adding a Samba server to an NT4 domain:
3783 (note that smbd & nmbd must be running at this point)
3785    root# net rpc join -U root
3786    Password: <enter root password from smbpasswd file here>
3788 Start winbindd and test the join with 'wbinfo -t'.
3790 Now test the trust relationship by connecting to the SAMBA DC
3791 (e.g. POGO) as a user from the WINDOWS domain:
3793    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
3794    Password:
3796 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
3798    $ smbclient //crystal/netlogon -U root -W WINDOWS
3799    Password:
3801 ######################################################################
3802 Changes in Winbind
3803 ##################
3805 Beginning with Samba3.0.0beta3, winbindd has been given new account
3806 manage functionality equivalent to the 'add user script' family of
3807 smb.conf parameters.  The idmap design has also been changed to 
3808 centralize control of foreign SID lookups and matching to UNIX 
3809 uids and gids.
3812 Brief Description of Changes
3813 ----------------------------
3815 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
3816    reverted to the 2.2.x design.  This means that when resolving a 
3817    SID to a UID or similar mapping:
3819         a) First consult winbindd
3820         b) perform a local lookup only if winbindd fails to
3821            return a successful answer
3823    There are some variations to this, but these two rules generally
3824    apply.
3826 2) All idmap lookups have been moved into winbindd.  This means that
3827    a server must run winbindd (and support NSS) in order to achieve
3828    any mappings of SID to dynamically allocated UNIX ids.  This was
3829    a conscious design choice.
3831 3) New functions have been added to winbindd to emulate the 'add user 
3832    script' family of smbd functions without requiring that external
3833    scripts be defined.  This functionality is controlled by the 'winbind 
3834    enable local accounts' smb.conf parameter (enabled by default).
3836    However, this account management functionality is only supported 
3837    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
3838    must be shared among multiple Samba servers (such as a PDC and BDCs), 
3839    it will be necessary to define your own 'add user script', et. al.
3840    programs that place the accounts/groups in some form of directory
3841    such as NIS or LDAP.  This requirement was deemed beyond the scope
3842    of winbind's account management functions.  Solutions for 
3843    distributing UNIX system information have been deployed and tested 
3844    for many years.  We saw no need to reinvent the wheel.
3846 4) A member of a Samba controlled domain running winbindd is now able 
3847    to map domain users directly onto existing UNIX accounts while still
3848    automatically creating accounts for trusted users and groups.  This
3849    behavior is controlled by the 'winbind trusted domains only' smb.conf
3850    parameter (disabled by default to provide 2.2.x winbind behavior).
3852 5) Group mapping support is wrapped in the local_XX_to_XX() functions
3853    in smbd/uid.c.  The reason that group mappings are not included
3854    in winbindd is because the purpose of Samba's group map is to
3855    match any Windows SID with an existing UNIX group.  These UNIX
3856    groups can be created by winbindd (see next section), but the
3857    SID<->gid mapping is retreived by smbd, not winbindd.
3860 Examples
3861 --------
3863 * security = server running winbindd to allocate accounts on demand
3865 * Samba PDC running winbindd to handle the automatic creation of UNIX
3866   identities for machine trust accounts
3868 * Automtically creating UNIX user and groups when migrating a Windows NT
3869   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
3870   'net rpc vampire' for this to work.
3872    
3873 ######################################################################
3874 Known Issues
3875 ############
3877 * There are several bugs currently logged against the 3.0 codebase
3878   that affect the use of NT 4.0 GUI domain management tools when run
3879   against a Samba 3.0 PDC.  This bugs should be released in an early 
3880   3.0.x release.
3882 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
3883 filed against the Samba 3.0 codebase.
3886 ######################################################################
3887 Reporting bugs & Development Discussion
3888 #######################################
3890 Please discuss this release on the samba-technical mailing list or by
3891 joining the #samba-technical IRC channel on irc.freenode.net.
3893 If you do report problems then please try to send high quality
3894 feedback. If you don't provide vital information to help us track down
3895 the problem then you will probably be ignored.  
3897 A new bugzilla installation has been established to help support the 
3898 Samba 3.0 community of users.  This server, located at 
3899 https://bugzilla.samba.org/, has replaced the older jitterbug server 
3900 previously located at http://bugs.samba.org/.