caasd
[metze/test/web/.git] / history / samba-3.0.9.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6 <title>Samba - Release Notes Archive</title>
7 </head>
8
9 <body>
10
11    <H2>Samba 3.0.9 Available for Download</H2>
12
13 <p>
14 <pre>
15                    =============================
16                    Release Notes for Samba 3.0.9
17                              Nov 15, 2004
18                    =============================
19
20 This is the latest stable release of Samba. This is the version
21 that production Samba servers should be running for all
22 current bug-fixes.  There have been several important issues
23 fixes since the 3.0.8 release.  See the "Changes" section for
24 details on exact updates.
25
26 Common bugs fixed in 3.0.9 include:
27
28   o Problem updating roaming user profiles.
29   o Crash in smbd when printing from a Windows 9x client.
30   o Unresolved symbols in libsmbclient which caused 
31     applications such as KDE's konqueror to fail when
32     accessing smb:// URLs.
33
34 ######################################################################
35 Changes
36 #######
37
38 Changes since 3.0.8
39 -------------------
40
41
42 commits
43 -------
44
45 o   Jeremy Allison <jra@samba.org>
46     * Correctly detect errno for no acl/ea support.
47     * BUG 2036: Fix seg fault in 'net ads join'.
48
49     
50 o   Gerald (Jerry) Carter <jerry@samba.org>
51     * Solaris packaging fixes.
52     * Fix seg fault in lanman printing code.
53     * BUG 2017: fix testparm reporting for the passwd program 
54       string.
55     * Fix output of smbstatus to match the man page.
56     * BUG 2027: fix conflict with declaration MD5_CTX in system 
57       headers.
58     * 2028: Avoid false error messages when copying a long 
59       printer name to the device mode.
60
61
62 o   Guenther Deschner <gd@samba.org> 
63     * Allow deldriverex in rpcclient to delete drivers for a 
64       specific architecture and a specific version.
65     * Fix a couple of rpcclient spoolss commands (setprinter, 
66       setprintername, getdriver) w.r.t to printer-naming scheme.
67       Allow 'localhost' in the server string for certain server-side
68       spoolss functions.
69     * BUG 2015: Do not fail on setting file attributes with 
70       acl support enabled.
71
72
73 o   Michel Gravey <michel.gravey@optogone.com>
74     * Fix build when using gcc 3.0.
75
76
77 o   Volker Lendecke <vl@samba.org>
78     * Fix tdb open logic when checking our local_pid after 
79       the fork().
80
81
82 o   Jim McDonough <jmcd@us.ibm.com>
83     * BUG 1932: Fix crash in 'net getlocalsid' when run as 
84       non-root user.
85
86
87 o   Luke Mewburn <lukem@NetBSD.org>
88     BUG 1661: Fix KRB5_SETPW-defines
89
90
91 o   Buchan Milne <bgmilne@mandrake.org> 
92     * BUG 2023: Mandrake packaging fixes for building 3.0.9.
93
94
95 o   Lars Müller <lmuelle@suse.de>
96     * BUG 2013: Fix unresolved symbols in libsmbclient.so.
97
98
99 o   Martin Zielinski <mz@seh.de>
100     * Add DeletePrinterDriverEx() functionality to rpcclient.
101     
102
103 Changes for older versions follow below:
104
105       --------------------------------------------------
106                    =============================
107                    Release Notes for Samba 3.0.8
108                              Nov 7, 2004
109                    =============================
110
111 Common bugs fixed in 3.0.8 include:
112
113   o Compile fixes for HP-UX
114   o Fixes for the printer publishing code used when joined to 
115     an AD domain.
116   o Incompatibilities with file system quotas.
117   o Several bugs in the spoolss printing code and print system 
118     backends.
119   o Inconsistencies in the username map functionality when 
120     configured on domain member servers.
121   o Various compile warnings and errors on various platforms.
122   o Fixes for kerberos interoperability with Windows 200x 
123     domains when using DES keys.
124   o Fix for CAN-2004-0930 -- smbd remote DoS vulnerability.
125   o Fix for CAN-2004-0882 -- possible buffer overrun in smbd.
126
127     
128 New features included in the 3.0.8 release are:
129
130   o New migration functionality added the the net tool
131     for files/directories, printers, and shares.
132   o New experimental idmap backend for assigning uids/gids
133     directly based on the user/group RID when acting as a
134     member of single domain without any trusts.
135   o Additional printer migration support for XP/2003 platforms.
136
137
138 Change in Winbindd Behavior
139 ---------------------------
140
141 All usernames returned by winbindd are now converted to lower 
142 case for better consistency.  This means any winbind installation
143 relying on the winbind username will need to rename existing 
144 directories and/or files based on the username (%u and %U) to lower 
145 case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`).  This may 
146 include mail spool files, home directories, valid user lines in 
147 smb.conf, etc....
148
149
150 Change in Username Map
151 ----------------------
152
153 Previous Samba releases would only support reading the fully qualified 
154 username (e.g. DOMAIN\user) from the username map when performing a 
155 kerberos login from a client.  However, when looking up a map 
156 entry for a user authenticated by NTLM[SSP], only the login name would be
157 used for matches.  This resulted in inconsistent behavior sometimes
158 even on the same server.
159
160 Samba 3.0.8 obeys the following rules when applying the username
161 map functionality:
162
163   * When performing local authentication, the username map is 
164     applied to the login name before attempting to authenticate 
165     the connection.
166   * When relying upon a external domain controller for validating
167     authentication requests, smbd will apply the username map 
168     to the fully qualified username (i.e. DOMAIN\user) only
169     after the user has been successfully authenticated.
170
171
172 ######################################################################
173 Changes
174 #######
175
176 Changes since 3.0.7
177 -------------------
178
179 smb.conf changes
180 ----------------
181     Parameter Name                      Action
182     --------------                      ------
183     force printername                   New
184     sendfile                            disabled by default
185
186
187 commits
188 -------
189
190 o   Jeremy Allison <jra@samba.org>
191     * Ensure extended security bit is on only if we negotiated 
192       extended security.
193     * Simplify statcache to use an in-memory tdb. 
194     * If you're selecting a hash algorithm for tdb, you need 
195       to do it at open time.
196     * Removed old dir caching code - not being used now we 
197       have the statcache anyway.
198     * Simplify the mangle hash code to use an in-memory tdb.
199     * Merge iconv changes from Samba 4 branch.
200     * Fix parsing of names ending in dot and a few other error 
201       returns.
202     * BUG 1667: Smbpasswd file could be left locked on some 
203       error exits.
204     * Fixes for smbclient tar functionality.
205     * BUG 1743: Fix logic bug the deferred open code.
206     * Don't try to set security descriptors on shares where 
207       this has been turned off.
208     * Return correct error codes on old SEARCH call.
209     * Ensure we set errno = E2BIG when we overflow in the 
210       fast-path character conversion code.
211     * Fix the roundup problem (returning 1mb roundup) for 
212       non-Windows clients.
213     * Added 'stat' command to smbclient to exercise the 
214       UNIX_FILE_BASIC info level.
215     * Fix bug where we could incorrectly set sparse attribute.
216     * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys()
217       (reported by Taj Khattra <taj.khattra@gmail.com>).
218     * Remove locked keys tdb code.
219     * BUG 1886: Prevent delete on close being set for readonly files 
220       (and return the correct error code).
221     * Ensure we pass most of the new lock tests except for the cancel 
222       lock which is yet to be added (merged from Samba 4 branch).
223     * BUG 1947: Fix incorrect use of getpwnam() etc. interface.
224     * BUG 1956: Ensure errno is saved and restored consistently on a 
225       normal_close.
226     * BUG 1651: Adapted patch from Nalin Dahyabhai for ensuring 
227       that all of the appropriate service principal names are set 
228       upon joining an AD domain.
229     * Fix the correct use of resume name in the trans2 code.
230     * BUG 1717: Adapted patch from Nalin Dahyabhai to detect the
231       correct salt used when generated the DES key after joining an 
232       AD domain.
233     * Enhanced krb5 detection routines in the autoconf scripts.
234   
235
236 o   Andrew Bartlett <abartlet@samba.org>
237     * Avoid changing the machine account password in the passdb 
238       backend, when it has 'already been changed'.  This occurs 
239       in situations where the secure channel between the workstation 
240       and the DC breaks down, such as occurred in the MS04-11 
241       security patch.
242     * Fix utility name in error message in ntlm_auth.
243     * Fix NTLMv2 for use with pam_winbind.
244     * Remove conversion to and from UTF8 on the winbind pipe.
245     * Allow 'require_membership_of' and 'require-membership-of'.
246     * Fix the error code for 'you didn't specify a domain' in 
247       ntlm_auth.
248     * Use sys_getgroups() rather than scanning all groups 
249       when generating SAMR replies.
250
251
252 o   Igor Belyi <sambauser@katehok.ac93.org>
253     * Ensure pdb user is deleted first before deleting UNIX 
254       user (LDAP backend needs this ordering).
255
256
257 o   Cornelio Bondad Jr <Corny.Bondad@hp.com>
258     * Fix core dump in 'net rpc vampire'.
259     
260
261 o   Vince Brimhall <vbrimhall@novell.com>
262     * Make ldapsam_compat robust against NULL attributes.
263
264
265 o   Gerald Carter <jerry@samba.org>
266     * Don't limit the number of groups returned by winbindd_getgroups()
267       by NGROUPS_MAX.
268     * BUG 1519: Match Windows 2000 behavior when opening a 
269       printer using a servername in the form of an IP address or 
270       DNS name.
271     * BUG 1907: remove extra slashes from the printer name in 
272       getprinterdriverdir_1().  
273     * Fix standard_sub_snum() to use the current user's gid.
274     * Fix background queue update bug (based on Volker's initial work 
275       in 3.1.0).
276     * Add 'force printername' service parameter for people that want 
277       to enforce printername == sharename for spoolss printing.
278     * Ensure consistent usage of the username map.  Use the fully 
279       qualified DOMAIN\user format for 'security = domain|ads' and 
280       apply after authentication has succeeded.
281     * Cosmetic fix for getent output -- lowercase the username only 
282       and not the complete domain\username string.
283     * Packaging fixes for Solaris, Redhat, & Fedora.
284
285     
286 o   Sean Chandler <sean.chandler@verizon.net>
287     * Fix memlieak in cliconnect.c.
288
289
290 o   Darren Chew <darrenc@vicscouts.asn.au>
291     * Solaris packaging fixes.
292     
293
294 o   Nalin Dahyabhai <nalin@redhat.com>
295     * SMB signing fix for 56-bit DES session keys.
296
297
298 o   Guenther Deschner <gd@samba.org> 
299     * add IA64 to the architecture table of printer-drivers.
300     * Add file/share/printer migration functionality to 
301       the net command.
302     * Show correct help for net groupmap commands.
303     * Fix deadlock loop in winbind's required_membership_sid
304       verification.
305     * Bring the same level of "required_membership"-functionality 
306       that ntlm_auth uses, to pam_winbindd as well.
307     * Prevent "net lookup kdc" from seg-faulting when
308       using our own implementation of krb5_lookup_kdc with 
309       heimdal.
310     * Adding getprinter level 7 to rpcclient.
311     * Support migrating printers|shares|files from Server A 
312       to Server B while running the net-command on client C.
313     * Fixed krb5_krbhost_get_addrinfo()-parameters and make 
314       failure of this call non-critical (Thanks to Love @ Heimdal
315       for the explanation and patch).
316     * Fix typos in net's usage-output.
317     * Fix the paranoia-check to ensure the ldap-attribute and the
318       smb.conf-parameter for samba's "algorithmic rid base" in ldapsam 
319       are identical.
320     * Fix several bugs in the _samr_query_useraliases() rpc reply.
321     * Check correct string length when verifying password-policies 
322       and using extended characters (Thanks to Uwe Morgenroth from CC 
323       Compunet and Volker).
324     * Make 'password history'-behavior in ldapsam more consistent. 
325     * Adding "Windows x64" as architecture string and driverdir "x64" 
326       for the 64bit AMD platform.
327     * BUG 1343: Readd WKGUID-binding to match the correct default-
328       locations of new User-, Group- and Machine-Accounts in Active 
329       Directory (this got lost during the last trunk-merge).
330     * Fix printer-migration w.r.t. to new naming-convention for
331       policy-handles.
332     * Allow to migrate win2k3/xp-drivers as well. 
333     * Add client-side support of triggering ads printer publishing 
334       over msrpc setprinter calls inside the net-tool. 
335     * Add the idmap_rid module (written in conjunction with 
336       Sumit Bose <sbose@suse.de>).
337     * BUG 1661: Fix build with recent heimdal releases.
338     * Prevent idmap_rid from making unnecessary calls to domain 
339       controllers for trusted domains.
340
341
342 o   Arthur van Dongen <avdongen@xs4all.nl>
343     * Fix typos in pam_winbind log messages and SuSE 
344       packaging files.
345
346
347 o   Rob Foehl <rwf@loonybin.net>
348     * Typo fixes for log messages in printer publishing code.
349     * Fix memory leak in printer publishing code.
350     * Ensure print_backend_init() only gets called once.
351     * Have smbd check the published status of all printers 
352       at startup.
353     * Cleanup up the XXX_a_printer() API for consistency.
354     * Refactored the printer publishing code and include better 
355       error handling.
356
357
358 o   Steve French <sfrench@us.ibm.com>
359     * Fix IP address override in mount.cifs mount helper and clean 
360       up warning messages from the sparse tool and expand syntax help.
361     * Strip guest mount option off before sending to kernel mount 
362       routine to avoid logging spurious message.
363
364
365 o   Satoh Fumiyasu <fumiya@samba.gr.jp>
366     * BUG 1732: Limit share names returned by RAP based on windows 
367       character width, not unix character width.
368     * BUG 1498: Ensure that acl entries are stored in the correct 
369       order.
370
371
372 o   Brett Funderburg <brett@deepfile.com>
373     * Pass create options parameter to nt_create_andx() function
374       from the python bindings.
375     * BUG 1864: Add sd->type field to security descriptor Python 
376       representation.
377     * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED
378       when trying to return the security descriptor for a file.
379     * BUG 1884: Fixes for the Python bindings to use the value
380       of the desired_access filed passed into the lsa_open_policy()
381       routines.
382
383  
384 o   Michael Gravey <michel.gravey@optogone.com>
385     * BUG 1776: Fix warnings when building modules caused by 
386       certain versions of GNU ld not using the the default 
387       --allow-shlib-undefined flag.
388
389
390 o   Chris Hertel <crh@samba.org>
391     * Fix logic bug in splay tree data structure when finding 
392       a leaf node.
393     * Fix bug where an invalid MAC address would be printed by 
394       a node status lookup from nmblookup.
395
396       
397 o   Uli Iske <iske@elkb.de>
398     * Update the DNS/eDirectory LDAP schema file.
399
400
401 o   Björn Jacke <bjacke@sernet.de>
402     * BUG 1766: Unify charset-handling in Content-Type:-headers to 
403       UTF-8.  Reformat msgstr in msg-files to UTF-8.
404     * Do not use display charset for swat output.
405     * Convert the share names correctly from unix encoding to web 
406       encoding and vice versa. 
407     * Convert files from status page from unix charset to UTF-8.
408
409
410 o   Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
411     * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored).
412
413
414 o   Tom Lackemann <cessnatomny@yahoo.com>
415     * BUG 1954: Fix memory leak in posix acl code.
416
417
418 o   Volker Lendecke <vl@samba.org>
419     * Robustnss fix for winbindd when sending multiple requests 
420       at a high rate for a slow operation.  
421     * Solve the problem of user sids ending up with gid's 
422       and vice versa.
423     * Use sys_fork instead of fork for the dual daemon so that 
424       we get the correct debug pid in the logfiles.
425     * Based on patch from jmcd, implement special lists for the LDAP 
426       user attributes to delete.
427     * Fix creation of aliases via usrmgr. Winbind was too strict 
428       checking the type of sids.
429     * Lowercase all usernames returned by winbind.
430     * BUG 1545, 1823: Only issue the ldap extended password change 
431       operation if the ldap server supports it.  Also ignore object 
432       class violation errors from the extended operation.
433     * Optimization for 'idmap backend = ldap': When asking sid2id 
434       for the wrong type, don't ask ldap when we have the opposite mapping 
435       in the local tdb.
436     * Fix ldapsam_compat homeDrive.
437     * Add usersidlist and allowedusers subcommands to the net tool
438       in order to support scanning a file server's share and list 
439       all users who have permission to connect there.
440     * Allow for multiple DC's to be named as #1c names in lmhosts.
441     * Memory leak fixes.
442     * Fix checks for the local pid of an smbd process after 
443       reopening tdbs.
444
445
446 o   Herb Lewis <herb@samba.org>
447     * Added tdbtool to be built by default.
448
449
450 o   Love <lha@stacken.kth.se>
451     * BUG 1955: Inconsistent error return.
452
453
454 o   Sorin Manolache <sorinm@gmail.com>
455     * Memory leak fix.
456
457
458 o   Jim McDonough <jmcd@us.ibm.com>
459     * Allow 'net ads lookup' to rely on command line arguments 
460       if contacting an ADS server fails; utilize cldap for lookups.
461     * Fixup formatting errors in TDB_LOG calls; add printf attribute
462       support to tdb log functions.
463
464
465 o   Bill McGonigle <bill+samba@bfccomputing.com>
466     * BUG 1926: Type in debug message.
467
468
469 o   Sean McGrath
470     * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS
471       for libsmbclient.
472
473
474 o   Luke Mewburn <lukem@NetBSD.org>
475     * BUG 1782: Prevent testparm from displaying parameter synonyms.
476
477
478 o   Stefan Metzmacher <metze@samba.org>    
479     * Fix crash in smbcquotas and smbcacls caused by setup_logging().
480     * Fix client quota support.
481     * Fix opening of system quota file.
482
483
484 o   Lars Mueller <lmuelle@suse.de>
485     * Small fixes for autogen.sh to deal with version detection 
486       of autoconf and autoheader; fixes for examples using 
487       libtool to adhere to stricter syntax of newer version.
488
489
490 o   Henrik Nordstrom <hno@squid-cache.org>
491     * Allow winbindd to return the correct number of groups 
492       when the groups array must be enlarged.
493
494
495 o   Narayana Pattipati <narayana.pattipati@wipro.com>
496     * Solaris autoconf detection fixes.
497
498
499 o   Tim Potter <tpot@samba.org>
500     * BUG 1360: (correct fix) Use -Wl when passing flags to 
501       the linker.
502     * HP-UX compile fixes (from JBravo on #samba-technical).
503     * BUG 1731: More HP-UX compiles fixes.
504     * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2 
505       spits the dummy otherwise.
506     * Fix bug in Python printerdata wrapper.
507     * BUG 1762: nss_winbind fixes on AIX 5.x (patch from 
508       <bugzilla-samba@thewrittenword.com>).
509     * Fix parameter confusion in priming of name-to-sid cache
510       (Found by Qiao Yang).
511     * BUG 1888: Remove '..' from all pre-processor commands.
512     * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef 
513       DEBUG_PASSWORD.
514
515
516 o   Matt Selsky <selsky@columbia.edu>
517     * BUG 350: use autoconf 2.57 feature for checking header file
518       preprocessing (fixes configure warnings on Solaris).
519
520
521 o   Richard Renard <rrenard@idealx.com>
522     * Fix usermgr.exe and trust relationships.
523
524
525 o   Paul Szabo <psz@maths.usyd.edu.au>
526     * Fix to make find_workgroup use the same 
527       truncation as create_workgroup.
528
529
530 o   Richard Sharpe <rsharpe@samba.org>
531     * Ensure cli_write() can support writes >= 65536 bytes.
532
533
534 o   Simo Sorce <idra@samba.org>
535     * Added check password script code in examples/auth/crackcheck/
536     * Fix memory corruption bug caused in freeing static memory.
537
538
539 o   Andrew Tridgell <tridge@samba.org>
540     * Remove lp_use_mmap() from map_file() since the latter 
541       is for read only and does not require coherence.
542     * Ensure that the uuid pack/unpack routines do not go past 
543       the end of the structure.
544     * Converted Samba 3 tree to use the new utf-16 aware iconv 
545       code. 
546     * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms.
547     * Ensure configure only uses '=' instead of the bashism '=='.
548     * Reduces the number of tdb locking calls made on file IO.
549     
550
551 o   Jelmer Vernooij <jelmer@samba.org>
552     * Convert internal data to UTF-8 before calling libxml2.
553     * Complain if 'password chat' doesn't contain the %u variable
554       (based on a patch by Ronan Waide).
555     
556
557 o   Josef Zlomek
558     * BUG 1541:  Fix recursive ls in smbclient. 
559
560     
561 o   Igor Zhbanov <bsg@uniyar.ac.ru>
562     * BUG 1797: Prevent winbind and nmbd from ignoring the "-l" 
563       option.
564
565       --------------------------------------------------
566                   =============================
567                   Release Notes for Samba 3.0.7
568                            Sept 13, 2004
569                   =============================
570
571 This is the latest stable release of Samba. This is the version
572 that production Samba servers should be running for all
573 current bug-fixes.  There have been several important issues
574 fixes since the 3.0.6 release.  See the "Changes" section for
575 details on exact updates.
576
577 Common bugs fixed in 3.0.7 include:
578
579   o Fixes for two Denial of Service vulnerabilities
580     (CVE ID# CAN-2004-0807 & CAN-2004-0808).
581   o Winbind failure to return user entries under certain
582     conditions.
583   o Syntax errors in the OpenLDAP schema file (samba.schema).
584   o Printing errors caused by not setting default values
585     for the various printing commands.
586
587
588 Changes since 3.0.6
589 -------------------
590
591 smb.conf changes
592 ----------------
593
594     Parameter Name                      Action
595     --------------                      ------
596     winbind enable local accounts       disabled by default
597
598     
599 commits
600 -------
601 o   Jeremy Allison <jra@samba.org>
602     * Fix parsing of names ending in dot and a few other error 
603       returns.
604     * BUG 1674: Move the symlinks checks into reduce_name().
605     * Fix memleak when checking the valid names smb.conf option.
606     * Fix memleak on error return path in the file open code.
607     * More paranoia checks in the hash2 mangling code.
608     * Fix syntax error in configure.in.
609     * Match Win2k3's behavior for pathname parsing error returns.
610     * Make nmbd more robust against bad netbios packets 
611       (CAN-2004-0808).
612     * Add more checks for invalid ASN.1 packets for SPNEGO packets
613       (CAN-2004-0807).
614
615   
616 o   Andrew Bartlett <abartlet@samba.org>  
617     * Janitor work in loadparm.c -- remove unused parameters.
618
619
620 o   Gerald Carter <jerry@samba.org>
621     * BUG 1464: Ensure that printing commands are initialized even
622       if the 'printing' parameter is not explicitly set.
623     * Resolve name conflict on DEC OSF-5.1 (inspired by patch from 
624       Adharsh Praveen <rprav@india.hp.com>)
625     * Work around parsing error in the print change notify code.
626     * remove duplicate declaration of getprintprocdir from 
627       rpcclient.
628     * Only use sAMAccountName and not userPrincipalName when looking
629       up a username in AD since the breaks winbindd (lookup_name() 
630       only works with the sAMAccountName).
631     * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not 
632       filling in the username in the user_info3.
633     * Fix logic bug in the check for creating a user's home directory 
634       in register_vuid(); caused home directory to be mismatched to 
635       the first share in smb.conf under certain conditions.
636     * BUG 1656: rename auto.a to auto.smb.
637     * Ensure that we assign our pid to print jobs (and not our 
638       parent's pid); ensures that spooling jobs from dead smbds 
639       are removed from the tdb.
640     * Disable 'winbind enable local accounts' by default.
641     * Adding some initial checks for DragonFly (same as 
642       FreeBSD 4.1).
643     
644
645 o   Guenther Deschner <gd@samba.org> 
646     * Use SMB_ASSERT() to track down NULL printer names in 
647       the tdb open code.
648     * Revert fix for BUG 1474 to avoid unnecessary packaging 
649       dependencies.
650
651
652 o   Olaf Flebbe <o.flebbe@science-computing.de>.  
653     * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 
654       and 5.1.
655     * BUG 1626: More compile fixes.
656
657
658 o   Rob Foehl <rwf@loonybin.net>
659     * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset 
660       by attempts to sanitize the defined attributes.
661
662
663 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
664     * BUG 1546: Preserve errno in MB strupper_m/strlower_m.
665
666
667 o   Helmut Heinreichsberger <helmut.heinreichsberger@chello.at>.
668     * BUG 1657: Remove used initialized variable, 
669     * BUG 1658: Add a little bit of const.
670
671
672 o   Volker Lendecke <vl@samba.org>
673     * If there's garbage in the pidfile, we should not panic 
674       but assume that no one else is around. We can't find the 
675       other guy anyway.
676
677
678 o   Jim McDonough <jmcd@us.ibm.com>
679     * Fixup format string in the tdb error messages.
680
681
682 o   Jonas Olsson <lexicon@lysator.liu.se>
683     * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when 
684       reporting the list in usrmgr.exe.
685
686
687 o   Tim Potter <tpot@samba.org>
688     * Fix out-of-tree builds (problem with the script to generate 
689       the svn version number).
690     * BUG 1360:  Need to use -Wl when passing flags to the linker.
691     * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which 
692       doesn't have one of its own.
693
694 o   Simo Sorce <idra@samba.org>
695     * Fixup compile issues on AIX caused by broken strlen() and 
696       strdup().
697     * Update debian packaging files.
698
699
700 o   Dimitri van der Spek <dwspek@aboveit.nl>
701     * Use the correct counter when copying group rids from the 
702       user_info3 struct in pam_winbind.
703       
704
705 o   Qiao Yang <qyang@stbernard.com>
706     * BUG 1622: Only cache the user
707
708
709       --------------------------------------------------
710       
711                   =============================
712                   Release Notes for Samba 3.0.6
713                            Aug 19, 2004
714                   =============================
715
716 Common bugs fixed in 3.0.6 include:
717
718   o Schannel failure in winbindd.
719   o Numerous memory leaks.
720   o Incompatibilities between the 'write list' and 'force user'
721     smb.conf options.
722   o Premature optimization of the open_directory() internal 
723     function that broke tools such as the ArcServe backup 
724     agent, Macromedia HomeSite, and Robocopy.
725   o Corrupt workgroup names in nmbd's browse.dat.
726   o Sharing violation errors commonly seen when opening
727     when serving Microsoft Office documents from a Samba 
728     file share.
729   o Browsing problems caused by an apostrophe (') in the 
730     computer's description field.
731   o Problems creating special file types from UNIX CIFS 
732     clients and enabling 'unix extensions'.
733   o Fix stalls in smbd caused by inaccessible LDAP servers.
734   o Remove various memory leaks.
735   o Fix issues in the password lockout feature.
736
737 New features introduced in this release include:
738
739   O Support symlinks created by CIFS clients which 
740     can be followed on the server.
741   o Using a cups server other than localhost.
742   o Maintaining the service principal entry in the system 
743     keytab for integration with other kerberized services.
744     Please refer to the 'use kerberos keytab' entry in 
745     smb.conf(5).  When using the heimdal kerberos libraries,
746     you must also specify the following in /etc/krb5.conf:
747     [libdefaults]
748        default_keytab_name = FILE:/etc/krb5.keytab
749   o Support for maintaining individual printer names
750     stored separately from the printer's sharename.
751   o Support for maintaining user password history.
752   o Support for honoring the logon times for user in a 
753     Samba domain.
754
755 --------------------------------------------
756 unix extensions = yes (default) and symlinks
757 --------------------------------------------
758
759 Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1), 
760 clients supporting the UNIX extensions to the CIFS protocol 
761 can create symlinks to absolute paths which will be **followed** 
762 by the server.  This functionality has been requested in order 
763 to correctly support certain applications when the user's home 
764 directory is mounted using some type of CIFS client (e.g. the 
765 cifsvfs in the Linux 2.6 kernel).
766
767 If this behavior is not acceptable for your production environment
768 you can set 'wide links = no' in the specific share declaration in 
769 the server's smb.conf.  Be aware that disabling wide link support 
770 out of a share in Samba may impact the server's performance due 
771 to the fact that smbd will now have to check each path additional 
772 times before traversing it.
773   
774 ------------------------
775 Password History Support 
776 ------------------------
777
778 The new password history feature allows smbd to check the new 
779 password in password change requests against a list of the user's
780 previous passwords.  The number of previous passwords to save can 
781 be set using pdbedit (4 in this example):
782
783    root# pdbedit -P "password history" -C 4
784
785 When using the ldapsam passdb backend, it is vital to secure the 
786 following attributes from access by non-administrative users:
787
788    * sambaNTPassword
789    * sambaLMPassword
790    * sambaPasswordHistory
791
792 You should refer to your directory server's documentation on how 
793 to implement this restriction.
794
795
796 Changes since 3.0.5
797 -------------------
798
799 smb.conf changes
800 ----------------
801
802     Parameter Name              Action
803     --------------              ------
804     cups server                 New
805     defer sharing violations    New
806     force unknown acl user      New
807     ldap timeout                New
808     printcap cache time         New
809     use kerberos keytab         New
810     
811 commits
812 -------
813 o   Jeremy Allison <jra@samba.org> 
814     * Correct path parsing bug that broke DeletePrinterDriverEx().
815     * Fix bugs in check_path_syntax() caught by asserts.
816     * Internal change - rearrange internal global case setting 
817       variables to a per connection basis.
818     * BUG 1345: Fix premature optimization in unix_convert(). 
819     * Allow clients to truncate a locked file.
820     * BUG 1319: Always check to see if a user as write access
821       to a share, even when 'force user' is set.
822     * Fix specific case of open that doesn't cause oplock break, 
823       or share mode check.
824     * Correct sid type is WKN_GROUP, not alias. Added some 
825       more known types (inspired by patch from Jianliang Lu).
826     * Allow creation of absolute symlink paths via CIFS clients.
827     * Fix charset bug in when invoking send_mailslot().
828     * When using widelinks = no, use realpath to canonicalize 
829       the connection path on connection create for the user. 
830     * Enhance stat open code.
831     * Fix unix extensions mknod code path.
832     * Allow unix domain socket creation via unix extensions.
833     * Auto disable the 'store dos attribute' parameter if the 
834       underlying filesystem doesn't support EAs.
835     * Implement deferred open code to fix a bug with Excel files 
836       on Samba shares.
837     * BUG 1427: Catch bad path errors at the right point.  Ensure 
838       all our pathname parsing is consistent.
839     * Fix SMB signing error introduced by the new deferred open 
840       code.
841     * Change default setting for case sensitivity to "auto". (see 
842       commit message -- r1154 -- for details).
843     * Add new remote client arch -- CIFSFS.
844     * Allow smbd to maintain the service principal entry in the 
845       system keytab file (based on patch Dan Perry <dperry@pppl.gov>, 
846       Guenther Deschner, et. al.).
847     * Fix longstanding memleak bug with logfile name.
848     * Fix incorrect type in printer publishing (struct uuid, 
849       not UUID_FLAT).
850     * Heimdal compile fixes after introduction of the new ketyab 
851       feature.
852     * Ensure we check attributes correctly on rename request.
853     * Ensure we defer a sharing violation on rename correctly.
854     * BUG 607: Ensure we remove DNS and DNSFAIL records immediately 
855       on timeout.
856     * Fix bogus error message when using "mangling method = hash" 
857       rather than hash2.
858     * Turn on sendfile by default for non-Win9x clients.
859     * Handle non-io opens that cause oplock breaks correctly.
860     * Ensure ldap replication sleep time is not more than 5 seconds.
861     * Add support for storing a user's password history.
862       LDAP portion of the code was based on a patch from 
863       Jianliang Lu <j.lu@tiesse.com>.
864     * Correct memory leaks found in the password change code.
865     * Fix support for the mknod command with the Linux CIFS client.
866     * Remove support for passing the new password to smbpasswd 
867       on the command line without using the -s option.
868     * Ensure home directory service number is correctly reused
869       (inspired by patches from Michael Collin Nielsen 
870       <michael@hum.aau.dk>).
871     * Fix to stop printing accounts from resetting the bas 
872       password and account lockout flags.
873     * If a account was locked out by an admin (and has a bad 
874       password count of zero) leave it locked out until an admin 
875       unlocks it (but log a message).
876     * Ensure we return the same ACL revision on the wire that 
877       W2K3 does.
878     * BUG 1578: Hardcode replacement for invalid characters as '_'
879       (based on fix from Alexander E. Patrakov <patrakov@ums.usu.ru>).
880     * Fix hashed password history for LDAP backends.
881     * Enforce logon hours restrictions if confiogured (based on code 
882       from Richard Renard <rrenard@idealx.com>).
883     * BUG 1606: Force smbd to disable sendfile with DOS clients 
884       and ensure that the chained header is filled in for ...&X 
885       commands.
886     * BUG 1602: Fix access to shares when all symlink support 
887       has been disabled.
888
889
890
891 o   Tom Alsberg <alsbergt@cs.huji.ac.il>
892     * Allow pdbedit to export a single user from a passdb backend.
893     
894
895 o   Andrew Bartlett <abartlet@samba.org>  
896     * Fix parsing bug in GetDomPwInfo().
897     * Fix segfault in 'ntlm_auth --diagnostics'.
898     * Re-enable code to allow sid_to_gid() to perform a group 
899       mapping lookup before checking with winbindd.
900     * Fix memory leak in the trans2 signing code.
901     * Allow more flexible GSS-SPENGO client and server operation 
902       in ntlm_auth.
903     * Improve smbd's internal random number generation.
904     * Fix a few outstanding long password changes in smbd.
905     * Fix LANMAN2 session setup code.
906
907
908 o   Eric Boehm <boehm@nortelnetworks.com>
909     BUG 703: Final touches on netgroup case lookups.
910     
911     
912 o   Jerome Borsboom <j.borsboom@erasmusmc.nl>
913     * Ensure error status codes don't get overwritten in 
914       lsa_lookup_sids() server code.
915     * Correct bug that caused smbd to overwrite certain error 
916       codes when returning up the call stack.
917     * Ensure the correct sid type returned for builtin sids.
918
919
920 o   Gerald Carter <jerry@samba.org>
921     * Fix a few bugs in the Fedora Packaging files.
922     * Fix for setting the called name to by our IP if the 
923       called name was *SMBSERVER and *SMBSERV.   Fixes issue 
924       with connecting to printers via \\ip.ad.dr.ess\printer 
925       UNC path.
926     * BUG 1315: fix for schannel client connections to servers
927       when we haven't specifically negotiated AUTH_PIPE_SEAL.
928     * Allow PrinterDriverData valuenames with embedded backslashes
929       (Fixes bug with one of the Konica Fiery drivers).
930     * Fixed string length miscalculation in netbios names that 
931       resulted in corrupt workgroup names in browse.dat.
932     * When running smbd as a daemon, launch child smbd to update 
933       the lpq cache listing in the background.
934     * Allow printers "Printers..." folder to be renamed to a string 
935       other than the share name.
936     * Allow winbindd to use domain trust account passwords when 
937       running on a Samba DC to establish an schannel to remote 
938       domains.
939     * Fix bad merge and ensure that we always use tdb_open_log() 
940       instead of tdb_open_ex() (the former call enforce the 'use 
941       mmap' parameter).
942     * BUG 1221: revert old change that used single and double 
943       quotes as delimeters in next_token(), and change 
944       print_parameter() to print out parm values surrounded by 
945       double quotes (instead of single quotes).
946     * Prevent home directories added during the SMBsesssetup&X from 
947       being removed as unused services.
948     * Invalidate the print object cache for open printer handles when
949       smbd receives a message that an attribute on a given printer 
950       has been changed.
951     * Cause the configure script to exit if --enable-cups[=yes] is 
952       defined and the system does not have the cups devel files 
953       installed.
954     * BUG 1297: Prevent map_username() from being called twice 
955       during logon.
956     * Ensure that we use the userPrincipalName AD attribute 
957       value for LDAP SASL binds.
958     * Ensure we remove the tdb entry when deleting a job that 
959       is being spooled.
960     * BUG 1520: Work around bug in Windows XP SP2 RC2 where the 
961       client sends a FindNextPrintChangeNotify() request without 
962       previously sending a FindFirstPrintChangeNotify().  Return 
963       the same error code as Windows 2000 SP4.
964     * BUG 1516: Manually declare ldap_open_with_timeout() to 
965       workaround compiler errors on IRIX (or other systems without 
966       LDAP headers).
967     * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from 
968       3.0.5.
969     * Corrected syntax error in the OID for sambaUnixIdPool, 
970       sambaSidEntry, & sambaIdmapEntry object classes.
971     * Tighten the cache consistency with the ntprinters.tdb entry 
972       an the in memory cache associated with open printer handles.
973     * Make sure that register_messages_flags() doesn't overwrite 
974       the originally registered flags.
975
976
977 o   Fabien Chevalier <fabien.chevalier@supelec.fr>
978     * Debian BUG 252591: Ensure that the return value from the 
979       number of available interfaces is initialized in case no 
980       interfaces are actually available.
981
982
983 o   Guenther Deschner <gd@sernet.de> 
984     * Implement 'rpcclient setprintername'.
985     * Add local groups to the user's NT_TOKEN since they are 
986       actually supported now.
987     * Heimdal compile fixes after introduction of the new keytab 
988       feature.
989     * Correctly honor the info level parameter in 'rpcclient 
990       enumprinters'.
991     * Reintroduce 'force unknown acl user' parameter.  When getting a 
992       security descriptor for a file, if the owner sid is not known, 
993       the owner uid is set to the current uid. Same for group sid.
994     * Ensure that REG_SZ values in the SetPrinterData actually 
995       get written in UNICODE strings rather than ASCII.
996     * Ensure that the last kerberos error return is not invalid.
997     * Display share ACL entries from rpcclient.
998     * Correct infinite loop in pam_winbind's verification of 
999       group membership in the 'other sids' field in the user_info3 
1000       struct.
1001
1002
1003 o   Fabian Franz <FabianFranz@gmx.de>
1004     * Support specifying a port in the device URL passed to smbspool.
1005     
1006     
1007 o   Steve French <sfrench@us.ibm.com>
1008     * Handle -S and user mount parms in mount.cifs.
1009     * Fix user unmount of shares mount with suid mount.cifs.
1010     * prevent infinite recusion in reopen_logs() when expanding 
1011       the smb.conf variable %I.
1012
1013
1014 o   Bjoern Jacke <bj@sernet.de>
1015     * Install libsmbclient into $(LIBDIR), not into hard coded 
1016       ${prefix}/lib. This helps amd64 systems with /lib and /lib64 
1017       and an explicit configure --libdir setting.
1018
1019
1020 o   <kawasa_r@itg.hitachi.co.jp>
1021     * Correct more memory leaks and initialization bugs.
1022     * Fix bug that prevented core dumps from being generated 
1023       even if you tried.
1024     * Connect to the winbind pipe in non-blocking mode to 
1025       prevent processes from hanging.
1026     * Memory leak fixes.
1027
1028
1029 o   Stephan Kulow <coolo@suse.de>
1030     * Fix crash bug in libsmbclient.
1031
1032
1033 o   Volker Lendecke <vl@samba.org>
1034     * Added vfs_full_audit module.
1035     * Add vfs_afsacl.c which can display & set AFS acls via 
1036       the NT security editor.
1037     * Fix crash bug caused by trying to Base64 encode a NULL string.
1038     * Fix DOS error code bug in reply_chkpath().
1039     * Correct misunderstanding of the max_size field in 
1040       cli_samr_enum_als_groups;  it is more like an account_control 
1041       field with individual bits what to retrieve.
1042     * Implement 'net rpc group rename' -- rename domain groups.
1043     * Implement the 'cups server' option. This makes it possible 
1044       to have virtual smbd's connect to different cups daemons.
1045     * Paranoia fixes when adding local aliases to a user's NT_TOKEN.
1046     * Fix sid_to_gid() calls in winbindd to prevent loops.
1047     * Ensure that local_sid_to_gid() sets the type of the group on 
1048       return.
1049     * Make sure that the clients are given back the IP address to 
1050       which they connected in the case of a multi-homed host. Only 
1051       affects strings the spoolss printing replies.
1052     * Fix the bad password lockout. This has not worked as pdb_ldap.c 
1053       did not ask for the modifyTimestamp attribute, so it could 
1054       not find it.   Try not to regress by not putting that attrib 
1055       in the main list but append it manually for the relevant searches.
1056     * Fix two memleaks in login_cache.c.
1057     * fixes memory bloat when unmarshalling strings.
1058     * Fix compile errors using gcc 3.2 on SuSE 8.2.
1059     * Fix the build for systems without kerberos headers.
1060     * Allow winbindd to handle authentication requests only when 
1061       started without either an 'idmap uid' or 'idmap gid' range.
1062     * Fix the build for systems without ldap headers.
1063     * Fix interaction between share security descriptor and the 
1064       'read only' smb.conf option.
1065     * Fix bug that caused _samr_lookupsids() with more than 32 (
1066       MAX_REF_DOMAINS) SIDs to fail.
1067     * Allow the 'idmap backend' parameter to accept a list of 
1068       LDAP servers for failover purposes.
1069     * Revert code in smbd to remove a tdb when it has become 
1070       corrupted.
1071     * Add paranoid checks when mapping SIDs to a uid/gid to 
1072       ensure that the type is correct.
1073     * Initial work on getting client support for sending mailslot 
1074       datagrams.
1075     * Add 'ldap timeout' parameter.
1076     * Dont always uppercase 'afs username map'.
1077     * Expand aliases for getusersids as well.
1078     * Improved NT->AFS ACL mapping VFS module.
1079
1080
1081 o   Herb Lewis <herb@samba.org>
1082     * Add the acls debug class.
1083     * Fix logic bug in netbios name truncate routine.
1084     * Fix smbd crash caused by smbtorture IOCTL test.
1085     * Fix errno tromping before calling iconv to reset the 
1086       conversion state.
1087     * need to leave empty dacl so we can remove last ACE.
1088
1089
1090 o    Jianliang Lu <Jianliang.Lu@getronics.com>
1091     * Fix to stop smbd hanging on missing group member in 
1092       get_memberuids().
1093     * Make sure Samba returns the correct group types.
1094      * Reset the bad password count password counts upon a successful login.
1095      
1096      
1097 o   Jason Mader <jason@ncac.gwu.edu>
1098     * BUG 1385: Don't use non-consts in a structure initialization.
1099     
1100
1101 o   Jim McDonough <jmcd@us.ibm.com>
1102     * BUG 1279: SMBjobid fix for Samba print servers running on 
1103       Big-Endian platforms.
1104
1105
1106 o   Joe Meadows <jameadows@webopolis.com>
1107     * Add optional timeout parameter to ldap open calls.
1108     * Allow get_dc_list() to check the negative cache.
1109
1110
1111 o   Stefan Metzmacher <metze@samba.org>    
1112     * fix a configure logic bug for linux/XFS quotas when 
1113       using --with-sys-quotas.
1114     * Use quota debug class in quota code.
1115     * print out the SVN revision by configure,
1116     
1117
1118 o   Buchan Milne <bgmilne@mandrake.org>
1119     * Mandrake packaging fixes.
1120     
1121     
1122 o   Lars Mueller <lmuelle@suse.de>
1123     * BUG 1279: Added 'printcap cache time' parameter.
1124     * Fix afs related build issues on SuSE.
1125     * Fix compiler warnings in the kerberos client code.
1126
1127
1128 o   James Peach <jpeach@sgi.com>
1129     * More iconv detection fixes for IRIX.
1130     * Compile fixed for systems that do not have C99/UNIX98 compliant 
1131       vsnprintf by default.
1132     * Prevent smbd from attempting to use sendfile at all if it is 
1133       not supported by the server's OS.
1134     * Allow SWAT to search for index.html when serving html files 
1135       in a directory.
1136
1137
1138 o   Dan Peterson
1139     * Implement NFS quota support on FreeBSD.
1140
1141
1142 o   Tim Potter <tpot@samba.org>
1143     * BUG 1360: Use -Bsymbolic when creating shared libraries to 
1144       avoid conflicts with identical symbols in the global namespace 
1145       when loading libnss_wins.so.
1146
1147
1148 o   Richard Renard <rrenard@idealx.com>
1149     * Save the current password as it is being changed into the 
1150       password history list.
1151
1152
1153 o   Richard Sharpe <rsharpe@samba.org>
1154     * Fix error return codes on some lock messages.
1155     * BUG 1178: Make the libsmbclient routines callable 
1156       by C++ programs.
1157     * BUG 1333: Make sure we return an error code when 
1158       things go wrong.
1159     * BUG 1301: Return NT_STATUS_SHARING_VIOLATION when 
1160       share mode locking requests fail.
1161
1162
1163 o   Simo Sorce <idra@samba.org>
1164     * Update Debian stable & unstable packaging.
1165     * Tidy up parametric options in testparm output.
1166
1167
1168 o   Richard Sharpe <rsharpe@samba.org>
1169     * Add sigchild handling to winbindd to restart the child 
1170       daemon if necessary.
1171
1172
1173 o   Tom Shaw <tomisfaraway@gmail.com>
1174     * Use winbindd_fill_pwent() consistently.
1175
1176
1177 o   Nick Thompson <nickthompson@agere.com>
1178     * Protect smbd against broken filesystems which return zero 
1179       blocksize.
1180
1181
1182 o   Andrew Tridgell <tridge@samba.org>
1183     * Fixed bug in handling of timeout in socket connections.
1184      
1185
1186 o   Nick Wellnhofer <wellnhofer@aevum.de>    
1187     * Prevent lp_interfaces() list from being corrupted.  Fixes
1188       bug where nmbd would lose the list of network interfaces 
1189       on the system and consequently shutdown.
1190
1191       
1192 o   James Wilkinson <jwilk@alumni.cse.ucsc.edu>
1193     * Fix ntlm_auth memory leaks.
1194
1195
1196 o   Jelmer Vernooij <jelmer@samba.org>
1197     * Additional NT status to unix error mappings.
1198     * BUG 478: Rename vsnprintf to smb_vsnprintf so we don't 
1199       get duplicate symbol errors.
1200     * Return an error when the last command read from stdin 
1201       fails in smbclient.
1202     * Prepare for better error checking in tar.
1203     * BUG 1474: Fix build of --with-expsam stuff on Solaris.
1204       
1205
1206 Changes for older versions follow below:
1207
1208       --------------------------------------------------
1209       
1210                  =============================
1211                  Release Notes for Samba 3.0.5
1212                          July 20, 2004
1213                  =============================
1214
1215 Please note that Samba 3.0.5 is identical to Samba 3.0.4 with 
1216 the exception of correcting the two security issues outlined 
1217 below.
1218
1219 ######################## SECURITY RELEASE ########################
1220
1221 Summary:       Multiple Potential Buffer Overruns in Samba 3.0.x
1222 CVE ID:        CAN-2004-0600, CAN-2004-0686
1223                (http://cve.mitre.org/)
1224
1225
1226 This is the latest stable release of Samba. This is the version
1227 that production Samba servers should be running for all current
1228 bug-fixes.
1229
1230 It has been confirmed that versions of Samba 3 prior to v3.0.4
1231 are vulnerable to two potential buffer overruns.  The individual
1232 details are given below.
1233
1234 -------------
1235 CAN-2004-0600
1236 -------------
1237
1238 Affected Versions:      Samba 3.0.2 and later
1239
1240 The internal routine used by the Samba Web Administration
1241 Tool (SWAT v3.0.2 and later) to decode the base64 data
1242 during HTTP basic authentication is subject to a buffer
1243 overrun caused by an invalid base64 character.  It is
1244 recommended that all Samba v3.0.2 or later installations
1245 running SWAT either (a) upgrade to v3.0.5, or (b) disable
1246 the swat administration service as a temporary workaround.
1247
1248 This same code is used internally to decode the
1249 sambaMungedDial attribute value when using the ldapsam
1250 passdb backend. While we do not believe that the base64
1251 decoding routines used by the ldapsam passdb backend can
1252 be exploited, sites using an LDAP directory service with
1253 Samba are strongly encouraged to verify that the DIT only
1254 allows write access to sambaSamAccount attributes by a
1255 sufficiently authorized user.
1256
1257 The Samba Team would like to heartily thank Evgeny Demidov
1258 for analyzing and reporting this bug.
1259
1260 -------------
1261 CAN-2004-0686
1262 -------------
1263
1264 Affected Versions:      Samba 3.0.0 and later
1265
1266 A buffer overrun has been located in the code used to support
1267 the 'mangling method = hash' smb.conf option.  Please be aware
1268 that the default setting for this parameter is 'mangling method
1269 = hash2' and therefore not vulnerable.
1270
1271 Affected Samba 3 installations can avoid this possible security
1272 bug by using the default hash2 mangling method.  Server
1273 installations requiring the hash mangling method are encouraged
1274 to upgrade to Samba 3.0.5.
1275
1276
1277 ##################################################################
1278
1279     --------------------------------------------------
1280                  
1281                  =============================
1282                  Release Notes for Samba 3.0.4
1283                           May 8, 2004
1284                  =============================
1285
1286 Common bugs fixed in Samba 3.0.4 include:
1287
1288   o Password changing after applying the patch described in 
1289     the Microsoft KB828741 article to Windows clients.
1290   o Crashes in smbd.
1291   o Managing print jobs via Windows on Big-Endian servers.
1292   o Several memory leaks in winbindd and smbd.
1293   o Compile issues on AIX and *BSD.
1294
1295 Changes since 3.0.3
1296 --------------------
1297
1298 commits
1299 -------
1300
1301 o   Jeremy Allison <jra@samba.org>
1302     * Fix path processing for DeletePrinterDriverEx().
1303     * BUG 1303: Fix for Microsoft hotfix MS04-011 password change 
1304       breakage.
1305
1306
1307 o   Andrew Bartlett <abartlet@samba.org>
1308     * Fix alignment bug in GetDomPwInfo().
1309
1310
1311 o   Alexander Bokovoy <ab@samba.org>
1312     * Fix utime[s]() issues in smbwrapper on systems 
1313       that can boot both the 2.4 and 2.6 Linux kernels.
1314
1315
1316 o   Gerald Carter <jerry@samba.org>
1317     * Fedora packaging fixes.
1318     * BUG 1302: Fix seg fault by not trying to optimize a list of 
1319       invalid gids using the wrong array size.
1320     * BUG 1309: fix seg fault caused by trying to strdup(NULL)
1321       seen when 'security = share'.
1322     * Fix problems when using IBM's compiler on AIX.
1323     * Link Developer's Guide, Example Guide, and multi-page HOWTO
1324       into SWAT's welcome page.
1325     * BUG 1293: fix double free in printer publishing code.
1326
1327     
1328 o   Wim Delvaux <wim.delvaux@adaptiveplanet.com>
1329     * Fix for handling timeouts in socket connections.
1330
1331
1332 o   Michel Gravey <michel.gravey@optogone.com>
1333     * BUG 483: patch from  to fix password hash creation in SWAT.
1334     
1335
1336 o   Volker Lendecke <vl@samba.org>
1337     * Close the open NT pipes before the tdis.
1338     * Fix AFS related build issues.
1339     * Handle error conditions when base64 encoding a blob of 0 bytes.
1340
1341     
1342 o   Herb Lewis <herb@samba.org>
1343     * Added 'acls' debug class.
1344
1345 o   kawasa_r@itg.hitachi.co.jp
1346     * Multiple variable initialization and memory leak fixes.
1347     
1348     
1349 o   Stephan Kulow <coolo@suse.de>
1350     * Fix string length bug in libsmbclient that caused KDE's 
1351       Konqueror to crash.
1352     * BUG 429: More libsmbclient fixes.
1353
1354
1355 o   Jim McDonough <jmcd@us.ibm.com>
1356     * BUG 1007, 1279: Store the print job using a little-endian key.
1357
1358
1359 o   Eric Mertens
1360     o Compile fix for OpenBSD (ENOTSUP not supported).
1361
1362     
1363 o   Stefan Metzmacher <metze@samba.org>
1364     * Correct bug in disks quota views from explorer.
1365
1366     
1367 o   Tim Potter <tpot@samba.org>
1368     BUG 1305: Correct debug output.
1369
1370
1371 o   Richard Sharpe <rsharpe@samba.org>
1372     * Fix incorrect error code mapping.
1373
1374
1375 o   Jelmer Vernooij <jelmer@samba.org>
1376     * Add additional NT_STATUS errorm mappings.
1377     
1378
1379 Changes for older versions follow below:
1380
1381     --------------------------------------------------
1382
1383                  =============================
1384                  Release Notes for Samba 3.0.3
1385                         April 29, 2004
1386                  =============================
1387
1388
1389 Common bugs fixed in Samba 3.0.3 include:
1390
1391   o Crash bugs and change notify issues in Samba's printing code.
1392   o Honoring secondary group membership on domain member servers.
1393   o TDB scalability issue surrounding the TDB_CLEAR_IF_FIRST flag.
1394   o Substitution errors for %[UuGg] in smb.conf.
1395   o winbindd crashes when using ADS security mode.
1396   o SMB signing errors.
1397   o Delays in winbindd startup caused by unnecessary 
1398     connections to trusted domain controllers.
1399   o Various small memory leaks.
1400   o Winbindd failing due to expired Kerberos tickets.
1401
1402 New features introduced in Samba 3.0.3 include:
1403
1404   o Improved support for i18n character sets.
1405   o Support for account lockout policy based on
1406     bad password attempts.
1407   o Improved support for long password changes (>14
1408     characters) and strong password enforcement.
1409   o Support for Windows aliases (i.e. nested groups).
1410   o Experimental support for storing DOS attribute on files
1411     and folders in Extended Attributes.
1412   o Support for local nested groups via winbindd.
1413   o Specifying options to be passed directly to the CUPS libraries.
1414
1415 Please be aware that the Samba source code repository was 
1416 migrated from CVS to Subversion on April 4, 2004.  Details on 
1417 accessing the Samba source tree via anonymous svn can be found 
1418 at http://svn.samba.org/samba/subversion.html.
1419
1420
1421 Changes since 3.0.2a
1422 --------------------
1423 smb.conf changes
1424 ----------------
1425
1426     Parameter Name              Action
1427     --------------              ------
1428     cups options                New
1429     ea support                  New
1430     only user                   Deprecated
1431     store dos attributes        New
1432     unicode                     Removed
1433     winbind nested groups       New
1434
1435     
1436 commits
1437 -------
1438
1439 o   Jeremy Allison <jra@samba.org>
1440     * Ensure that Kerberos mutex is always properly unlocked.
1441     * Removed Heimdal "in-memory keytab" support.
1442     * Fixup the 'multiple-vuids' bugs in our server code.
1443     * Correct return code from lsa_lookup_sids() on unmapped
1444       sids (based on work by vl@samba.org).
1445     * Fix the "too many fcntl locks" scalability problem 
1446       raised by tridge.
1447     * Fixup correct (as per W2K3) returns for lookupsids 
1448       as well as lookupnames.
1449     * Fixups for delete-on-close semantics as per Win2k3 behavior.
1450     * Make SMB_FILE_ACCESS_INFORMATION call work correctly.
1451     * Fix "unable to initialize" bug when smbd hasn't been run with 
1452       new system and a user is being added via pdbedit/smbpasswd.
1453     * Added NTrename SMB (0xA5).
1454     * Fixup correct timeout values for blocking lock timeouts.
1455     * Fix various bugs reported by 'gentest'.
1456     * More locking fixes in the case where we own the lock.
1457     * Fix up regression in IS_NAME_VALID and renames.
1458     * Don't set allocation size on directories.
1459     * Return correct error code on fail if file exists and target 
1460       is a directory.
1461     * Added client "hardlink" comment to test doing NT rename with 
1462       hard links.  Added hardlink_internals() code - UNIX extensions 
1463       now use this as well.
1464     * Use a common function to parse all pathnames from the wire for 
1465       much closer emulation of Win2k3 error return codes.
1466     * Implement check_path_syntax() and rewrite string sub 
1467       functions for better multibyte support.
1468     * Ensure msdfs referrals are multibyte safe.
1469     * Allow msdfs symlink syntax to be more forgiving.
1470       eg. sym_link -> msdfs://server/share/path/in/share 
1471       or  sym_link -> msdfs:\\server\share\path\in\share.
1472     * Cleanup multibyte netbios name support in nmbd ( based on patch
1473       by MORIYAMA Masayuki <moriyama@miraclelinux.com>).
1474     * Fix check_path_syntax() for multibyte encodings which have 
1475       no '\' as second byte (based on work by ab@samba.org.
1476     * Fix the "dfs self-referrals as anonymous user" problem
1477       (based on patch from vl@samba.org).
1478     * BUG 1064: Ensure truncate attribute checking is done correctly 
1479       on "hidden" dot files.
1480     * Fix bug in anonymous dfs self-referrals again.
1481     * Fix get/set of EA's in client library
1482     * Added support for OS/2 EA's in smbd server.
1483     * Added 'ea support' parameter to smb.conf.
1484     * Added 'store dos attributes' parameter to smb.conf.
1485     * Fix wildcard identical rename.
1486     * Fix reply_ctemp - make compatible with w2k3.
1487     * Fix wildcard unlink.
1488     * Fix wildcard src with wildcard dest renames.      
1489     * BUG 1139: Fix based on suggestion by jdev@panix.com.
1490       swap lookups for user and group - group will do an
1491       algorithmic lookup if it fails, user won't.
1492     * Make EA's lookups case independent.
1493     * Fix SETPATHINFO in 'unix extensions' support.
1494     * Make 3.x pass the Samba 4.x RAW-SEARCH tests - except for 
1495       the UNIX info levels, and the short case preserve names.
1496
1497
1498 o   Timur Bakeyev <timur@com.bat.ru>
1499     * BUG 1144: only set --with-fhs when the argument is 'yes'
1500     * BUG 1152: Allow python modules to build despite libraries added 
1501       to LDFLAGS instead of LDPATH.
1502     * BUG 1141: Fix nss*.so names on FreeBSD 5.x.
1503
1504
1505 o   Craig Barratt <cbarratt@users.sourceforge.net>
1506     * BUG 389: Allow multiple exclude arguments with smbclient 
1507       tar -Xr options (better support for Amanda backup client).
1508
1509
1510 o   Andrew Bartlett <abartlet@samba.org>
1511     * Include support for linking with cracklib for enforcing strong 
1512       password changes.
1513     * Add support for >14 character password changes from Windows 
1514       clients.
1515     * Add 'admin set password' capability to 'net rpc'.
1516     * Allow 'net rpc samdump' to work with any joined domain 
1517       regardless of smb.conf settings.
1518     * Use an allocated buffer for count_chars.
1519     * Add sanity checks for changes in the domain SID in an 
1520       LDAP DIT.
1521     * Implement python unit tests for Samba's multibyte string 
1522       support.
1523     * Remove 'unicode' smb.conf option.
1524     * BUG 1138: Fix support for 'optional' SMB signing and other 
1525       signing bugs.
1526     * BUG 169: Fix NTLMv2-only behavior.
1527     * Ensure 'net' honors the 'netbios name' in the smb.conf by 
1528       default.
1529     * Support SMB signing on connections using only the LANMAN 
1530       password and generate the correct the 'session key' for these 
1531       connections.
1532     * Implement --required-membership-of=, an ntlm_auth option 
1533       that restricts all authentication to members of this particular 
1534       group.
1535     * Improve our fall back code for password changes.
1536     * Only send the ntlm_auth 'ntlm-server-1' helper client a '.' 
1537       after the server had said something (such as an error).
1538     * Add 'ntlm-server-1' helper protocol to ntlm_auth.
1539
1540       
1541 o   Alexander Bokovoy <ab@samba.org>
1542     * Fix incorrect size calculation of the directory name 
1543       in recycle.so.
1544     * Fix problems with very long filenames in both smbd and smbclient
1545       caused by truncating paths during character conversions.
1546     * Fix smbfs problem with Tree Disconnect issued before smbfs 
1547       starts its work.
1548
1549
1550 o   Gerald Carter <jerry@samba.org>
1551     * BUG 850: Fix 'make installmodules' bug on True64.
1552     * BUG 66: mark 'only user' deprecated.
1553     * Remove corrupt tdb and shutdown (only for printing tdbs, 
1554       connections, sessionid & locking).
1555     * decrement smbd counter in connections.tdb in smb_panic().
1556     * RedHat specfile updates.
1557     * Fix xattr.h build issue on Debian testing and SuSE 8.2.
1558     * BUG 1147; bad pointer case in get_stored_queue_info() 
1559       causing seg fault.
1560     * BUG 761: read the config file before initialized default 
1561       values for printing options; don't default to bsd printing 
1562       Linux.
1563     * Allow the 'printing' parameter to be set on a per share basis.
1564     * BUG 503: RedHat/Fedora packaging fixes regarding logrotate.
1565     * BUG 848: don't create winbind local users/groups that already 
1566       exist in the tdb.
1567     * BUG 1080: fix declaration of SMB_BIG_UINT (broke compile on 
1568       LynxOS/ppc).
1569     * BUG 488: fix the 'show client in col 1' button and correctly 
1570       enumerate active connections.
1571     * BUG 1007 (partial): Fix abort in smbd caused by byte ordering 
1572       problem when storing the updating pid for the lpq cache.
1573     * BUG 1007 (partial): Fix print change notify bugs.
1574     * BUG 1165, 1126: Fix bug with secondary groups (security = ads) 
1575       and winbind use default domain = yes.  Also ensures that 
1576     * BUG 1151: Ensure that winbindd users are passed through 
1577       the username map.
1578     * Fix client rpc binds for ASU derived servers (pc netlink, 
1579       etc...).
1580     * BUG 417, 1128: Ensure that the current_user_info is set
1581       consistently so that %[UuGg] is expanded correctly.
1582     * BUG 1195: Fix crash in winbindd when the ADS server is 
1583       unavailable.
1584     * BUG 1185: Set reconnect time to be the same as the 
1585       'winbind cache time'.
1586     * Ensure that we return the sec_desc in smb_io_printer_info_2.
1587     * Change Samba printers Win32 attribute to PRINTER_ATTRIBUTE_LOCAL.
1588     * BUG 1095: Honor the '-l' option in smbclient.
1589     * BUG 1023: surround get_group_from_gid() with become_unbecome_root() 
1590       block.
1591     * Ensure server schannel uses the auth level requested by the 
1592       client.
1593     * Removed --with-cracklib option due to potential crash issue.
1594     * Fix -lcrypto linking problem with wbinfo.
1595     * BUG 761: allow printing parameter to set defaults on a per 
1596       share basis.
1597     * Add 'cups options' parameter to allow raw printing without 
1598       changing /etc/cups/cupsd.conf.
1599     * BUG 1081, 1183: Added remove_duplicate_gids() to smbd and 
1600       winbindd.
1601     * BUG 1246: Fix typo in Fedora /etc/init.d/winbind.
1602     * BUG 1288: resolve any machine netbios name (0x00) and not just 
1603       servers (0x20).
1604     * BUG 1199: Fix potential symlink issue in 
1605       examples/printing/smbprint.
1606
1607
1608 o   Robert Dahlem <Robert.Dahlem@gmx.net>
1609     * BUG 1048:  Don't return short names when when 'mangled names = no'
1610
1611
1612 o   Guenther Deschner <gd@suse.com>
1613     * Remove hard coded attribute name in the ads ranged retrieval
1614       code.
1615     * Add --with-libdir and --with-mandir to autoconf script.
1616
1617
1618 o   Bostjan Golob <golob@gimb.org>
1619     * BUG 1046: Fix  getpwent_list() so that the username is not 
1620       overwritten by other fields.
1621
1622
1623 o   Landon Fuller <landonf@opendarwin.org>
1624     * BUG 1232: patch from landonf@opendarwin.org (Landon Fuller) 
1625       to fix user/group enumeration on systems whose libc does not 
1626       call setgrent() before trying to enumerate users (i.e. 
1627       FreeBSD 5.2).
1628
1629
1630 o   Steve French <sfrench@us.ibm.com>
1631     * Update mount.cifs to version 1.1.
1632     * Disable dev (MS_NODEV) on user mounts from cifs vfs.
1633     * Fixes to minor security bug in the mount helper.
1634     * Fix credential file mounting for cifs vfs.
1635     * Fix free of incremented pointer in cifsvfs mount helper.
1636     * Fix path canonicalization of the mount target path and help 
1637       text display in the cifs mount helper.
1638     * Add missing guest mount option for mount.cifs.
1639
1640
1641 o   SATOH Fumiyasu <fumiya@miraclelinux.com>
1642     * BUG 1055; formatting fixes for 'net share'.
1643     * BUG 692: correct truncation of share names and workgroup 
1644       names in smbclient.
1645     * BUG 1088: use strchr_m() for query_host (smbclient -L).
1646     * Patch from to internally count characters correctly.
1647
1648
1649 o   Paul Green <paulg@samba.org>
1650     * Update VOS _POSIX_C_SOURCE macro to 200112L.
1651     * Fix bug in configure.ion by moving the first use of 
1652       AC_CHECK_HEADERS so it is always executed.
1653     * Fix configure.in to only use $BLDSHARED to select whether to 
1654       build static or shared libraries.
1655
1656
1657 o   Pat Haywarrd <Pat.Hayward@propero.net>
1658     * Make the session_users list dynamic (max of 128K).
1659     
1660     
1661 o   Cal Heldenbrand <calzplace@yahoo.com> 
1662     * Fix for for 'pam_smbpass migrate' functionality.
1663
1664
1665 o   Chris Hertel <crh@samba.org>
1666     * fix enumeration of shares 12 characters in length via 
1667       smbclient.
1668
1669
1670 o   Ulrich Holeschak <ulrich@holeschak.de>
1671     * BUG 932: fix local password change using pam_smbpass
1672
1673
1674 o   Krischan Jodies <kj@sernet.de>
1675     * Implement 'net rpc group delete'
1676
1677
1678 o   John Klinger <john.klinger@lmco.com>
1679     * Return NSS_SUCCESS once the max number of gids possible 
1680        has been found in initgroups() on Solaris.
1681     * BUG 1182: Re-enable the -n 'no cache' option for winbindd.
1682
1683
1684 o   Volker Lendecke <vl@samba.org>
1685     * Fix success message for net groupmap modify.
1686     * Fix errors when enumerating members of groups in 'net rpc'.
1687     * Match Windows behavior in samr_lookup_names() by returning
1688       ALIAS(4) when you search in BUILTIN. 
1689     * Fix server SAMR code to be able to set alias info for 
1690       builtin as well. 
1691     * Fix duplication of logic when creating groups via smbd.
1692     * Ensure that the HWM values are set correctly after running 
1693       'net idmap'.
1694     * Add 'net rpc group add'.
1695     * Implement 'net groupmap set' and 'net groupmap cleanup'.
1696     * Add 'net rpc group [add|del]mem' for domain groups and aliases.
1697     * Fix wb_delgrpmem (wbinfo -o).
1698     * As a DC we should not reply to lsalookupnames on DCNAME\\user.
1699     * Fix sambaUserWorkstations on a Samba DC.
1700     * Implement wbinfo -k: Have winbind generate an AFS token after
1701       authenticating the user.
1702     * Add expand_msdfs VFS module for providing referrals based on the
1703       the client's IP address.
1704     * Implement client side NETLOGON GetDCName function.
1705     * Fix caching of name->sid lookups.
1706     * Add support in winbindd for expanding nested local groups.
1707     * Fix memleak in winbindd.
1708     * Fix msdfs proxy.
1709     * Don't list domain groups from BUILTIN.
1710     * Fix memleak in policy handle utility functions.
1711     * Decrease winbindd startup time by only contacting trusted 
1712       domains as necessary.
1713     * Allow winbindd to ask the DC for its domain for a trusted 
1714       DC.
1715     * Fix Netscape DS schema based on comments from 
1716       <thomas.mueller@christ-wasser.de>.
1717     * Correct case where adding a domain user to a XP local group 
1718       did a lsalookupname on the user without domain prefix, and 
1719       failed.
1720     * Fix segfault in winbindd caused by 'wbinfo -a'.
1721     
1722
1723 o   Herb Lewis <herb@samba.org>
1724     * Fix typo for tag in proto file.
1725     * Add missing #ifdef HAVE_BICONV stuff.
1726     * Truncate Samba's netbios name at the first '.' (not 
1727       right to left).
1728
1729
1730 o   Derrell Lipman <Derrell.Lipman@UnwiredUniverse.com>
1731     * Bug fixes and enhancements to libsmbclient library.
1732
1733     
1734 o   Jianliang Lu <j.lu@tiesse.com>
1735     * Enforce the 'user must change password at next login' flag.
1736     * Decode meaning of 'fields present' flags (improves support 
1737       for usrmgr.exe).
1738     * NTLMv2 fixes.
1739     * Don't force an upper case domain name in the ntlmssp code.
1740     
1741
1742 o   L. Lucius <ib@digicron.com>.
1743     * type fixes.
1744
1745
1746 o   Jim McDonough <jmcd@us.ibm.com>
1747     * Add versioning support to tdbsam.
1748     * Update the IBM Directory Server schema with the OpenLDAP 
1749       file.
1750     * Various decoding fixes to improve usrmgr.exe support.
1751     * Fix statfs redeclaration of statfs struct on ppc
1752     * Implement support for password lockout of Samba domain 
1753       controllers and standalone servers.
1754     * Get MungedDial attribute actually working with full TS 
1755       strings in it for pdb_ldap.
1756     * BUG 1208 (partial): Improvements for working with expired krb5 
1757       tickets in winbindd.
1758     * Use timegm, or our already existing replacement instead of 
1759       timezone (spotted by Andrzej Tobola <san@iem.pw.edu.pl>).
1760     * Remove modifyTimestamp from list of our attributes.  
1761     * Fix lsalookupnames to check for domain users as well as local 
1762       users. 
1763     * Merge struct uuid replacement for GUID from trunk.
1764     * BUG 1208: Finish support for handling expired tickets in 
1765       winbindd (in conjunction with Guenther Deschner <gd@suse.de>).
1766
1767
1768 o   Stefan Metzmacher <metze@samba.org>
1769     * Implement new VERSION schema based on subversion revision 
1770       numbers.
1771     * Add shadow_copy vfs module.
1772     * Fix segault in login_cache support.
1773
1774
1775 o    Heinrich Mislik <Heinrich.Mislik@univie.ac.at>
1776      o BUG 979 -- Fix quota display on AIX.
1777
1778
1779 o   James Peach <jpeach@sgi.com>
1780     * Correct check for printf() format when using the SGI MIPSPro 
1781       compiler.
1782     * BUG 1038: support backtrace for 'panic action' on IRIX.
1783     * BUG 768: Accept profileing arg to IRIX init script.
1784     * BUG 748: Relax arg parsing to sambalp script (IRIX).
1785     * BUG 758: Fix pdma build.
1786     * Search IRIX ABI paths for libiconv.  Based on initial fix from 
1787       Jason Mader.
1788       
1789
1790 o   Kurt Pfeifle <kpfeifle@danka.de>
1791     * Add example shell script for migrating drivers and printers 
1792       from a Windows print server to a Samba print server using 
1793       smbclient/rpcclient (examples/printing/VamireDriversFunctions).
1794
1795
1796 o   Tim Potter <tpot@samba.org>
1797     * Fix logic bug in tdb non-blocking lock routines when 
1798       errno == EAGAIN.
1799     * BUG 1025: Include sys/acl.h in check for broken nisplus 
1800       include files.      
1801     * BUG 1066: s/printf/d_printf/g in SWAT.
1802     * BUG 1098: rename internal msleep() function to fix build 
1803       problems on AIX.
1804     * BUG 1112: Fix for writable printerdata problem in python bindings.
1805     * BUG 1154: Remove reference to <sys/mman.h> in tdbdump.c.
1806     * BUG 1155: enclose use of fchown() with guards.
1807     * Relicense tdb python module as LGPL.
1808
1809
1810 o   Richard Sharpe <rsharpe@samba.org>
1811     * Add support to smbclient for multiple logins on the same 
1812       session (based on work by abartlet@samba.org).
1813     * Correct blocking condition in smbd's use of accept() on IRIX.
1814     * Add support for printing out the MAC address on nmblookup.
1815
1816
1817 o   Simo Sorce <idra@samba.org>
1818     * Replace unknown_3 with fields_present in SAMR code.
1819     * More length checks in strlcat().
1820
1821
1822 o   Andrew Tridgell <tridge@samba.org>
1823     * Rewrote the AIX UESS backend for winbindd.
1824     * Fixed compilation with --enable-dmalloc.
1825     * Change tdb license to LGPL (see source/tdb/tdb.c).
1826     * Force winbindd to use schannel in clients connections to 
1827       DC's if possible.
1828
1829
1830 o   Jelmer Vernooij <jelmer@samba.org>
1831    * Fix ETA Calculation when resuming downloads in smbget.
1832    * Add -O (for writing downloaded files to standard out) 
1833      based on patch by Bas van Sisseren <bas@dnd.utwente.nl>.
1834     * Fix syntax error in example mysql table
1835
1836            
1837 o   TAKEDA yasuma <yasuma@miraclelinux.com>
1838     * BUG 900: fix token processing in cmd_symlink, cmd_link, 
1839       cmd_chown, cmd_chmod smbclient functions.
1840
1841
1842 o   Shiro Yamada <shiro@miraclelinux.com>
1843     * BUG 1129: install image files for SWAT.
1844
1845       
1846     --------------------------------------------------
1847
1848                   ==============================
1849                   Release Notes for Samba 3.0.2a
1850                         February 13, 2004
1851                   ==============================
1852
1853 Samba 3.0.2a is a minor patch release for the 3.0.2 code base
1854 to address, in particular, a problem when using pdbedit to 
1855 sanitize (--force-initialized-passwords) Samba's tdbsam 
1856 backend.   This is the latest stable release of Samba. This 
1857 is the version that all production Samba servers should be 
1858 running for all current bug-fixes.  
1859
1860 ******************* Attention! Achtung! Kree! *********************
1861
1862 Beginning with Samba 3.0.2, passwords for accounts with a last 
1863 change time (LCT-XXX in smbpasswd, sambaPwdLastSet attribute in
1864 ldapsam, etc...) of zero (0) will be regarded as uninitialized 
1865 strings.  This will cause authentication to fail for such
1866 accounts.  If you have valid passwords that meet this criteria, 
1867 you must update the last change time to a non-zero value.  If you 
1868 do not, then  'pdbedit --force-initialized-passwords' will disable 
1869 these accounts and reset the password hashes to a string of X's.
1870
1871 ******************* Attention! Achtung! Kree! *********************
1872
1873
1874 Changes since 3.0.2
1875 -------------------
1876
1877 commits
1878 -------
1879
1880 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1881 details.  The list of changes per contributor are as follows:
1882
1883
1884 o   Jeremy Allison <jra@samba.org>
1885     * Added paranoia checks in parsing code.
1886     
1887
1888 o   Andrew Bartlett <abartlet@samba.org>
1889     * Ensure that changes to uninitialized passwords in ldapsam 
1890       are written to the DIT.
1891
1892
1893 o   Gerald (Jerry) Carter <jerry@samba.org>
1894     * Fixed iterator in tdbsam.
1895     * Fix bug that disabled accounts with a valid NT password 
1896       hash, but no LanMan hash.
1897     
1898
1899 o   Steve French <sfrench@us.ibm.com>
1900     * Added missing nosetuid and noexec options.
1901
1902     
1903 o   Bostjan Golob <golob@gimb.org>
1904     * BUG 1046: Don't overwrite usernames of entries returned 
1905       by getpwent_list().
1906
1907
1908 o   Sebastian Krahmer <krahmer@suse.de>
1909     * Fixed potential crash bug in NTLMSSP parsing code.
1910
1911
1912 o   Tim Potter <tpot@samba.org>
1913     * Fixed logic in tdb_brlock error checking.
1914
1915     
1916 o   Urban Widmark <urban@teststation.com>
1917     * Set nosuid,nodev flags in smbmnt by default.
1918     
1919     
1920         --------------------------------------------------
1921                   
1922                   =============================
1923                   Release Notes for Samba 3.0.2
1924                         February 9, 2004
1925                   =============================
1926
1927 It has been confirmed that previous versions of Samba 3.0 are
1928 susceptible to a password initialization bug that could grant an 
1929 attacker unauthorized access to a user account created by the
1930 mksmbpasswd.sh shell script.
1931
1932 The Common Vulnerabilities and Exposures project (cve.mitre.org) 
1933 has assigned the name CAN-2004-0082 to this issue.
1934
1935 Samba administrators not wishing to upgrade to the current 
1936 version should download the 3.0.2 release, build the pdbedit 
1937 tool, and run 
1938
1939    root# pdbedit-3.0.2 --force-initialized-passwords
1940       
1941 This will disable all accounts not possessing a valid password
1942 (e.g. the password field has been set a string of X's).
1943
1944 Samba servers running 3.0.2 are not vulnerable to this bug 
1945 regardless of whether or not pdbedit has been used to sanitize
1946 the passdb backend.
1947
1948 Some of the more visible bugs in 3.0.1 addressed in the 3.0.2
1949 release include:
1950
1951   o Joining a Samba domain from Pre-SP2 Windows 2000 clients.
1952   o Logging onto a Samba domain from Windows XP clients.
1953   o Problems with the %U and %u smb.conf variables in relation to 
1954     Windows 9x/ME clients.
1955   o Kerberos failures due to an invalid in memory keytab detection
1956     test.
1957   o Updates to the ntlm_auth tool.
1958   o Fixes for various SMB signing errors.
1959   o Better separation of WINS and DNS queries for domain controllers.
1960   o Issues with nss_winbind FreeBSD and Solaris.
1961   o Several crash bugs in smbd and winbindd.
1962   o Output formatting fixes for smbclient for better compatibility
1963     with scripts based on the 2.2 version.
1964
1965
1966 Changes since 3.0.1
1967 -------------------
1968
1969 smb.conf changes
1970 ----------------
1971
1972     Parameter Name              Action
1973     --------------              ------
1974     ldap replication sleep      New
1975     read size                   removed (unused)
1976     source environment          removed (unused)
1977
1978
1979 commits
1980 -------
1981
1982 Please refer to the CVS log for the SAMBA_3_0 branch for complete
1983 details.  The list of changes per contributor are as follows:
1984
1985 o   Jeremy Allison <jra@samba.org>
1986     * Revert change that broke Exchange clear text samlogons.
1987     * Fix gcc 3.4 warning in MS-DFS code.
1988     * Tidy up of NTLMSSP code.
1989     * Fixes for SMB signing errors
1990     * BUG 815: Workaround NT4 bug to support plaintext
1991       password logins and UNICODE.
1992     * Fix SMB signing bug when copying large files.
1993     * Correct error logic in mkdir_internals() (caused a panic
1994       when combined with --enable-developer).
1995     * BUG 830: Protect against crashes due to bad character 
1996       conversions.
1997
1998       
1999 o   Petri Asikainen <paca@sci.fi>
2000     * BUG 330, 387:Fix single valued attribute updates when 
2001       working with Novell NDS.
2002
2003
2004 o   Andrew Bartlett <abartlet@samba.org>
2005     * Correctly handle per-pipe NTLMSSP inside a NULL session.
2006     * Fix segfault in gencache 
2007     * Fix early free() of encrypted_session_key.
2008     * Change DC lookup routines to more carefully separate
2009       DNS names (realms) from NetBIOS domain names.
2010     * Add new sid_to_dn() function for internal winbindd use.
2011     * Refactor cli_ds_enum_domain_trusts().
2012     * BUG 707: Implement range retrieval of ADS attributes (based 
2013       on work from Volker <vl@samba.org> and Guenther Deschner 
2014       <gd@suse.com>).
2015     * Automatically initialize the signing engine if a session key
2016       is available.
2017     * BUG 916: Do not perform a + -> ' ' substitution for squid URL 
2018       encoded strings, only form input in SWAT.
2019     * Resets the NTLMSSP state for new negotiate packets.
2020     * Add 2-byte alignments in net_samlogon() queries to parse 
2021       odd-length plain text passwords.
2022     * Allow Windows groups with no members in winbindd.
2023     * Allow normal authentication in the absence of a server 
2024       generated session key.
2025     * More optimizations for looking up UNIX group lists.
2026     * Clean up error codes and return values for pam_winbindd
2027       and winbindd PAM interface.
2028     * Fix string return values in ntlm_auth tool.
2029     * Fix segfault when 'security = ads' but no realm is defined.
2030     * BUG 722: Allow winbindd to map machine accounts to uids.
2031     * More cleanups for winbindd's find_our_domain().
2032     * More clearly detect whether a domain controller is an NT4
2033       or mixed-mode AD DC (additional bug fixes by jerry & jmcd).
2034     * Increase separation between DNS queries for hosts and queries
2035       for AD domain controllers.
2036     * Include additional NT_STATUS to PAM error mappings.
2037     * Password initialization fixes.
2038
2039     
2040 o   Justin Baugh <justin.baugh@request.com>
2041     * BUG 948: Implement missing functions required for FreeBSD 
2042       nss_winbind support. 
2043
2044
2045 o   Alexander Bokovoy <ab@samba.org>
2046     * BUG 922: Make sure enable fast path for strlower_m() and 
2047       strupper_m().
2048
2049
2050 o   Luca Bolcioni <Luca.Bolcioni@yacme.com>
2051     * Fix crash when using 'security = server' and 'encrypt 
2052       passwords = no' by always initializing the session key.
2053
2054       
2055 o   Dmitry Butskoj <buc@odusz.elektra.ru>
2056     * Fix for special files being hidden from admins.
2057
2058
2059 o   Gerald (Jerry) Carter <jerry@samba.org>
2060     * Fix bug in the lanman session key generation.  Caused 
2061       "decode_pw: incorrect password length" error messages.
2062     * Save the right case for the located user name in 
2063       fill_sam_account().  Fixes %U/%u expansion for win9x clients.
2064     * BUG 897: Add well known rid for pre win2k compatible access
2065       group.
2066     * BUG 887: Correct typo in delete user script example.
2067     * Use short lived TALLOC_CTX* for allocating printer objects 
2068       from the print handle cache.
2069     * BUG 912: Fix check for HAVE_MEMORY_KEYTAB.
2070     * Fix several warnings reported by the SUN Forte C compiler.
2071     * Fully control DNS queries for AD DC's using 'name resolve order'.
2072     * BUG 770: Send the SMBjobid for UNIX jobs back to the client.
2073     * BUG 972: Fix segfault in cli_ds_getprimarydominfo().
2074     * BUG 936: fix bind credentials for schannel binds in smbd.
2075     * BUG 446: Fix output of smbclient for better compatibility 
2076       with scripts based on the 2.2 version (including Amanda).
2077     * BUG 891, 949: Fedora packaging fixes.
2078     * Fix bug that caused rpcclient to incorrectly retrieve 
2079       the SID for a server (this causing all calls that required 
2080       this information to fail). 
2081     * BUG 977: Don't create a homes share for a user if a static 
2082       share already exists by the same name.
2083     * Removed unused smb.conf options.
2084     * Password initialization fixes.
2085     * Set the disable flag for template accounts created by
2086       mksmbpasswd.sh.
2087     * Disable any account has no passwords and does not have the
2088       ACB_PWNOTREQ bit set.
2089
2090
2091 o   Guenther Deschner <gd@suse.com>
2092     * Install smbwrapper.so should be put into the $(libdir) 
2093       and not $(bindir).
2094     * Add the capability to specify the new user password 
2095       for "net ads password" on the command line.
2096     * Correctly detect AFS headers on SuSE.
2097         
2098
2099 o   James Flemer <jflemer@uvm.edu>
2100     * Fix AIX compile bug by linking HAVE_ATTR_LIST to 
2101       HAVE_SYS_ATTRIBUTES_H.
2102
2103
2104 o   Luke Howard <lukeh@PADL.COM>
2105     * Fix segfault in session setup reply caused by a early free().
2106
2107
2108 o   Stoian Ivanov <sdr@bultra.com>
2109     * Implement grepable output for smbclient -L.
2110
2111
2112 o   LaMont Jones <lamont@debian.org>
2113     * BUG 225328 (Debian): Correct false failure LFS test that resulted 
2114       in  _GNU_SOURCE not being defined (thus resulting in strndup() 
2115       not being defined).
2116
2117       
2118 o   Volker Lendecke <vl@samba.org>
2119     * BUG 583: Ensure that user names always contain the short 
2120       version of the domain name.
2121     * Fix our parsing of the LDAP uri.
2122     * Don't show the 'afs username map' in the SWAT basic view.
2123     * Fix SMB signing issues in relation to failed NTLMSSP logins.
2124     * BUG 924: Fix return codes in smbtorture harness.
2125     * Always lower-case usernames before handing it to AFS code.
2126     * Add a German translation for SWAT.
2127     * Fix a segfaults in winbindd.
2128     * Fix the user's domain passed to register_vuid() from 
2129       reply_spnego_kerberos().
2130     * Add NSS example code in nss_winbind to convert UNIX 
2131       id's <-> Windows SIDs.
2132     * Display more descriptive error messages for login via 'net'.
2133     * Fix compiler warning in the net tool.
2134     * Fix length bug when decoding base64 strings.
2135     * Ensure we don't call getpwnam() inside a loop that is iterating 
2136       over users with getpwent().  This broke on glibc 2.3.2.
2137
2138
2139 o   Herb Lewis <herb@samba.org>
2140     * Fix bit rot in psec.
2141
2142
2143 o   Jianliang Lu <j.lu@tiesse.com>
2144     * Ensure we delete the group mapping before calling the delete 
2145       group script.
2146     * Define well known RID for managing the  "Power Users" group.
2147     * BUG 381: check builtin (not local) group SID when updating 
2148       group membership.
2149     * BUG 101: set the SV_TYPE_PRINTQ_SERVER flag in host announcement 
2150       packet.
2151
2152
2153 o   John Klinger <john.klinger@lmco.com>
2154     * Implement initgroups() call in nss_winbind on Solaris.
2155
2156
2157 o   Jim McDonough <jmcd@us.ibm.com>
2158     * Fix regression in net rpc join caused by recent changes 
2159       to cli_lsa_query_info_policy().
2160     * BUG 964: Fix crash bug in 'net rpc join' using a preexisting
2161       machine account.
2162
2163
2164 o   MORIYAMA Masayuki <moriyama@miraclelinux.com>
2165     * BUG 570: Ensure that configure honors the LDFLAGS variable.
2166
2167
2168 o   Stefan Metzmacher <metze@samba.org>
2169     * Implement LDAP rebind sleep patch.
2170     * Revert to 2.2 quota code because of so many broken quota files 
2171       out there.
2172     * Fix XFS quotas: HAVE_XFS_QUOTA -> HAVE_XFS_QUOTAS
2173                       XFS_USER_QUOTA -> USRQUOTA
2174                       XFS_GROUP_QUOTA -> GRPQUOTA
2175     * Fix disk_free calculation with group quotas.
2176     * Add debug class 'quota' and a lot of DEBUG()'s 
2177       to the quota code.
2178     * Fix sys_chown() when no chown() is present.
2179     * Add SIGABRT to fault handling in order to catch got a 
2180       backtrace if an error occurs the OpenLDAP client libs.
2181
2182
2183 o   <ndb@theghet.to>
2184     * Allow an existing LDAP machine account to be re-used when 
2185       joining an AD domain.
2186
2187
2188 o   James Peach <jpeach@sgi.com>
2189     * BUG 889: Change smbd to use pread/pwrite on platforms that 
2190       support these calls. Can lead to a significant speed increase.
2191
2192
2193 o   Tim Potter <tpot@samba.org>
2194     * BUG 905: Remove POBAD_CC to fix Solaris Forte compiles.
2195     * BUG 924: Fix typo in RW2 torture test.
2196     
2197     
2198 o   Richard Sharpe <rsharpe@samba.org>
2199     * Small fixes to torture.c to cleanup the error handling 
2200       and prevent crashes.
2201
2202
2203 o   J. Tournier <jerome.tournier@IDEALX.com>
2204     * Small fixes for the smbldap-tool scripts.
2205
2206
2207 o   Andrew Tridgell <tridge@samba.org>
2208     * Fix src len check in pull_usc2().
2209     
2210     
2211 o   Jelmer Vernooij <jelmer@samba.org>
2212     * Put functions for generating SQL queries in pdb_sql.c
2213     * Add pgSQL backend (based on patch by Hamish Friedlander)
2214     * BUG 908: Fix -s option to smbcontrol.    
2215     * Add smbget utility - a wget-clone for the SMB/CIFS protocol.
2216     * Fix for libnss_wins on IRIX platforms.
2217     * Fix swatdir for --with-fhs.
2218
2219
2220         --------------------------------------------------
2221
2222                   =============================
2223                   Release Notes for Samba 3.0.1
2224                         December 15, 2003
2225                   =============================
2226
2227 Some of the more common bugs in 3.0.0 addressed in the release 
2228 include:
2229
2230   o Substitution problems with smb.conf variables.
2231   o Errors in return codes which caused some applications
2232     to fail to open files.
2233   o General Protection Faults on Windows 2000/XP clients
2234     using Samba point-n-print features.
2235   o Several miscellaneous crash bugs.
2236   o Access problems when enumerating group mappings are
2237     stored in an LDAP Directory.
2238   o Several common SWAT bugs when writing changes to
2239     smb.conf.
2240   o Internal inconsistencies when 'winbind use default
2241     domain = yes'
2242
2243
2244
2245 Changes since 3.0.0
2246 ----------------------
2247
2248     Parameter Name              Action
2249     --------------              ------
2250     hide local users            Removed
2251     mangled map                 Deprecated
2252     mangled stack               Removed
2253     passwd chat timeout         New
2254
2255
2256 commits
2257 -------
2258
2259 o   Change the interface for init_unistr2 to not take a length 
2260     but a flags field.  We were assuming that 
2261     2*strlen(mb_string) == length of ucs2-le string.  (bug 480).
2262 o   Allow d_printf() to handle strings with escaped quotation 
2263     marks since the msg file includes the escape character (bug 489).
2264 o   Fix bad html table row termination in SWAT wizard code (bug 413).
2265 o   Fix to parse the level-2 strings.
2266 o   Fix for "valid users = %S" in [homes].  Fix read/write 
2267     list as well. 
2268 o   Change AC_CHECK_LIB_EXT to prepend libraries instead of append.  
2269     This is the same way AC_CHECK_LIB works (bug 508).
2270 o   Testparm output fixes for clarity.
2271 o   Fix broken wins hook functionality -- i18n bug (bug 528).
2272 o   Take care of condition where DOS and NT error codes must differ.
2273 o   Default to using only built-in charsets when a working iconv 
2274     implementation cannot be located.
2275 o   Wrap internals of sys_setgroups() so the sys_XX() call can 
2276     be done unconditionally (bug 550).
2277 o   Remove duplicate smbspool link on SWAT's front page (bug 541).
2278 o   Save and restore CFLAGS before/after AC_PROG_CC.  Ensures that
2279     --enable-debug=[yes|no] works correctly.
2280 o   Allow ^C to interrupt smbpasswd if using our getpass 
2281     (e.g. smbpasswd command).
2282 o   Support signing only on RPC's (bug 167).
2283 o   Correct bug that prevented  Excel 2000 clients from opening 
2284     files marked as read-only.
2285 o   Portability fix bugs 546 - 549).
2286 o   Explicitly initialize the value of AR for vendor makes that don't
2287     do this (e.g. HPUX 11).  (bug 552).
2288 o   More i18n fixes for SWAT (bug 413).
2289 o   Change the cwd before the postexec script to ensure that a
2290     umount will succeed.
2291 o   Correct double free that caused winbindd to crash when a DC 
2292     is rebooted (bug 437).
2293 o   Fix incorrect mode sum (bug 562).
2294 o   Canonicalize SMB_INFO_ALLOCATION in the same was as
2295     SMB_FS_FULL_SIZE_INFORMATION (bug 564).
2296 o   Add script to generate *msg files.
2297 o   Add Dutch SWAT translation file.
2298 o   Make sure to call get_user_groups() with the full winbindd 
2299     name for a user if he/she has one (bug 406).
2300 o   Fix up error code returns from Samba4 tester. Ensure invalid 
2301     paths are validated the same way.  
2302 o   Allow Samba3 to pass the Samba4 RAW-READ tests.
2303 o   Refuse to configure if --with-expsam=$BACKEND was used but no 
2304     libraries were found for $BACKEND.
2305 o   Move sysquotas autoconf tests to a separate file.
2306 o   Match W2K w.r.t. writelock and writeclose.  Samba4 torture 
2307     tester
2308 o   Make sure that the files that contain the static_init_$subsystem; 
2309     macro get recompiled after configure by removing the object 
2310     files.
2311 o   Ensure canceling a blocking lock returns the correct error 
2312     message.
2313 o   Match Samba 2.2 behavior; make ACB_NORMAL the default ACB value.
2314 o   Updated Japanese welcome file in SWAT.
2315 o   Fix to  nt-time <-> unix-time functions reversible.
2316 o   Ensure that winbindd uses the the escaped DN when querying
2317     an AD ldap server.
2318 o   Fix portability issues when compiling (bug 505, 550)
2319 o   Compile fix for tdbbackup when Samba needs to override 
2320     non-C99 compliant implementations of snprintf().
2321 o   Use @PICSUFFIX@ instead of .po in Makefile.in (bug 574).
2322 o   Make sure we break out of samsync loop on error.
2323 o   Ensure error code path doesn't free unmalloc()'d memory
2324     (bug 628).
2325 o   Add configure test for krb5_keytab_entry keyblock vs key 
2326     member (bug 636).
2327 o   Fixed spinlocks.
2328 o   Modified testparm so that all output so all debug output goes 
2329     to stderr, and all file processing goes to stdout.
2330 o   Fix error return code for BUFFER_TOO_SMALL in smbcacls 
2331     and smbcquotas.
2332 o   Fix "NULL dest in safe_strcpy()" log message by ensuring that 
2333     we have a devmode before copying a string to the devicename.
2334 o   Support mapping REALM.COM\user to a local user account (without 
2335     running winbindd)  for compatibility with 2.2.x release.
2336 o   Ensure we don't use mmap() on blacklisted systems.
2337 o   fixed a number of bugs and memory leaks in the AIX 
2338     winbindd shim
2339 o   Call initgroups() in SWAT before becomming the user so that
2340     secondary group permissions can be used when writing to 
2341     smb.conf.
2342 o   Fix signing problems when reverse connecting back to a 
2343     client for printer notify
2344 o   Fix signing problems caused by a miss-sequence bug.
2345 o   Missing map in errormap for ERROR_MORE_DATA -> ERRDOS, ERRmoredata.
2346     Fixes NEXUS tools running on Win9x clients (bug 64).
2347 o   Don't leave the domain field uninitialized in cli_lsa.c if some 
2348     SID could not be mapped.
2349 o   Fix segfault in mount.cifs helper when there is no options 
2350     specified during mount.
2351 o   Change the \n after the password prompt to go to tty instead 
2352     of stdout (bug 668).
2353 o   Stop net -P from prompting for machine account password (bug 451).
2354 o   Change in behavior to Not only change the effective uid but also
2355     the real uid when becoming unprivileged.
2356 o   Cope with Exchange 5.5 cleartext pop password auth.
2357 o   New files for support of initshutdown pipe.  Win2k doesn't 
2358     respond properly to all requests on the winreg pipe, so we need 
2359     to handle this new pipe (bug 534).
2360 o   Added more va_copy() checks in configure.in.
2361 o   Include fixes for libsmbclient build problems.
2362 o   Missing UNIX -> DOS codepage conversion in lanman.c.
2363 o   Allow DFMS-S filenames can now have arbitrary case (bug 667).
2364 o   Parameterize the listen backlog in smbd and make it larger by
2365     default. A backlog of 5 is way too small these days.
2366 o   Check for an invalid fid before dereferencing the fsp pointer
2367     (bug 696).
2368 o   Remove invalid memory frees and return codes in pdb_ldap.c.
2369 o   Prompt for password when invoking --set-auth-user and no 
2370     password is given.
2371 o   Bind the nmbd sending socket to the 'socket address'.
2372 o   Re-order link command for smbd, rpcclient and smbpasswd to ensure 
2373     $LDFLAGS occurs before any library specification (bug 661).
2374 o   Fix large number of printf() calls for 64-bit size_t.
2375 o   Fix AC_CHECK_MEMBER so that SLES8 does correctly finds the 
2376     keyblock in the krb5 structs.
2377 o   Remove #include <compat.h> in hopes to avoid problems with 
2378     apache header files.
2379 o   Correct winbindd build problems on HP-UX 11.
2380 o   Lowercase netgroups lookups (bug 703).
2381 o   Use the actual size of the buffer in strftime instead of a made
2382     up value which just happens to be less than sizeof(fstring).  
2383     (bug 713).
2384 o   Add ldaplibs to pdbedit link line (bug 651).
2385 o   Fix crash bug in smbclient completion (bug 659).
2386 o   Fix packet length for browse list reply (bug 771).
2387 o   Fix coredump in cli_get_backup_list().
2388 o   Make sure that we expand %N (bug 612).
2389 o   Allow rpcclient adddriver command to specify printer driver 
2390     version (bug 514).
2391 o   Compile tdbdump by default.
2392 o   Apply patches to fix iconv detection for FreeBSD.
2393 o   Do not allow the 'guest account' to be added to a passdb backend 
2394     using smbpasswd or pdbedit (bug 624).
2395 o   Save LDFLAGS during iconv detection (bug 57).
2396 o   Run krb5 logins through the username map if the winbindd 
2397     lookup fails (bug 698).
2398 o   Add const for lp_set_name_resolve_order() to avoid compiler 
2399     warnings (bug 471).
2400 o   Add support for the %i macro in smb.conf to stand in for the for
2401     the local IP address to which a client connected.
2402 o   Allow winbindd to match local accounts to domain SID when 
2403     'winbind trusted domains only = yes' (bug 680).
2404 o   Remove code in idmap_ldap that searches the user suffix and group 
2405     suffix.  It's not needed and provides inconsistent functionality 
2406     from the tdb backend.
2407 o   Patch to handle munged dial string for Windows 2000 TSE.
2408     Thanks to Gaz de France, Direction de la Recherche, Service 
2409     Informatique Métier for their supporting this work by Aurelien 
2410     Degrémont <adegremont@idealx.com>.
2411 o   Correct the "smbldap_open: cannot access when not root error"
2412     messages when looking up group information (bug 281).
2413 o   Skip over the winbind separator when looking up a user.
2414     This fixes the bug that prevented local users from
2415     matching an AD user when not running winbindd (bug 698).
2416 o   Fix a problem with configure on *BSD systems. Make sure
2417     we add -liconv etc to LDFLAGS.
2418 o   Fix core dump bug when "security = server" and the authentication
2419     server goes away.
2420 o   Correct crash bug due to an empty munged dial string.
2421 o   Show files locked by a specific user (smbstatus -u 'user') 
2422     (bug 590).
2423 o   Fix bug preventing print jobs from display in the queue
2424     monitor used by Windows NT and later clients (bug 660).
2425 o   Fix several reported problems with point-n-print from
2426     Windows 2000/XP clients due to a bug in the EnumPrinterDataEx()
2427     reply (bug 338, 527 & 643).
2428 o   Fix a handful of potential memory leaks in the LDAP code used
2429     by ldapsam[_compat] and the LDAP idmap backend.
2430 o   Fix for pdbedit error code returns (bug 763).
2431 o   Make sure we only enumerate group mapping entries  (not 
2432     /etc/group) even when doing local aliases.
2433 o   Relax check on the pipe name in a dce/rpc bind response to work 
2434     around issues with establishing trusts to a Windows 2003 domain.
2435 o   Ensure we mangle names ending in '.' in hash2 mangling method.
2436 o   Correct parsing issues with munged dial string.
2437 o   Fix bugs in quota support for XFS.
2438 o   Add a cleaner method for applications that need to provide 
2439     name->SID mappings to do this via NSS rather than having to 
2440     know the winbindd pipe protocol.
2441 o   Adds a variant of the winbindd_getgroups() call called 
2442     winbindd_getusersids() that provides direct SID->SIDs listing of 
2443     a users supplementary groups. This is enough to allow non-Samba 
2444     applications to do ACL checking.
2445 o   Make sure we don't append the 'ldap suffix' when writing out the 
2446     'ldap XXX suffix' values in SWAT (bug 328).
2447 o   Fix renames across file systems.
2448 o   Ensure that items in a list of strings containing whitespace are 
2449     written out surrounded by single quotes.  This means that both 
2450     double and single quotes are now used to surround strings in 
2451     smb.conf (bug 481).
2452 o   Enable SWAT to correctly determine if winbindd is running (bug 
2453     398).
2454 o   Include WWW-Authenticate field in 401 response for bad auth 
2455     attempt (bug 629).
2456 o   Add support for NTLM2 (NTLMv2 session security).
2457 o   Add support for variable-length session keys.
2458 o   More privilege fixes for group enumeration in LDAP (bug 281).
2459 o   Use the dns name (or IP) as the originating client name when
2460     using CUPS (bug 467).
2461 o   Fix various SMB signing bugs.
2462 o   Fix ACL propagation on a DFS root (bug 263).
2463 o   Disable NTLM2 for RPC pipes.
2464 o   Allow the client to specify the NTLM2 flags got NTLMSSP 
2465     authentication.
2466 o   Change the name of the job passed off to cups from "Test Page" 
2467     to "smbprn.00000033 Test Page" so that we can get the smb 
2468     jobid back. This allow users to delete jobs with cups printing 
2469     backend (partial work on bug 770).
2470 o   Fix build of winbindd with static pdb modules.
2471 o   Retrieve the correct ACL group bits if the file has an ACL 
2472     (bug 802).
2473 o   Implement "net rpc group members": Get members of a domain group 
2474     in human-readable format.
2475 o   Add MacOSX (Darwin) specific charset module code.
2476 o   Use samr_dispinfo(level == 1) for enumerating domain users so we 
2477     can include the full name in gecos field (bug 587).
2478 o   Add support for winbind's NSS library on FeeeBSD 5.1 (bug 797).
2479 o   Implement 'net rpc group list [global|local|builtin]*' for a 
2480     select listing of the respective user databases.
2481 o   Don't automatically set NT status code flag unless client tells 
2482     us it can cope.
2483 o   Add 'net status [sessions|shares] [parseable]'.
2484 o   Don't mistake pre-existing UNIX jobs for smb jobs (remainder of  
2485     bug 770).
2486 o   Add 'Replicator' and 'RAS Servers' to list of builtin SIDs 
2487    (bug 608).
2488 o   Fix inverted logic in hosts allow/deny checks caused by 
2489     s/strcmp/strequal/ (bug 846).
2490 o   Implement correct version SamrRemoveSidForeignDomain() (bug 252).
2491 o   Fix typo in 'hash' mangling algorithm.
2492 o   Support munged dial for ldapsam (bug 800).
2493 o   Fix process_incoming_data() to return the number of bytes handled 
2494     this call whether we have a complete PDU or not; fixes bug 
2495     with multiple PDU request rpc's broken over SMBwriteX calls 
2496     each.
2497 o   Fix incorrect smb flags2 for connections to pre-NT servers 
2498     (causes smbclient to fail to OS2 for example) (bug 821).
2499 o   Update version string in smbldap-tools Makefile to 0.8.2.
2500 o   Correct a problem with "net rpc vampire" mis-parsing the 
2501     alias member info reply.
2502 o   Ensure the ${libdir} is created by the installclientlib script.
2503 o   Fix detection of Windows 2003 client architecture in the smb.conf
2504     %a variable.
2505 o   Ensure that smbd calls the add user script for a missing UNIX 
2506     user on kerberos auth call (bug 445).
2507 o   Fix bugs in hosts allow/deny when using a mismatched 
2508     network/netmask pair.
2509 o   Protect alloc_sub_basic() from crashing when the source string 
2510     is NULL (partial work on bug 687).
2511 o   Fix spinlocks on IRIX.
2512 o   Corrected some bad destination paths when running "configure 
2513     --with-fhs".
2514 o   Add packaging files for Fedora Core 1.
2515 o   Correct bug in SWAT install script for non-english languages.
2516 o   Support character set ISO-8859-1 internally (bug 558).
2517 o   Fixed more LDAP access errors when looking up group mappings 
2518     (bug 281).
2519 o   Fix UNISTR2 length bug in LsaQueryInfo(3) that caused SID 
2520     resolution to fail on local files on on domain members 
2521     (bug 875).
2522 o   Fix uninitialized variable in passdb.c.
2523 o   Fix formal parameter type in get_static() in nsswitch/wins.c.
2524 o   Fix problem mounting directories when mount.cifs is installed 
2525     with the setuid bit on.
2526 o   Fix bug that prevent --mandir from overriding the defaults
2527     given in the --with-fhs macro.
2528 o   Fix bug in in-memory Kerberos keytab detection routines 
2529     in configure.in
2530
2531
2532
2533 ######################################################################
2534
2535               The original 3.0.0 release notes follow
2536               =======================================
2537                     WHATS NEW IN Samba 3.0.0
2538                         September 24, 2003
2539               =======================================
2540
2541
2542 Major new features:
2543 -------------------
2544
2545 1)  Active Directory support.  Samba 3.0 is now able to  
2546     join a ADS realm as a member server and authenticate 
2547     users using LDAP/Kerberos.
2548
2549 2)  Unicode support. Samba will now negotiate UNICODE on the wire 
2550     and internally there is now a much better infrastructure for 
2551     multi-byte and UNICODE character sets.
2552
2553 3)  New authentication system. The internal authentication system 
2554     has been almost completely rewritten. Most of the changes are 
2555     internal, but the new auth system is also very configurable.
2556
2557 4)  New default filename mangling system.
2558
2559 5)  A new "net" command has been added. It is somewhat similar to 
2560     the "net" command in windows. Eventually we plan to replace 
2561     numerous other utilities (such as smbpasswd) with subcommands 
2562     in "net".
2563
2564 6)  Samba now negotiates NT-style status32 codes on the wire. This
2565     improves error handling a lot.
2566
2567 7)  Better Windows 2000/XP/2003 printing support including publishing
2568     printer attributes in active directory.
2569
2570 8)  New loadable module support for passdb backends and character 
2571     sets.
2572
2573 9)  New default dual-daemon winbindd support for better performance.
2574
2575 10) Support for migrating from a Windows NT 4.0 domain to a Samba 
2576     domain and maintaining user, group and domain SIDs.
2577
2578 11) Support for establishing trust relationships with Windows NT 4.0
2579     domain controllers.
2580   
2581 12) Initial support for a distributed Winbind architecture using
2582     an LDAP directory for storing SID to uid/gid mappings.
2583   
2584 13) Major updates to the Samba documentation tree.
2585
2586 14) Full support for client and server SMB signing to ensure
2587     compatibility with default Windows 2003 security settings.
2588
2589 15) Improvement of ACL mapping features based on code donated by
2590     Andreas Grünbacher.
2591
2592
2593 Plus lots of other improvements!
2594
2595
2596 Additional Documentation
2597 ------------------------
2598
2599 Please refer to Samba documentation tree (included in the docs/ 
2600 subdirectory) for extensive explanations of installing, configuring
2601 and maintaining Samba 3.0 servers and clients.  It is advised to 
2602 begin with the Samba-HOWTO-Collection for overviews and specific 
2603 tasks (the current book is up to approximately 400 pages) and to 
2604 refer to the various man pages for information on individual options.
2605
2606 We are very glad to be able to include the second edition of
2607 "Using Samba" by Jay Ts, Robert Eckstein, and David Collier-Brown
2608 (O'Reilly & Associates) in this release.  The book is available
2609 on-line at http://samba.org/samba/docs/ and is included with 
2610 the Samba Web Administration Tool (SWAT).  Thanks to the authors and
2611 publisher for making "Using Samba" under the GNU Free Documentation 
2612 License.
2613
2614
2615 ######################################################################
2616 Upgrading from a previous Samba 3.0 beta
2617 ########################################
2618
2619 Beginning with Samba 3.0.0beta3, the RID allocation functions
2620 have been moved into winbindd.  Previously these were handled
2621 by each passdb backend.  This means that winbindd must be running
2622 to automatically allocate RIDs for users and/or groups.  Otherwise,
2623 smbd will use the 2.2 algorithm for generating new RIDs.
2624
2625 If you are using 'passdb backend = tdbsam' with a previous Samba 
2626 3.0 beta release (or possibly alpha), it may be necessary to 
2627 move the RID_COUNTER entry from /usr/local/samba/private/passdb.tdb
2628 to winbindd_idmap.tdb.  To do this:
2629
2630 1)  Ensure that winbindd_idmap.tdb exists (launch winbindd at least 
2631     once)
2632 2)  build tdbtool by executing 'make tdbtool' in the source/tdb/ 
2633     directory
2634 3)  run: (note that 'tdb>' is the tool's prompt for input)
2635
2636        root# ./tdbtool /usr/local/samba/private/passdb.tdb
2637        tdb> show RID_COUNTER
2638        key 12 bytes
2639        RID_COUNTER
2640        data 4 bytes
2641        [000] 0A 52 00 00                                       .R.
2642
2643        tdb> move RID_COUNTER /usr/local/samba/var/locks/winbindd_idmap.tdb
2644        ....
2645        record moved
2646
2647 If you are using 'passdb backend = ldapsam', it will be necessary to 
2648 store idmap entries in the LDAP directory as well (i.e. idmap backend 
2649 = ldap).  Refer to the 'net idmap' command for more information on 
2650 migrating SID<->UNIX id mappings from one backend to another.
2651
2652 If the RID_COUNTER record does not exist, then these instructions are
2653 unneccessary and the new RID_COUNTER record will be correctly generated
2654 if needed.  
2655
2656
2657
2658 ########################
2659 Upgrading from Samba 2.2
2660 ########################
2661
2662 This section is provided to help administrators understand the details
2663 involved with upgrading a Samba 2.2 server to Samba 3.0.
2664
2665
2666 Building
2667 --------
2668
2669 Many of the options to the GNU autoconf script have been modified 
2670 in the 3.0 release.  The most noticeable are:
2671
2672   * removal of --with-tdbsam (is now included by default; see section
2673     on passdb backends and authentication for more details)
2674     
2675   * --with-ldapsam is now on used to provided backward compatible
2676     parameters for LDAP enabled Samba 2.2 servers.  Refer to the passdb 
2677     backend and authentication section for more details
2678   
2679   * inclusion of non-standard passdb modules may be enabled using
2680     --with-expsam.  This includes an XML backend and a mysql backend.
2681       
2682   * removal of --with-msdfs (is now enabled by default)
2683   
2684   * removal of --with-ssl (no longer supported)
2685   
2686   * --with-utmp now defaults to 'yes' on supported systems
2687   
2688   * --with-sendfile-support is now enabled by default on supported 
2689     systems
2690   
2691     
2692 Parameters
2693 ----------
2694
2695 This section contains a brief listing of changes to smb.conf options
2696 in the 3.0.0 release.  Please refer to the smb.conf(5) man page for
2697 complete descriptions of new or modified parameters.
2698
2699 Removed Parameters (order alphabetically):
2700
2701   * admin log
2702   * alternate permissions
2703   * character set
2704   * client codepage
2705   * code page directory
2706   * coding system
2707   * domain admin group
2708   * domain guest group
2709   * force unknown acl user
2710   * hide local users
2711   * mangled stack
2712   * nt smb support
2713   * postscript
2714   * printer driver
2715   * printer driver file
2716   * printer driver location
2717   * read size
2718   * source environment
2719   * status
2720   * strip dot
2721   * total print jobs
2722   * use rhosts
2723   * valid chars
2724   * vfs options
2725
2726 New Parameters (new parameters have been grouped by function):
2727
2728   Remote management
2729   -----------------
2730   * abort shutdown script
2731   * shutdown script
2732
2733   User and Group Account Management
2734   ---------------------------------
2735   * add group script
2736   * add machine script
2737   * add user to group script
2738   * algorithmic rid base
2739   * delete group script
2740   * delete user from group script
2741   * passdb backend
2742   * set primary group script
2743
2744   Authentication
2745   --------------
2746   * auth methods
2747   * realm
2748   * passwd chat timeout
2749
2750   Protocol Options
2751   ----------------
2752   * client lanman auth
2753   * client NTLMv2 auth
2754   * client schannel
2755   * client signing
2756   * client use spnego
2757   * disable netbios
2758   * ntlm auth
2759   * paranoid server security
2760   * server schannel
2761   * server signing
2762   * smb ports
2763   * use spnego
2764
2765   File Service
2766   ------------
2767   * get quota command
2768   * hide special files
2769   * hide unwriteable files
2770   * hostname lookups
2771   * kernel change notify
2772   * mangle prefix
2773   * map acl inherit
2774   * msdfs proxy
2775   * set quota command
2776   * use sendfile
2777   * vfs objects
2778   
2779   Printing
2780   --------
2781   * max reported print jobs
2782
2783   UNICODE and Character Sets
2784   --------------------------
2785   * display charset
2786   * dos charset
2787   * unicode
2788   * unix charset
2789   
2790   SID to uid/gid Mappings
2791   -----------------------
2792   * idmap backend
2793   * idmap gid
2794   * idmap uid
2795   * winbind enable local accounts
2796   * winbind trusted domains only
2797   * template primary group
2798   * enable rid algorithm
2799
2800   LDAP
2801   ----
2802   * ldap delete dn
2803   * ldap group suffix
2804   * ldap idmap suffix
2805   * ldap machine suffix
2806   * ldap passwd sync
2807   * ldap replication sleep
2808   * ldap user suffix
2809   
2810   General Configuration
2811   ---------------------
2812   * preload modules
2813   * private dir
2814
2815 Modified Parameters (changes in behavior):
2816
2817   * encrypt passwords (enabled by default)
2818   * mangling method (set to 'hash2' by default)
2819   * passwd chat
2820   * passwd program
2821   * restrict anonymous (integer value)
2822   * security (new 'ads' value)
2823   * strict locking (enabled by default)
2824   * unix extensions (enabled by default)
2825   * winbind cache time (increased to 5 minutes)
2826   * winbind uid (deprecated in favor of 'idmap uid')
2827   * winbind gid (deprecated in favor of 'idmap gid')
2828
2829
2830 Databases
2831 ---------
2832
2833 This section contains brief descriptions of any new databases 
2834 introduced in Samba 3.0.  Please remember to backup your existing 
2835 ${lock directory}/*tdb before upgrading to Samba 3.0.  Samba will 
2836 upgrade databases as they are opened (if necessary), but downgrading 
2837 from 3.0 to 2.2 is an unsupported path.
2838
2839 Name                    Description                             Backup?
2840 ----                    -----------                             -------
2841 account_policy          User policy settings                    yes
2842 gencache                Generic caching db                      no
2843 group_mapping           Mapping table from Windows              yes
2844                         groups/SID to unix groups        
2845 winbindd_idmap          ID map table from SIDS to UNIX          yes
2846                         uids/gids.
2847 namecache               Name resolution cache entries           no
2848 netsamlogon_cache       Cache of NET_USER_INFO_3 structure      no
2849                         returned as part of a successful
2850                         net_sam_logon request 
2851 printing/*.tdb          Cached output from 'lpq                 no
2852                         command' created on a per print 
2853                         service basis
2854 registry                Read-only samba registry skeleton       no
2855                         that provides support for exporting
2856                         various db tables via the winreg RPCs
2857
2858
2859 Changes in Behavior
2860 -------------------
2861
2862 The following issues are known changes in behavior between Samba 2.2 and 
2863 Samba 3.0 that may affect certain installations of Samba.
2864
2865   1)  When operating as a member of a Windows domain, Samba 2.2 would 
2866       map any users authenticated by the remote DC to the 'guest account'
2867       if a uid could not be obtained via the getpwnam() call.  Samba 3.0
2868       rejects the connection as NT_STATUS_LOGON_FAILURE.  There is no 
2869       current work around to re-establish the 2.2 behavior.
2870       
2871   2)  When adding machines to a Samba 2.2 controlled domain, the 
2872       'add user script' was used to create the UNIX identity of the 
2873       machine trust account.  Samba 3.0 introduces a new 'add machine 
2874       script' that must be specified for this purpose.  Samba 3.0 will
2875       not fall back to using the 'add user script' in the absence of 
2876       an 'add machine script'
2877   
2878
2879 ######################################################################
2880 Passdb Backends and Authentication
2881 ##################################
2882
2883 There have been a few new changes that Samba administrators should be
2884 aware of when moving to Samba 3.0.
2885
2886   1) encrypted passwords have been enabled by default in order to 
2887      inter-operate better with out-of-the-box Windows client 
2888      installations.  This does mean that either (a) a samba account
2889      must be created for each user, or (b) 'encrypt passwords = no'
2890      must be explicitly defined in smb.conf.
2891     
2892   2) Inclusion of new 'security = ads' option for integration 
2893      with an Active Directory domain using the native Windows
2894      Kerberos 5 and LDAP protocols.
2895
2896      MIT kerberos 1.3.1 supports the ARCFOUR-HMAC-MD5 encryption 
2897      type which is neccessary for servers on which the 
2898      administrator password has not been changed, or kerberos-enabled 
2899      SMB connections to servers that require Kerberos SMB signing.
2900      Besides this one difference, either MIT or Heimdal Kerberos
2901      distributions are usable by Samba 3.0.
2902      
2903
2904 Samba 3.0 also includes the possibility of setting up chains
2905 of authentication methods (auth methods) and account storage 
2906 backends (passdb backend).  Please refer to the smb.conf(5) 
2907 man page for details.  While both parameters assume sane default 
2908 values, it is likely that you will need to understand what the 
2909 values actually mean in order to ensure Samba operates correctly.
2910
2911 The recommended passdb backends at this time are
2912
2913   * smbpasswd - 2.2 compatible flat file format
2914   * tdbsam - attribute rich database intended as an smbpasswd
2915     replacement for stand alone servers
2916   * ldapsam - attribute rich account storage and retrieval 
2917     backend utilizing an LDAP directory.  
2918   * ldapsam_compat - a 2.2 backward compatible LDAP account 
2919     backend
2920     
2921 Certain functions of the smbpasswd(8) tool have been split between the 
2922 new smbpasswd(8) utility, the net(8) tool, and the new pdbedit(8) 
2923 utility.  See the respective man pages for details.
2924     
2925      
2926 ######################################################################
2927 LDAP
2928 ####
2929
2930 This section outlines the new features affecting Samba / LDAP 
2931 integration.
2932
2933 New Schema
2934 ----------
2935   
2936 A new object class (sambaSamAccount) has been introduced to replace 
2937 the old sambaAccount.  This change aids us in the renaming of 
2938 attributes to prevent clashes with attributes from other vendors.  
2939 There is a conversion script (examples/LDAP/convertSambaAccount) to 
2940 modify and LDIF file to the new schema.
2941   
2942 Example:
2943   
2944   $ ldapsearch .... -b "ou=people,dc=..." > sambaAcct.ldif
2945   $ convertSambaAccount --sid=<Domain SID> \
2946     --input=sambaAcct.ldif --output=sambaSamAcct.ldif \
2947     --changetype=[modify|add]
2948         
2949 The <DOM SID> can be obtained by running 'net getlocalsid 
2950 <DOMAINNAME>' on the Samba PDC as root.  The changetype determines 
2951 the format of the generated LDIF output--either create new entries 
2952 or modify existing entries.
2953     
2954 The old sambaAccount schema may still be used by specifying the 
2955 "ldapsam_compat" passdb backend.  However, the sambaAccount and
2956 associated attributes have been moved to the historical section of
2957 the schema file and must be uncommented before use if needed.
2958 The 2.2 object class declaration for a sambaAccount has not changed
2959 in the 3.0 samba.schema file. 
2960   
2961 Other new object classes and their uses include:
2962   
2963   * sambaDomain - domain information used to allocate rids 
2964     for users and groups as necessary.  The attributes are added
2965     in 'ldap suffix' directory entry automatically if 
2966     an idmap uid/gid range has been set and the 'ldapsam'
2967     passdb backend has been selected.
2968       
2969   * sambaGroupMapping - an object representing the 
2970     relationship between a posixGroup and a Windows
2971     group/SID.  These entries are stored in the 'ldap 
2972     group suffix' and managed by the 'net groupmap' command.
2973     
2974   * sambaUnixIdPool - created in the 'ldap idmap suffix' entry 
2975     automatically and contains the next available 'idmap uid' and 
2976     'idmap gid'
2977     
2978   * sambaIdmapEntry - object storing a mapping between a 
2979     SID and a UNIX uid/gid.  These objects are created by the 
2980     idmap_ldap module as needed.
2981
2982   * sambaSidEntry - object representing a SID alone, as a Structural
2983     class on which to build the sambaIdmapEntry.
2984
2985     
2986 New Suffix for Searching
2987 ------------------------
2988   
2989 The following new smb.conf parameters have been added to aid in directing
2990 certain LDAP queries when 'passdb backend = ldapsam://...' has been
2991 specified.
2992
2993   * ldap suffix         - used to search for user and computer accounts
2994   * ldap user suffix    - used to store user accounts
2995   * ldap machine suffix - used to store machine trust accounts
2996   * ldap group suffix   - location of posixGroup/sambaGroupMapping entries
2997   * ldap idmap suffix   - location of sambaIdmapEntry objects
2998
2999 If an 'ldap suffix' is defined, it will be appended to all of the 
3000 remaining sub-suffix parameters.  In this case, the order of the suffix
3001 listings in smb.conf is important.  Always place the 'ldap suffix' first
3002 in the list.  
3003
3004 Due to a limitation in Samba's smb.conf parsing, you should not surround 
3005 the DN's with quotation marks.
3006
3007
3008 IdMap LDAP support
3009 ------------------
3010
3011 Samba 3.0 supports an ldap backend for the idmap subsystem.  The 
3012 following options would inform Samba that the idmap table should be
3013 stored on the directory server onterose in the "ou=idmap,dc=plainjoe,
3014 dc=org" partition.
3015
3016  [global]
3017     ...
3018     idmap backend     = ldap:ldap://onterose/
3019     ldap idmap suffix = ou=idmap,dc=plainjoe,dc=org
3020     idmap uid         = 40000-50000
3021     idmap gid         = 40000-50000
3022
3023 This configuration allows winbind installations on multiple servers to
3024 share a uid/gid number space, thus avoiding the interoperability problems
3025 with NFS that were present in Samba 2.2.
3026     
3027
3028
3029 ######################################################################
3030 Trust Relationships and a Samba Domain
3031 ######################################
3032
3033 Samba 3.0.0beta2 is able to utilize winbindd as the means of 
3034 allocating uids and gids to trusted users and groups.  More
3035 information regarding Samba's support for establishing trust 
3036 relationships can be found in the Samba-HOWTO-Collection included
3037 in the docs/ directory of this release.
3038
3039 First create your Samba PDC and ensure that everything is 
3040 working correctly before moving on the trusts.
3041
3042 To establish Samba as the trusting domain (named SAMBA) from a Windows NT
3043 4.0 domain named WINDOWS:
3044
3045   1) create the trust account for SAMBA in "User Manager for Domains"
3046   2) connect the trust from the Samba domain using
3047      'net rpc trustdom establish GLASS'
3048
3049 To create a trustlationship with SAMBA as the trusted domain:
3050
3051   1) create the initial trust account for GLASS using
3052      'smbpasswd -a -i GLASS'.  You may need to create a UNIX
3053      account for GLASS$ prior to this step (depending on your
3054      local configuration).
3055   2) connect the trust from a WINDOWS DC using "User Manager
3056      for Domains"
3057
3058 Now join winbindd on the Samba PDC to the SAMBA domain using
3059 the normal steps for adding a Samba server to an NT4 domain:
3060 (note that smbd & nmbd must be running at this point)
3061
3062    root# net rpc join -U root
3063    Password: <enter root password from smbpasswd file here>
3064
3065 Start winbindd and test the join with 'wbinfo -t'.
3066
3067 Now test the trust relationship by connecting to the SAMBA DC
3068 (e.g. POGO) as a user from the WINDOWS domain:
3069
3070    $ smbclient //pogo/netlogon -U Administrator -W WINDOWS
3071    Password:
3072
3073 Now connect to the WINDOWS DC (e.g. CRYSTAL) as a Samba user:
3074
3075    $ smbclient //crystal/netlogon -U root -W WINDOWS
3076    Password:
3077
3078 ######################################################################
3079 Changes in Winbind
3080 ##################
3081
3082 Beginning with Samba3.0.0beta3, winbindd has been given new account
3083 manage functionality equivalent to the 'add user script' family of
3084 smb.conf parameters.  The idmap design has also been changed to 
3085 centralize control of foreign SID lookups and matching to UNIX 
3086 uids and gids.
3087
3088
3089 Brief Description of Changes
3090 ----------------------------
3091
3092 1) The sid_to_uid() family of functions (smbd/uid.c) have been 
3093    reverted to the 2.2.x design.  This means that when resolving a 
3094    SID to a UID or similar mapping:
3095
3096         a) First consult winbindd
3097         b) perform a local lookup only if winbindd fails to
3098            return a successful answer
3099
3100    There are some variations to this, but these two rules generally
3101    apply.
3102
3103 2) All idmap lookups have been moved into winbindd.  This means that
3104    a server must run winbindd (and support NSS) in order to achieve
3105    any mappings of SID to dynamically allocated UNIX ids.  This was
3106    a conscious design choice.
3107
3108 3) New functions have been added to winbindd to emulate the 'add user 
3109    script' family of smbd functions without requiring that external
3110    scripts be defined.  This functionality is controlled by the 'winbind 
3111    enable local accounts' smb.conf parameter (enabled by default).
3112
3113    However, this account management functionality is only supported 
3114    in a local tdb (winbindd_idmap.tdb).  If these new UNIX accounts 
3115    must be shared among multiple Samba servers (such as a PDC and BDCs), 
3116    it will be necessary to define your own 'add user script', et. al.
3117    programs that place the accounts/groups in some form of directory
3118    such as NIS or LDAP.  This requirement was deemed beyond the scope
3119    of winbind's account management functions.  Solutions for 
3120    distributing UNIX system information have been deployed and tested 
3121    for many years.  We saw no need to reinvent the wheel.
3122
3123 4) A member of a Samba controlled domain running winbindd is now able 
3124    to map domain users directly onto existing UNIX accounts while still
3125    automatically creating accounts for trusted users and groups.  This
3126    behavior is controlled by the 'winbind trusted domains only' smb.conf
3127    parameter (disabled by default to provide 2.2.x winbind behavior).
3128
3129 5) Group mapping support is wrapped in the local_XX_to_XX() functions
3130    in smbd/uid.c.  The reason that group mappings are not included
3131    in winbindd is because the purpose of Samba's group map is to
3132    match any Windows SID with an existing UNIX group.  These UNIX
3133    groups can be created by winbindd (see next section), but the
3134    SID<->gid mapping is retreived by smbd, not winbindd.
3135
3136
3137 Examples
3138 --------
3139
3140 * security = server running winbindd to allocate accounts on demand
3141
3142 * Samba PDC running winbindd to handle the automatic creation of UNIX
3143   identities for machine trust accounts
3144
3145 * Automtically creating UNIX user and groups when migrating a Windows NT
3146   4.0 PDC to a Samba PDC.  Winbindd must be running when executing
3147   'net rpc vampire' for this to work.
3148
3149    
3150 ######################################################################
3151 Known Issues
3152 ############
3153
3154 * There are several bugs currently logged against the 3.0 codebase
3155   that affect the use of NT 4.0 GUI domain management tools when run
3156   against a Samba 3.0 PDC.  This bugs should be released in an early 
3157   3.0.x release.
3158
3159 Please refer to https://bugzilla.samba.org/ for a current list of bugs 
3160 filed against the Samba 3.0 codebase.
3161
3162
3163 ######################################################################
3164 Reporting bugs & Development Discussion
3165 #######################################
3166
3167 Please discuss this release on the samba-technical mailing list or by
3168 joining the #samba-technical IRC channel on irc.freenode.net.
3169
3170 If you do report problems then please try to send high quality
3171 feedback. If you don't provide vital information to help us track down
3172 the problem then you will probably be ignored.  
3173
3174 A new bugzilla installation has been established to help support the 
3175 Samba 3.0 community of users.  This server, located at 
3176 https://bugzilla.samba.org/, has replaced the older jitterbug server 
3177 previously located at http://bugs.samba.org/.
3178 </pre>
3179
3180 </body>
3181 </html>