============================== Release Notes for Samba 3.0.24 Feb 5, 2007 ============================== 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 changes in this section and for the original 3.0.23 release regarding new features and difference in behavior from previous releases. Important issues addressed in 3.0.24 include: o Fixes for the following security advisories: - CVE-2007-0452 (Potential Denial of Service bug in smbd) - CVE-2007-0453 (Buffer overrun in NSS host lookup Winbind NSS library on Solaris) - CVE-2007-0454 (Format string bug in afsacl.so VFS plugin) ###################################################################### Changes ####### Changes since 3.0.23d --------------------- commits ------- o Jeremy Allison* Fix for CVE-2007-0452 & CVE-2007-0454 o Olivier Gay * Fix for CVE-2007-0453 o Volker Lendecke * Fix for CVE-2007-0452 Release Notes for older release follow: -------------------------------------------------- =============================== Release Notes for Samba 3.0.23d Nov 14, 2006 =============================== 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 changes in this section and for the original 3.0.23 release regarding new features and difference in behavior from previous releases. Important issues addressed in 3.0.23d include: o Stability fixes for winbindd o Portability fixes on FreeBSD and Solaris operating systems. ###################################################################### Changes ####### Changes since 3.0.23c --------------------- commits ------- o Jeremy Allison * Changes to ntlm_auth to better support Firefox's NTLM authentication. * Make the "max usershares" parameter an advisory limit. * BUG 4095: Cleanup bad substitution causing the username to be translated to domain\user twice in spnego path. * BUG 4097: Ensure all pdb_XXX calls are wrapped in [un]become_root() pairs. * Ensure we always return the canonicalized name * Add in fixes to mangling dir code. * Do not assume that gencache can always be opened for RW access. Fall back to RO. * Always initialize variables in winbindd request/response structure. * Fix libsmbclient bug with Konqueror and NetApp filers that need a leading / in OpenAndX calls. * Added showacls toggle in the smbclient code. * Add a suffix to the pidfile's program name if this is a process with a non-default configuration file name. * Fix protection from invalid struct tm values. * BUG 4187: Possible crash in signing on/off code. * BUG 4214: Fix crash bug in find_forced_group(). * BUG 4224: Fix enforcement of the deadtime parameter. o Timur Bakeyev * BUG 3856: Set the nss soname version on FreeBSD. * BUG 4109: Fix bug causing smbd to turn off winbindd and fail to disable the _NO_WINBIND environment. * BUG 3868: Prevent --with-aio-support from trimming the $LIBS variable in configure.in. o Dmitry Butskoy * BUG 4075: Allow smbd to use winbindd to lookup uids/gids outside the idmap range if 'winbind trusted domains only = yes'. o Gerald (Jerry) Carter * Fix primary group lookup failures. Use the Get_Pwnam_alloc() call to ensure it finds the Unix user first. * Only grant privs to Administrators if privileges are enabled to avoid bogus error messages in the logs. o Alex Deiter * BUG 3524: Fix for quota support on Solaris. o Guenther Deschner * Close socket when the CLDAP request has failed. * Memory leak fixes in the libads/ldap.c code. * Printer publishing fixes for "net ads". * Fix error code returns in the CLDAP client code. * Do not anonymously query for AD schema items in winbindd. * Protect against storing null-sids in the winbind cache. * Fallback to non-paging LDAP searches for anonymous bound connections. * More workarounds when nscd. * Fix error code typoe in the GetDcName() netlogon call (including two new error codes). * Fix valgrind warnings in pam_winbind * Add two missing refresh_sequence_number calls where they are missing just before writing to the winbind cache tdb. * Attempt to locate a valid domain controller before prompting for credentials in "net ads". * Set 35 second timeout in winbindd's netlogon code when sending a GETDC request. * Stop "net ads {user,group} delete" from doing funny things. * Fix container handling for "net ads user" and "net ads group" functions. * Fix various memleaks and seg faults in "net ads {user,group}". o Udo Eberhardt * BUG 4100: Fix crash in the server spooler code by initializing values for smb_io_notify_info_data_strings. o Olaf Flebbe * BUG 4133: pam_winbind.c compile fix on AIX 5.1. o David Hu * BUG 4212: Fix memleak in the default_ou_string handling. o Mikhail Kshevetskiy * BUG 4229: Compile fix for systems without kerberos. o Volker Lendecke * NTLMSSP LanMan session key fixes. * Various potential seg fault fixes. * Extra logic in share access checks for bad smb.conf parameter settings. * Fixes to allow smbclient to connect to Vista RC1 workstations. * Fix bad search filter in ldapsam when enumerating group members. o Jim McDonough * Correctly handle the password expiration policy on Samba DCs. o Nils Nordman * BUG 4085: Allow smbpasswd to change expired passwords on remote servers. o Simo Sorce * Merge uid2sid and gid2sid async calls for SAMBA_3_0. * Better fqdn handling when parsing the /etc/hosts file. * Fix crash bug in pam_winbind. o Andrew Tridgell * Fix string alignment problem in password change code. o Jim Wang * BUG 4211: Logic error when enforcing "acl group control" behavior. Release Notes for older release follow: -------------------------------------------------- =============================== Release Notes for Samba 3.0.23c Aug 30, 2006 =============================== We would like to thank the developers of the Saturn code analysis tool from Stanford University (http://glide.stanford.edu/saturn). This release includes several code fixes based on its reports. Common bugs fixed in 3.0.23c include: o Authentication failures in pam_winbind when the AD domain policy is set to not expire passwords. o Authorization failures when using smb.conf options such as "valid users" with the smbpasswd passdb backend. RID Algorithms & Passdb ======================= Starting with the 3.0.23c release, the officially supported passdb backends (smbpasswd, tdbsam, and ldapsam) now operate identically with regards to the historical RID algorithm for unmapped users and groups (i.e. accounts not in the passdb or group mapping table). The resulting behavior is that all unmapped users are resolved to a SID in the S-1-22-1 domain and all unmapped groups resolve to a SID in the S-1-22-2 domain. Previously, when using the smbpasswd passdb, such users and groups would resolve to an algorithmic SID in the machine's own domain (S-1-5-XX-XX-XX). However, the smbpasswd backend still utilizes the RID algorithm when creating new user accounts or allocating a RID for a new group mapping entry. With the changes in the 3.0.23c release, it is now possible to resolve a uid/gid, name, or SID in any direction and always obtain a symmetric mapping. This is important so that values for smb.conf parameters such as "valid users" resolve to the same SIDs as those included in the local user's initial token. Most installations will notice no change. However, because an unmapped account's SID will now change even when using smbpasswd it is possible that any security descriptors on files previously copied from a Samba host to a Windows NTFS partition may now fail to give access. The workaround is to either manually map all affect groups (or add impacted users to the server's passdb) or to manually reset the file's ACL. ###################################################################### Changes ####### Changes since 3.0.23b --------------------- commits ------- o Michael Adam * Fix incorrect logic in internal_resolve_name() caused by if statement. o Jeremy Allison * Don't store a NULL SID in winbindd's offline cache. * Ensure we store the offline password hash in the correct format. * OS/2 fixes for large Extended Attributes data. * Fix nmbd crashes caused by miscalculation in pushing announcements. * Handle times consistently across all client utils including libsmbclient. * Fix a file descriptor leak in nmbd sync DNS lookup code. * Fix inconsistency found in checking for NULL in DLIST_REMOVE macro. * Pointer dereference fixes based on the Saturn analysis tool. * Fix memory leak in the AD DC lookup code. o Gerald (Jerry) Carter * RHEL4 and Fedora packaging updates. * Remove RID algorithm support for unmapped users and groups when using an smbpasswd backend. * Extend the NT token for local users' with the S-1-22-2 SID for each supplementary group * BUG 3969: Fix unsigned time comparison with expiration policy from AD DC. * Merge Guenther's fixes from the SuSE SLES10 tree to ensure that winbindd talks to the correct DC when servicing PAM authentication requests. * Do not use the generic IP address sort routines for AD DCs since the SRV lookup include a sorting algorithm based on priority and weight. * Fix our DNS SRV lookup code to deal with multi-homed hosts. * More changes to ensure that the primary group SID for a local user is based on the primary Unix group and not the primaryGroupSID passdb attribute. * Disable storing SIDs in the S-1-22-1 and S-1-22-2 domain to the SID<->uid/gid cache. o Guenther Deschner * Fix msdfs RPC client and server management RPCs. * Align idmap_ad with the current idmap_methods interface. o Volker Lendecke * Re-add support for "username level" when looking up the matching Unix user for an smbpasswd entry. * snprintf() fixes. o Simo Sorce * Let innetgr() work without binding its use to a NIS domain to support netgroups in local files. o Ben Winslow * Allow client smb signing to be turned off correctly. -------------------------------------------------- =============================== Release Notes for Samba 3.0.23b Aug 7, 2006 =============================== Common bugs fixed in 3.0.23b include: o Ambiguity with unqualified names in smb.conf parameters such as "force user" and "valid users". o Errors in 'net ads join' caused by bad IP address in the list of domain controllers. o SMB signing errors in the client and server code. o Domain join failures when using smbpasswd on a Samba PDC. Member servers, domain accounts, and smb.conf ============================================= Since Samba 3.0.8, it has been recommended that all domain accounts listed in smb.conf on a member server be fully qualified with the domain name. This is now a requirement. All unqualified names are assumed to be local to the Unix host, either as part of the server's local passdb or in the local system list of accounts (e.g. /etc/passwd or /etc/group). The reason for this change is that smbd has transitioned from access checks based on string comparisons to token based authorization. All names are resolved to a SID and then verified against the logged on user's NT user token. Local names will resolve to a local SID, while qualified domain names will resolve to the appropriate domain SID. If the member server is not running winbindd at all, domain accounts will be implicitly mapped to local accounts and their tokens will be modified appropriately to reflect the local SID and group membership. For example, the following share will restrict access to the domain group "Linux Admins" and the local group srvadmin. [restricted] path = /data valid users = +"DOMAIN\Linux Admins" +srvadmin Note that to restrict the [homes] share on a member server to the owner of that directory, it is necessary to prefix the %S value to "valid users". [global] security = {domain,ads} workgroup = DOM winbind separator = + [homes] valid users = DOM+%S ###################################################################### Changes ####### Changes since 3.0.23a --------------------- commits ------- o Michael Adams * Fix memory leaks on error paths in 'net ads join'. o Jeremy Allison * BUG 3962: Fix memory leak when enumerating print jobs. * Fix file access flags for the Linux CIFS fs client. * Fix memory leaks in the smbclient DFS code. * BUG 3967: Fix SMB signing client bug in trans calls. * BUG 3985: Ensure in msdfs we check for our NetBIOS aliases. * Added lookup_name_smbconf() to be called when looking up names from smb.conf. Unqualified names are assumed to be local. * BUG 4003: Fix SMB signing server error in NTcancel reply. o Gerald (Jerry) Carter * Fix a few "smbldap_open(): Cannot open when not root" bugs when viewing or modifying local group membership. * Make LsaLookupSids() reply include the full SID of unresolved SIDs. * BUG 3957: Prevent returning strange DC IP addresses by zeroing memory in the SRV hostlist in case there is not an A record for each SRV name. * BUG 3964: normalize the case of usernames prior to getpwnam() call in the smbpasswd backend. * Cleanup the 'net ads help join' output and document createupn and createcomputer options. * Fix a regression in the ldapsam URI syntax. Allow multiple LDAP URIs to be grouped by "". o William Charles * BUG 3959: Remove rand() from SRV RR comparison to fix crashes in qsort(). o Guenther Deschner * Fix memory leaks in pam_winbind. * Save the logon script path from the info3 in the PAM session allowing other PAM modules to pick it up from there. o Volker Lendecke * BUG 3991: Fix problem with user tokens on standalone systems configured to use a username map. * Fix bug where qualified user or group names in smb.conf were assumed to use the '\' character as the winbind separator. -------------------------------------------------- =============================== Release Notes for Samba 3.0.23a Jul 21, 2006 =============================== Common bugs fixed in 3.0.23a include: o Failure to strip the domain name from groups when 'winbind use default domain = yes' o Failure in pam_winbind to correctly parse arguments. o Bad token creation of local users on member servers not running winbindd. o Failure to add users or groups to ACLs using the Windows object picker. o Failure in file serving code when 'kernel oplocks = yes'. New features in 3.0.23a include: o New "createupn" option to "net ads join" o Rewritten Kerberos keytab generation when 'use kerberos keytab = yes' ###################################################################### Changes ####### Changes since 3.0.23 -------------------- commits ------- o Jeremy Allison * Fix memory leaks in the POSIX locking for for the Linux CIFS fs client. * Fix memory leaks in the AD schema parsing code. * Fixed bug in interaction with Linux kernel oplocks. o Gerald (Jerry) Carter * Rewrite the detection of the correct DES salting principal name when joining an Active Directory Domain. * Rewrite the keytab generation code based on existing SPN, UPN, and sAMAccountName attributes in the AD machine object. * Cleanup of dead code from idmap_ad. * Fix Winbind 32bit/64bit portability issues. * Fail 'net ads join' and disable the machine account if we cannot set any SPNs for ourselves. * Make sure to lower case all usernames before calling the create, delete, or rename hooks. * Preserve case for usernames in passdb * Flush the getpwnam cache after renaming a user * Add become/unbecome root block in _samr_delete_dom_user() when trying to verify the account's existence. * Changed 'net ads join' syntax for specifying an alternate OU. New syntax is createcomputer= . * Add createupn=[UPN] option to 'net ads join' for setting the userPrincipalName attribute. * Bug 3920: Restore winbind use default domain behavior for domain groups. This break local users and 'winbind nested groups' on domain members. o Guenther Deschner * Don't clear the cache when starting winbindd in off line mode. * Fix errno reporting in pam_winbind debug messages. * BUG 3937: Fix segv in libnss_wins.so. o Volker Lendecke * Fix memory leaks in the in error paths out of the CLDAP request code. * AIX portability fixes for DNS client code. * BUG 3811, 3948: Fix alignment bug in on lsaquery. * BUG 3949: Fixed authorization issue on domain member servers not running winbindd. o Andrew Tridgell * Fixed a bug which caused resolve_ads() to spin forever if one of the DCs isn't resolvable in DNS. o Simo Sorce * Debian packaging fixes. o Dietrich Streifert * BUG 3916: Fix error parsing pam_winbind config arguments. Release Notes for older release follow: -------------------------------------------------- ============================== Release Notes for Samba 3.0.23 Jul 10, 2006 ============================== There has been a substantial amount of cleanup work done during this development cycle. We would like to thank both Coverity (http://www.coverity.com/) and Klocwork (http://www.klocwork.com/) for analyzing the Samba source code. As a result, this release includes fixes for over 400 defects. The coverage was approximately even with over 200 defects reported by each tool. Thanks very much to those people who spent time testing the release candidates and reported their findings. We would like to especially thank Thomas Bork for his numerous reports. We believe that the final release is in much better shape in large part due to his efforts. New features in 3.0.23 include: o Improved 'make test' o New offline mode in winbindd. o New Kerberos support for pam_winbind.so. o New handling of unmapped users and groups. o New non-root share management tools. o Improved support for local and BUILTIN groups. o Winbind IDMAP integration with RFC2307 schema objects supported by Windows 2003 R2. o Rewritten 'net ads join' to mimic Windows XP without requiring administrative rights to join a domain. User and Group changes ====================== The user and group internal management routines have been rewritten to prevent overlaps of assigned Relative Identifiers (RIDs). In the past the has been a potential problem when either manually mapping Unix groups with the 'net groupmap' command or when migrating a Windows domain to a Samba domain using 'net rpc vampire'. Unmapped users are now assigned a SID in the S-1-22-1 domain and unmapped groups are assigned a SID in the S-1-22-2 domain. Previously they were assign a RID within the SAM on the Samba server. For a DC this would have been under the authority of the domain SID where as on a member server or standalone host, this would have been under the authority of the local SAM (hint: net getlocalsid). The result is that any unmapped users or groups on an upgraded Samba domain controller may be assigned a new SID. Because the SID rather than a name is stored in Windows security descriptors, this can cause a user to no longer have access to a resource for example if a file was copied from a Samba file server to a local NTFS partition. Any files stored on the Samba server itself will continue to be accessible because Unix stores the Unix gid and not the SID for authorization checks. A further example will help illustrate the change. Assume that a group named 'developers' exists with a Unix gid of 782 but this user does not exist in Samba's group mapping table. it would be perfectly normal for this group to be appear in an ACL editor. Prior to 3.0.23, the group SID might appear as S-1-5-21-647511796-4126122067-3123570092-2565. With 3.0.23, the group SID would be reported as S-1-22-2-782. Any security descriptors associated with files stored on an NTFS disk partition would not allow access based on the group permissions if the user was not a member of the S-1-5-21-647511796-4126122067-3123570092-2565 group. Because this group SID not reported in a user's token is S-1-22-2-782, Windows would fail the authorization check even though both SIDs in some respect referred to the same Unix group. The current workaround is to create a manual domain group mapping entry for the group 'developers' to point at the S-1-5-21-647511796-4126122067-3123570092-2565 SID. Passdb Changes ============== The "passdb backend" parameter no long accepts multiple backends in a chaining configuration. Also be aware that the SQL and XML based passdb modules have been removed in this release. More information of external support for a SQL passdb module can be found at http://pdbsql.sourceforge.net/. Group Mapping Changes ===================== The default mapping entries for groups such as "Domain Admins" are no longer created when using an smbpasswd file or a tdbsam passdb backend. This means that it is necessary to use 'net groupmap add' rather than 'net groupmap modify' to set these entries. This change has no effect on winbindd's IDmap functionality for domain groups. LDAP Changes ============ There has also been a minor update the Samba LDAP schema file. A substring matching rule has been added to the sambaSID attribute definition. For OpenLDAP servers, this will require the addition of 'index sambaSID sub' to the slapd.conf configuration file. It will be necessary to run slapindex after making this change. There has been no change to actual data storage schema. ###################################################################### Changes ####### smb.conf changes ---------------- Parameter Name Description Default -------------- ----------- ------- acl group control Deprecated No add port command New "" change notify timeout Changed Scope dmapi support New No dos filemode Modified No enable asu support Changed default No enable core files New Yes enable privileges Changed default Yes enable rid algorithm Removed fam change notify New Yes hosts equiv Removed host msdfs Changed default Yes msdfs root Changed default Yes open files database hash size New 10007 passdb expand explicit Changed default No strict locking Changed default auto usershare allow guests New No usershare max shares New 0 usershare owner only New Yes usershare path New ${lockdir} usershare prefix allow list New "" usershare prefix deny list New "" usershare template share New "" winbind enum users Changed default No winbind enum groups Changed default No winbind nested groups Changed default Yes winbind offline logon New No winbind refresh tickets New No winbind max idle children Removed wins partners Removed Changes since 3.0.22 -------------------- commits ------- o Jeremy Allison * Fixes for various Klocwork defect reports. * Cleanup pdb_get_XXX() methods and ensure that a failure to allocate memory for a samu user structure is reported as a failure to the calling function. * Fix memleak in printing gencache contents. * Fix warnings reported by gcc4 -O6 on 64-bit systems * Fix naming conflicts with 'net usershare' structures and Solaris header files. * Fix memleaks on error paths from the ASN.1 parsing code. * Add uid to share_mode_entry structure so we can report who opened the file. * Ensure we use sys_write in password chats so we're not interrupted. * Ensure all new rid allocation goes through the same pdb_ldap interface. * BUG 3308: Stop us returning duplicate mid replies on path based set-EOF trans2 calls. * Pass RAW-OPLOCK with kernel oplocks off. * Fix bug in OS/2 Warp - it doesn't set the ff_last offset correctly when doing info level 1 directory scans. * Add Samba4 replacement for timegm() to work on Solaris. * Remove extra add-byte in the trans2 UNIX_BASIC infolevel. * BUG 3592: Ignore a file in the tar output from smbclient if the read failed (e.g. due to ACCESS_DENIED). (Based on ideas from Justin Best ). * BUG 3668: Workaround issues in Windows server code with LARGE_READX. * Push/Pull Kerberos principal and realm names to/from UTF-8. * Fix incorrect boolean in assert to make POSIX lock tests pass with CIFSFS. * Don't ever set O_SYNC on open unless "strict sync = yes". * Remove dead printing code. * Allow configurable guest access to Samba's usershare functionality. * BUG 3587: Make byte-range locking tdb self-cleaning. * Ensure every exit error path in the session setup code calls nt_status_squash(). * Use portable wrapper functions instead of seteuid directly in winbindd. * Make "change notify timeout" a per-share parameter. * Fix regression in SAMBA_4_0's smbtorture DENY tests. * Fix valgrind-spotted issue in BASE-DELETE test. * Fix early termination condition in winbindd when trying to connect to a remote DC. * Instruct winbindd to ignore fd_set when select() returns -1. * BUG 3779: Make nmbd udp sockets non-blocking to prevent problem with select returning true but no data being available. * Back port talloc_steal() fixes from SAMBA_4_0 (original fixes by Andrew Tridgell). * BUG 3467: Fix delete on close semantics needed by WinXP Media Center Ed. for simultaneous recording and playback (thanks to Jason Qian for the debugging assistance). * BUG 3347: Save the Unix user token used to set the delete-on-close flag. * Fix parsing of SAMR_Q_CONNECT_ANON. * Add in support for userinfo26 structure and re-enable userinfo25 * Schannel server fixes. Fix the credentials chaining across \netlogon pipe disconnects. * Replace ubqix code in nmbd with an internal tdb. * Fix struct timespec checks in configure.in. * Add in server support for the NetSamLogonEx(). * Add support for LsaLookupSids2() and LsaLookupSids3(). * Add LsaLookupNames[2-4](). * Add support for 'net usershare'. * BUG 3522: Fix error code return on SMBmkdir(foo) when foo already exists (thanks to Sandeep Tamhankar). * BUG 3510: Fix 'net rpc join' against a server when schannel is disabled. * Get rid of poor errno mapping table. Bounce through NTSTATUS instead. * Check for SeMachineAccountPrivilege when deleting machine accounts. * Fix a logic bug with multiple oplock contention. * Add the replacements for opendir/readdir etc from SAMBA_4_0. Attempt to fix the broken directory handling in the *BSD. * Allow run time tuning of the locking tdb hash size for very busy servers. * BUG 3642: Ensure we don't call FD_SET on read with fd == -1. * BUG 3569: Work around linear posix locking issue on AIX which was causing high loads due to the tdb CLEAR_IF_FIRST flag (based on work from William JoJo). * Fix OS/2 directory delete bug found by kukks. * Match the Windows 2003 NTLMSSP signature. * Performance tuning work in core read & write file serving paths. * Change default to 'strict locking' to better reflect real world clients. * Fix error return on session setup. Ensure no data blob is added if the logon call failed so that Windows clients interpret the NT_STATUS code correctly. * Teach Samba the difference between exclusive and batch oplocks. * BUG 3592: Ignore a file in a smbtar output if the first read fails (inspired by Justin Best). * BUG 3668: Workaround Windows bug with LARGE_READX where if you ask for exactly 64k bytes it returns 0. * BUG 3858: Ensure that all files are removed by a wildcard delete when 'hide unreadable = yes'. * Fix various issues raised by the Klocwork code analyzer. * Fix nmbd WINS serving bug causing duplicate IPs in the *<1b> query reply ("enhanced browsing = yes"). * Fix SMB signing failures in client tools. * BUG 3909: Avoid EA lookups on MS-DFS links. o Andrew Bartlett * Work around abort() in the OpenLDAP client libs caused by a NULL msg pointer. o Timur Bakeyev * BUG 2961: Fix compile warnings for pam_smbpass. * BUG 2746, 3763: Fix compile warnings in pam_winbind. o Alexander Bokovoy * Fix 'smbcontrol shutdown' messages for nmbd and winbindd. * Fix absolute symlinks in the installbin.sh script. o Max N. Boyarov * Fix crash bug in perfmon daemon example code. o Nicholas Brealey * Compile fix for pam_winbind. o Gerald (Jerry) Carter * Fix 'make install' problem when building outside source/. * Fix 'net ads join' when the workgroup is set incorrectly in smb.conf. * Re-add code to include the BUILTIN\Administrators SID when winbindd is not running, but the user's token includes the Domain Admin SID. Fixes access problem for managing Services. * Only call the printer publishing calls if 'security = ads'. * Normalize printing keys when deleting. * Only store LANMAN passwords on a change if 'lanman auth = yes'. * Look at the NT password (not lanman one) when determining if 'smbpasswd -e' should probably for a password. * Default eventlog tdbs to mode 0660 to allow easier access by BUILTIN\Administrators. * Remove extra call to create_user on member servers without winbindd. * Replace the use of OpenLDAP's ldap_domain2hostlist() for locating AD DC's with out own DNS SRV queries. * Fix compile error on HP-UX reported by Ryan Novosielski. * Rewrite 'net ads join' to share common code with 'net rpc join' and behave more like a Windows XP client. * Remove --with-ldapsam option from configure (only used for backwards compatibility for 2.2 smb.conf files). * Remove 'wins partners' and 'hosts equiv' smb.conf parameters. * Remove rhosts authentication module. * Reimplement 'net ads leave' to disable the machine account in the domain rather than removing it. * Rewrite of tdbsam file descriptor handling. * Add server affinity support when selecting a remote domain controller. * Remove chaining of passdb modules. * Generate a local users primary group SID based on his or her primary Unix group rather than storing the attribute in the passdb entry. * Default primary group SID to 'Domain Users' if the real Unix primary group maps to the S-1-22-2 domain. * Refactor memory management in passdb user objects. * RHEL and Fedora packaging fixes. * Implement XcvDataPort() spooler call and supporting 'add port command'. * BUG 3534: Ignore lines in the username map file with no right hand list. * Add support for the experimental %(DomainSID) smb.conf variable. * Add support for parsing SIDs in smb.conf value lists. * Fix vuid allocation in Kerberos SMBsesssetup reply. * Ensure that local group membership is included in the getgroups() NSS reply. * Automatically create a BUILTIN\{Administrators,Users} if winbindd is running. * Automatically grant all privileges to members of the local Administrators group. * Protect against NULL cli_state* pointers in cli_rpc_pipe_open(). * Add a SUBSTR matching rule the the Samba LDAP schema file for the sambaSID attribute. This will allow for Searching group mapping entries within a given domain without reorganizing the directory namespace. Also requires 'index sambaSID sub' in slapd.conf. * Fix parsing of 'idmap uid/gid' values that broke when the range included any whitespace. * Support renaming local groups (protect against renaming BUILTIN groups). * Do not allow the root account to be deleted via MS-RPC. * Fix RID allocation to skip over RIDs that resolve in our own domain (work around upgraded users and groups). * Store the name/ip address combination when we do a reverse look up in case future forward lookups would fail. Fixes cases where a DC name could not be resolved via NetBIOS queries, * Allow winbindd to run on standalone servers in order to provide support for local groups. * Deprecate 'acl group control' and replace it with added functionality to 'dos filemode'. * Ensure that all global memory is freed from pam_winbind when unloading the shared library (based on work from Arkady Glabek). * Fix 32-bit/64-bit portability issues between PAM & NSS winbind libraries and winbindd. * Add defensive checks about create local accounts (i.e. calling 'add user script') on domain member servers when winbindd is running but having problems. * Use system provided killproc() in RedHat init scripts for more robust shutdown. * Fix a crash in the printer publishing code when adding a new printer via the APW. * Fix broken compile of unsupported smbwrapper utility. * BUG 3905: Fix smbd startup failure caused by a failure to create an NT token for the guest account. * BUG 3908: Fix RPC bind authentication failure which broke user password changes. * Ensure that "net ads join" reports failure correctly if it cannot set the machine account password. o Mathias Dietz * EPERM can be a valid return from getting an xattr. Don't disable if we get it. o Guenther Deschner * Fix memleaks in winbindd ads searches. * Fix timestamp bug in pam_winbindd which forced users to change passwords prematurely. * Small debug message cleanups. * Small fixes for 'net ads password'. * BUG 3843: Allow to set passwords directly when creating users via "net rpc user add" * Add "rpc shell" to the usage text for the net command. * Winbindd user aliases lookup fixes for large domains. * Fix memleak in the CLDAP processing code. * Enable AD features in winbindd's PAM support only when communicating with an AD domain controller. * Set our internal domains to "online" by default in winbindd. * BUG 3800: Fill the password_policy method in winbindd for winbindd_passdb. * Fix memory leak when LDAP POSIX attribute queries fail. * Honor the krb5 principal name change (of the new ads join code) in the kerberized winbind pam_auth. * Correctly handle the case when there is no configuration file for pam_winbind. * Adding "own-domain" switch to wbinfo which is handy from time to time. * BUG 3823: Fix in-forest domain trust enumeration in winbindd. * Fix winbindd group enumeration for groups with no members. * Correct "net ads changetrustpw" to use the sAMAccountName. * Fix winbindd in ADS domains by removing code using the UPN and rely upon the sAMAccountName. * Fix a eDir related memory leak. * Don't try to add the sn attribute twice to an LDAP inetOrgPerson + samSamAccount entry. * Fix winbind function table typo. * Attempt to send the correct warning from pam_winbind when a password change was attempted too early. * Don't use cached credentials when changing passwords. * Correctly disallow unauthorized access when logging on with the kerberized pam_winbind and workstation restrictions are in effect. * Save useless round trips in pam_winbind's auth calls. * Make the existence of the /etc/security/pam_winbind.conf file non-critical and fallback to only parse the argv options in that case. * Add winbind debug class to the main winbindd process. * Be consistent between rpc and ads winbind backend: let the ads backend query the samlogon cache first as well. * Ignore BUILTIN groups when searching AD for group memberships. * Fix KRB5KDC_ERR_POLICY -> NTSTATUS mapping. * Cleanup credential caches from winbind's linked list. * Fix 'winbindd -n' for new persistent caches. * Fix searching by SID in winbindd. * Add "smbcontrol winbind onlinestatus" for debugging purpose. * Prefer to use the indexed objectCategory attribute (instead of objectClass which is not indexed on AD) in LDAP queries. * Free LDAP result in ads_get_attrname_by_oid(). * Prevent unnecessary storing of password in a WINBINDD_CCACHE_ENTRY. * Prevent passwords of winbindd's list of credential caches from being swapped to disk using mlock(). * BUG 3345: Expand the "winbind nss info" to also take "rfc2307" to support the plain posix attributes LDAP schema from win2k3-r2 (based on patches from Howard Wilkinson and Bob Gautier). * Add more robust code for fallback when lookup_usergroups() fails. * Fix 'net rpc join' for winbindd running on a Samba DC. * Add help text for new 'net rpc audit' utility. * Add net ads search SID. * samrQueryDomainInfo level 5 should return the domain name, not our NetBIOS name when we are a DC. * Add some more client rpc for the querydominfo calls (from samba4 idl). * Process all the supported info levels in the samr_query_domain_info2 call. * Wrap the samr_query_domain_info2() call around samr_query_domain_info(). * Fix segv in smbctool. * Honor the time_offset also when verifying Kerberos tickets. * Prevent unnecessary longstanding LDAP connection to eDirectory. * Fix segv in smbspool. * BUG 1914: Allow to store 24 password history entries in ldapsam. * Enhancements to various commands in rpcclient * Don't force 'Administrator' to change an expired password on logon. * Add support for offline mode in winbindd. * Provide support in pam_winbind for initializing a user's ticket cache. * Implement samr_chgpasswd_user3 server-side. * Make pam_winbind more robust when detecting domain users. * Add client side support for SAMR_GET_USRDOM_PWINFO. * Re-enable strict checking on C++ reserved keywords since Heimdal 0.7.2 has been released. * Allow renaming of machine accounts in a Samba domain. * BUG 3539: Let winbindd try to obtain the gecos field from the msSFU30Gecos attribute when "winbind nss info = sfu" is set. * Correctly handle acb_info/acct_flags as uint32 not as uint16. * Return the real ACB-flags in the SamLogon() reply. * Some client side cleanup for the samr set security object functions. * Make sure we always reset the userAccountControl bits when re-joining (net ads join) with an existing account. * Document some more MSV1_0 bits and their behavior. * Only set the last rebind timestamp when we did rebind after a update LDAP operation to avoid the ldap replication sleep period. * Fix incorrect error checking in winbindd for domains with no trusts. * Consolidate the parsing of the Krb5 PAC and NET_USER_INFO3 structure. * Work around crash bug in MIT krb5 libs when reading a keytab file. Stop trying to decrypt a ticket as soon as we have a clear indication that the ticket is bad. * Merge DCERPC_FAULT constants from the SAMBA_4_0 tree. * Adding client side samr querygroup infolevels 2 & 5. * Make smbpasswd -a root work for eDirectory where there is no "account" structural objectclass. * Make sure we only send out a CLDAP request (net ads) to an connected AD server. * Fix a broken LDAP search filter when looking for groups. * Add in-tree version of iniparser library from http://ndevilla.free.fr/iniparser/ for use by pam_winbind (rather than linking in loadparm.c). Settings are now stored in /etc/security/pam_winbind.conf. * Fix different extended_dn handling in adssearch.pl (Thanks to Frederic Brin at Novell). * Fix a memleak in winbindd's credentials cache. * Protect against crashes in CLDAP request processing. * Remove incomplete DfsEnum() info level to avoid an smbd crash. o Aleksey Fedoseev * Fix parameter type for 'acl compatibility'. * Fixes for msgtest torture tool. * Fix crash bug in the file locking code. o Arek Glabek * Fix parsing error on input parameters in eventlogadm. o Paul Green * Properly rebuild time limit on systems with executable extensions. * Fix build on platforms that do not support shared libs. * Remove dead code in the auth_script module. o Bjoern Jacke . * Fix DMAPI compile failures on AIX and True64. * Fix AIX PIC suffix (use .o instead of .po). * Fall back to less-preferred clocks until we find one that we can use if clock_gmtime() is not available at run-time. * Fix EA support on AIX platforms. * Automatically disable file shares with no explicit path set. * Remove the local hack to set the RO bit on directories in user profiles when profile acls = yes. Rely on EAs instead. * Compile fixes for Solaris LDAP client libs. * Add DMAPI/XDSM support for AIX. * Find JFS DMAPI libs on Linux when only they are available. o William Jojo * Fixes for the winbind NSS library on AIX. * Fix VFS builds on AIX platforms. * Fixes for the AIX version of libnss_winbind.so o Leonid Kabanov * BUG 3711: Shell portability fixes for 'make test'. o Volker Lendecke * Fixes for various Klocwork defect reports. * Fixes for various Coverity defect reports. * BUG 3848: Fix WinXP join error in a Samba domain using ldapsam. * Fix more potential seg-faults when something on our way to a DC connection fails. * Never fall back to using the IP address for a DC's name in RPC connections. * Implement recycle:subdir_mode. * Activate RPC-AUTHCONTEXT in "make test". * Portability fixes for 'make test'. * Correctly set the group RID in init_sam_from_buffer. * Fix missing prompt in smbclient. * Return correct error code upon success from _net_srv_pwset(). * Fix Windows XP joins to a Samba domain. * Fix 'valid users = +unixgroup' which was failing with smbpasswd when mapped to a non-algorithmic rid. * Fix regression which upper-cased machine names passed to the 'add machine script'. * Correct parsing error in parse_net.c for user's with no group membership. * Fix off by one error in client SPNEGO code and other klocwork bug fixes. * Memory leak fixes in 'net sam'. * BUG 3720: Fix uninitialized error return variable. * Default "passdb expand explicit" to no. * BUG 3741: Re-enable algorithmic SID mapping in one critical place. * Fix user NT token creation when utilizing a username map. * More coverity fixes. * Fix a VUID bug in 'security = share'. * Correctly fill in the gid for local users. * Fix some warnings on True64. * Add special close handling for fake files. * BUG 3788: Fix nss_winbind's getgrouplist() call on AIX. * BUG 3435: Fix 'msdfs root = yes' in [homes]. * Instruct winbindd to find a trusted DC on its own when running on a Samba DC. * Fix segv in child winbindd processes caused by a failed tconX to the DC. * Dynamically compute the maximum password age based no the last change time rather than reading the must change time from the passdb record. * Rewrite mechanisms for handling lookup_{name,sid} resolution. * Assign unmapped users to the S-1-22-1 domain and unmapped groups to the S-1-22-2 domain * Disable algorithmic mapping for RIDs in tdbsam & ldapsam * Remove sql passdb backends. * Implement rpccli_samr_set_domain_info() * Add initial support for 'net sam' command. * BUG 2413: Remove anonymous connections in 'net rpc info'. * Implement asynchronous support for trans2 calls. * Make smbclient -L use RPC to list shares, fall back to RAP. * Ensure that the global SAM SID is initialized before any dependent routines are called. * Enhance consistency checks on local configuration when joining a domain. * Fix a memleak in the server registry code for enumeration shares. * Fix an invalid munlock() call in winbindd's credentials cache. * Fix compile warnings when passing NULL to snprintf(). * BUG 3915: Fall back to a pure unix user with S-1-22 SIDs in the token in case anything weird is going on with the 'force user'. * CVE-2006-3403: Fix minor memory exhaustion DoS in smbd. o Derrell Lipman [libsmbclient] * BUG 3814: Only set the DFS capability flag in client requests if the share is a DFS root. * Fix bug causing previous settings to be re-initialized when parsing new configuration files. * BUG 3446: Don't ignore the authentication domain when parsing the SMB URI. * Fix cli_setpathinfo() to actually do what it's supposed to. * Fix libsmbclient to make correct use of the new "one connection per server feature". o Jason Mader * Numerous compiler warning fixes. o John E. Malmberg * Make smbldap obey config tests. o Jim McDonough * Fixes for 'make test' on AIX. * Ensure we do a wildcard search for SID's starting with the global SAM sid, not an exact search (from John Janosik). * Adapt smbclient fix to smbtree to enable long share names. * Prevent machines and users with no home directory from getting the previous entries home path when migrating via 'net rpc vampire' (based on a patch from Richard Renard). * Remove hard-coded LDIF names when dumping a migrated domain's users and groups. * BUG 1374: Can't join an OU with name that contains '#'. o Stefan Metzmacher * Add more tests to 'make test'. * Try to make timelimit.c more portable. * Fix linking of smbmount tools with --enable-socket-wrapper. * Pass 'target:samba3=yes' to samba4's smbtorture when running samba3's make test. * Miscellaneous fixes for 'make test'. * Add improved support for 'make test' including making use of smbtorture from SAMBA_4_0. * Add --no-process-group to all server programs (e.g. timelimit 20000 bin/nmbd -F -S --no-process-group). * Add configure tests --with-selftest-prefix=/tmp/samba-test o Lars Müller * Fix lock calls in the python tdb bindings. * Add -k switch to tdbdump for accessing a single key. * Debian packaging fixes. * Add -t|--password-from-stdin option to pdbedit as we had with Samba 2.2. * Various minor fixes to install scripts used by 'make install'. o James Peach * Ensure smbclient always prompts on standard output when in interactive mode. * BUG 3801, 3805: Fix MIPSPro compiler warnings on IRIX. * Introduce command line options to set the remainder of the parameters in dynconfig.c. * Avoid pulling in -lpthreads caused by -lrt. * Fix build failures on IRIX 6.4 due to DMAPI support. * Isolate the slow CLOCK_REALTIME message in the profiling code. * Correct comparison logic so that libunwind can be correctly detected. * Implement a "stacktrace" smbcontrol option using libunwind's remote stack tracing support (ia64 only). * Use dynamic buffers in the IRIX nsswitch module to prevent truncation of long group lists. * New autoconf macro to test for sysconf variables. * Change profiling data macros to use stack variables rather than globals. This catches mismatched start/end calls and removes the need for special nested profiling calls. * Rewrite AC_LIBTESTFUNC so that it works like the callers of it expect. * Use clock_gettime for profiling timstamps if it is available. Use the fastest clock available on uniprocessors. * Preserve errno in fcntl lock wrappers. * Initialize our saved uid and gid so that we can tell when we created the profiling shmem segment and don't bogusly refuse to look at it. * Add a new option "enable core files" which can be used to disable automatic core file dumping. * Update our internal copy of popt to that distributed with the RPM 4.2 source code. * Add support for FAM for file change notification. * Disable sendfile if the 'write cache;' has been enabled. * Refactor capability interface from being IRIX-specific to using only the POSIX interface. * Consolidate core dumping code to aid in debugging. * Add support for libunwind to generating a backtrace. * BUG 3490: Don't test for ldap or krb5 libs if --without-ldap and --without-ads are specified. * Allow the user to set winbind nss timeouts in seconds on IRIX. * Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based HSM is interested in. o Tim Potter * Build janitorial duties. * BUG 3725: Put references to $PICFLAGS in quotes. o Aruna Prabakar * Show -W option in smbpasswd usage text. o ISHIKAWA Tomonori * BUG 2715: Fix nmbd datagram comment buffer size for multibyte character strings o Andreas Schwab * Correct syntax error in aclocal.m4. o Simo Sorce * Pam modules install fix. * Allow "net changesecretpw" to accept a password via stdin. * Implement 'net setdomainsid' command. * Ensure that sid -> group conversion are done as root. * BUG 3413: Sanity check for existence of 'ldap admin dn' before setting a password in secrets.tdb (based on work by William Jojo). * New revision of the snprintf replace code. * Set the correct sid type when looking up a gid. o Todd Stecher * Add TCP fallback for our implementation of the CHANGEPW kpasswd calls. o Ronan Waide * Add 'wbinfo -i' functionality to exercise winbindd's getpwnam() functionality. o Shlomi Yaakobovich * Fix for machine password time_t overflow. -------------------------------------------------- ============================== Release Notes for Samba 3.0.22 Mar 30, 2006 ============================== This is a security release of Samba. The Samba 3.0.21 release series (including the patch releases a through c) has been discovered to expose the clear text of the server's machine account credentials in the winbind log files when the log level is set to 5 or higher. This defect has been assigned the CVE number CAN-2006-1059. Summary ======= The machine trust account password is the secret shared between a domain controller and a specific member server. Access to the member server machine credentials allows an attacker to impersonate the server in the domain and gain access to additional information regarding domain users and groups. The winbindd daemon included in Samba 3.0.21 and subsequent patch releases (3.0.21a-c) writes the clear text of server's machine credentials to its log file at level 5. The winbindd log files are world readable by default and often log files are requested on open mailing lists as tools used to debug server misconfigurations. This affects servers configured to use domain or ads security and possibly Samba domain controllers as well (if configured to use winbindd). ======= -------------------------------------------------- =============================== Release Notes for Samba 3.0.21c Feb 24, 2006 =============================== Common bugs fixed in 3.0.21c include: o Access checks when deleting printer driver meta-data. o Several non-default combinations schannel and SPNEGO support. o Password changes with NT4 and Win2k pre-SP4 clients. o High load issues on IRIX caused by a bug when interfacing with kernel oplocks. ###################################################################### Changes ####### Changes since 3.0.21b --------------------- commits ------- o Michael Adam * Add popt to the include path for examples/VFS. o Jeremy Allison * Fix bug in the USC2 macros on big-endian CPUs. * Filter deleted oplocks from the output of smbstatus. * Remove invalid test check_for_pipe(). * BUG 3515: Fix kernel oplock support on IRIX. * BUG 3522: Fix return value for mkdir request when the directory already exists. * BUG 3526: Add missing FindNext info levels (diagnosed by Corinna Vinschen). * BUG 3330: Fix username parsing in Kerberos PAC (based on work by Guenther). * BUG 3512: Fix cause of "use spnego=no" and "server signing=auto" resulting in a client disconnect after negprot. * BUG 3510: Fix 'net join' against a server with client schannel disabled. * Fix negprot bug causing a 2k client with cached domain credentials to refuse to connect to a standalone Samba host. * Ensure that the correct error is checked when encountering a socket error (fixes crashes in winbindd). o Andrew Bartlett * Fix domain joins from NT4 clients and password changes. o Richard Bollinger . * Compile fix in pdbedit. o Gerald (Jerry) Carter * Break RHEL/Fedora packaging out to include a samba-docs rpm. * Remove use of /var/cache/samba from RHEL/Fedora packaging. * Fix bug in loadparm.c that caused builtin services to be also listed as external services (e.g. Spooler, NETLOGON, etc..). * Fix bug in the samr dispinfo enumeration code. * Add earlier checks to deny deleting a printer driver meta-data. o Guenther Deschner * Add Account Policy LDAP attributes for eDirectory schema. o William JoJo * BUG 1870: Make nmblookup do a node status on all IP's when requested. * BUG 2353: Fix clitar -F processing. o Volker Lendecke * Fix the build for --with-aio-support. * Fix remote password changing if password must change is set. * Fix rpcclient to obey the -W parameter. * Fix segv in smbmount and the profiles tool. * Fix typo in pdbedit help text (reported by Karolin Seeger). o Vladimir Lettiev * Honour the $(DESTDIR) Makefile variable when installing Python extensions. o Jason Mader * Compiler warning fixes. o Lars Müller * Fix python build with older python versions. * Update dhcp.conf files in Debian packaging * SWAT welcome file updates * Compiler warning fixes. * Add .2 to the SONAME as version suffix if we link the nss modules on linux. * Add -t|--password-from-stdin option to pdbedit. o James Peach * Continue not enabling valgrind on 64-bit Linux. o Tim Potter * Remove unused #defines. o Simo Sorce * Debian packaging updates. o Qiao Yang * Make sure to refresh the timestamp on entries in the failed connection code in winbindd. -------------------------------------------------- =============================== Release Notes for Samba 3.0.21b Jan 30, 2006 =============================== Common bugs fixed in 3.0.21b include: o Server crashes in smbd. o Compile issues on 64-bit platforms. o Crash bugs on big-endian systems. o Packaging fixes for RHEL/Fedora, Solaris, & Debian. o Over 30 bugzilla reports closed. ###################################################################### Changes ####### Changes since 3.0.21a --------------------- commits ------- o Jeremy Allison * Fix the SAMR cache across handles opens and closes. * Re-add the talloc_describe_all() function for reporting pool usage. * Merge talloc license change from Samba 4. * Fix 64-bit compile warnings reported by gcc. * Add the share path into the sharemode db. * Consistency fixes: Remove use of uint8_t -> uint8. * BUG 3346: Fix crash bug in big-endian boxes by linearizing structure when passing through the messaging API. * BUG 3421: Fix segv in the Kerberos key tab code (Thanks to Luke Deller). * Force smbd to exit if the guest account internal setup fails. * BUG 3419: vfs_full_audit fixes for multiple connections. * Ensure SWAT lists running processes. * Fix NTLMv2 interoperability bug between Samba servers. * Oplock break logic fixes. o Andrew Bartlett * BUG 3401: Fix crash bug caused by incorrect handling of weak session keys. Based on original patch from Yau Lam Yiu. o Alexander Bokovoy * BUG 3397: Add USER_INFO_9 for SMS 2003 support (ported from Samba TNG code). o Stefan Burkei * BUG 3248: When doing auth_crap authentication use the client given workstation name not our own. o Gerald (Jerry) Carter * Fixing net rpc registry enumerate from overwriting the open subkey handle. * BUG 3380: fix crash when changing printer drivers. * BUG 3391: ensure we can lookup account policies for failed logons. * Adding query/set ops for security descriptors on services. * BUG 3329: Solaris packaging fixes. * Better formatting for smbstatus output (based on patch from Adam Neilson). * Hook the max connections spin box in the share properties MMC plug-in dialog to the 'max connections' smb.conf parameter and the 'modify share command' option. * Work around building libnss_winbind.so on Solaris when --enable-developer is specified. * Add vendor patch level string to VERSION. * Consolidate packaging for RHEL4 and Fedora based on initial work by jht. o Albert Chin <@thewrittenword.com> * BUG 3374: Build failures on True64. o Guenther Deschner * Fill in samr_get_dom_pwinfo based on Samba4. * Fill in the clientside TRUSTED_DOMAIN_INFO_EX query. * Fixes for adssearch.pl example script. * Prevent 'net rpc' from dumping clear text password at high log levels unless built with DEBUG_PASSWORD. * Fix 'net ads user add' with a Windows 2003 SP1 DC. * Fix python build. * Fix segfault in pdb_nds.c. * Don't write null sid mappings into the winbindd_cache.tdb. * Save sid_to_name lookup result in winbindd already after doing a successful name_to_sid. * BUG 3390: Fix segfault in "net rpc vampire|samdump". * BUG 1524, 3205: Support changing expired passwords in pam_winbindd. * Fix netfileenum returning WERR_BUF_TOO_SMALL in rpcclient. * BUG 3264: Allow idmap_ad to load as 'ad'. Cleanup the way idmap modules are build and loaded, idmap_rid now will have to be loaded without prefix, just "rid". * Prevent cli_krb5_get_ticket of getting into an infinite loop. o Andrew Esh * BUG 1061: Fix nmbd to correctly the path to an lmhosts files specified on the command line with -H. o SATOH Fumiyasu * End profile fixes. * BUG 3348: Don't assume owning sticky bit directory means write access allowed. * Fix double free in on failure path in POSIX acl code. o Andriy Gapon * BUG 3458: Fix crash bug in smbd and winbindd caused by accessing freed memory. o Björn Jacke * Configure check for Tru64 EA functions (not yet implemented). * Find Tru64 AIO lib in configure. * Cut-n-paste fixes in configure.in. o John Janosik * IBM Tivoli Directory Server schema updates. o Michael James * sid2string fix in adssearch.pl. o William JoJo * BUG 3340: Prevent automatic inclusion of AIO support on AIX. * BUG 3389: Failures on AIX in linking smbd when the symbol table for ld exceeds 65536 bytes. * Add -W to smbpassword so that the ldap admin dn password does not have to be specified on the command line. * BUG 3408: Fix for external password change programs on AIX. * BUG 1779: 64-bit compile fixes. o Martin Koeppe * BUG 3287: Match SFU behavior for dev/inode numbers. o Volker Lendecke * BUG 3291: Fix valgrind error in client connection code. * BUG 3292: Prevent smbclient from spinning if server terminates connection. * BUG 3293: Use SMBecho instead of chkpath to keep a smbclient connection alive smbclient. * Add lookupname to rpcclient query_user as a fallback, we now accept both rid and username. * Introduce yet another copy of the string_sub function: talloc_string_sub use by AFS token code in winbindd. * BUG 3351: pdb_mysql again overwrites password fields. * BUG 3384: Fix segv in tdbtool. * Use the same CFLAGS for generating the pch as we use to actually compile. * Correct typo when compiling the vfs_catia module. * Fix automatic recreation of a new tdb sam file. o Derrell Lipman [libsmbclient] * Fix parsing of file times (w_time and m_time were reversed). * Add additional libsmbclient test programs. * BUG 3336: Load networks interfaces in libsmbcliebt after parsing the configuration files. * Avoid doing a NetBIOS name query for each server and workgroup enumeration call. * Do not open connection when only looking for cached connection. * BUG 2651: Add option to log debug messages to stderr instead of stdout. * Added flag to not request authentication information. * Enhancements to smbwrapper example code. * Replace smbwrapper call to dlopen(/lib/libc...) with direct use of RTLD_NEXT. o David May * BUG 3329: Shell scripting portability fixes on 'make test'. o Tony Mountifield * BUG 3327: fix bad access to gencache.tdb after fork() in smbmount. o Lars Müller * BUG 3264: Support backwards compatible setups using 'idmap backend = idmap_rid'. * Add %w macro for the winbind separator. * Convert net command to use stderr for error messages rather than stdout. o James Peach * Portability fixes in LDAP code. Don't use non-static array initializers. * Support the TCP_FASTACK socket option if it is available. * Tell the MIPSPro compiler to push DEBUG calls out of line. o Makr Proehl * BUG 1336: Print the server role when calling testparm in non-verbose mode. o Simo Sorce * Crackcheck utility enhancement based on patch sent by Tom Geissler. * BUG 3405: Fix segv in vfs_recycle module on platforms wither mode_t is not 32-bits. o John Terpstra * RHEL/Fedora spec file patches. -------------------------------------------------- =============================== Release Notes for Samba 3.0.21a Dec 30, 2005 =============================== Common bugs fixed in 3.0.21a include: o Deadlocks when multiple users access an oplocked file concurrently ###################################################################### Changes ####### Changes since 3.0.21 -------------------- commits ------- o Gerald (Jerry) Carter * RedHat 9 packaging Fixes. o Guenther Deschner * eDirectory schema syntax fixes. o Volker Lendecke * BUG 3349: Deadlock caused logic error in oplock code. -------------------------------------------------- ============================== Release Notes for Samba 3.0.21 Dec 20, 2005 ============================== Common bugs fixed in 3.0.21 include: o Missing groups in a user's token when logging in via Kerberos o Incompatibilities with newer MS Windows hotfixes and embedded OS platforms o Portability and crash bugs. o Performance issues in winbindd. New features introduced in Samba 3.0.21 include: o Complete NTLMv2 support by consolidating authentication mechanism used at the CIFS and RPC layers. o The capability to manage Unix services using the Win32 Service Control API. o The capability to view external Unix log files via the Microsoft Event Viewer. o New libmsrpc share library for application developers. o Rewrite of CIFS oplock implementation. o Performance Counter external daemon. o Winbindd auto-detection query methods when communicating with a domain controller. o The ability to enumerate long share names in libsmbclient applications. ###################################################################### Changes ####### smb.conf changes ---------------- Parameter Name Action -------------- ------ dfree cache time New dfree command Per share eventlog list New iprint server New map read only New passdb expand explicit New rename user script New reset on zero vc New svcctl list Renamed from 'enable svcctl' Changes since 3.0.20b --------------------- o Jeremy Allison * BUG 1828: Fixed SPNEGO issues with PocketPC clients. * Added 'map readonly' parameter. * BUG 3166: Fix crash in libsmbclient if the $HOME environment is not defined. * Maintain schannel client session keys in volatile $(privatedir)/schannel_store.tdb. * BUG 2769: Ensure we mangle filenames ending in a space * Catch corner case of renaming a symlinked directory into itself * Ensure that smb.conf requests for hidden files are honored, even when DOS attributes are stored in EA's * Add new auth method "auth_script" for calling an external program * BUG 2152: Fix for mangled filenames when the client does support long filenames * Rewritten implementation of client and server DCE/RPC infrastructure * BUG 3192: Adds a "dfree cache time" parameter. * Fix acl evaluation bug found by Marc Cousin. Only evaluate the S_IWGRP mask in the absence of a POSIX ACL. * Remove use of 'long long' in libsmbclient code. * Ensure the new canonicalize_servicename() in name/snum hash is multi-byte safe. * BUG 2922: Integration of FreeBSD AIO patches from Timur Bakeyev. * BUG 3216: Put directory opens into the share mode db so we can treat them similarly to file opens (delete on close, share mode violations etc.). * Fix bug in name mangling code when case sensitivity is enabled. * Remove external dependencies from the sharemodes library. * BUG 3212: Ignore bogus OS/2 set EA values on trans2 calls. * Don't misinterpret wild card characters in file names on disk as they are actually valid characters. * BUG 3223: Fix bug in account policy management when account_pol.tdb settings have been migrating to an LDAP backend. * Allow the hash size of the tdb open (locking) database to be set in local.h. * Fix error code returns on client spoolss code. * Remove unneeded strncpy use. * Fix uninitialized variables warnings. * Cleanup smbcacls security descriptor parsing and error codes. * BUG 3224: Correctly use machine_account_name and client_name when doing netlogon credential setup. Fixes winbindd running on a Samba PDC. * Backport Samba 4 time zone handling. * Fix core dump if setmntent() returns NULL. * Replace old crc32 code with one from the FreeBSD tree. * Filter stored DOS attributes by SAMBA_ATTRIBUTES_MASK. * Remove #define of close -> close_fn macro in libsmbclient. * Return early if -1 returned from *BSD EA call (reported by Timur). * Name space cleanup by marking local functions static. * Move samr enumeration cache from per handle basis to a shared cache. * BUG 3274: Fix invalid smbclient qpath_basic() queries against OS/2 servers (based on patch from Guenter Kukkukk). * Ensure default applies to new files (reported by Thomas Neumann). * BUG 3293: Use SMBecho to testing the server in client rather than SMBchkpath. * Merge talloc fixes from Samba 4 branch. * Add support DCE/RPC cancel operation. * Don't reset attrs to zero in EA get. Fixes 'hide dot files' when using EA for DOS attributes. * Fix bug in returning remote time (reported by Thomas Bork). * No users or groups to return in BUILTIN domain. * Removed separate "builtin" search enumeration. * Added count_sam_aliases to return the correct alias count. * Correctly handle the LDAP_UNWILLING_TO_PERFORM error from eDirectory when accessing the universal password. * Fix deadlock condition in share mode locking code. * Fix logic bug in unix_mask_match(). * Fix memory leak in SMB client code found by Mikhail Kshevetskiy. o Rashid N. Achilov * Add better service description names to the svcctl code. o Timur Bakeyev * BUG 3262: Improve FreeBSD DOS attribute error reporting. o Andrew Bartlett * Remove another ancient NTLMSSP implementation. * Allow machine account logons work if the client gives the appropriate flags. o Alexander Bokovoy * Add POSIX statvfs() to VFS api. o Gerald (Jerry) Carter * Eventlog and ServiceControl support. * BUG 1051: store the directory path so we can send the full name in the unlink call from smbclient. * Use reference count strategy for keeping the registry tdb open. * Convert internal registry objects to new hierarchical talloc * Allow the root user a free pass for access checks in the registry and service control checks. * Sanity checks in the privilege code to prevent empty SID entries * Add basic infrastructure for 'make test' when the socket wrapper library is configured at compile time * Convert profiles utility to use the current regfio interface for reading and writing user profiles * Remove netsamlogon_cache interface * Ensure that print jobs are removed even when the cancel command is received before the print cache has been updated * Fix linking problem on Solaris when including ACL support. * Give root a free pass to open the eventlog tdb files. * Fix segfault in addprinter due to mixing talloc() and malloc()'d memory. * fix invalid read reported by valgrind in the spoolss backchannel connection. * Remove use of 'long long' in perfcounter registry code. * BUG 3201: make sure request structure is cleared prior to sending the request to winbindd. * Don't count open pipes in the num_files_open on a connection (regression from Samba 2.2). * Ensure servername hashing code normalizes the name. * Fix checks for connect() in -lnsl[_s]. * Convert eventlog API to use NTSTATUS return codes rather than WERROR. * Fix segv in winbindd caused by an uninitialized variable in winbindd_dual_getsidaliases(). * Allow winbindd to select the appropriate backend methods based on the DC attributes and not the security parameter. * Re-add the netsamlogon_cache tdb and ensure that user entries are updated from the PAC data during Kerberos ticket validation. * Fix lockup when running 'wbinfo -t' on a Samba PDC caused by mangling machine names in sub_set_smb_name(). * Add smbget to the list of tools built by default. * Fix clearing of eventlog tdb files. * Fix sequential reads in eventlog support. * BUG 2718: Don't use qpathinfo_basic() call when remote server is Win9x. * Fix build issues with the Sun compiler. * BUG 3156: Don't use find_service() when explicitly looking for a printer. * Fix nss_winbind_solaris.c build breakage on HP-UX. * Initialize the local group description. * Disable WINS and NetLogon services in the MMC services plugin when the associated smb.conf features are not enabled. * Add checks for invalid characters in new share names on the srvsvc pipe. * Fix SWAT installation issues with 'make install'. * Always add the BUILTIN\Administrators SID to a Domain Admins token. o Alex Deiter * BUG 3196: Patch to compile against the Sun LDAP client libs. (not for AD support; just ldap support). o Guenther Deschner * Fixed compile problems and warnings with newer OpenLDAP and OpenSSL libs * Fix bug when enumerating trusted domains via 'wbinfo -m' * Parse the MS Kerberos PAC to obtain the user group membership during logon. * Add support for SeRestorePrivilege to allow a process to change the ownership of a file to any arbitrary account * Fix password history storage when using Novell eDirectory for ldapsam storage * Backport Kerberos PAC parsing from Samba 4 branch in order to correctly create the NT User Token when logging into a Samba member server * Add small helper function to return a PAC_LOGON_INFO. * Use LDAP bitwise matching rule when searching for groups in ADS. * Avoid an infinite loop when retrying to connect in smbspool. * Memory leak fixes in the Kerberos PAC parsing code. * Improve NT_STATUS error messages returned from pam_winbind. * Rename unknown samr group fields in samr structures with the correct name.removed separate "builtin" search enumeration. * Cleanup redundant StartTLS code. * Allow StartTLS support when connecting to Windows 2003 by setting 'ldap ssl = start_tls'. * Support raw NTLMSSP session setups in smbspool. * Add rpccli_samr_chgpasswd3(). * Add 'wbinfo --separator'. * Uninitialized warnings fixes. * Fix return value in client spooler code. * Require forced migration of account policies. o Steve French * Fix cifs to handle non-numeric uid and gid parameters. * Merge trunk and SAMBA_3_0 mount.cifs code. * Cleanup cifs cfs help message. o Paul Green * Update to the latest config.guess and config.sub files. o Deryck Hodge * Allow control of syslog facility and level in audit vfs modules. o S Murthy Kambhampaty * Patches for Fedora RPM specfile and init script o Krishna Ganugapati * Use the subtree delete ldap control when running 'net ads leave'. o Volker Lendecke * New oplock implementation. * Add assert() call if winbindd cannot locate the domain SID in secrets.tdb on startup * Fix an annoying timeout in winbindd when nmbd is not running. * Speed up loading smb.conf for large numbers of share definitions by adding an internal hashing of names to snums. Thanks to Michael Adam. * Fix potential segv in rpcclient's lsarpc calls. * Fix bugs in winbindd's use of rpccli_netlogon_getdcname(). * Fix alignment in getdc response. * Allow pdbedit to set the domain for a user account. * Fix fallback logic in rpc binds. * Fix memleak in message handling code. * Fix connection bug to port 445 and 139 after a successful getdcname response. * Add additional calls to initialize_krb5_error_table() for Kerberos client code. * Implement the possibility to have AFS users as SIDs in pts. * Removed unused alternative_name code from winbindd. * Protect against NULL alternative_name strings in winbindd. * Define a default panic action with -DEVELOPER is defined. * Add the capability to reset smbd connections on a zero VC id. * Allow smb.conf variable expansion to be disabled in passdb backends. * Add lookupname to rpcclient query_user as a fallback. * BUG 3292: Prevent smbclient from spinning when the server disconnects. * BUG 2191: Fix valgrind error in cli_session_setup_guest(). * Add samr_lookup_rids for the builtin domain. * Memory allocation cleanups in passdb. * Restrict samr_open_domain() to our domain only. * Change local_lookup_sid() to local_lookup_rid() since it is responsible for our domain only. * Fix some uninitialized variable warnings. * Fix winbind_lookup_name for the local domain, o Derrell Lipman * Cleanup libmsrpc version numbers. * BUG 3257, 3267, 3273: Plug memory and file descriptor leaks. * Fix crash bug in libsmbclient. * Add long share name support to libsmbclient when enumerating shares. o Jason Mader * Removed compiler various warnings. o Alex Masterov * BUG 3218: Fix XATTR calls on *BSD systems. o Jim McDonough * Speed up string_to_sid by removing next_token calls and unneeded strncmp() calls. * Implement user rename for smbpasswd and LDAP backends. * BUG 2961 (partial): Add rename support for user accounts to tdbsam * BUG 3187: Fix time zone offset in logon hours restrictions. o Stefan Metzmacher * Fix setting of quotas on linux kernel with the struct if_dqblk interface * Enable sysquota interface on Linux by default * Use lp_socket_address() when binding to port 138/udp in nmbd. o Brian Moran * Eventlog and ServiceControl support. * Added eventlogadm tool for writing Eventlog records. * Fix typo when creating Eventlog source DLL registry paths. * Add simple script to tail syslog and write records to eventlog tdb. * Fix segv in eventlogadm when not event logs are listed in smb.conf. o Lars Müller * Only install smbsh manpage if smbwrapper has been successfully built. * Ensure setmntent() returns with != NULL in the disk_quotas() Linux version. * Add configure switch to disable libmsrpc build. * Add a soname to libmsrpc. o Ricky Nance * Updates for the mklogon perl scripts. o Chris Nicholls * New libmsrpc library (Google SoC Project). * Fix libmsrpc build of on the Sun compiler by removing empty structure declarations. o James Peach * Fix parsing error for smb ports parameter. o Tim Potter * BUG 3260: Fix DYNEXP flags on HPUX. o Marcin Porwit * Eventlog and ServiceControl support. * Added basic Performance Counter daemon which can feed data for the Windows perfmon.exe tool. * Fix directory permissions in the perfcounter daemon. * Add the 'File' registry value for the eventlog keys. o Aruna Prabakar * Add iPrint printing backend support. o Toomas Soome * Implement host lookups in nss_winbind.so.1 on Solaris o Simo Sorce * Update Debian packaging. o John Terpstra * Add 'net idmap' usage help text. o Andrew Tridgell * Change license notice of standalone talloc library to LGPL. o Darren Tucker o Crash fix for snprintf() code. o Rainer Weikusat * Fix function name typo in skeleton VFS code. Release Notes for older release follow: -------------------------------------------------- =============================== Release Notes for Samba 3.0.20b Oct 12, 2005 =============================== 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 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