=============================== Release Notes for Samba 3.0.20b Oct 12, 2005 =============================== This is the latest stable release of Samba. This is the version that production Samba servers should be running for all current bug-fixes. Please read the following important changes in this release. Common bugs fixed in 3.0.20b include: o A crash bug in winbindd o Reporting files as read-only instead of returning the correct error code of "access denied" o File system quota support defects ###################################################################### Changes ####### Changes since 3.0.20a --------------------- commits ------- o Jeremy Allison* BUG 3088: Fix error condition for files on a read-write share which cannot be read due to permissions. o Gerald (Jerry) Carter * BUG 3070: Fix crash bug in qfsinfo when retrieving fs quota details. * BUG 1473, 3090: Quota detection and compilation problems on Solaris. o Marc Balmer * Build fixes when builddir != srcdir o Alex Deiter * BUG 3145: Fix build issue regarding quota support on Solaris. o Volker Lendecke * BUG 3068: Fix for winbindd crashed by empty DC alternative name. Release Notes for older release follow: -------------------------------------------------- =============================== Release Notes for Samba 3.0.20a Sept 30, 2005 =============================== Common bugs fixed in 3.0.20a include: o Stability problems with winbindd. o Crash bugs caused by incompatibilities on 64-bit systems. o Missing files from directory listings on AIX servers o User Manager interoperability problems. o Minor build difficulties on various platforms such as Solaris and OpenBSD, Winbind, security = domain, and Active Directory ================================================ Recent security updates for Windows 2000 and Windows 2003 have changed the fashion in which user and group lists can be obtained from domain controllers. In short, the RPC mechanisms used by "security = domain" to retrieve users and groups is not compatible with these changes. The "security = ads" configuration is not affected by the Windows protocol changes. Samba developers are actively working to correct this problem in the 3.0.21 release. In the meantime, Administrators who are unable to migrate to "security = ads" and must continue using "security = domain", can define credentials to be used by winbindd for account enumeration by executing the following command as root. wbinfo --set-auth-user='DOMAIN\username%password' ###################################################################### Changes ####### Changes since 3.0.20 -------------------- commits ------- o Jeremy Allison * BUG 3065: Fix for legacy clients retrieving a listing of an empty directory. * Added external library for accessing Samba's share mode database. * Fix winbindd credentials chain which caused logon failures after attempting to authenticate an unknown user. * Fix recursive looping bug in winbindd. * Fix build errors on 64-bit systems. * Posix ACL memory leak and crash bug fixes. * BUG 3044: Ensure OPEN-EXEC is honored as read-only. * BUG 3060: Ensure SMBcreate truncates the file if it exists. * Hide dot files and directory logic fixes. * Correct display of open file modes by smbstatus. * BUG 3010: Fix missing files bug on AIX systems. o Gerald (Jerry) Carter * Allow the root user to automatically pass se_access_checks() in the registry and service control server code. * Ensure that winbindd uses the correct name in the net_auth2() request when running on a Samba PDC. * Fix linking problem with tdb utilities. * BUG 3080: Fix regression in 'net rpc shutdown' command. * Fix segv in 'net rpc' when the pipe open fails. * Fix upload bug when installing 64-bit Windows printer drivers. * Fix regression in the smburi syntax used by smbspool. * Fix sorting of subkey hash records in registry files. * Correct REG_CREATE_KEY_EX parsing error. * Interoperability issues with usrmgr.exe and Samba groups. * Use the display names and not the Unix names when enumerating groups in the ldapsam passdb backend. * Ensure that Windows domain user names are converted to lower case. o Guenther Deschner * Prevent BUILTIN sids returned in the user's token from a Windows DC from being applied to any local group mappings on the Samba host. * Plug memory leaks in the kerberos keytab code. * Ensure BUILTIN groups are returned from winbindd's idmap_rid backend when 'winbind nested groups' is enabled. * Fix crash bug in winbindd caused by 64-bit build issues. * Improve debug messages in smbspool. * Give better error-message when "NDS Universal Password" change fails. * Fix password history error in the eDirectory schema file. * Ensure that Windows domain group names are converted to lower case. o Steve French * Allow disabling mandatory byte range lock mount flag, and fix corresponding entry in mtab. o Volker Lendecke * Fix race condition in the NTcreate&X open code when the disposition is NTCREATEX_DISP_CREATE. * Correct logic error when checking the pid for pending print change notify messages. * Ensure that winbindd child process complete startup even when the parent is receiving authentication requests. * Return the full NTSTATUS code to ntlm_auth and pam_winbindd when authentication fails. o Jason Mader * Compile warning fixes. o Uli Meis * Patches for pdb_*sql.c o Luke Mewburn * Autoconf syntax fixes. o James Peach * Correct problem with creating a core file in Linux. o Stefan Metzmacher * Quota fixes in smbd. o Peter Rindfuss * Patches for pdb_*sql.c o Jiri Sasek * Solaris toolchain patches for autoconf scripts. o Andrew Tridgell * Fix for tdb clear-if-first race condition. o Leo Weppelman * BUG 3104: Don't allow time updates to files on read-only shares. o Steve Williams * BUG 3052: Fix compile issues on OpenBSD. -------------------------------------------------- ============================== Release Notes for Samba 3.0.20 Aug 19, 2005 ============================== Additional features introduced in Samba 3.0.20 include: o Support for several new Win32 rpc pipes. o Improved support for OS/2 clients. o New 'net rpc service' tool for managing Win32 services. o Capability to set the owner on new files and directory based on the parent's ownership. o Experimental, asynchronous IO file serving support. o Completed Support for Microsoft Print Migrator. o New Winbind IDmap plugin (ad) for retrieving uid and gid from AD servers which maintain the SFU user and group attributes. o Rewritten support for POSIX pathnames when utilizing the Linux CIFS fs client. o New asynchronous winbindd. o Support for Microsoft Print Migrator. o New Windows NT registry file I/O library. o New user right (SeTakeOwnershipPrivilege) added. o New "net share migrate" options. What happened to 3.0.15 - 3.0.19? ================================== After some discussion it was deemed that the amount of changes going into the next Samba 3.0 release needed something to catch people's attention. Skipping several releases was chosen as the best solution with the least overhead. There will be no 3.0.15 - 3.0.19 ever released. The next production release following 3.0.20 should be 3.0.21. The original announcement about the version number change can be found in the samba mailing list archives: http://marc.theaimsgroup.com/?l=samba&m=111721010206997&w=2 Asynchronous Winbind Implementation =================================== Winbindd has been completely rewritten in this release to support an almost completely non-blocking, asynchronous request/reply model. This means that winbindd will scale much better in large domain environments and on high latency networks. Neither the client interface nor the command line tools (i.e. wbinfo) have changed in their calling conventions or syntax. However, due to internal structure changes, it is required (more so than normal) that you install the nss_winbind.so library included in this release. Support for Microsoft Print Migrator ==================================== Samba 3.0.20 includes full support for migrating printers from Windows servers or other Samba servers via the Microsoft Print Migrator tool. Restoring printers requires a working "add printer command" defined in smb.conf. Current support also allows administrators to create a master list of printer drivers which can be restored in bulk on new (or existing) Samba installations. Asynchronous IO Support ======================= Experimental support for async IO has been added to smbd for certain platforms. To enable this new feature, Samba must be compiled to include the --with-aio-support configure option. In addition, the "aio read size" and "aio write size" to non-zero values. See the smb.conf(5) man page for more details on these settings. ###################################################################### Changes ####### smb.conf changes ---------------- Parameter Name Action -------------- ------ acl check permissions New acl group control New acl map full control New aio read size New aio write size New enable asu support New inherit owner New ldap filter Removed map to guest Modified (new value added) max stat cache size New min password length Removed printer admin Deprecated username map script New winbind enable local accounts Removed winbindd nss info New Changes since 3.0.14a --------------------- commits ------- o Jeremy Allison * BUG 2533: Fix incorrect directory listings for OS/2 clients. * Ensure the old SMB search calls always ask mask_match() to translate patterns like ????????.???. * Split out the check_path_syntax() into a findfirst, findnext, & wildcard versions. * Fix checks for matching groups in an file ACL against the user's primary and supplementary group list. * BUG 2541: Ensure we recognize LANMAN2.1 as OS/2 and select LANMAN2 protocol, ensure the EA size is always correctly set on a query for a file with no EA's. * BUG 2551: Look at the incoming flags2 flag FLAGS2_LONG_PATH_COMPONENTS determines if a reply is uppercased on a SMBsearch request, not the protocol level. * Added "volume" command to smbclient that prints out the volume name and serial number. * Added "fix for broken SMB_INFO_VOLUME level used by OS/2. * Add support for OS/2 Extended Attributes. * Correctly check OpenX open modes. * Ensure allocation size is correctly returned for OpenX. * Only set allocation on create/truncate for nttrans. * Fix oplock bug in trans2open() code. * Remove unix_ERR_XXX global nastiness. * Only do the strange DOS error for openX, not trans2open. * Ensure SMBopen replies includes the share modes as well as open modes. * BUG 2581: Add size limit (in kb) to stat cache. * Fix bug in the trans2 secondary processing. * BUG 2601: Enforce DOS_OPEN_EXEC to mean read-only. * Add an SMB counter per connection struct for gathering profiling data. * BUG 2605: Ensure smbclient doesn't perform commands if the "chdir" fails in a scripted set. * Ensure a 'forced group' is added to the list of effective gids when processing ACLs. * Refactor rpc_bind structures for better future work. * BUG 2942: Add missing value in debug message. * BUG 2946: Fix regressions in str[n]cmp_w) functions found by 'mangling method = hash'. * Fix memory leaks in the msdfs trans2 server code. * Convert msdfs server to be talloc'd based. * Fix up stackable vfs interface. * Fix rpc fault when encountering an unknown rpc_bind auth type. * BUG 2954: More AIX 5.1 AIO compile fixes. * Fix valgrind bug in interaction with new aio buffer (found by Volker). * BUG 2878: Fix Norton commander not running on OS/2 clients. * Cleanup SAMR user info structure naming. * BUG 2889: Fix directly listings from OS/2 clients. * Added "acl group control" parameter. * Add debug warning if AddPrinterEx() is called without having an 'add printer command' defined. * Add better log messages when modifying ldap entries. * BUG 2829: Fix strXX_w() functions on non-x86 platforms when when string is unaligned. * BUG 2918: Fix SMB chaining by ensuring that deferred open message buffer is nor reused. * Add support for client setting capabilities to select posix pathnames on the wire. * Stop using C++ reserved words so that Samba can be compiled using g++. Also allows VFS modules in C++. * More fixes to allow better large directory scaling. * BUG 2827: Ensure we call the vfs connection hook before doing a vfs stat. Allows database vfs backends to initialize with a working connection. * BUG 2826: Ensure the correct return value for symlink and readlink in the VFS. * Merge handling of ASN.1 objects bigger than 64k from Samba 4. * Added AIO support to smbd. * Add "acl map full control", true by default, to allow people to change mapping of rwx to full control or not. * Transition smbd to use NTcreate&X for internal file opens. * Add checks against the current effective group id (e.g. force user) when testing write permissions one ACLs. * Fix FindFirst/FindNext server code when parsing directories on old IRIX XFS file systems (thanks to Cale Fairchild for the debugging help). * BUG 2644: Test for special files to be ignored was reversed. * Ensure yield_connection() is called on all appropriate error conditions. * Fix EDEADLCK problem with deferred open calls. * BUG 2622: Remove DPTR_MASK as it makes no sense. * Fix the write cache based on some VERY good detective work from Ingo Kilian. * BUG 2346: Fix read-only excel file bugs. * Don't wrap the setfsinfo call in HAVE_QUOTA as they'll just return ENOSYS if not implemented. * Add new CAP for POSIX pathnames. * BUG 2703: Add NULL guard for disp_fields[0]. * BUG 2681: With "strict allocate = yes" we now zero fill when a file is extended. Should catch disk full errors on write from MS-Office. * Add "acl check permissions" to turn on/off the new behavior of checking for write access in a directory before delete. * Refactor printing interface to take offset into job. * Allow mapping of POSIX ACLs to NT perms to differentiate between directories and files. * Added encrypt/decrypt function for LSA secrets and trusted domain passwords on the wire. * BUG 2729: Resume keys are *mandatory* for a search when listing a W2K and above server from a FATxx filesystem only. * BUG 2735: Ensure that smbd mangles control characters in file and directory names. * Refactor small pieces of socket handling code (in conjunction with Derrell). * BUG 2698: Fix infinite listing loop in smbclient caused by an invalid character set conversion. * Add client code that will abort a directory listing if we see the same name twice between packets. * Performance improvements in trans2 qfilepathinfo code by removing unnecessary memset() calls. * Rewrite the RPC bind parsing functions to follow the spec; fixes bug with 64-bit Windows XP and OS X 10.4. * BUG 2774: Set sparse flag if needed when returning file attributes. * Fix errors listing directories from Windows NT clients which caused "." and ".." to show up in explorer.exe. * Merge of error code fixes from SAMBA_4_0 branch. * BUG 2801: Fix regression in the "delete veto files" option. * Fix based on work from Shlomi Yaakobovich to catch loops in corrupted tdb files. * Allow someone with SeTakeOwnershipPrivilege to chown the user of a file to herself. * Fix minor compiler warnings in printing/printing.c. * Merge new DOS error code from SAMBA_4. * Fix issue when non-English characters in filenames and directories. * Fix bogus error message in smbstatus about unknown share modes. o Andrew Bartlett * Support raw NTLMSSP authentication for Windows Vista clients. * Fix parallel NTLMSSP processing by removing global state. * BUG 2684: Add per service hosts allow/deny checks for printers when connecting via MS-RPC. * BUG 2391: Fix segv caused by free a static pointer returned from getpwnam(). * Support kerberos authentication in smbd when using a keytab and participating in a non-Microsoft Kerberos realm. o Timur Bakeyev * BUG 2546: Add support for FreeBSD EA API * Fix detection of FreeBSD 7.x platforms in autoconf checks. * BUG 2908: Fix string length logic error in msdfs code. * BUG 2909: Fix typo that caused smbd to call the wrong aio_fsync function. o Ed Boraas . * Added Linux per-socket TCP settings. o Gerald (Jerry) Carter * Added support for \svcctl pipe rpcs. * Added 'net rpc service' subcommand for managing Win32 services. * Refactoring work on the rpc [un]marshalling layer and structures. * Verify privilege name in 'net rpc rights privileges' in order to provide better error messages. * Cleanup rpc structures in rpc_spoolss.h. * Cleanups and fixes for the \winreg server code. * Cleanup of rpc structures used by LsaEnumerateTrustedDomains. * Fix bugs in client spoolss code after refactoring work. * Fix Valgrind warnings of invalid reads in the spoolss server code. * Fixed a segv when enumerating services on a Samba host. * Fix segv in the service control server code. * Fix crashes in client spoolss calls caused by not checking for a valid pointer from the caller. * Fix regression in DeleteDriver() server routines. * Fix dup_a_regval() when size is 0. * Fix usrmgr.exe crash when viewing user properties at debuglevel 10. * Do not enumerate any privileges when 'enable privileges = no' and log a message if a client tries. * BUG 2872: Fix cut-n-paste error when checking pointer value in ntlmssp_set_workstation(). * Fix upgrade path from earlier nt*tdb files. * Removed print handle object cache. * BUG 2853: Don't strip out characters like '$' from printer names when substituting for the lpq command. * BUG 2557: Gracefully fail on unsupported SetPrinter() levels. * Fix build issues on x86_64-linux systems caused by valgrind headers. Thanks to Bent Vangli to the suggestions. * Refactor spoolss client calls. * Adding 'username map script'. * Disable schannel on the LSA and SAMR pipes in winbindd client code to deal with Windows 2003 SP1 and Windows 2000 SP4 SR1. * Cleanup of winreg API functions. * Add server stubs for RegSetKeySec() and RegGetKeySec(). * Map generic bits to specific bits in reg_open_entry() requests. * Add write support to registry tdb and printing backends. * Use tdb lookups rather than hard-coding certain registry value names and data. * BUG 2808: don't try to install man pages if they are not present. * Fix initialized variables reported by valgrind. * Normalize key lookups in ntprinters.tdb. * Mark "enumports command" as deprecated. * Add missing class file for python share command example. * Fix smbclient build issue on Solaris. * BUG 2626: ensure that the calling_name is set to something after parsing smb.conf (if not set via -n). * Use "add machine script" when creating a user (ACB_NORMAL) who has a name ending in '$' (e.g. usrmgr.exe creating domain trust accounts). * Add 'rid' synonym for idmap_rid IDMap module. * Ensure that we set full access on the handle returned from _samr_create_dom_{alias,group}() so that future set_{alias,group}() commands succeed. * Fix bug when looking for internal domains in winbindd (caused winbindd_getgrgid() for local groups to fail). * Fix query and set alias info calls (level 1 from the MMC manage computer plug-in. * Remove bogus log messages about unknown specversions. * BUG 2680: copy files from an MS-DFS win2k root share * BUG 2688: re-implement support for the -P (--port) option * Support connecting to an 'msdfs proxy' share on a Samba server. * Strip the directory path from cups command line printing defaults. * Fix bug that prevented smbclient from creating directories on non-dfs paths. * Deprecate the "printer admin" parameter in favor of the SePrintOperatorPrivilege. * Add the capability to read and write WinNT regf registry files. * Implement access checks for RegOpenXXX() server calls. * Extend registry client rpc calls. * Add "net rpc registry" set of commands. * Remove testprns tool. * Ensure that printer ACLs use the specific bits as well as the generic bits. Upgrade existing ntprinters.tdb SECDESC records. * Add server support for RegSaveKey() for dumping registry trees to a regf file. * Add "enable asu support" smb.conf parameter. * Merge various small file changes from trunk. * Remove "winbind enable local accounts" support. * Remove "ldap filter" smb.conf option. * Remove editreg utility (needs to be rewritten using regfio.c). * Fix build failure when running 'make torture' without first running 'make all' first. * BUG 1261: Remove unusable libbiconv from iconv detection in configure. * Add new option for "map to guest". "Bad Uid" re-enables the Samba 2.2 behavior of mapping authenticated users to the guest account if there does not exist a valid Unix account for the Windows domain user (based on patch from aruna.prabakar@hp.com). * Fix a couple of regressions after introduction of new winbindd. * Fix smbpasswd user password change (still worked by bad error messages) due to trying to strdup a NULL pointer. * Implement default security descriptors for the OpenService[Manager]() calls and check requested access mask at connect time. * Include access checks on handle mask for \svcctl operations such as ControlService() and StartService(). * Implement simulated start and stop service control for the spooler service as a per smbd service state value. * Add interface structure for controlling service via rc.init scripts (incomplete). * Convert move_driver_to_download_area() to use copy_file() rather than moving the files. * Add version number to registry.tdb file since it can be modified now. * Remove over-paranoid assert() call when checking spoolss buffer pointers * Fix error in EnumPrinterData() reported by valgrind. * Fix broken help links in SWAT editor caused by new doc layout. * Ensure that a domain structure in winbind is initialized prior to assigning the methods for communicating to a DC. * BUG 3000: Remove background updates of winbind cache and allow child processes to immediately update and expired cache entry. o David.Collier-Brown * Added panic action script for Solaris. o Jeremy Cooper * Added support for several new \winreg client rpcs. o * BUG 2792: Ensure the shadow copy module hooks seekdir, telldir, rewinddir to match updated large directory code. o Guenther Deschner * Close handles on group creation in rpcclient to better support mass group account creation. * Fix account policy key lookup for minimum and maximum password lengths. * Fix some compiler warnings and add missing exclude-block in 'net rpc share migrate'. * Allow use of a non-default smb.conf by rpcclient. * Fix querydispinfo search semantics in rpcclient test code. * Fix querydispinfo server semantics to allow to list more then 511 users. * Fix server crash bug in ancient OpenPrinter() call. * Fix a crash bug when enumerating privileges via the LSA calls. * Fix crash in EnumPrinterKey() client calls caused by previous refactoring work. * Various compiler warning fixes. * Fix segfault in the client AddPrinterEx-call of 'net rpc printer'. * Fix build issues when --with-aio-support is enabled. * BUG 2502: Removed the deprecated 'min passwd length parameter'. * Honour the CC environment variable in python build. * Fix searches in pdb_ldap for inter-domain trust accounts. * Don't expand the %L in %LOGONSERVER% from user attributes. * Fix bug in 'net rpc vampire' that caused accounts to be created with no assigned ACB flags. * Fix enumeration of builtin-aliases. * Avoid unset rids for builtin-aliases. * Add 'recycle:touch_mtime = true' vfs option for the recycle bin. * More "net rpc share migrate" fixes. * Merge PADL's idmap_ad plugin (taken from the latest xad_oss_plugins-tarball). * Add support for "idmap backend = ad" when "security = ads". * Add home directory and shell support from AD via "winbindd nss support = sfu" and "security = ads". * Provide better feedback when we fail share-manipulation due to missing scripts. * Correctly substitute "\" as default winbind separator in generate_parm_table.py example share command script. * Document pam_winbind.c to clarify the working status of require-membership-of option. * Added client-support for various lsa_query_trust_dom_info() calls and a rpcclient-tester for some info-levels. * Add "net rpc trustdom vampire" tool (in conjunction with Lars Mueller). * Add missing cli_srvsvc_net_share_set_info-function and rpcclient-testers (in preparation for net share acl migration). * Print trusted domain passwords returned via rpcclient in display charset. * Error code fixes when attempting to manipulating non-existent shares. * Cleanup "net share migrate" code. * Allow to touch mtime in vfs-recycle with "recycle:touch_mtime = true". * Allow admins to uncheck the "User must change Password at next Logon" checkbox in User manager (merge from trunk). o Renaud Duhaut * BUG 1040: Add directory_mode parameter when creating recycle directories. o Steven Edwards . * Use chsize() if we don't have ftruncate(). o Rodrigo Fernandez-Vizarra * BUG 1780: Add kerberos (file based ticket cache) support to smbspool. o Steve French * Update list of mount options for mount.cifs. * Add more defines for POSIX extensions to match the newly added client implementation. * Add initial support for cifs umount utility. * Fix cifs mounts to handle commas embedded in prompted password, and password and credential files. * Fix cifs mounts to handle domain name and user name in username field (in form domain\user). * Add missing error code mappings when a client unsuccessfully tries to create a hard-link. * Add support so umount.cifs can update mtab. * Add two newer mount options to syntax help for mount.cifs. * Add missing remount flag handling. * Allow domain= to be specified in credentials file. * Fix umount.cifs help, allow root to unmount someone else's mount. * Lock mtab when updating it during umount.cifs, also delete only one matching entry at a time. * Fix minor compiler warnings in the mount.cifs helper. o Deryck Hodge * BUG 2137: Encode quotes for display in HTML (original patch from Jay Fenlason). o Olaf Imig * BUG 1998: Correct byte ordering bug when storing 16-bit RAP print job ids. * BUG 2653: Fix segv in rpcclient OpenPrinterEx() call. o Björn Jacke * Added ioctl constants reported by msbackup.exe and filemon.exe. o Kevin Jamieson * BUG 2819: Fix typo when checking for ".." in smbd's statcache. o John Janosik * BUG 2077: Correctly fill in the correct server name when processing trusted domain logins. * BUG 2976: Mark logons for unknown domains with a non-authoritative response. o William Jojo * AIX AIO fixes. o Guenter Kukkukk * BUG 2541: Fix copying of file(s) from samba share to an OS/2 local drive. o Tom Lackemann * BUG 2242: Patch to ensure that we only set the security descriptor on an NTtransact create if we created the file. o Volker Lendecke * Port some of the non-critical changes from HEAD to 3_0. The main one is the change in pdb_enum_alias_memberships to match samr.idl a bit closer. * Close handles on user creation in rpcclient to better support mass user account creation. * Implement client RAP calls for enumusers/enumgroups level 0. * Implement a new caching API for enumerating the pdb elements. * Convert the RAP user and group enumeration functions to the utilized the pdb_search API. * BUG 2438: Partial fix for 'net rpc trustdom establish' in RestrictAnonymous environments. * Internal passdb API changes for better search capabilities (based on original work by Guenther Deschner). * Fix various compiler warnings. * Add chain length statistics to tdbtool. * Fix set afs ACL calls on files and directories in the root of a share. * Refactoring work on internal open code * Correctly initialize the version in a new set of nt*tdb files. * Remove smb_run_idle_events() from main process loop in smbd and instead rely upon the timeout processing to handle dropping idle LDAP connections. * Fix the bug where users show up as trusting domains. * Fix an assertion failure in winbindd. * Fix a memleak in vfs_afsacl. * Various compiler warning fixes. * Fix compile when --enable-socket-wrapper is defined. * Fixes for top level acls in vfs_acl.c. * Refactor passdb interface functions. * Compile fixes when '#define PARANOID_MALLOC_CHECKER 1'. * Correct 2 segv's in "net rpc printer migrate". * Return correct group type from smbd for BUILTIN groups. * Backport the talloc() layer from Samba 4. * BUG 2701: Fix segv in ldap reconnection code. * BUG 2705: Fix segv when connecting from usrmgr.exe. * Use the SID in the user token for the %s expansion in 'afs username map'. * Memory leak fixes in passdb code. * BUG 2720: Fixes for "net usersidlist". * BUG 2725: Fix segv in "net ads user". * Only allow schannel connections if a successful Auth2 has been previously performed. * Don't look at gencache.tdb for the trusted domains if winbind is present. * Rewrite winbindd using an asynchronous process model. o Herb Lewis * Compiler warning cleanups. * smbwrapper Makefile and compile time check cleanups. * Adding robustness checks for tdbdump and tdbtool. * Extend tdb command line parsing to arbitrary hex characters. * Add LOCKING debug class. * Fix more compiler warnings. o Derrell Lipman * add support for opening a file for write with O_APPEND in libsmbclient. * Added smbsh/smbwrapper for Linux to example/libsmbclient tree. * Fix smbc_stat() from returning incorrect timestamps IFF it used cli_qpathinfo2() to retrieve the timestamps (Win2k) and not if it used cli-getatr() to retrieve the timestamps (Win98). * Fix handful of compiler warnings. * BUG 2498, 2484: smbc_getxattr() fixes. * BUG 1133: Added provision for overloading some global configuration options via the new, per-user file ~/.smb/smb.conf.append. * BUG 2543: Properly cache anonymous username when reverting to anonymous login, in libsmbclient. * BUG 2505: Fix large file support in libsmbclient. * BUG 2564: Ensure correct errno when smbc_opendir() was called with a file rather than a directory. * Correct deprecated lvalue casts in testsuite/libsmbclient. * BUG 2663. cli_getattrE() and cli_setattrE() were not formatting or parsing the timestamp values correctly. * Correctly detect AF_LOCAL support in configure. * Fix problem updating file times on Windows 98 hosts using libsmbclient. * Fix compile breakage on Solaris by eliminating the use of ctime_r() in libsmbclient DEBUG statement. o Jason Mader * BUG 2483, 2468. 2469, 2478, 2093: Compiler warning fixes. * Various compiler warning fixes about mistyped variables. * BUG 2882, 2885, 2890, 2891, 2900: Various compiler warning fixes and code cleanups. * BUG 2527, 2538: Removed unused variables. o Marcel * Fix regression in OS/2 trans2 open code. o Jim McDonough * Fixes for samr_lookup_rids() when using ldapsam:trusted=yes (in conjunction with Volker). * BUG 2953: Prevent the credentials chain on DC gets out of sync with client when NT_STATUS_NO_USER is returned. * Added subcommands to "net rpc vampire" (mostly done by Don Watson ) to allow data to be put into an ldif file instead of actually writing to the passdb. * BUG 2736: Add retries to workaround winbind race condition with detecting idle clients. * BUG 2953: Additional fixes for domain trusts. Also clears up the "bad stub" error when attempting to logon to a Samba domain with a bad username. o Luke Mewburn * Compiler warning fixes. o Kalim Moghul * Removed unused printmode command from smbclient. o Lars Müller * Re-enable the VERSION_REVISION option in case of another letter release. * Fix spoolss python bindings after C++ compiler changes and other python fixes. * BUG 2659: Don't trump on memory in smbtorture. * BUG 2060: Add -fPIC which is the case for all other Samba shared libs. * Fix argv parsing in "net rpc". * Add support to create position independent executable (PIE) code if the compiler supports it. * BUG 2767: Add new options to testparm (--show-all-parameters, --parameter-name, and --section-name). * Fix net share migrate files to also migrate the ACLs of the top level dir of a share. o Marcel Muller * Patch to fix the OS/2 EA_FROM_LIST info level call. * Mangled names fix for OS/2 clients. * Ensure we correctly set the return packet size to include the pad bytes in reply_readbmpx(). * Fix for bug in SMBwriteBraw that incorrectly returned the number of bytes written. o Ricky Nance * Implemented mklogon script generator for domain logon scripts. o James Peach * BUG 1843: Fix quotas (with no soft limits) on IRIX. * BUG 2285: Patch for hires timestamps and efficient notify code. * MS-DFS tidyup patches. * Build fixes on IRIX. * IRIX compiler warning fixes. * BUG 2596: Fix become_root link issues and one IRIX stack backtrace bug. * Fix for null pointer ACL free. * BUG 2314: Fix const compiler warnings in the quota code. o Ed Plese * Fix faulty logic which caused winbindd to return failure when a user possessed no supplementary groups. o Marcin Porwit * Initial support for the \eventlog pipe. * Fix a memleak in the eventlog code. * Miscellaneous fixes for Samba's experimental event log support. * Add ServiceQueryConfig2() and ServiceQueryStatusEx() server calls. o Tim Potter * BUG 2940, 2943: Fixed various compiler warnings regarding mismatched types and unused variables. * BUG 1888, 1894: Fix warnings when time_t is an unsigned type. * BUG 2733: Fix incorrect SHLIBEXT is set when running configure script on HPUX IA. * Remove unused autoconf #define's. * BUG 2893: Fix inverted assignment in 'net rpc printer' code. * Removed unused function declarations in tdb.h. * BUG 2895: Don't wrap non-existent functions in the python tdb bindings. * BUG 2623, 2630: $< and $* are not valid in explicit rules according to POSIX. * BUG 2560: Fix compile error lurking where PATH_MAX is not defined. * BUG 2625: Remove configure check for FTRUNCATE_NEEDS_ROOT. * BUG 2611: Add fflush(stdout) after displaying username prompt in smbsh if username not specified on command line. * BUG 2699: Fix for segfault in samba.winbind.auth_crap module * BUG 2808: Update install swat message to reflect the fact that swat/README no longer exists. o Denis Sbragion * BUG 2196: Allow absolute path (system wide) recycle bin. o Fernando Schapachnik * Add logon hours support for the Postgres backend. o Richard Sharpe * Fix bug in profiles tool caused by use of MAP_PRIVATE. o Joerg Sonnenberger * BUG 2362: Quota support fix for DragonFly. * Fix dragonfly detection in configure. o Simo Sorce * Allow Domain Admins to force user sessions to close via the Windows Server Manager. * Add support to 'net rpc right privileges ' to enumerate accounts which possess a specific privilege. * Fix memory issues issues in vfstest (reported by Rainer Link). * Randomize reloading as to not overload cupsd. o Smitty * Compile fixes for smbget when using --enable-developer. * Include LUID values to match Windows privileges since apparently this matters to printmig.exe o John Terpstra * Solaris packaging fixes. * Clean up usage help text in "net rpc user" o Andrew Tridgell * Merge socket wrapper library fixes from Samba 4. o Brett Trotter * Fix definition of global_sid_* in vfs_acl.c. o Mark Weaver * Patch to fix sys_select so it can't drop signals if another fd is ready to read. o Jelmer Vernooij * Remove --with-manpage-languages configure option. * Merge socket wrapper fixes for IRIX systems from the Samba 4 branch. * Add socket_wrapper library to 3.0. Can be enabled by passing --enable-socket-wrapper to configure. * Fix build of the various sql pdb backends after new talloc. o Qiao Yang * Use our own DC when getting the SID for a domain. Release Notes for older release follow: -------------------------------------------------- =============================== Release Notes for Samba 3.0.14a Apr 14, 2005 =============================== Common bugs fixed in 3.0.14a include: o Compatibility issues between Winbind and Windows 2003 SP1 domain controllers (*2k3sp1*). o MS-DFS errors with Windows XP SP2 clients. o High CPU loads caused by infinite loops in the FindNext() server code. o Invalid SMB_ASSERT() which caused smbd to panic on ACL'd files. ###################################################################### Changes ####### Changes since 3.0.14 -------------------- commits ------- o Jeremy Allison * Fixed invalid SMB_ASSERT() triggered by checking access on ACL'd files. Changes since 3.0.13 -------------------- smb.conf changes ---------------- Parameter Name Action -------------- ------ dos filetimes Enabled by default commits ------- o Jeremy Allison * Prevent nt_status code support when negotiating protocols earlier than NT1. * BUG 2533: Remove the UNICODE flags2 bit from SMBsearch calls as this SMB is DOS codepage only. * BUG 2585: Fix printf() issues in smbpasswd which caused seg faults. * BUG 2563: Fix infinite loop on non-existent file with FindNext(). * BUG 2581 (partial): Ensure if realloc fails on an internal tdb we fail gracefully. * Ensure that 'dos filetimes' works with ACLs. * Set 'dos filetimes = yes' as the default for smb.conf. o Gerald (Jerry) Carter * Workaround autoconf issue to prevent debug symbols from being included in the default build. * Disable schannel on the \lsarpc pipe in order to successfully enumerate users and groups (*2k3sp1*) * Fix parsing error in rpc binds which broke NTLMSSP authentication. And as a result broke CTL+ALT+DEL password changes from a Windows 2003 SP1 member of a Samba domain (*2k3sp1*). * Revert change to FindFirst() server code that broke WinXP SP2 clients from launching *.exe files from a dfs target share. * BUG 2588: Force smbclient to send netbios messages to port 139 unless otherwise instructed (based on patch from Thomas Bork). o Volker Lendecke * Fix build on FreeBSD 4 where Winbind is not supported. * Fix 'wbinfo --user-sids' when using domain local groups. * Restrict domain local groups reported by 'wbinfo -r' to the Samba server domain and not the users domain. o Lin Li * Ensure that winbind initializes internal trusted domain structures when enumerating users and groups. o Tim Potter * BUG 2565: Fix crash bug and compiler warnings in strchr_m() test. * Fix compiler warnings. o * Fix for possible root squash NFS bugs. o Simo Sorce * Debian packaging fixes. -------------------------------------------------- ============================== Release Notes for Samba 3.0.13 Mar 24, 2005 ============================== Common bugs fixed in 3.0.13 include: o Infinite FindNext() loop from Windows 9x client when copying or deleting files on a Samba file share using explorer.exe. o Numerous smbclient bugs when listing directories. o Failures in smbclient when connecting to a Windows 9x file server. ###################################################################### Changes ####### Changes since 3.0.12 -------------------- o Jeremy Allison * Fix typo bug in smbclient where flags overwrote info level in the cli_list_new(). * Fix old smbclient bug where ff_searchcount was being compared to -1 resulting in processing a filename twice. * Fix segv in smbclient caused by overwriting the last 2 bytes in cli_list_new(). * BUG 2530: Fix potential segv in smbclient when talking to a Windows 9x file server. * Fix last entry offset in cli_list_new() when using a FindFirst/FindNext info level of 0x104. * BUG 2501: Stop Win98 from looping doing FindNext on a singleton directory. * BUG 2521: Fix error in access checks when user group ACLs. o Gerald (Jerry) Carter * BUG 2497: Fix bug in rpcclient's deletedriverex when asking to delete all versions of a driver. * BUG 2517: use the realm from smb.conf for 'net ads info' when 'disable netbios = yes'. * BUG 2530: Ensure that smbclient correctly detects MS-DFS root shares. * Update RedHat packaging files to require cups support. Also remove requirement for 'idmap {uid,gid}' settings in smb.conf from winbindd init script. * BUG 2516: fix compile issue on True64. o Guenther Deschner * Check for the correct cli-struct when copying files in 'net rpc printer' routines. o Herb Lewis * Fix incorrect test in 'net rpc user' when the user is not a member of any groups. o Jim McDonough * Make sure that enum_group_members() searches the correct suffix. -------------------------------------------------- ============================== Release Notes for Samba 3.0.12 Mar 18, 2005 ============================== Common bugs fixed in 3.0.12 include: o Winbind failures when using 'disable netbios = yes' o Failure to establish a trust relationship via 'net rpc trust establish' o Various portability & compiler issues. o Read only file deletion failure caused by new delete semantics in Windows XP SP2 and the MS 04-044 security hotfix. o Error messages from shared Excel workbooks residing on Samba file shares. o Missing files in the output of smbclient -c 'dir' when run against Windows file servers. o Inability for Print Administrators to pause/resume/purge print queues. Additional features introduced in Samba 3.0.12: o Performance enhancements when serving directories containing large number of files. o MS-DFS support added to smbclient. o More performance improvements when using Samba/OpenLDAP based DC's via the 'ldapsam:trusted=yes' option. o Support for the Novell NDS universal password when using the ldapsam passdb backend. o New 'net rpc trustdom {add,del}' functionality to eventually replace 'smbpasswd {-a,-x} -i'. o New libsmbclient functionality. ======================= Large Directory Support ======================= Samba 3.0.12pre1 introduces a specific mechanism for dealing with file services that frequently contain a large number of files per directory. Historically Samba's performance has suffered in such environments due to the translation from case insensitive lookups by Windows client to the case sensitive storage mechanisms used by UNIX filesystems. Configuration details along with a short HOWTO can be found at: http://www.samba.org/samba/ftp/HOWTO/Samba-LargeDirectory-HOWTO ================================== libsmbclient Binary Compatibility ================================== Please note that a change has been made to the _SMBCCTX structure in source/include/libsmbclient.h. This change is not backwards compatible with applications linked against the libsmbclient.so library from Samba 3.0.11. However, it is compatible with all other Samba 3.0.x releases. This means that it will be most likely be necessary to recompile any applications linked against the 3.0.11 version of the library. ###################################################################### Changes ####### smb.conf changes ---------------- Parameter Name Action -------------- ------ allocation roundup size New log nt token command New write cache Deprecated Changes since 3.0.11 -------------------- commits ------- o Jeremy Allison * BUG 2146: Return correct allocation sizes so as not to crash the VC++ compiler. * BUG 962: Ensure that parsing of service names in smb.conf is multibyte safe. * BUG 2201, 2227: Support new delete semantics used by MS04-044 and XP SP2. * BUG 1525: Correctly timestamps interpreted on 64-bit time_t values (patch submitted by Jay Fenlason ). * Add special hooks when serving directories containing large numbers of files. * Ensure that WINS negative name query responses and WACK packets use the correct RR type of 0xA instead of reflecting back what the query RR type was (0x20). * BUG 2310: Only do 16-bit normalization on small dfree request. * BUG 2323: Correct authentication failure when using plaintext passwords from Windows XP clients. * BUG 2146: Add new smb.conf option 'allocation roundup size' to work around issues building MS Visual Studio 6.0 project on a Samba file share while restoring the pre-3.0.21pre1 behavior by default. * BUG 2399 (partial): Ensure we use SMB_VFS_STAT instead of stat when checking for existence of a pathname. * Check the sticky bit on the parent directory for supporting the new WinXP SP2 file deletion semantics. * Various oplock, share mode, and byte range locking fixes found by Connectathon tests. * BUG 2271: Fix resume key issues in trans2FindFirst() client code (inspired by patch from Satwik Hebbar). * BUG 2382, 2045: More pending modtime and delayed write fixes for MS Excel (incorporates partial patches from ke_miyata@itg.hitachi.co.jp). * Debug log message cleanups. * Add case insensitive search for a principal match on logon verification in the system keytab (based on patch by Michael Brown ). * Revert the previous SMB signing change from Nalin Dahyabhai when using DES keys. * Add missing RESOLVE_DFSPATH() calls for older SMB commands. * Fix FindFirst() server code to deal with resume names of ".." and "." (found by Jim McDonough). * BUG 2451: Fix missing functions in full audit VFS module. * Ensure that smbd logs failures reported by DISK_FREE() (reported by Ying Li ). * Ensure that smbclient obeys the max protocol argument again. * BUG 2335: Return correct error code for OS/2 clients (based on negotiated protocol level). * BUG 2460, 2464: remove dead code and unused variables (reported by Jason Mader). o Andrew Bartlett * Avoid length-limited intermediate copy of NT and LM responses in NETLOGON client. * Debug message cleanups in the NTLMSSP implementation. o Manuel Baena * Print actual error message in smbmnt.c:fullpath(). o Vince Brimhall * Add support for Novell NDS universal password. * BUG 2424: Ensure that uidNumber and gidNumber use match the RFC2307 schema. * BUG 2453: Change the way pdb_nds.c handles users with no Universal or Simple Password. * NDS schema file corrections. o Gerald (Jerry) Carter * Add trans2 client call for checking dfs referrals * Convert smbclient to use TRANS_QPATHINFO(SMB_QUERY_FILE_BASIC_INFO) when checking directories on modern CIFS servers. * Add MS-DFS support to smbclient. * Code cleanup of adt_tree.[ch]. * Add missing checks to allow root to manage user rights. * Allow domain admins to manage rights assignments on domain members servers. * BUG 2333: Use the lpq command to pass in the correct printer name for cups_queue_get(). CUPS backend now sets 'lpq command= %p' as the default. * BUG 1439: make sure to initialize pointer to prevent invalid free()'s on exit. * BUG 2329: fix to re-enable winbindd to locate DC's when 'disable netbios = yes'. * Add cups-devel to BuidlRequires directive in Fedora spec file. * BUG 858: Fix order of popt args evaluation so we don't crash when given no command line args. * Remove dependency on bash for source/autogen.sh. * Fix clitar.c compile issues caused by broken MIT 1.4 headers. * Implement MS-DFS for recursive directory listings in smbclient. * BUG 2394: Fix nmbd linking issue on IRIX. * Only display the publish check box in the client's printer properties dialog if we are a member of an AD domain. * BUG 2363: allow 'in use' driver to be removed as long as one 'Windows NT x86' driver remains. * BUG 1881: Allow PRINT_SPOOL_PREFIX to be set in local.h for porting purposes. * Enforce better printer.tdb cache consistency when removing jobs from a print queue via SMB. * Ensure that pause/resume/purge print queue commands are run with the appropriate level of privilege necessary to actually work. * BUG 2355: Use bsd style commands (lpq, lpr, etc...) for default for 'printing = cups' installations that do not actually have libcups. * BUG 2425: Remove incorrect checks for Win98 DFS clients. * BUG 2215: Rewrite questionable code that was causing gcc to choke. * Add server support for LsaLookupPrivValue(). * Various small compile fixes and cleanup warnings. * BUG 2456: Fix compile failure on non-gcc platforms due to non-standard pragma. o Kevin Dalley * BUG 2398: Don't force smbclient to assume a dry run if the target tarfile is /dev/null. o Guenther Deschner * Fix crash bug in the client-spoolss enumdataex-call. * Expand the valid-workstation-scheme by expanding names beginning with a plus (+) as a unix group. * Allow own netbios name to be set in smbclient's session setup. * Better handling of LDAP over IPC connections that have expired on the LDAP-Server. * Fix pipe-mismatch for NETDFS in cli_dfs.c. * Add examples/misc/adssearch.pl. * BUG 2343: Build fixes. * Support get_user_info_7 in SAMR server RPC. * Fix server_role in the samr_query_dom_info calls. * Add example perl script to check for multiple LDAP entries after running 'net rpc vampire'. * Add more output when listing printer forms via rpcclient. * Debug log message cleanup. o Steve French * On failed mount (ENXIO) retry share name in uppercase (fix mount to FastConnect AIX SMB server). * Add missing FILE_ATTRIBUTE_XXX defines to smb.h. * Ignore user_xattr mount parm (mount.cifs) so as not to confuse it with a user name. * Update for new CIFS POSIX info levels. * Ignore users mount parm in mount.cifs. o SATOH Fumiyasu * BUG 1549: Don't truncate service names in smbstatus. o William Jojo * BUG 2445: Patch to avoid default ACLs on AIX. o S Murthy Kambhampaty * Add idmap_rid module to Fedora and RedHat spec files. o Volker Lendecke * BUG 2401: Flush internal getpwnam() cache after deleting a user. * BUG 1604: Make winbind work with more than 10 trusted domains. * Cleanup various compiler warnings. * Fix a memory leaks in privileges code and passdb backends. * Fixes for samr_lookup_sids() client call. * Optimize _samr_query_groupmem with LDAP backend for large domains. * Support SIDs as %s replacements in the afs username map parameter. * Add 'log nt token command' parameter. If set, %s is replaced with the user sid, and %t takes all the group sids. * Do not use the "Local Unix Group"-default description for all kinds of group-mappings. * Fix uninitialized variable in Linux nss_winbind library. * Move 'net afskey' into a subcommand of its own, 'net afs key'. * Implement 'net afs impersonate'. o Herb Lewis * Fix build problem when HAVE_POSIX_ACL is not defined. * BUG 2417: Add help lines for net rpc group addmem and delmem commands. o Derrell Lipman * Add support to libsmbclient for getting and setting DOS attributes using EA functions. * Fix libsmbclient's URL encoding/decoding. * Replace browse listing URI queries with an internal options structure (previous method violated the SMB URI syntax). * Allow tree connects to be multiplexed over a single CIFS server connection context. * Ensure that cli_tdis() sets the cnum field to -1 so that callers can determine a dead tree connection. * Implement better solution for backwards binary compatibility in libsmbclient while adding new fields to struct _SMBCCTX. o Mark Loeser * BUG 2443: Compile fix for gcc4. o Jim McDonough * BUG 2338: Fix coredump when OS/2 checks for long file name support (with .+,;=[].) (thanks to Guenter Kukkukk). o Jason Mader * Compiler warning fixes (BUGS BUG 2132, 2134, 2289, 2327, 2340, 2341, 2342) o Jim McDonough * Fixes for server schannel implementation when 'restrict anonymous = 1' is set in smb.conf. * Fix bug in server side lookupsids reply that crashed lsass.exe on Windows clients. * Fix 'net rpc trustdom establish'. * BUG 2062: Turn off broadcast for all 390 NICs. * Fix 'net rpc trustdom add' to correctly add new domain trust accounts. This will eventually replace 'smbpasswd -a -i'. * Implement 'net rpc trustdom del', including client side of samr_remove_sid_from_foreign_domain. * Bring IBM Directory Server schema up to date with openldap schema. * Allow for better protection of sensitive attributes in IBM Directory Server. o Stefan Metzmacher * Fix memleaks in the nttrans code. o Mike Nix * Add SMBsplopen and SMBsplclose client calls. o Justin Ossevoort * BUG 2316: Fix crashes in pdb_pgsql. o James Peach * Fixes in string handling code. * Fix oplock2 test in client smbtorture. o Tim Potter * Fix up example pdb modules after prototype change for setsampwent. * BUG 2058: Fix for shared object creation in examples. * BUG 2315: Fix segv in LSA privileges server code. * Build fixes for python wrapper libraries. o Richard Sharpe * BUG 2044: Fix segv in profiles tool. * Fix bogus error messages when enumerating user group membership via 'net rpc'. o Simo Sorce * Debian packaging fixes. o John Terpstra * Add the capability to set account description using pdbedit. o Doug VanLeuven * Add more case/realm/name permutations to the kerberos keytab. * AIX compile fixes. o Jelmer Vernooij * BUG 892: Default unknown_6 field to 1260 in mySQL pdb module. * BUG 1957: Implement minimal update of fields in mySQL pdb module. o Torsten Werner * BUG 2405: Define 'lpstat' printcap output on HPUX. o Shlomi Yaakobovich" * Detect infinite loops when traversing tdbs. -------------------------------------------------- ============================== Release Notes for Samba 3.0.11 Feb 5, 2005 ============================== Common bugs fixed in 3.0.11 include: o Crash in smbd when using CUPS printing. o Parsing error of other SIDs included in the user_info_3 structure returned from domain controllers. o Inefficiencies when searching non-AD LDAP directories. o Failure to expand variables in user domain attributes in tdbsam and ldapsam. o Memory leaks. o Failure to retrieve certain attribute when migrating from a Windows DC to a Samba DC via 'net rpc vampire'. o Numerous printing bugs bugs including memory bloating on large/busy print servers. o Compatibility issues with Exchange 5.5 SP4. o sendfile fixes. Additional features introduced in Samba 3.0.11: o Winbindd performance improvements. o More 'net rpc vampire' functionality. o Support for the Windows privilege model to assign rights to specific SIDs. o New administrative options to the 'net rpc' command. ============ LDAP Changes ============ If "ldap user suffix" or "ldap machine suffix" are defined in smb.conf, all user-accounts must reside below the user suffix, and all machine and inter-domain trust-accounts must be located below the machine suffix. Previous Samba releases would fall back to searching the 'ldap suffix' in some cases. =============== Privilege Model =============== Samba 3.0.11 supports the following assignable rights SeMachineAccountPrivilege Add machines to domain SePrintOperatorPrivilege Manage printers SeAddUsersPrivilege Add users and groups to the domain SeRemoteShutdownPrivilege Force shutdown from a remote system SeDiskOperatorPrivilege Manage disk shares These rights can be assigned to arbitrary users or groups via the 'net rpc rights grant/revoke' command. More details of Samba's privilege implementation can be found in the Samba-HOWTO-Collection. ###################################################################### Changes ####### Changes since 3.0.10 -------------------- smb.conf changes ---------------- Parameter Name Action -------------- ------ afs token lifetime New enable privileges New ldap password sync Alias min password length Deprecated winbind enable local accounts Deprecated commits ------- o Jeremy Allison * Extend vfs to add seekdir/telldir/rewinddir. * Fix dirent return. * Fix bugs when handling secondary trans2 requests. * Implementation of get posix acls in UNIX extensions. * Added set posix acl functionality into the UNIX extensions code. * Updated config.guess/config.sub . * Fix error reply when 'follow symlinks = no'. * BUG 1061, 2045: Only set mtime from pending_modtime if it's not already zero. * Fixes for LARGE_READX support. * Fix the problem we get on Linux where sendfile fails, but we've already sent the header using send(). * BUG 2081: Ensure SE_DESC_DACL_PROTECTED is set if 'map acl inherit = no'. * BUG 2088: Ensure inherit permissions is only applied on a new file, not an existing one. * Don't go fishing for the krb5 authorization data unless we know it's there. * Fixes for libsmbclient to ensure that interrupted system calls are restarted minus the already expired portion of the timeout (based on work by Derrell Lipman). * More Unicode string parsing fixes. * Convert the winreg pipe to use WERROR returns. * Make all LDAP timeouts consistent (input from Joe Meadows ). * BUG 2231: Remove double "\\" from client findfirst. * BUG 2238: Fix memory leak in shadow copy vfs. * Return correct DOS/NT error code on transact named pipe on closed pipe handle. * BUG 2211: Fix security descriptor parsing bug (based on work by Mrinal Kalakrishnan ). * BUG 2270: Fix memory leaks in cups printing backend support (based on work by Lars Mueller). * BUG 2255: Fix debug level in kerberos error messages. * BUG 2110: Ensure we convert to ucs2 correctly after the CAN-2004-0930 patch. * Make strict locking an enum. Auto means use oplock optimization. * Fix client & server to allow 127k READX calls. * More *alloc fixes (includes additional fixes by Albert Chin. * Catch sendfile errors correctly and return the correct values we want the caller to return. * BUG 2092: Prevent auto-anonymous logins via libsmbclient for better use by desktop environments such as GNOME. * Ensure we can't remove a level II oplock without having the shared memory area locked. o Timur Bakeyev * BUG 2100: change the way we check for errors after a dlopen(). * BUG 2263: Guard base64_encode_data_blob() against empty blobs. o Andrew Bartlett * Clarify error message when 'lanman auth = no'. * Remove the unnecessary UTF-8 conversion calls in the calls to auth_winbind from smbd. * Don't store the auth-user credentials with the cli_state* as this can cause the schannel setup to fail when the auth-user domain is not our primary domain. o Grigory Batalov * Fix encoding while receiving of a message which was actually sent using STR_ASCII. o Daniel Beschorner * BUG 603: Correct access mask check for _samr_lookup_domain() to work with Windows RAS server o Jerome Borsboom * Fix missing printer_tdb reference decrement. o Gerald (Jerry) Carter * BUG 2073: fall back to smb_name if current_user_info is not available in lp_file_list_changed(). * Fixes the spurious 'register_message_flags: tdb fetch failed' errors. * Don't run the background LPQ daemon when we are running in interactive mode. * prevent the background LPQ daemon from updating the print queue cache just because multiple smbd processes sent a message that it was out of date. * consolidate printer searches to use find_service rather than for(...) loops. * BUG 2091: don't remove statically defined printers in remove_stale_printers(). * Fix logic error in add_a_form() that only compared N characters instead of the entire form name. * BUG 2107: fix memory bloating caused by large numbers of print_queue_updates() requests sent via messages.tdb. * Check the setprinter(3) based on the access permissions on the handle and avoid the call to print_access_check(). * Re-instantiate previous semantics for calling init_unistr2() with a NULL source buffer. * Support Windows privilege model for assigning rights to specific SIDs. Based on work by Simo Sorce in the trunk svn branch. This feature is controlled by the 'enable privileges = [yes|no]' smb.conf(5) option. * Add some smb.conf scripts for add/delete/change shares and deleting cups printers. * Expand variables in the profile path, logon home and logon script values when using either tdbsam or ldapsam. * Add Domain Admins (Full Control) to the default printer security descriptor if we are a DC. * RedHat and Fedora Packaging fixes for perl dependencies. * Remove unused schema items from OpenLDAP schema file. * Remove duplicate enumeration of "Windows x86" architecture when listing printer drivers via rpcclient. * Fail set_privileges() if 'enable privileges = no' to prevent confused admins. * Fix segfault in cups_queue_get(). * Tighten restrictions on changing user passwords when the connected user possesses the SeMachineAccountPrivilege. * Ensure we set NETBIOSNAME.domainname for the long machine name when publishing printers in AD (based on input from Rob Foehl). * Mark 'winbind enable local accounts' as deprecated. * Mark testprns tool as deprecated. * Allow root to grant/revoke privilege assignments. * Correct interaction between user rights and se_access_check() on SAMR objects. * BUG 2286: Fix typo OpenLDAP schema file for sambaConfig object class. * BUG 2262: Add support in configure.in for *freebsd6*. * BUG 2266: Portability fixes for quota code on FreeBSD4. * BUG 2264: Remove shutdown and abortshutdown commands from rpcclient in favor of using the same functions in 'net'. * BUG 2295: Prevent smbd from returning an empty server name in certain lanman api calls. * BUG 2290: Fix autogen.sh script in examples (based on original patch from Lars Mueller). * Fix bug enumerating domain trusts in security = ads. * Fix segv in rpcclient's dsenumdomtrusts. * Fix bug in expansion of %U and %G in included filenames. * BUG 2291: Restrict creation of server trust and domain trust accounts to members of the "Domain Admins" group. o Nadav Danieli * Short circuit some is_locked() tests if we are oplocked. o Guenther Deschner * Allow 'localhost' as a valid server name in the smbd for the spoolss calls. * Fix KRB5_SETPW-defines, no change in behavior (Thanks to Luke Mewburn for the input). * BUG 2059: Add additional checks needed after logic change to the HAVE_WRFILE_KEYTAB detection test. * BUG 1076: Fix interaction with Exchange 5.5. SP4 and a Samba DC. Allow us to lookup at least our own SID. * More fixes to have proper German in swat (Thanks to Reiner Klaproth and Björn Jacke. * BUG 404, 2076: Allow to set OWNER- and GROUP-entries while setting security descriptors with smbcacls and using with the -S or -M switch. * Include the munged_dial, bad_password_count, logon_count, and logon_hours attributes when running 'net rpc vampire'. * Fix segfault in idmap_rid. * When winbindd is operating in the multi-mapping mode of idmap_rid, allow BUILTIN domain-mapping. * Display infolevel 12 in query_dom_info in rpcclient. * Fix bug in winbindd's lowercasing of usernames. * Allow -v or -l for displaying verbose groupmap-listing as well as "verbose". * Backport Samba4 SAM_DELTA_DOMAIN_INFO for use in 'net rpc vampire'. * Close LDAP-Connection before retrying to open a new connection in the retry-loop. * Marking "min password length" as depreciated. * Implement SAMR query_dom_info-call info-level 8 server- and client-side, based on samba4-idl. * Allow rpcclient to define a port to use when connecting to a remote server. * Allow Account Lockout with Lockout Duration "forever" (until admin unlocks) to be set and displayed in User Manager. * Allow to set acb_mask in rpcclient's enumdomusers. * Add more generic rootDSE inspection function to check for given controls or extensions and remember these on a per server basis. * Improve LDAP search efficiency by passing the acb_mask to pdb_setsampwent(). * Fixes for ldapsam_enum_group_memberships(). * Add createdomgroup to rpcclient. * Add "net rpc user RENAME"-command. * Display sam_user_info_7 in rpcclient. * Make multi-domain-mode in idmap_rid accessible from outside (can be compiled with -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS). * When vampiring account policy AP_LOCK_ACCOUNT_DURATION honor "Lockout Duration: Forever". * Fix configure.in tests using KRB5_CONFIG variable and krb5- config utility. * Require assignment of Administrator SID in the passdb backend. Fall back to the default name of 'Administrator' if the lookup fails rather than using the first name in the default 'admin users' list. * Enhance LDAP failure debug messages. * BUG 2291: Call the 'add machine script' for server trust and domain trust accounts as well as workstation accounts. o Levente Farkas * BUG 2299: Better logrotate scripts for RedHat and Fedora packages. o Jay Fenlason * Fix crash in 'net join' due to calling free on static buffers. * Several patches from RedHat's Fedora Core RPMS. o Rob Foehl . * Compiler warnings. * Try modifying printer published attributes before adding it a new entry in AD. * Solaris packaging fixes. * Don't force the cups printer-make-and-model tag as the comment for autoloaded printers. * Implement caching of names from printcap to support a true 'printcap cache time'. o Johann Hanne * BUG 2038: Only fail winbindd_getgroups() if all lookups fail. o Jeff Hardy * Example script for 'add print command' when using CUPS. o Deryck Hodge * Add -P (--password-only-menu) to SWAT for displaying only the password change page to non-root users. o David Hu * Copy structure from print_queue_update() message rather than referencing it. Fixes seg fault on HP-UX. o Buck Huppmann * BUG 2186: Don't free uninitialized credentials. * BUG 2189: Add the HOST/fqdn servicePrincipalName even when dnsDomainName != realm. o Björn Jacke * BUG 2040: Ensure the locale is reset to C to get ASCII- compatible toupper/lower functions. o William Jojo * Fix HPUX sendfile and add configure.in tests and code for sendfile on AIX. * AIX 5.3 compile fixes. o Volker Lendecke * Optimize anonymous session setups by workstations in a Samba domain. * Reimplment the QueryUserAliases() server RPC reply. * Re-add the getpwnam-cache for performance. * Cache the result of a pdb_getsampwnam for later SID lookup queries. * Unify the means of localtaing a user's global groups on a Samba DC. * Fix bug when serving the 'Start Menu' in a roaming user profile.. * Map more pre-defined NT security descriptors to AFS acls. * Add timeout to AD search requests. * If a connection to a DC is requested (in winbindd), open connections simultaneously to all DCs found. * Memleak fixes. * Fix logic error in handling of 'printcap name' parameter. * Prevent winbindd from SPAM'ing the log files with 'user root does not exist'. * Backport samr_DomInfo2 IDL specification from Samba 4. * Implement smbstatus -n, don't lookup users and groups. * Implement simple mapping that maps the space to another character defined by afsacl:space. * Add support for 'net idmap delete '. * Add new parameter 'afs token lifetime' tells the AFS client when to throw away a token (patch from kllin@it.su.se). * Initial work to allow support for multiple pipe opens on a single cli_state*. * Ensure that we still retrieve the netbios name of any DC listed as a 'password server' to work around cases where the DC was defined using an IP address or fqdn. * Fix memleak in winbindd connection code. * Fix cli_samr_queryuseraliases. * Allow wbinfo --user-sids to expand expand domain local groups. * Allow 'rpcclient -c enumtrust' to enumerate more than 10 trusts. * Fix parsing of other_sids in net_user_info3. * Correct bad failure logic when user was not a member of any domain local groups. o Jason Mader * BUG 2113, 2289: Remove dead code. o Jim McDonough * BUG 1952: Try INITSHUTDOWN pipe first, used by newer clients. If it fails, fall back to WINREG. * BUG 1770: Remove READ_ATTRIBUTES from GENERIC_EXECUTE. * BUG 2198: Set password last change time when running 'net rpc vampire'. * Add "refuse machine password change" policy field. o Luke Mewburn * BUG 2150: shmget() - Use POSIX definitions instead of non- standard SHM_. o Stefan Metzmacher * autogen.sh fixes. o Buchan Milne * Mandrake packaging fixes. o Lars Mueller * Fix build of libsmbclient on x86_64. * BUG 2013: Fix testsuite build issues when libsmbclient.so is installed in a non-default location. * BUG 2050: Calculate max_fd for select correctly. * Fix inverted logic heck for HAVE_WRFILE_KEYTAB in autoconf script. o Jason Mader * BUG 2069: Remove unused variables. * BUG 2075: Remove dead code paths. * BUG 2083: Fix compiler warnings caused by bad type casts. o James Peach * Fix rewinddir -> rewind_dir when using VFS macros. o Gavrie Philipson * BUG 1838: Remove stale printers imeeddiately when processing a SIGHUP and during smb.conf reload. o Tim Potter * BUG 2080: Fix duplicate call to pdb_get_acct_desc(). * BUG 2168: Fix cast in SMB_XMALLOC_ARRAY. * Change the license for the winbindd external interface more liberal. * HP-UX compile fixes. * Compile fixes after new setsampwent() API. o Richard Renard * Update Netscape DS 5.2 LDAP schema. o Simo Sorce * Backport pdbedit changes from trunk. * Allows the add/change share command to create the shared directory directory on disk. * Log a warning in testparm if a print command is defined for a print service using 'printing = cups'. o Jelmer Vernooij * Bug fixes for pdb_{xml,pqsql,xml} * Fixes for pdb_mysql. o Andrew Tridgell * Bring Samba3 into line with the Samba4 password change code. o Shiro Yamada * BUG 2190: Force SWAT to display parameters in unix charset and not UTF-8. -------------------------------------------------- ============================== Release Notes for Samba 3.0.10 Dec 16, 2004 ============================== Common bugs fixed in 3.0.10 include: o Fix for security issues described in CAN-2004-1154. Changes since 3.0.9 ------------------- commits ------- o Jeremy Allison * Added checks surrounding all *alloc() calls to fix CAN-2004-1154. * Fix long standing memory size bug in bitmap_allocate(). * Remove bogus error check in deferred open file serving code. o Thomas Bork * Fix autoconf script on platforms using a version of GNU ld that does not include a date stamp in the output of --version. o Luke Mewburn * Fix the swat install script to deal with the new image destination directory used by the docs. -------------------------------------------------- ============================= Release Notes for Samba 3.0.9 Nov 15, 2004 ============================= Common bugs fixed in 3.0.9 include: o Problem updating roaming user profiles. o Crash in smbd when printing from a Windows 9x client. o Unresolved symbols in libsmbclient which caused applications such as KDE's konqueror to fail when accessing smb:// URLs. Changes since 3.0.8 ------------------- commits ------- o Jeremy Allison * Correctly detect errno for no acl/ea support. * BUG 2036: Fix seg fault in 'net ads join'. o Gerald (Jerry) Carter * Solaris packaging fixes. * Fix seg fault in lanman printing code. * BUG 2017: fix testparm reporting for the passwd program string. * Fix output of smbstatus to match the man page. * BUG 2027: fix conflict with declaration MD5_CTX in system headers. * 2028: Avoid false error messages when copying a long printer name to the device mode. o Guenther Deschner * Allow deldriverex in rpcclient to delete drivers for a specific architecture and a specific version. * Fix a couple of rpcclient spoolss commands (setprinter, setprintername, getdriver) w.r.t to printer-naming scheme. Allow 'localhost' in the server string for certain server-side spoolss functions. * BUG 2015: Do not fail on setting file attributes with acl support enabled. o Michel Gravey * Fix build when using gcc 3.0. o Volker Lendecke * Fix tdb open logic when checking our local_pid after the fork(). o Jim McDonough * BUG 1932: Fix crash in 'net getlocalsid' when run as non-root user. o Luke Mewburn BUG 1661: Fix KRB5_SETPW-defines o Buchan Milne * BUG 2023: Mandrake packaging fixes for building 3.0.9. o Lars Mueller * BUG 2013: Fix unresolved symbols in libsmbclient.so. o Martin Zielinski * Add DeletePrinterDriverEx() functionality to rpcclient. -------------------------------------------------- ============================= Release Notes for Samba 3.0.8 Nov 7, 2004 ============================= Common bugs fixed in 3.0.8 include: o Compile fixes for HP-UX o Fixes for the printer publishing code used when joined to an AD domain. o Incompatibilities with file system quotas. o Several bugs in the spoolss printing code and print system backends. o Inconsistencies in the username map functionality when configured on domain member servers. o Various compile warnings and errors on various platforms. o Fixes for kerberos interoperability with Windows 200x domains when using DES keys. o Fix for CAN-2004-0930 -- smbd remote DoS vulnerability. o Fix for CAN-2004-0882 -- possible buffer overrun in smbd. New features included in the 3.0.8 release are: o New migration functionality added the the net tool for files/directories, printers, and shares. o New experimental idmap backend for assigning uids/gids directly based on the user/group RID when acting as a member of single domain without any trusts. o Additional printer migration support for XP/2003 platforms. =========================== Change in Winbindd Behavior =========================== All usernames returned by winbindd are now converted to lower case for better consistency. This means any winbind installation relying on the winbind username will need to rename existing directories and/or files based on the username (%u and %U) to lower case (e.g. mv $name `echo $name | tr '[A-Z]' '[a-z]'`). This may include mail spool files, home directories, valid user lines in smb.conf, etc.... ====================== Change in Username Map ====================== Previous Samba releases would only support reading the fully qualified username (e.g. DOMAIN\user) from the username map when performing a kerberos login from a client. However, when looking up a map entry for a user authenticated by NTLM[SSP], only the login name would be used for matches. This resulted in inconsistent behavior sometimes even on the same server. Samba 3.0.8 obeys the following rules when applying the username map functionality: * When performing local authentication, the username map is applied to the login name before attempting to authenticate the connection. * When relying upon a external domain controller for validating authentication requests, smbd will apply the username map to the fully qualified username (i.e. DOMAIN\user) only after the user has been successfully authenticated. ###################################################################### Changes ####### Changes since 3.0.7 ------------------- smb.conf changes ---------------- Parameter Name Action -------------- ------ force printername New sendfile disabled by default commits ------- o Jeremy Allison * Ensure extended security bit is on only if we negotiated extended security. * Simplify statcache to use an in-memory tdb. * If you're selecting a hash algorithm for tdb, you need to do it at open time. * Removed old dir caching code - not being used now we have the statcache anyway. * Simplify the mangle hash code to use an in-memory tdb. * Merge iconv changes from Samba 4 branch. * Fix parsing of names ending in dot and a few other error returns. * BUG 1667: Smbpasswd file could be left locked on some error exits. * Fixes for smbclient tar functionality. * BUG 1743: Fix logic bug the deferred open code. * Don't try to set security descriptors on shares where this has been turned off. * Return correct error codes on old SEARCH call. * Ensure we set errno = E2BIG when we overflow in the fast-path character conversion code. * Fix the roundup problem (returning 1mb roundup) for non-Windows clients. * Added 'stat' command to smbclient to exercise the UNIX_FILE_BASIC info level. * Fix bug where we could incorrectly set sparse attribute. * Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys() (reported by Taj Khattra ). * Remove locked keys tdb code. * BUG 1886: Prevent delete on close being set for readonly files (and return the correct error code). * Ensure we pass most of the new lock tests except for the cancel lock which is yet to be added (merged from Samba 4 branch). * BUG 1947: Fix incorrect use of getpwnam() etc. interface. * BUG 1956: Ensure errno is saved and restored consistently on a normal_close. * BUG 1651: Adapted patch from Nalin Dahyabhai for ensuring that all of the appropriate service principal names are set upon joining an AD domain. * Fix the correct use of resume name in the trans2 code. * BUG 1717: Adapted patch from Nalin Dahyabhai to detect the correct salt used when generated the DES key after joining an AD domain. * Enhanced krb5 detection routines in the autoconf scripts. o Andrew Bartlett * Avoid changing the machine account password in the passdb backend, when it has 'already been changed'. This occurs in situations where the secure channel between the workstation and the DC breaks down, such as occurred in the MS04-11 security patch. * Fix utility name in error message in ntlm_auth. * Fix NTLMv2 for use with pam_winbind. * Remove conversion to and from UTF8 on the winbind pipe. * Allow 'require_membership_of' and 'require-membership-of'. * Fix the error code for 'you didn't specify a domain' in ntlm_auth. * Use sys_getgroups() rather than scanning all groups when generating SAMR replies. o Igor Belyi * Ensure pdb user is deleted first before deleting UNIX user (LDAP backend needs this ordering). o Cornelio Bondad Jr * Fix core dump in 'net rpc vampire'. o Vince Brimhall * Make ldapsam_compat robust against NULL attributes. o Gerald Carter * Don't limit the number of groups returned by winbindd_getgroups() by NGROUPS_MAX. * BUG 1519: Match Windows 2000 behavior when opening a printer using a servername in the form of an IP address or DNS name. * BUG 1907: remove extra slashes from the printer name in getprinterdriverdir_1(). * Fix standard_sub_snum() to use the current user's gid. * Fix background queue update bug (based on Volker's initial work in 3.1.0). * Add 'force printername' service parameter for people that want to enforce printername == sharename for spoolss printing. * Ensure consistent usage of the username map. Use the fully qualified DOMAIN\user format for 'security = domain|ads' and apply after authentication has succeeded. * Cosmetic fix for getent output -- lowercase the username only and not the complete domain\username string. * Packaging fixes for Solaris, Redhat, & Fedora. o Sean Chandler * Fix memlieak in cliconnect.c. o Darren Chew * Solaris packaging fixes. o Nalin Dahyabhai * SMB signing fix for 56-bit DES session keys. o Guenther Deschner * add IA64 to the architecture table of printer-drivers. * Add file/share/printer migration functionality to the net command. * Show correct help for net groupmap commands. * Fix deadlock loop in winbind's required_membership_sid verification. * Bring the same level of "required_membership"-functionality that ntlm_auth uses, to pam_winbindd as well. * Prevent "net lookup kdc" from seg-faulting when using our own implementation of krb5_lookup_kdc with heimdal. * Adding getprinter level 7 to rpcclient. * Support migrating printers|shares|files from Server A to Server B while running the net-command on client C. * Fixed krb5_krbhost_get_addrinfo()-parameters and make failure of this call non-critical (Thanks to Love @ Heimdal for the explanation and patch). * Fix typos in net's usage-output. * Fix the paranoia-check to ensure the ldap-attribute and the smb.conf-parameter for samba's "algorithmic rid base" in ldapsam are identical. * Fix several bugs in the _samr_query_useraliases() rpc reply. * Check correct string length when verifying password-policies and using extended characters (Thanks to Uwe Morgenroth from CC Compunet and Volker). * Make 'password history'-behavior in ldapsam more consistent. * Adding "Windows x64" as architecture string and driverdir "x64" for the 64bit AMD platform. * BUG 1343: Readd WKGUID-binding to match the correct default- locations of new User-, Group- and Machine-Accounts in Active Directory (this got lost during the last trunk-merge). * Fix printer-migration w.r.t. to new naming-convention for policy-handles. * Allow to migrate win2k3/xp-drivers as well. * Add client-side support of triggering ads printer publishing over msrpc setprinter calls inside the net-tool. * Add the idmap_rid module (written in conjunction with Sumit Bose ). * BUG 1661: Fix build with recent heimdal releases. * Prevent idmap_rid from making unnecessary calls to domain controllers for trusted domains. o Arthur van Dongen * Fix typos in pam_winbind log messages and SuSE packaging files. o Rob Foehl * Typo fixes for log messages in printer publishing code. * Fix memory leak in printer publishing code. * Ensure print_backend_init() only gets called once. * Have smbd check the published status of all printers at startup. * Cleanup up the XXX_a_printer() API for consistency. * Refactored the printer publishing code and include better error handling. o Steve French * Fix IP address override in mount.cifs mount helper and clean up warning messages from the sparse tool and expand syntax help. * Strip guest mount option off before sending to kernel mount routine to avoid logging spurious message. o Satoh Fumiyasu * BUG 1732: Limit share names returned by RAP based on windows character width, not unix character width. * BUG 1498: Ensure that acl entries are stored in the correct order. o Brett Funderburg * Pass create options parameter to nt_create_andx() function from the python bindings. * BUG 1864: Add sd->type field to security descriptor Python representation. * Return an error if a Netapp filer returns NT_STATUS_ACCESS_DENIED when trying to return the security descriptor for a file. * BUG 1884: Fixes for the Python bindings to use the value of the desired_access filed passed into the lsa_open_policy() routines. o Michael Gravey * BUG 1776: Fix warnings when building modules caused by certain versions of GNU ld not using the the default --allow-shlib-undefined flag. o Chris Hertel * Fix logic bug in splay tree data structure when finding a leaf node. * Fix bug where an invalid MAC address would be printed by a node status lookup from nmblookup. o Uli Iske * Update the DNS/eDirectory LDAP schema file. o Björn Jacke * BUG 1766: Unify charset-handling in Content-Type:-headers to UTF-8. Reformat msgstr in msg-files to UTF-8. * Do not use display charset for swat output. * Convert the share names correctly from unix encoding to web encoding and vice versa. * Convert files from status page from unix charset to UTF-8. o Guenter Kukkukk * BUG 1590: Fix for talking to OS/2 clients (max_mux ignored). o Tom Lackemann * BUG 1954: Fix memory leak in posix acl code. o Volker Lendecke * Robustnss fix for winbindd when sending multiple requests at a high rate for a slow operation. * Solve the problem of user sids ending up with gid's and vice versa. * Use sys_fork instead of fork for the dual daemon so that we get the correct debug pid in the logfiles. * Based on patch from jmcd, implement special lists for the LDAP user attributes to delete. * Fix creation of aliases via usrmgr. Winbind was too strict checking the type of sids. * Lowercase all usernames returned by winbind. * BUG 1545, 1823: Only issue the ldap extended password change operation if the ldap server supports it. Also ignore object class violation errors from the extended operation. * Optimization for 'idmap backend = ldap': When asking sid2id for the wrong type, don't ask ldap when we have the opposite mapping in the local tdb. * Fix ldapsam_compat homeDrive. * Add usersidlist and allowedusers subcommands to the net tool in order to support scanning a file server's share and list all users who have permission to connect there. * Allow for multiple DC's to be named as #1c names in lmhosts. * Memory leak fixes. * Fix checks for the local pid of an smbd process after reopening tdbs. o Herb Lewis * Added tdbtool to be built by default. o Love * BUG 1955: Inconsistent error return. o Sorin Manolache * Memory leak fix. o Jim McDonough * Allow 'net ads lookup' to rely on command line arguments if contacting an ADS server fails; utilize cldap for lookups. * Fixup formatting errors in TDB_LOG calls; add printf attribute support to tdb log functions. o Bill McGonigle * BUG 1926: Type in debug message. o Sean McGrath * BUG 1822: Add -D_REENTRANT to CPPFLAGS and -lthread to LDFLAGS for libsmbclient. o Luke Mewburn * BUG 1782: Prevent testparm from displaying parameter synonyms. o Stefan Metzmacher * Fix crash in smbcquotas and smbcacls caused by setup_logging(). * Fix client quota support. * Fix opening of system quota file. o Lars Mueller * Small fixes for autogen.sh to deal with version detection of autoconf and autoheader; fixes for examples using libtool to adhere to stricter syntax of newer version. o Henrik Nordstrom * Allow winbindd to return the correct number of groups when the groups array must be enlarged. o Narayana Pattipati * Solaris autoconf detection fixes. o Tim Potter * BUG 1360: (correct fix) Use -Wl when passing flags to the linker. * HP-UX compile fixes (from JBravo on #samba-technical). * BUG 1731: More HP-UX compiles fixes. * BUG 1778: Include yp_prot.h before ypclnt.h as AIX 5.2 spits the dummy otherwise. * Fix bug in Python printerdata wrapper. * BUG 1762: nss_winbind fixes on AIX 5.x (patch from ). * Fix parameter confusion in priming of name-to-sid cache (Found by Qiao Yang). * BUG 1888: Remove '..' from all pre-processor commands. * BUG 1903: Change some #if DEBUG_PASSWORD's to #ifdef DEBUG_PASSWORD. o Matt Selsky * BUG 350: use autoconf 2.57 feature for checking header file preprocessing (fixes configure warnings on Solaris). o Richard Renard * Fix usermgr.exe and trust relationships. o Paul Szabo * Fix to make find_workgroup use the same truncation as create_workgroup. o Richard Sharpe * Ensure cli_write() can support writes >= 65536 bytes. o Simo Sorce * Added check password script code in examples/auth/crackcheck/ * Fix memory corruption bug caused in freeing static memory. o Andrew Tridgell * Remove lp_use_mmap() from map_file() since the latter is for read only and does not require coherence. * Ensure that the uuid pack/unpack routines do not go past the end of the structure. * Converted Samba 3 tree to use the new utf-16 aware iconv code. * Changed iconv to recognise UCS-2LE and UTF-16LE as synonyms. * Ensure configure only uses '=' instead of the bashism '=='. * Reduces the number of tdb locking calls made on file IO. o Jelmer Vernooij * Convert internal data to UTF-8 before calling libxml2. * Complain if 'password chat' doesn't contain the %u variable (based on a patch by Ronan Waide). o Josef Zlomek * BUG 1541: Fix recursive ls in smbclient. o Igor Zhbanov * BUG 1797: Prevent winbind and nmbd from ignoring the "-l" option. -------------------------------------------------- ============================= Release Notes for Samba 3.0.7 Sept 13, 2004 ============================= Common bugs fixed in 3.0.7 include: o Fixes for two Denial of Service vulnerabilities (CVE ID# CAN-2004-0807 & CAN-2004-0808). o Winbind failure to return user entries under certain conditions. o Syntax errors in the OpenLDAP schema file (samba.schema). o Printing errors caused by not setting default values for the various printing commands. Changes since 3.0.6 ------------------- smb.conf changes ---------------- Parameter Name Action -------------- ------ winbind enable local accounts disabled by default commits ------- o Jeremy Allison * Fix parsing of names ending in dot and a few other error returns. * BUG 1674: Move the symlinks checks into reduce_name(). * Fix memleak when checking the valid names smb.conf option. * Fix memleak on error return path in the file open code. * More paranoia checks in the hash2 mangling code. * Fix syntax error in configure.in. * Match Win2k3's behavior for pathname parsing error returns. * Make nmbd more robust against bad netbios packets (CAN-2004-0808). * Add more checks for invalid ASN.1 packets for SPNEGO packets (CAN-2004-0807). o Andrew Bartlett * Janitor work in loadparm.c -- remove unused parameters. o Gerald Carter * BUG 1464: Ensure that printing commands are initialized even if the 'printing' parameter is not explicitly set. * Resolve name conflict on DEC OSF-5.1 (inspired by patch from Adharsh Praveen ) * Work around parsing error in the print change notify code. * remove duplicate declaration of getprintprocdir from rpcclient. * Only use sAMAccountName and not userPrincipalName when looking up a username in AD since the breaks winbindd (lookup_name() only works with the sAMAccountName). * Fix bug with winbindd_getpwnam() caused by Microsoft DC's not filling in the username in the user_info3. * Fix logic bug in the check for creating a user's home directory in register_vuid(); caused home directory to be mismatched to the first share in smb.conf under certain conditions. * BUG 1656: rename auto.a to auto.smb. * Ensure that we assign our pid to print jobs (and not our parent's pid); ensures that spooling jobs from dead smbds are removed from the tdb. * Disable 'winbind enable local accounts' by default. * Adding some initial checks for DragonFly (same as FreeBSD 4.1). o Guenther Deschner * Use SMB_ASSERT() to track down NULL printer names in the tdb open code. * Revert fix for BUG 1474 to avoid unnecessary packaging dependencies. o Olaf Flebbe . * BUG 1627: fix for NIS compiles on HPUX 11.00, AIX 4.3 and 5.1. * BUG 1626: More compile fixes. o Rob Foehl * Don't clear the PRINT_ATTRIBUTE_PUBLISHED was getting reset by attempts to sanitize the defined attributes. o SATOH Fumiyasu * BUG 1546: Preserve errno in MB strupper_m/strlower_m. o Helmut Heinreichsberger . * BUG 1657: Remove used initialized variable, * BUG 1658: Add a little bit of const. o Volker Lendecke * If there's garbage in the pidfile, we should not panic but assume that no one else is around. We can't find the other guy anyway. o Jim McDonough * Fixup format string in the tdb error messages. o Jonas Olsson * BUG 1416: Don't reuncture a users list to NGROUPS_MAX when reporting the list in usrmgr.exe. o Tim Potter * Fix out-of-tree builds (problem with the script to generate the svn version number). * BUG 1360: Need to use -Wl when passing flags to the linker. * BUG 1741: Define a struct nss_groupsbymem for HPUX 11 which doesn't have one of its own. o Simo Sorce * Fixup compile issues on AIX caused by broken strlen() and strdup(). * Update debian packaging files. o Dimitri van der Spek * Use the correct counter when copying group rids from the user_info3 struct in pam_winbind. o Qiao Yang * BUG 1622: Only cache the user -------------------------------------------------- ============================= Release Notes for Samba 3.0.6 Aug 19, 2004 ============================= Common bugs fixed in 3.0.6 include: o Schannel failure in winbindd. o Numerous memory leaks. o Incompatibilities between the 'write list' and 'force user' smb.conf options. o Premature optimization of the open_directory() internal function that broke tools such as the ArcServe backup agent, Macromedia HomeSite, and Robocopy. o Corrupt workgroup names in nmbd's browse.dat. o Sharing violation errors commonly seen when opening when serving Microsoft Office documents from a Samba file share. o Browsing problems caused by an apostrophe (') in the computer's description field. o Problems creating special file types from UNIX CIFS clients and enabling 'unix extensions'. o Fix stalls in smbd caused by inaccessible LDAP servers. o Remove various memory leaks. o Fix issues in the password lockout feature. New features introduced in this release include: O Support symlinks created by CIFS clients which can be followed on the server. o Using a cups server other than localhost. o Maintaining the service principal entry in the system keytab for integration with other kerberized services. Please refer to the 'use kerberos keytab' entry in smb.conf(5). When using the heimdal kerberos libraries, you must also specify the following in /etc/krb5.conf: [libdefaults] default_keytab_name = FILE:/etc/krb5.keytab o Support for maintaining individual printer names stored separately from the printer's sharename. o Support for maintaining user password history. o Support for honoring the logon times for user in a Samba domain. ============================================ unix extensions = yes (default) and symlinks ============================================ Beginning with Samba 3.0.6pre1 (formerly known as 3.0.5pre1), clients supporting the UNIX extensions to the CIFS protocol can create symlinks to absolute paths which will be **followed** by the server. This functionality has been requested in order to correctly support certain applications when the user's home directory is mounted using some type of CIFS client (e.g. the cifsvfs in the Linux 2.6 kernel). If this behavior is not acceptable for your production environment you can set 'wide links = no' in the specific share declaration in the server's smb.conf. Be aware that disabling wide link support out of a share in Samba may impact the server's performance due to the fact that smbd will now have to check each path additional times before traversing it. ======================== Password History Support ======================== The new password history feature allows smbd to check the new password in password change requests against a list of the user's previous passwords. The number of previous passwords to save can be set using pdbedit (4 in this example): root# pdbedit -P "password history" -C 4 When using the ldapsam passdb backend, it is vital to secure the following attributes from access by non-administrative users: * sambaNTPassword * sambaLMPassword * sambaPasswordHistory You should refer to your directory server's documentation on how to implement this restriction. Changes since 3.0.5 ------------------- smb.conf changes ---------------- Parameter Name Action -------------- ------ cups server New defer sharing violations New force unknown acl user New ldap timeout New printcap cache time New use kerberos keytab New commits ------- o Jeremy Allison * Correct path parsing bug that broke DeletePrinterDriverEx(). * Fix bugs in check_path_syntax() caught by asserts. * Internal change - rearrange internal global case setting variables to a per connection basis. * BUG 1345: Fix premature optimization in unix_convert(). * Allow clients to truncate a locked file. * BUG 1319: Always check to see if a user as write access to a share, even when 'force user' is set. * Fix specific case of open that doesn't cause oplock break, or share mode check. * Correct sid type is WKN_GROUP, not alias. Added some more known types (inspired by patch from Jianliang Lu). * Allow creation of absolute symlink paths via CIFS clients. * Fix charset bug in when invoking send_mailslot(). * When using widelinks = no, use realpath to canonicalize the connection path on connection create for the user. * Enhance stat open code. * Fix unix extensions mknod code path. * Allow unix domain socket creation via unix extensions. * Auto disable the 'store dos attribute' parameter if the underlying filesystem doesn't support EAs. * Implement deferred open code to fix a bug with Excel files on Samba shares. * BUG 1427: Catch bad path errors at the right point. Ensure all our pathname parsing is consistent. * Fix SMB signing error introduced by the new deferred open code. * Change default setting for case sensitivity to "auto". (see commit message -- r1154 -- for details). * Add new remote client arch -- CIFSFS. * Allow smbd to maintain the service principal entry in the system keytab file (based on patch Dan Perry , Guenther Deschner, et. al.). * Fix longstanding memleak bug with logfile name. * Fix incorrect type in printer publishing (struct uuid, not UUID_FLAT). * Heimdal compile fixes after introduction of the new ketyab feature. * Ensure we check attributes correctly on rename request. * Ensure we defer a sharing violation on rename correctly. * BUG 607: Ensure we remove DNS and DNSFAIL records immediately on timeout. * Fix bogus error message when using "mangling method = hash" rather than hash2. * Turn on sendfile by default for non-Win9x clients. * Handle non-io opens that cause oplock breaks correctly. * Ensure ldap replication sleep time is not more than 5 seconds. * Add support for storing a user's password history. LDAP portion of the code was based on a patch from Jianliang Lu . * Correct memory leaks found in the password change code. * Fix support for the mknod command with the Linux CIFS client. * Remove support for passing the new password to smbpasswd on the command line without using the -s option. * Ensure home directory service number is correctly reused (inspired by patches from Michael Collin Nielsen ). * Fix to stop printing accounts from resetting the bas password and account lockout flags. * If a account was locked out by an admin (and has a bad password count of zero) leave it locked out until an admin unlocks it (but log a message). * Ensure we return the same ACL revision on the wire that W2K3 does. * BUG 1578: Hardcode replacement for invalid characters as '_' (based on fix from Alexander E. Patrakov ). * Fix hashed password history for LDAP backends. * Enforce logon hours restrictions if confiogured (based on code from Richard Renard ). * BUG 1606: Force smbd to disable sendfile with DOS clients and ensure that the chained header is filled in for ...&X commands. * BUG 1602: Fix access to shares when all symlink support has been disabled. o Tom Alsberg * Allow pdbedit to export a single user from a passdb backend. o Andrew Bartlett * Fix parsing bug in GetDomPwInfo(). * Fix segfault in 'ntlm_auth --diagnostics'. * Re-enable code to allow sid_to_gid() to perform a group mapping lookup before checking with winbindd. * Fix memory leak in the trans2 signing code. * Allow more flexible GSS-SPENGO client and server operation in ntlm_auth. * Improve smbd's internal random number generation. * Fix a few outstanding long password changes in smbd. * Fix LANMAN2 session setup code. o Eric Boehm BUG 703: Final touches on netgroup case lookups. o Jerome Borsboom * Ensure error status codes don't get overwritten in lsa_lookup_sids() server code. * Correct bug that caused smbd to overwrite certain error codes when returning up the call stack. * Ensure the correct sid type returned for builtin sids. o Gerald Carter * Fix a few bugs in the Fedora Packaging files. * Fix for setting the called name to by our IP if the called name was *SMBSERVER and *SMBSERV. Fixes issue with connecting to printers via \\ip.ad.dr.ess\printer UNC path. * BUG 1315: fix for schannel client connections to servers when we haven't specifically negotiated AUTH_PIPE_SEAL. * Allow PrinterDriverData valuenames with embedded backslashes (Fixes bug with one of the Konica Fiery drivers). * Fixed string length miscalculation in netbios names that resulted in corrupt workgroup names in browse.dat. * When running smbd as a daemon, launch child smbd to update the lpq cache listing in the background. * Allow printers "Printers..." folder to be renamed to a string other than the share name. * Allow winbindd to use domain trust account passwords when running on a Samba DC to establish an schannel to remote domains. * Fix bad merge and ensure that we always use tdb_open_log() instead of tdb_open_ex() (the former call enforce the 'use mmap' parameter). * BUG 1221: revert old change that used single and double quotes as delimeters in next_token(), and change print_parameter() to print out parm values surrounded by double quotes (instead of single quotes). * Prevent home directories added during the SMBsesssetup&X from being removed as unused services. * Invalidate the print object cache for open printer handles when smbd receives a message that an attribute on a given printer has been changed. * Cause the configure script to exit if --enable-cups[=yes] is defined and the system does not have the cups devel files installed. * BUG 1297: Prevent map_username() from being called twice during logon. * Ensure that we use the userPrincipalName AD attribute value for LDAP SASL binds. * Ensure we remove the tdb entry when deleting a job that is being spooled. * BUG 1520: Work around bug in Windows XP SP2 RC2 where the client sends a FindNextPrintChangeNotify() request without previously sending a FindFirstPrintChangeNotify(). Return the same error code as Windows 2000 SP4. * BUG 1516: Manually declare ldap_open_with_timeout() to workaround compiler errors on IRIX (or other systems without LDAP headers). * Merge security fixes for CAN-2004-0600, CAN-2004-0686 from 3.0.5. * Corrected syntax error in the OID for sambaUnixIdPool, sambaSidEntry, & sambaIdmapEntry object classes. * Tighten the cache consistency with the ntprinters.tdb entry an the in memory cache associated with open printer handles. * Make sure that register_messages_flags() doesn't overwrite the originally registered flags. o Fabien Chevalier * Debian BUG 252591: Ensure that the return value from the number of available interfaces is initialized in case no interfaces are actually available. o Guenther Deschner * Implement 'rpcclient setprintername'. * Add local groups to the user's NT_TOKEN since they are actually supported now. * Heimdal compile fixes after introduction of the new keytab feature. * Correctly honor the info level parameter in 'rpcclient enumprinters'. * Reintroduce 'force unknown acl user' parameter. When getting a security descriptor for a file, if the owner sid is not known, the owner uid is set to the current uid. Same for group sid. * Ensure that REG_SZ values in the SetPrinterData actually get written in UNICODE strings rather than ASCII. * Ensure that the last kerberos error return is not invalid. * Display share ACL entries from rpcclient. * Correct infinite loop in pam_winbind's verification of group membership in the 'other sids' field in the user_info3 struct. o Fabian Franz * Support specifying a port in the device URL passed to smbspool. o Steve French * Handle -S and user mount parms in mount.cifs. * Fix user unmount of shares mount with suid mount.cifs. * prevent infinite recusion in reopen_logs() when expanding the smb.conf variable %I. o Bjoern Jacke * Install libsmbclient into $(LIBDIR), not into hard coded ${prefix}/lib. This helps amd64 systems with /lib and /lib64 and an explicit configure --libdir setting. o * Correct more memory leaks and initialization bugs. * Fix bug that prevented core dumps from being generated even if you tried. * Connect to the winbind pipe in non-blocking mode to prevent processes from hanging. * Memory leak fixes. o Stephan Kulow * Fix crash bug in libsmbclient. o Volker Lendecke * Added vfs_full_audit module. * Add vfs_afsacl.c which can display & set AFS acls via the NT security editor. * Fix crash bug caused by trying to Base64 encode a NULL string. * Fix DOS error code bug in reply_chkpath(). * Correct misunderstanding of the max_size field in cli_samr_enum_als_groups; it is more like an account_control field with individual bits what to retrieve. * Implement 'net rpc group rename' -- rename domain groups. * Implement the 'cups server' option. This makes it possible to have virtual smbd's connect to different cups daemons. * Paranoia fixes when adding local aliases to a user's NT_TOKEN. * Fix sid_to_gid() calls in winbindd to prevent loops. * Ensure that local_sid_to_gid() sets the type of the group on return. * Make sure that the clients are given back the IP address to which they connected in the case of a multi-homed host. Only affects strings the spoolss printing replies. * Fix the bad password lockout. This has not worked as pdb_ldap.c did not ask for the modifyTimestamp attribute, so it could not find it. Try not to regress by not putting that attrib in the main list but append it manually for the relevant searches. * Fix two memleaks in login_cache.c. * fixes memory bloat when unmarshalling strings. * Fix compile errors using gcc 3.2 on SuSE 8.2. * Fix the build for systems without kerberos headers. * Allow winbindd to handle authentication requests only when started without either an 'idmap uid' or 'idmap gid' range. * Fix the build for systems without ldap headers. * Fix interaction between share security descriptor and the 'read only' smb.conf option. * Fix bug that caused _samr_lookupsids() with more than 32 ( MAX_REF_DOMAINS) SIDs to fail. * Allow the 'idmap backend' parameter to accept a list of LDAP servers for failover purposes. * Revert code in smbd to remove a tdb when it has become corrupted. * Add paranoid checks when mapping SIDs to a uid/gid to ensure that the type is correct. * Initial work on getting client support for sending mailslot datagrams. * Add 'ldap timeout' parameter. * Dont always uppercase 'afs username map'. * Expand aliases for getusersids as well. * Improved NT->AFS ACL mapping VFS module. o Herb Lewis * Add the acls debug class. * Fix logic bug in netbios name truncate routine. * Fix smbd crash caused by smbtorture IOCTL test. * Fix errno tromping before calling iconv to reset the conversion state. * need to leave empty dacl so we can remove last ACE. o Jianliang Lu * Fix to stop smbd hanging on missing group member in get_memberuids(). * Make sure Samba returns the correct group types. * Reset the bad password count password counts upon a successful login. o Jason Mader * BUG 1385: Don't use non-consts in a structure initialization. o Jim McDonough * BUG 1279: SMBjobid fix for Samba print servers running on Big-Endian platforms. o Joe Meadows * Add optional timeout parameter to ldap open calls. * Allow get_dc_list() to check the negative cache. o Stefan Metzmacher * fix a configure logic bug for linux/XFS quotas when using --with-sys-quotas. * Use quota debug class in quota code. * print out the SVN revision by configure, o Buchan Milne * Mandrake packaging fixes. o Lars Mueller