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