OpenAFS for Windows 1.4.4
Release Notes
The Andrew File System (AFS) is a location-independent file system that uses a local cache to increase its performance.с An AFS client accesses files anonymously or via a Kerberos authentication.с The global AFS is partitioned into cells.с The AFS cell is a collection of AFS volumes that are administered by a common entity.сс AFS cells can be administered by a department even when the Kerberos realm used for local authentication is managed by a much larger organization.с AFS clients and servers take advantage of Kerberos cross realm authentication to enable authenticated access by entities located outside the local realm.с Authorization is enforced by the use of directory level access control lists which can consist of individual or group identities.с
The AFS volume is a tree of files and sub-directories.с AFS volumes are created by administrators and are joined to an AFS cell via the use of a mount point.сс Once a volume is created, users can create files and directories as well as mount points and symlinks within the volume without regard for the physical location of the volume.с Administrators can move the volume to another server as necessary without the need to notify users.сс In fact, the volume move can occur while files in the volume are in use.с
AFS volumes can be replicated to read-only copies.сс When accessing files from a read-only replica, clients will read all of the data from a single replica.сс If that replica becomes unavailable, the clients will failover to any replica that is reachable.с Users of the data are unaware of where the replicas are stored or which one is being accessed.сс The contents of the replicas can be updated at any time by releasing the current contents of the source volume.
OpenAFS for Windows (OAFW) provides AFS client access Microsoft Windows operating systems.с It strives to maintain transparency such that the user is unaware of the distinction between the use of AFS and Microsoft Windows file shares.сс OAFW can be part of a single sign-on solution by allowing credentials for a Kerberos principal to be obtained at logon and for that principal to be used to obtain AFS tokens for one or more cells.сс Although OAFW is implemented as a locally installed SMB to AFS gateway, OAFW maintains the portability of file paths by its use of the \\AFS UNC server name.
OpenAFS is the product of an open source development effort begun on October 31 2000.с OpenAFS is maintained and developed by a group of volunteers with the support of the user community.сс If you use OpenAFS as part of your computing infrastructure please contribute to its continued growth.
4. How to Debug Problems with OpenAFS for Windows:
6. How to Contribute to the Development of OpenAFS for Windows.
It can be installed either as a new installation or an upgrade from previous versions of OpenAFS for Windows or IBM AFS for Windows.с Installers are provided in two forms:
1. an executable (.exe) that is built using the Nullsoft Scriptable Installation System, or
2. a Windows Installer package (.msi) that is built using WiX and can be customized for organizations via the use of MSI Transforms (see MSI Deployment Guide)
Р Microsoft Windows 2000 Workstation
Р Microsoft Windows 2000 Server
Р Microsoft Windows XP Home
Р Microsoft Windows XP Professional
Р Microsoft Windows 2003 Server
Р Microsoft Windows 2003 R2 Server
Р Microsoft Windows Vista Beta 2 (not for production use)
Р Microsoft Windows 95
Р Microsoft Windows 98
Р Microsoft Windows 98 OSR2
Р Microsoft Windows ME
Р Microsoft NT
Р All 64-bit versions of Microsoft Windows on Itanium and x86-64 chipsets.
Older releases of OpenAFS are available for download if unsupported 32-bit operating systems must be used.с The last version of OpenAFS with support for Win9x is 1.2.2b.с The last version with support for Windows NT 4.0 is 1.2.10.
Up to 60mb required for the OpenAFS binaries plus 100MB for the default AFSCache file.сс (The size of the AFSCache file may be adjusted via the Registry after installation.)
MIT Kerberos for Windows 2.6.x or 3.x.x if Kerberos 5 authentication support is desired.
The Kerberos 4 infrastructure on which the OpenAFS 1.2 series is reliant is no longer secure.с Cross-realm Kerberos is very important in the AFS context and most sites have or are migrating to Kerberos 5 environments.с The OpenAFS 1.4 series integrates with MIT Kerberos for Windows 2.6.5 and above to support Kerberos 5 authentication including automatic renewal of AFS tokens and single sign-on via the Microsoft Windows Kerberos Logon Service.
When KFW is installed, the OpenAFS 1.4 client will obtain Kerberos 5 tickets and use them as tokens without modification.с The OpenAFS 1.4 client requires that all of the AFS Servers with which it communicates support the use of Kerberos 5 tickets as tokens. If Kerberos 5 based tokens are presented to an AFS server that does not understand them, the server will be unable to communicate with the client when tokens are present. Kerberos 5 based tokens are supported by OpenAFS release 1.2.8 or later.с IBM Transarc servers do not support Kerberos 5.
There are two things to consider when using a Microsoft Windows Active Directory as the Kerberos realm that issues the AFS service ticket.с First, the Kerberos 5 tickets issued by Active Directory can be quite large when compared to tickets issued by a traditional KDC due to the incorporation of authorization data in the PAC.с If the issued tickets become larger than 344 bytes OpenAFS 1.2 servers will be unable to process them.с OpenAFS 1.4 servers can support the largest tickets that Active Directory can issue.с Second, the Kerberos 5 tickets issued by Windows 2003 Active Directory are encrypted with the DES-CBC-MD5 enctype.с OpenAFS 1.2 servers only support the DES-CBC-CRC enctype.
Microsoft has documented in Knowledge Base article 832572 a new NO_AUTH_REQUIRED flag that can be set on the account mapped to the AFS service principal which will prevent the generation of a PAC.
Some organizations which have AFS cell names and Kerberos realm names which differ by more then just lower and upper case rely on a modification to krb524d which maps a Kerberos 5 ticket from realm FOO to a Kerberos 4 ticket in realm BAR.с This allows user@FOO to appear to be user@bar for the purposes of accessing the AFS cell.с As of OpenAFS 1.2.8, support was added to allow the immediate use of Kerberos 5 tickets as AFS (2b) tokens. This is the first building block necessary to break away from the limitations of Kerberos 4 with AFS.с By using Kerberos 5 directly we avoid the security holes inherent in Kerberos 4 cross-realm.с We also gain access to cryptographically stronger algorithms for authentication and encryption.
Another reason for using Kerberos 5 directly is because the krb524 service runs on a port (4444) which has become increasingly blocked by ISPs.с The port was used to spread a worm which attacked Microsoft Windows in the summer of 2003.с When the port is blocked users find that they are unable to authenticate.
Replacing the Kerberos 4 ticket with a Kerberos 5 ticket is a win in all situations except when the cell name does not match the realm name and the principal names placed into the ACLЦs are not the principal names from the Kerberos 5 ticket.с To support this transition, OpenAFS for Windows 1.4 adds a new registry value, Use524, to force the use of krb524d.с However, the availability of this option should only be used by individuals until such time as their organizations can provide a more permanent solution.
By itself the OpenAFS Client Service does not provide robust behavior in a plug-n-play network environment.с Changes to the number of network adapters or their assigned IP addresses will cause the service to terminate unexpectedly.с To avoid this behavior OpenAFS for Windows installs a single instance of the Microsoft Loopback Adapter (MLA) on the machine.с With the MLA installed, the OpenAFS Client Service will not be affected by the configuration changes of other network adapters installed on the system.с
The MLA is installed with a name of "AFS" and a pre-assigned IP address in the 10.x.x.x range.с The MLA is bound to the єClient for Microsoft Networksі service and not bound to the єFile and Printer Sharing for Microsoft Networksі.с If the MLA is unbound to "Client Microsoft Networks", the OpenAFS Client Service will become inaccessible when the machine is disconnected from the network.с If the MLA is bound to "File and Printer Sharing ..." there will be a service type collision between the name "AFS" and the name of the machine on the MLA's IP Address that will result in the OpenAFS client service becoming inaccessible and the "NET VIEW \\AFS" command will return a "System Error 52" message.с To correct the problem:
Р сstop the AFS Client Service
Р сbind the "Client for Microsoft Networks" to the MLA
Р сunbind "File and Printer Sharing for Microsoft Networks" from the MLA
Р сDisable and then re-enable the MLA
Р сstart the AFS Client Service
When the MLA is not installed the unique NETBIOS name published by OpenAFS SMB server is "MACHINE-AFS".с One of the benefits of using the MLA is that the NETBIOS name does not have to be published on any adapter other than the MLA.с Therefore the chosen name is no longer required to be unique.с Instead the NETBIOS name associated with the AFS Client Service is simply "AFS" and portable UNC paths of the form \\AFS\cellname\path can now be used on all machines.
Traditionally, when the OpenAFS Client Service starts it must be able to access the "root.afs" volume of the default cell.с The "root.afs" volume contains the set of mount points to the "root.cell" volumes of various cells the administrator of the default cell believes should be accessible.с If the "root.afs" volume is inaccessible when the client service is started, the service will terminate unexpectedly.с Since many users now use laptops or otherwise operate in disconnected environments in which a VPN may be required to access the cell's servers, it is often the case that the "root.afs" volume for the default cell is not reachable and the OpenAFS Client Service will not successfully start.
To allow the OpenAFS Client Service to operate in these environments, a fake "root.afs" volume is dynamically constructed from mount points and symlinks stored in the local registry.с This method of operation is referred to as Freelance mode.
The content of the fake єroot.afsі volume is dynamically modified as cells are accessed.с When the fake "root.afs" volume is initially constructed it will only contain two mount points: a regular path and read-write path mount point used to access the "root.cell" volume of the default AFS cell.с Any attempt to access a valid cell name will result in a new mount point being created in the fake "root.afs" volume.с If the cellname begins with a "." the mount point will be a read-write path; otherwise the mount point will be a regular path.с These mount points are preserved in the registry at key:
HKLM\SOFTWARE\OpenAFS\Client\Freelance
Additional mount points may be manually created using the "fs mkmount" command.с Mount points may be removed using the "fs rmmount" command.
>fs mkmount \\AFS\athena.mit.edu root.cell athena.mit.edu
>fs mkmount \\AFS\.athena.mit.edu root.cell athena.mit.edu -rw
>fs rmmount \\AFS\athena.mit.edu
>fs rmmount \\AFS\.athena.mit.edu
Symlinks may also be created within the Freelance єroot.afsі volume.
>symlink make \\afs\link \\afs\athena.mit.edu\user\j\a\jaltman
ссссс >symlink list \\afs\link
ссссс '\\afs\link' is a symlink to 'athena.mit.edu\user\j\a\jaltman'
>symlink rm \\afs\link
The symlinks are stored in the registry at:
HKLM\SOFTWARE\OpenAFS\Client\Freelance\Symlinksс
The OpenAFS for Windows client will use DNS AFSDB records to discover the location of AFS Volume Database servers when entries are not present in the client's CellServDB file (\%PROGRAMFILES%\OpenAFS\Client\CellServDB).
OpenAFS for Windows installs a WinLogon Network Provider to provide Single Sign-On functionality (aka Integrated Logon.)с Integrated Logon can be used when the Windows username and password match the username and password associated with the default cell's Kerberos realm.с For example, if the Windows username is "jaltman" and the default cell is "athena.mit.edu", then Integrated Logon can be successfully used if the windows password matches the password assigned to the Kerberos principal "jaltman@ATHENA.MIT.EDU".с The realm єATHENA.MIT.EDUі is obtained by performing a domain name to realm mapping on the hostname of one of the cell's Volume Database servers.
Integrated Logon is required if you desire the ability to store roaming user profiles within the AFS file system.с OpenAFS does not provide tools for synchronizing the Windows and Kerberos user accounts and passwords.
When KFW is configured, Integrated Logon will use it to obtain tokens.с The Kerberos 5 tickets obtained during the process of generating AFS tokens are preserved and stored into the default ccache within the user logon session.
Integrated Logon does not have the ability to cache the user's username and password for the purpose of obtaining tokens if the Kerberos KDC is inaccessible at logon time.
Integrated Login supports the ability to obtain tokens for multiple cells.с For further information on how to configure this feature read the TheseCells value in Appendix A.
The AFS System Tray tool (afscreds.exe) supports several command line options:
ссс -A = autoinit
ссс -E = force existing afscreds to exit
ссс -I = install startup shortcut
ссс -M = renew drive maps
с сс-N = IP address change detection
ссс -Q = quiet mode.с do not display start service dialog
сссссссс if afsd_service is not already running
ссс -S = show tokens dialog on startup
ссс -U = uninstall startup shortcut
ссс -X = test and do map share
ссс -Z = unmap drives
autoinit will result in automated attempts to acquire AFS tokens when afscreds.exe is started.с afscreds.exe will attempt to utilize tickets stored in the MSLSA credentials cache; any existing CCAPI credentials cache; and finally display an Obtain Tokens dialog to the user.с When used in combination with IP address change detection, afscreds.exe will attempt to acquire AFS tokens whenever the IP address list changes and the Kerberos KDC is accessible.
The renew drive maps option is used to ensure that the user drive maps constructed via the OpenAFS tools (not NET USE) are re-constructed each time afscreds.exe is started.
By default afscreds.exe is configured by the OpenAFS.org installers to use є-A -N -M -Qі as startup options.с Currently, there is no user interface to change this selection after install time although these options may be altered via the registry on either per machine or per user basis.с See AfscredsShortcutParams in Appendix A.
The OpenAFS for Windows 1.4 client supports a local Windows authorization group named "AFS Client Admins".с This group is used in place of the "Administrators" group to determine which users are allowed to modify the AFS Client Service configuration via the AFS Control Panel (afs_config.exe) or fs.exe command line tool.с The following fs.exe commands are now restricted to members of the "AFS Client Admins" group:
Р checkservers with a non-zero timer value
Р setcachesize
Р newcell
Р sysname with a new sysname list
Р exportafs
Р setcell
Р setserverprefs
Р storebehind
Р setcrypt
Р cscpolicy
Р trace
Р minidump
The creation or removal of mount points and symlinks in the Freelance єroot.afsі volume are also restricted to members of the єAFS Client Adminsі group.
The initial membership of the "AFS Client Admins" group when created by the installer is equivalent to the local "Administrators" group.с If a user is added to the "Administrators" group after the creation of the "AFS Client Admin" group, that user will not be an AFS Client Administrator.с Only users that are members of the "AFS Client Admins" group are AFS Client Administrators.с The local "SYSTEM" account is an implicit member of the "AFS Client Admins" group.
Setting the default sysname for a machine should be done via the registry and not via "fs sysname".
The OpenAFS 1.4 client supports UNC paths everywhere.с UNC paths provide a canonical name for resources stored within AFS.с UNC paths should be used instead of drive letter mappings whenever possible.сс This is especially true when specifying the location of roaming profiles and redirected folders.сс
Power users that make extensive use of the command line shell, cmd.exe, should consider using JP Software's 4NT or Take Command command processors.с Unlike cmd.exe, the JPSoftware shells fully support UNC paths as the current directory.с With the release of version 4NT 7.0 and Take Command 7.0, JPSoftware is adding special recognition of OpenAFS.с AFS paths can be entered in UNIX notation (e.g., /afs/openafs.org/software), space utilization reports the output of the volume status for the specified path, and many AFS specific functions and variables have been added to the command language.
JPSoftware's web site is http://www.jpsoft.com.
The OpenAFS 1.4 Client ships with its own version of aklog.exe which should be used in preference to those obtained by third party sources.с The OpenAFS aklog.exe supports Kerberos 5 as well as the ability to auto-generate AFS IDs within foreign PTS databases.
Usage: aklog [-d] [[-cell | -c] cell [-k krb_realm]]
сссссссссссс [[-p | -path] pathname]
сссссссссссс [-noprdb] [-force]
сссссссссссс [-5 [-m]| -4]
сс -d = output debugging information.
сс cell = zero or more cells for which tokens will be obtained
сс krb_realm = the kerberos realm of the cell.
сс pathname = the directory for which authentication is required
сс -noprdb = don't try to determine AFS ID.
сс -5 or -4 = use Kerberos V (default) or Kerberos IV tickets
сс -m = use krb524d to convert Kerberos V tickets to Kerberos IV
The AFS Server functionality provided with OpenAFS 1.4 might work but should be considered highly experimental.с It has not been thoroughly tested.с Any data which would cause pain if lost should not be stored in an OpenAFS Server on Windows.
A few notes on the usage of the AFS Client Service if it is going to be used with the OpenAFS AFS Server:
Р When installed on the same machine as the AFS Server, Freelance mode must be turned off.с Otherwise, you will be unable to manipulate the contents of the root.afs volume for the hosted cell.
Р The AFS Server and related tools only support the built in kaserver (Kerberos IV).с If the AFS Server is being used, MIT Kerberos for Windows should not be installed or must be disabled.
The OpenAFS for Windows installers now include Debugging Symbol files which should be installed if you are experiencing problems and need to send crash reports.с This is true for both the release and the debug versions of the installers.с The difference between the release and debug versions are:
Р whether or not the binaries were compiled with optimization
Р whether the debug symbols are installed by default
Р whether additional debug statements were compiled into the binaries
OpenAFS for Windows does not support files larger than 2GB.с The version of the SMB/CIFS protocol implemented imposes this limitation.с Upgrading the SMB/CIFS implementation or replacing it with an Installable File System will allow larger files to be supported.
OpenAFS for Windows 1.5.3 or greater will provide support for files up to 16777216 terabytes.
The OpenAFS for Windows installer by default activates a weak form of encrypted data transfer between the AFS client and the AFS servers.с This is often referred to as "fcrypt" mode.с Encrypted data transfer can be turned on or off with the єfs cryptі command.с Transitions between єcryptі and єnon-cryptі modes are logged to the Windows Application Event Log.
OpenAFS 1.4 supports authenticated SMB connections using either NTLM or GSS SPNEGO (NTLM).с In previous versions of OpenAFS, the SMB connections were unauthenticated which opened the door for several attacks which could be used to obtain access to another user's tokens on shared machines.ссс
When GSS SPNEGO attempts a Kerberos 5 authentication, the Windows SMB client will attempt to retrieve service tickets for "cifs/afs@REALM" (if the loopback adapter is in use) or "cifs/machine-afs@REALM" (if the loopback adapter is not being used).с It is extremely important that this service principal not exist in the KDC database as the Kerberos authentication must fail allowing automatic fallback to NTLM.с When NTLM is used a special local authentication mode will be used that does not require access to the user's password.с Instead, Windows will internally recognize the request as coming from a local logon session.
Previous AFS clients for Windows stored configuration data in Windows .INI files. ссOpenAFS 1.4 does not use Windows .INI files for the storage of configuration data.сс All settings are now stored in the registry (see Appendix A).с The CellServDB file is now stored in the %PROGRAMFILES%\OpenAFS\Client directory.сс The CellServDBDir registry value can be used to specify an alternative location.
OpenAFS 1.4 will relocate the contents of the єafsdcell.iniі file to the new CellServDB file.с OpenAFS 1.4 will also import the contents of the єafs_freelance.iniі file to the Windows registry.сс OpenAFS 1.4 will not process the contents of the єafsddbmt.iniі.
The OpenAFS 1.4 Client is compatible with the Internet Connection Firewall that debuted with Windows XP SP2 and Windows 2003 SP1.с The Internet Connection Firewall will be automatically adjusted to allow the receipt of incoming callback messages from the AFS file server.с In addition, the appropriate Back Connection registry entries are added to allow SMB authentication to be performed across the Microsoft Loopback Adapter.
The OpenAFS 1.4 Client Service implements the CIFS Remote Admin Protocol which allows Explorer to browse server and share information. This significantly enhances the interoperability of AFS volumes within the Explorer Shell and Microsoft Office applications.
Many applications on Windows (e.g. Microsoft Office) require the use of byte range locks applied to a file either to protect against simultaneous file access or as a signaling mechanism.сс OpenAFS implements byte range locking local to the machine.сс OpenAFS does not obtain file locks on the server.сс It is strongly recommended that files not be edited within AFS if they might be accessed by multiple users or multiple processes on more than one machine at the same time.
Note: In a future release, OpenAFS for Windows will utilize AFS' advisory locks to simulate Microsoft Windows mandatory locks. When an application opens a file, a lock will be placed in AFS indicating that the file is in use. If the lock is a write lock, the use of the file will be restricted to other applications running on the same machine as the first application to apply the lock. Applications running on other machines will see the full lock and will be unable to access the file.
Most Windows applications and Windows itself opens files in shared read mode. When this is done, a read lock is applied to the file. This does not prevent shared read access across multiple machines but is used to ensure that no one writes to the file while it is in use.
As locks are checked and applied during the file open operation, it is crucial that users have the locking 'k' privilege in all directories in which the user might read a file or execute an application unless the directory exists on a read only volume. A failure to assign the 'k' privilege will result in "Access Denied" errors during file open.
OpenAFS 1.4 will automatically forget a user's tokens upon Logoff unless the user's profile was loaded from an AFS volume.с In this situation there is no mechanism to determine when the profile has been successfully written back to the network.с It is therefore unsafe to release the user's tokens.с Whether or not the profile has been loaded from the registry can be determined for Local Accounts, Active Directory accounts and NT4 accounts.
If there is a need to disable this functionality, the LogoffPreserveTokens registry value can be used. (see Appendix A.)
When installing the NSIS (.exe) installer under Terminal Server, you must execute it from within the Add/Remove Programs Control Panel.с Failure to do so will result in AFS not running properly.с The AFS Server should not be installed on a machine with Terminal Server installed.
AFS is a UNIX native file system.с The OpenAFS client attempts to treat the files stored in AFS as they would be on UNIX.с File and directory names beginning with a "." are automatically given the Hidden attribute so they will not normally be displayed.
The Status Cache (AFS Configuration Control Panel: Advanced Page) is defined to have a maximum number of entries.с Each entry represents a single file or directory entry accessed within the AFS file system.с When the maximum number of entries are allocated, entries will begin to be reused according to a least recently used (LRU) algorithm.с If the number of files or directories being accessed repeatedly by your applications is greater then the maximum number of entries, your host will begin to experience thrashing of the Status Cache and all requests will result in network operations.
If you are experiencing poor performance try increasing the maximum number of Status Cache entries.с Each entry requires approximately 1.2K.с In OpenAFS 1.4, the default number of Status Cache entries is 10,000.
"Netbios over TCP/IP" must be active on the machine in order for communication with the AFS Client Service to succeed.с If "Netbios over TCP/IP" is disabled on the machine, then communication with the AFS Client Service will be impossible.
The OpenAFS Client Service and related binaries distributed by OpenAFS.org are digitally signed by "Secure Endpoints Inc.".с The OpenAFS Client Service will perform a run-time verification check to ensure that all OpenAFS related DLLs loaded by the service match the same file version number and were signed by the same entity.с This check has been added to prevent the stability problems caused by more than one AFS installation present on a machine at the same time.с Many hours of support time have been wasted tracking down problems caused by the mixture of files from different releases.с
Appendix A documents the "VerifyServiceSignature" registry value which can be used to disable the signature check.с The file version check cannot be disabled.
The maximum cache size is approximately 1.3GB.с This is the largest contiguous block of memory in the 2GB process address space which can be used for constructing a memory mapped file.с Due to fragmentation of the process space caused by the loading of libraries required by the digital signature verification code, any attempt to specify a cache size greater then 700MB will result in the automatic disabling of the signature check.
OpenAFS for Windows implements an SMB server which is used as a gateway to the AFS filesystem.с Because of limitations of the SMB implementation, Windows stores all files into AFS using OEM code pages such as CP437 (United States) or CP850 (Western Europe).с These code pages are incompatible with the ISO Latin-1 character set typically used as the default on UNIX systems in both the United States and Western Europe.с Filenames stored by OpenAFS for Windows are therefore unreadable on UNIX systems if they include any of the following characters:
сссс [У]с 128с 08/00с 200с 80с C cedilla сссс [Г]с 129с 08/01с 201с 81с u diaeresis сссс [к]с 130с 08/02с 202с 82с e acute сссс [д]с 131с 08/03с 203с 83с a circumflex сссс [ѕ]с 132с 08/04с 204с 84с a diaeresis сссс [г]с 133с 08/05с 205с 85с a grave сссс [е]с 134с 08/06с 206с 86с a ring сссс [ў]с 135с 08/07с 207с 87с c cedilla сссс [л]с 136с 08/08с 210с 88с e circumflex сссс [й]с 137с 08/09с 211с 89с e diaeresis сссс [о]с 138с 08/10с 212с 8Aс e grave сссс [Д]с 139с 08/11с 213с 8Bс i diaeresis сссс [Џ]с 140с 08/12с 214с 8Cс i circumflex сссс [§]с 141с 08/13с 215с 8Dс i grave сссс []с 142с 08/14с 216с 8Eс A diaeresis сссс []с 143с 08/15с 217с 8Fс A ring сссс []с 144с 09/00с 220с 90с E acute сссс [Е]с 145с 09/01с 221с 91с ae diphthong сссс [у]с 146с 09/02с 222с 92с AE diphthong сссс [Ж]с 147с 09/03с 223с 93с o circumflex сссс [ї]с 148с 09/04с 224с 94с o diaeresis сссс []с 149с 09/05с 225с 95с o grave сссс [Й]с 150с 09/06с 226с 96с u circumflex сссс [Ј]с 151с 09/07с 227с 97с u grave ссс с[ ]с 152с 09/08с 230с 98с y diaeresis сссс [Э]с 153с 09/09с 231с 99с O diaeresis сссс []с 154с 09/10с 232с 9Aс U diaeresis сссс [А]с 155с 09/11с 233с 9Bс o slash сссс [њ]с 156с 09/12с 234с 9Cс Pound sterling sign сссс [Я]с 157с 09/13с 235с 9Dс O slash с ссс[Ю]с 158с 09/14с 236с 9Eс Multiplication sign сссс [т]с 159с 09/15с 237с 9Fс Florin sign |
OpenAFS 1.4 provides an optional registry value, StoreAnsiFilenames, that can be set to instruct OpenAFS to store filenames using the ANSI Code Page instead of the OEM Code Page.с The ANSI Code Page is a compatible superset of Latin-1.с This setting is not the default setting because making this change would prevent OpenAFS for Windows from being able to access filenames containing the above characters which were created without this setting.
There is a known issue with storing Windows Roaming Profiles when the profile contains either directories or files with names which cannot be represented in the local OEM character set.с In this case, attempts to write the profile back to AFS will fail.с OpenAFS for Windows does not currently support UNICODE.с To avoid this problem some sites run logoff scripts (assigned by group policy) which rename all files to use only the supported characters for the locale.
The AFS Cache file is stored by default at %TEMP%\AFSCache in a persistent file marked with the Hidden and System attributes.с The persistent nature of the data stored in the cache file improves the performance of OpenAFS by reducing the number of times data must be read from the AFS file servers.с
The performance of the AFS Client Service is significantly affected by the access times associated with the AFSCache paging file.сс When given the choice, the AFSCache file should be placed on a fast disk, preferably NTFS, the file should not be compressed and should consist of as few fragments as possible.сс Significant performance gains can be achieved by defragmenting the AFSCache file with Sysinternal's Contig utility.
A new command line tool, afsdacl.exe, can be used to restrict the ability to start and stop the OpenAFS Client Service.
ссс afsdacl : Set or reset the DACL to allow starting or stopping
сссссссс the afsd service by any ordinary user.
ссс Usage : afsdacl [-set | -reset] [-show]
ссссссссс -setсс : Sets the DACL
ссссссссс -reset : Reset the DACL
ссссссссс -showс : Show current DACL (SDSF)
The default @sys name list in OpenAFS 1.4 is set to "x86_win32 i386_w2k i386_nt40" for 32-bit x86 systems.с The default for itanium will be "ia64_win64" and "amd64_win64" for amd 64-bit processors when those platforms are supported.
In OpenAFS 1.4, symlinks to AFS UNC paths, \\AFS[\all]\..., are treated the same as symlinks to /afs/...с However, please use /afs/... as the Windows UNC form will not work on UNIX.
OpenAFS for Windows 1.4 implements the Cache Manager Debugging RPC Interface.с The CM debugger can be queried with cmdebug.exe.
Usage: cmdebug -servers <server machine> [-port <IP port>] [-long]
сссссссссссссс [-addrs] [-cache] [-help]
Where: -longсс print all info
сссссс -addrsс print only host interfaces
сссссс -cacheс print only cache configuration
If you are a site which utilizes MIT/Heimdal Kerberos principals to logon to Windows via a cross-realm relationship with a multi-domain Windows forest, you must enable Windows logon caching unless the workstation is Windows Vista Beta 2 or later.
VLDB and File Server Preferences can now be provided initial values using registry keys.с This is useful for managed machines in a Windows domain which are centrally located (e.g., in a computing lab.)с See Appendix A for details on the "Server Preferences" keys.
OpenAFS 1.4 reports timestamps on files stored in AFS in UTC all year round.с In locales with daylight savings time, previous versions of AFS for Windows reported the time when DST is active as UTC+1.с This was done to preserve the relative local time for the user.с A file stored at 11:00am EST in January would be reported as having been stored at 11:00am EDT in June.с Unfortunately, this has the negative side effect of changing the reported timestamp from 16:00UTC to 15:00UTC.с Since Windows treats all file times in UTC, data synchronization applications which rely on the timestamp would believe that all files stored in AFS had changed.
It should be noted that UNIX based operating systems (such as Solaris) do not appear to report file times to applications in UTC.с They do preserve the relative local time.с This may confuse some users who are used to being able to compare the timestamp in an UNIX shell with the timestamp from the Windows explorer.с During DST, these two times will no longer agree even though they are in fact representing the same moment in time.
If the installer refuses to install and complains about an RPC configuration error, check to ensure that the following registry entries are present and that they refer to the dll "rpcrt4.dll":
сс HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_np"
сс HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_ip_tcp"
сс HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncadg_ip_udp"
сс HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_http"
OpenAFS 1.4 adds a new command, "fs minidump".с This command can be used at any time to generate a mini dump file containing the current stack of the afsd_service.exe process.сс This output can be very helpful when debugging the AFS Client Service when it is unresponsive to SMB/CIFS requests.
The OpenAFS for Windows 1.4 client implements Universally Unique Identifiers (UUIDs).с They are used to provide the server with a method of identifying the client that is independent of IP address.с The UUID is generated when the AFSCache file is created and is maintained as long as the contents of the AFSCache file are kept intact.с The UUID is stored in the AFSCache file.сс When cloning machines that have Windows AFS client installed, the AFSCache files should be deleted as part of the cloning process.
Microsoft Office makes heavy use of asynchronous input/output methods for reading and writing to file streams.с This can result in hundreds of requests being simultaneously queued for service by the CIFS client with a fixed timeout period.с As the AFS CIFS server is local to the machine the Windows CIFS client believes that it can respond almost instantaneously to write requests as the actual writing to the AFS file server is performed by a background daemon thread.с When the actual network bandwidth to the AFS file server is slow and the file size is large it is possible for the CIFS client to time out the connection.с When this happens a єdelayed write errorі will be reported to the user and the application may crash.с The only workaround at the current time is to save first to a local disk and subsequently copy the file to AFS as copying a file with the explorer shell does not use asynchronous i/o.
The CIFS session timeout defaults to 45 seconds and can be increased by modifying the registry.
The Global DriveAuto-mount feature has been deprecated due to the following Microsoft KB article.
http://msdn.microsoft.com/library/en-us/dllproc/base/services_and_redirected_drives.asp
It says that services mounting drive letters are no longer supported by Microsoft and may act unpredictably.с The experience other users have had is that if the connection to the OpenAFS CIFS/SMB server is terminated by the Windows CIFS client, the drive mapping may not be re-established until the machine is rebooted.
OpenAFS supports UNC paths and whenever possible applications should be modified to use of \\AFS\<cellname>\<path> instead of drive letters.
OpenAFS for Windows provides a wide range of tools to assist you in debugging problems.с The techniques available to you are varied because of the wide range of issues that have been discovered over the years.
pioctl (path-based ioctl) calls are used by various tools to communicate with the AFS Client Service.с Some of the operations performed include:
Р setting/querying tokensс (tokens.exe, aklog.exe, afscreds.exe)
Р setting/querying ACLs
Р setting/querying cache parameters
Р flushing files or volumes
Р setting/querying server preferences
Р querying path location
Р checking the status of servers and volumes
Р setting/querying the sysname list
pioctl calls are implemented by writing to a special UNC path that is processed by the AFS Client Service.сс If there is a failure to communicate with the AFS Client Service via SMB/CIFS, it will be impossible to perform any of the above operations.сс
To assist in debugging these problems, the registry value:
с [HKLM\SOFTWARE\OpenAFS\Client]
с REG_DWORD:с IoctlDebugсс = 0x01
should be set.с Then any of the commands that perform pioctl calls should be executed from the command prompt.с With this key set the pioctl library will generate debugging output to stderr.с The output will contain the Win32 API calls executed along with their most important parameters and their return code.сс The MSDN Library and the Microsoft KnowledgeBase can be used as a reference to help you determine the configuration probem with your system.
Every time the AFS Client Service starts it appends data about its progress and configuration to a file.с This file provides information crucial to determining why the service cannot start when there are problems.с When the process terminates due to a panic condition it will write to this file the source code file and line number of the error.с In many cases the panic condition is due to a misconfiguration of the machine.с In other cases it might be due to a programming error in the software.с A quick review of the location in the source code will quickly reveal the reason for the termination.
The MaxLogSize registry value determines the maximum size of the %WINDIR%\TEMP\afsd_init.log file.с If the file is larger than this value when OpenAFS Client Service starts, the file will be reset to 0 bytes.с If value is set to 0, the file will be allowed to grow indefinitely.
When attempting to debug the behavior of the SMB/CIFS Server and the Cache Manager it is often useful to examine a log of the operations being performed.с While running the AFS Client Service keeps an in memory log of many of its actions.сс The default number of actions preserved at any one time is 5000.с This can be adjusted with the registry value:
с [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]
с REG_DWORDс TraceBufferSize
A restart of the service is necessary when adjusting this value.сс Execute "fs trace -on" to clear to the log and "fs trace -dump" to output the contents of the log to the file.
An alternatve option to the use of "fs trace -dump" to capture internal OpenAFS Client Service events is to use a tool such as Sysinternal's DbgView to capture real-time debugging output.с When the OpenAFS Client Service starts and Bit 2 of the TraceOption value in the registry is set, all trace log events are output using the Windows Debug Monitor interface (OutputDebugString).с
с [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]
REG_DWORDсс TraceOption = 0x04
Use єfs trace ћonі and єfs trace ћoffі to toggle the generation of log messages.
SysinternalЦs FileMon utility can be use to monitor the file operations requested by applications and their success or failure.сс Use the Volumes menu to restrict FileMon monitor to Network volumes only in order to reduce the output to just the CIFS requests.с Turn on the Advanced Output option in order to log with finer granularity.
Turn on the Clock Time and Show Milliseconds options in both tools to make it easier to synchronize the application requests and the resulting OpenAFS Client Service operations.сс The captured data can be stored to files for inclusion in bug reports.
If the AFS Client Service become unresponsive to any form of communication there may be a serious error that can only be debugged by someone with access to the source code and a debugger.сс The "fs minidump" command can be used to force the generation of a MiniDump file containing the state of all of the threads in the AFS Client Service process.
If you are having trouble with the Integrated Logon operations it is often useful to be able to obtain a log of what it is attempting to do.сс Setting Bit 0 of the TraceOption registry value:
с [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]
с REG_DWORDсс TraceOption = 0x01
will instruct the Integrated Logon Network Provider and Event Handlers to log information to the Windows Event Log: Application under the name єAFS Logon".
The rxdebug.exe tool can be used to query a variety of information about the AFS services installed on a given machine.с The port for the AFS Cache Manager is 7001.с
Usage: rxdebug -servers <server machine> [-port <IP port>] [-nodally]
сс [-allconnections] [-rxstats] [-onlyserver] [-onlyclient]
сс [-onlyport <show only <port>>]
сс [-onlyhost <show only <host>>]
сс [-onlyauth <show only <auth level>>] [-version]
сс [-noconns] [-peers] [-help]
Where: -nodallyсссссссс don't show dallying conns
сссссс -allconnectionsс don't filter out uninteresting connections
сссссс -rxstatsсссссссс show Rx statistics
сссссс -onlyserverссссс only show server conns
сссссс -onlyclientссссс only show client conns
сссссс -versionсссссссс show AFS version id
сссссс -noconnsсссссссс show no connections
сссссс -peersсссссссссс show peers
The cmdebug.exe tool can be used to query the state of the AFS Cache Manager on a given machine.
Usage: cmdebug -servers <server machine> [-port <IP port>] [-long]
сс [-refcounts] [-callbacks] [-addrs] [-cache] [-help]
Where: -longссссс сprint all info
сссссс -refcountsс print only cache entries with positive reference counts
сссссс -callbacksс print only cache entries with callbacks
сссссс -addrsссссс print only host interfaces
сссссс -cacheссссс print only cache configuration
The persistent cache is stored in a Hidden System file at %WinDir%\TEMP\AFSCache.с If there is a problem with the persistent cache that prevent the AFS Client Service from being able to start a validation check on the file can be performed.
с afsd_service.exe --validate-cache <cache-path>
Bug reports should be sent to openafs-bugs@openafs.org.с Please include as much information as possible about the issue.с If you are reporting a crash, please install the debugging symbols by re-running the installer.с If a dump file is available for the problem, %WINDIR%\TEMP\afsd.dmp, include it along with the AFS Client Trace fileс %WINDIR%\TEMP\afsd.log.с The AFS Client startup log is %WINDIR%\TEMP\afsd_init.log.с Send the last continuous block ofс log information from this file.
Configuring DrWatson to generate dump files for crashes:
Р Run drwtsn32.exe to configure or to identify where the log and the crash dump files are created:
Р click Start > Run...с
Р type drwtsn32 <enter>.
Р Select either a Crash Dump Type: Mini or Full.
Р Clear Dump Symbol Table
Р Clear Append to Existing Log file.
Р Check Dump All Thread Contexts.
Р Check Create Crash Dump File
Р Next run the monitoring module of Dr. Watson:
Р click Start > Run...
Р type drwatson <enter>.
Р Once a crash happens, Dr. Watson generates a dump file and a report in the log file, including the address of the crash and the stack dump.
Once you have the Dr. Watson's logfile and minidump, zip them and attach them to your e-mail.
When reporting a error, please be sure to include the version of OpenAFS.
Contributions to the development of OpenAFS for Windows are continuously needed.с Contributions may take many forms including cash donations, support contracts, donated developer time, and even donated tech writer time.
USENIX, a 501c3 non-profit corporation, has formed the USENIX OpenAFS Fund in order to accept tax deductible donations on behalf of the OpenAFS Elders. The donated funds will be allocated by the OpenAFS Elders to fund OpenAFS development, documentation, project management, and maintaining openafs.org.
USENIX OpenAFS Fund |
Donations can be made by sending a check, drawn on a U.S. bank, made out to the USENIX OpenAFS Fund or by making a donation online.
Secure Endpoints Inc. provides development and support services for OpenAFS for Windows and MIT Kerberos for Windows. сDonations provided to Secure Endpoints Inc. for the development of OpenAFS are used to cover the OpenAFS gatekeeper responsibilities; providing support to the OpenAFS community via the OpenAFS mailing lists; and furthering development of desired features that are either too small to be financed by development contracts.
Secure Endpoints Inc. accepts software development agreements from organizations who wish to fund a well-defined set of bug fixes or new features.
Secure Endpoints Inc. provides contract based support for the OpenAFS for Windows and the MIT Kerberos for Windows products.
The MIT Kerberos development team accepts unrestricted grants. сGrants are tax deductible and the full amount of the grant will be used to fund the development of Kerberos 5 and/or Kerberos for Windows. сOpenAFS for Windows is dependent on MIT Kerberos for Windows for authentication and shares many of the same requirements for credential management. сFuture releases of both products will share a common identity management user interface.
Organizations that use OpenAFS in house and have development staffs are encouraged to contribute any code modifications they make to OpenAFS.org via openafs-bugs@openafs.org. сContributions of documentation are highly desired.
If you wish to participate in OpenAFS for Windows development please join the openafs-win32-devel@openafs.org mailing list.
https://lists.openafs.org/mailman/listinfo/openafs-win32-devel
User questions should be sent to the openafs-info@openafs.org mailing list.с
https://lists.openafs.org/mailman/listinfo/openafs-info
You must join the mailing lists if you wish to post to the list without incurring a moderation delay.
A MSI installer option is available for those who wish to use Windows Installer for installing OpenAFS and for organizations that wish to deploy OpenAFS through Group Policy.с The first version of OpenAFS for Windows available as an MSI was 1.3.65.
This document provides a guide for authoring transforms used to customize the MSI package for a particular organization.с Although many settings can be deployed via transforms, in an Active Directory environment it is advisable to deploy registry settingsссс and configuration files through group policy and/or startup scripts so that machines where OpenAFS for Windows is already installed will pick up these customizations.
The information in this document applies to MSI packages distributed with OpenAFS for Windows releases from 1.3.65 and onwards or MSI packages built from corresponding source releases. сNot all releases support all the configuration options documented here.
Authoring a "Windows Installer" transform requires additional software for editing the MSI database tables and generating the transform from the modified MSI package.с ORCA.EXE and MSITRAN.EXE which are included in the Windows Platform SDK ("Windows Installer" SDK) can be used for this purpose.
For reference, the schema for the MSI package is based on SCHEMA.MSI distributed with the Platform SDK.
For general information about "Windows Installer", refer to:
ссс http://msdn.microsoft.com/library/en-us/msi/setup/windows_installer_start_page.asp
For general information about authoring MSI transforms, refer to:
ссс http://msdn.microsoft.com/library/en-us/msi/setup/transforms.asp
The remainder of this document assumes some familiarity with authoring transforms.с While the MSDN documentation for Windows Installer is a bit dense, the guide on MSI transforms found at the second link above is recommended reading.с MSDN also includes a step-by-step example for creating a transform at:
ссс http://msdn.microsoft.com/library/en-us/msi/setup/a_customization_transform_example.asp
Transforms describe a set of modifications to be performed on an existing MSI for the purpose of customizing it.с This is ordinarily done by making a copy of the MSI to be customized, modifying the copy and then using the old and the new MSI to generate a transform.с For example:
1. copy openafs.msi openafs-modified.msi
2. (edit the openafs-modified.msi to include the necessary changes)
3. msitran -g openafs.msi openafs-modified.msi openafs-transform.mst
4. (generates openafs-transform.mst, which is the transform)
Transforms have an extension of .mst.с 'msitran' is a tool distributed as part of the "Windows Installer" SDK (part of the Windows Platform SDK).
You can test a transform by:
1. copy openafs.msi openafs-test.msi
2. msitran -a openafs-transform.mst openafs-test.msi
and then checking the resulting openafs-test.msi to see if all changes you have made above to openafs-modified.msi is present in openafs-test.msi.с 'msitran' will complain if some modification in the transform can not be successfully applied.
As mentioned above, you can use a tool like ORCA.EXE to edit the MSI databases directly when editing openafs-modified.msi.с More details are given below.
The logic necessary to implement many of the settings described in Appendix A are present in the MSI.с Most of these can be controlled by setting the corresponding properties to the desired value.с Some settings may require modifying existing registry entries (though not recommended) or adding new resources (like files or registry keys).с Instructions for performing these tasks are below.
Most configurable properties correspond to registry keys or values.с Due to the logic invoked based on the existence of these registry keys or values, they are only set if the associated property is defined to have a non null value.с If the associated property is not defined in the MSI, the registry key or value will not be touched.с By default, the MSI does not contain these properties and hence will not set the registry keys.с You will need to add properties as needed to the MSI.
When one of the configurable properties is set, the installer will use the property value to set the corresponding setting in the HKEY_LOCAL_MACHINE registry hive.с The HKEY_CURRENT_USER hive is not touched by the installer.
For each property, the associated registry setting is referenced by the same text used in Appendix A.
Strings are quoted using single quotes (e.g. 'a string'). An empty string is denoted as ''.с Note that you can't author null values into the 'Property' table.
Numeric values should be authored as decimal strings.
In order to set a property,
1. Open the MSI in ORCA.EXE
2. Select the 'Property' table from the list of tables on the left.
3. Find the property in the list of properties on the right, double click the value and type the new value.
4. If the property does not exist in the property list, right click the list and select 'Add Row', type the property name and the desired value.
These properties are used to set the values of registry entries associated with OpenAFS for Windows.
AFSCACHEPATHRegistry keyссс : (Service parameters) Registry value : CachePath Valid valuesссс : string . |
AFSCACHESIZERegistry keyссс : (Service parameters) Registry value : CacheSize Valid valuesссс : numeric |
AFSCELLNAMERegistry keyссс : (Service parameters) Registry value : Cell Valid valuesссс : string |
FREELANCEMODERegistry keyссс : (Service parameters) Registry value : FreelanceClient Valid valuesссс : '1' or '0' |
HIDEDOTFILESRegistry keyссс : (Service parameters) Registry value : HideDotFiles Valid valuesссс : '1' or '0' |
LOGONOPTIONSRegistry keyссс : (Network provider) Registry value : LogonOptions Valid valuesссс : '0', '1' or '3' See Appendix A section 2.1 (Domain specific configuration keys for Network Provider) for more details. |
MOUNTROOTRegistry keyссс : (Service parameters) Registry value : Mountroot Valid valuesссс : string |
NETBIOSNAMERegistry keyссс : (Service parameters) Registry value : NetbiosName Valid valuesссс : string (at most 15 characters) |
NOFINDLANABYNAMERegistry keyссс : (Service parameters) Registry value : NoFindLanaByName Valid valuesссс : '1' or '0' |
RXMAXMTURegistry keyссс : (Service parameters) Registry value : RxMaxMTU Valid valuesссс : numeric |
SECURITYLEVELRegistry keyссс : (Service parameters) Registry value : SecurityLevel Valid valuesссс : '1' or '0' |
SMBAUTHTYPERegistry keyссс : (Service parameters) Registry value : SMBAuthType Valid valuesссс : '0','1' or '2' |
STOREANSIFILENAMESRegistry keyссс : (OpenAFS Client) Registry value : StoreAnsiFilenames Valid valuesссс : '0' or '1' |
USEDNSRegistry keyссс : (Service parameters) Registry value : UseDNS Valid valuesссс : '1' or '0' |
These properties are combined to add a command line option to the shortcut that will be created in the Start:Programs:OpenAFS and Start:Programs:Startup folders (see CREDSSTARTUP).с The method of specifying the option was chosen for easy integration with the Windows Installer user interface.с Although other methods can be used to specify options to AFSCREDS.EXE, it is advised that they be avoided as transforms including such options may not apply to future releases of OpenAFS.
CREDSSTARTUPValid valuesссс : '1' or '0' Controls whether AFSCreds.exe starts up automatically when the user logs on.с When CREDSSTARTUP is '1' a shortcut is added to the 'Startup' folder in the 'Program menu' which starts AFSCREDS.EXE with the options that are determined by the other CREDS* properties. |
CREDSAUTOINITValid valuesссс : '-a' or '' Enables automatic initialization. |
CREDSIPCHDETValid valuesссс : '-n' or '' Enables IP address change detection. |
CREDSQUIETValid valuesссс : '-q' or '' Enables quiet mode. |
CREDSRENEWDRMAPValid valuesссс : '-m' or 'Ц Enables renewing drive map at startup. |
CREDSSHOWValid valuesссс : '-s' or '' Enables displaying the credential manager window when AFSCREDS starts up. |
You can change existing registry values subject to the restrictions mentioned in the Windows Platform SDK.с Pay special attention to component key paths and try to only change the 'Value' column in the 'Registry' table.с If you want to add additional registry keys please refer to section 3 (Additional resources).
The OpenAFS configuration files (CellServDB) can be replaced by your own configuration files.с These files are contained in separate MSI components so that you can disable them individually.
The recommended method for replacing these files is to first disable the components containing the configuration files that you want to replace, and then add new components for the replacement files.с This is outlined below (assuming you are using ORCA.EXE to author the transform).
Note that transforms are not a good way to add a new file as an embedded stream.с The method outlined here places the file in the same directory as the MSI for deployment.
The walkthrough below is to add a custom 'CellServDB' file.
1. Disable the component that contains the configuration file that you want to replace.
1.1. Locate and select the 'Component' table in the 'Tables' list.
1.2. In the Component table, locate the component you need to change ( Ctrl-F invokes the 'Find' dialog).с The component names are listed below in section 7.2.3.1.с For this example, the component name is 'elf_CellServDB'.
1.3. Go to the 'Condition' column of the component.
1.4. Enter a condition that evaluates to false. I.e. 'DONOTINSTALL'. (Note that an undefined property always evaluates to false).
Note that you can also use this step to disable other configuration files without providing replacements.
2. Add a new component containing the new configuration file.
2.1. Select the 'Component' table in the 'Tables' list.
2.2. Select 'Tables'->'Add Row' (Ctrl-R).
2.3. Enter the following :
Component |
cmf_my_CellServDB |
ComponentID |
{7019836F-BB2C-4AF6-9463-0D6EC9035CF1} |
Directory_ |
dirClient |
Attributes |
144 |
Condition |
|
KeyPath |
fil_my_CellServDB |
Note that the ComponentId is an uppercase GUID.с You can generate one using GUIDGEN.EXE or UUIDGEN.EXE, both of which are included in the Platform SDK.
The Attributes value of 144 is a sum of msidbComponentAttributesPermanent (16) and msidbComponentAttributesNeverOverwrite (128).с This ensures that local modifications are not overwritten or lost during an installation or uninstallation.с These are the same settings used on the default configuration files.
ссссссссссс 'fil_my_CellServDB' is a key into the 'File' table which we will fill later.
3. Add a new feature to hold the new component.
3.1. Select the 'Feature' table.
3.2. Add a new row (Ctrl-R or 'Tables'->'Add Row') with the following values:
Feature |
fea_my_CellServDB |
Feature_Parent |
feaClient |
Title |
|
Description |
|
Display |
0 |
Level |
30 |
Directory_ |
|
Attributes |
8 |
It is important to create the new feature under the 'feaClient' feature, which will ensure that the configuration file will be installed when the client binaries are installed.
Setting 'Display' to 0 will hide this feature from the feature selection dialog during an interactive installation.с A value of 30 for 'Level' allows this feature to be installed by default (on a 'Typical' installation).
The 'Attributes' value is msidbFeatureAttributesDisallowAdvertise (8), which is set on all features in the OpenAFS MSI.с The OpenAFS MSI is not designed for an advertised installation.
4. Join the component and the feature.
4.1. Select the 'FeatureComponents' table.
4.2. Add a new row with the following values:
Feature |
fea_my_CellServDB |
Component |
cmf_my_CellServDB |
5. Add an entry to the 'File' table.
5.1. Select the 'File' table.
5.2. Add a new row with the following values:
File |
fil_my_CellServDB |
Component_ |
cmf_my_CellServDB |
FileName |
CellServDB |
FileSize |
(enter file size here) |
Attributes |
8192 |
Sequence |
1000 |
ссссссссссс ссс (leave other fields blank)
The 'Attributes' value is msidbFileAttributesNonCompressed (8192).с This is because we will be placing this file in the same directory as the MSI instead of embedding the file in it.с Transforms do not support updating compressed sources or adding new cabinet streams.
Finally, the 'Sequence' value of 1000 will be used later to distinguish the file as being in a separate source location than the other files in the MSI.
6. Set a media source for the file.
6.1. Select the 'Media' table.
6.2. Add a row with the following values :
DiskId |
2 |
LastSequence |
1000 |
ссссссссссс ссс (leave other fields blank)
The sequence number of 1000 designates this as the media source for the newly added file.
CellServDB: 'cpf_CellServDB' (ID {D5BA4C15-DBEC-4292-91FC-B54C30F24F2A})
Following is an example for adding domain specific registry keys.
ссс Refer to Appendix A section 2.1 for more information.
ссс Columns that are unspecified should be left empty.
ссс We create a new feature and component to hold the new registry keys.
ссс 'Feature' table: |
ссс ссссссс (new row) |
ссс 'Component' table: |
ссс ссссссс (new row) |
ссс 'FeatureComponents' table: |
ссс ссссссс (new row) |
ссс 'Registry' table: |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
The example adds domain specific keys for 'ATHENA.MIT.EDU' (enable integrated logon) and 'LOCALHOST' (disable integrated logon and fail logins silently).
Following is an example for adding site specific Freelance registry keys to pre-populate the Mountpoints and Symlinks in the fake root.afs volume.
ссс Columns that are unspecified should be left empty.
ссс We create a new feature and component to hold the new registry keys.
ссс 'Feature' table: |
ссс ссссссс (new row) |
ссс 'Component' table: |
ссс ссссссс (new row) |
ссс 'FeatureComponents' table: |
ссс ссссссс (new row) |
ссс 'Registry' table: |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
ссссссссссс (new row) |
The example adds a read-only mountpoint to the athena.mit.edu cell's root.afs volume as well as a read-write mountpoint.с Aliases are also provided using symlinks.
If you want to add registry keys or files you need to create new components and features for those.с Refer to the Windows Platform SDK for details.
It is beyond the scope of this document to provide a comprehensive overview of how to add new resources through a transform.с Please refer to the "Windows Installer" documentation for details.с The relevant section is at :
http://msdn.microsoft.com/library/en-us/msi/setup/using_transforms_to_add_resources.asp
A sample walkthrough of adding a new configuration file is in section 2.3.
Add new features under the 'feaClient' or 'feaServer' as appropriate and set the 'Level' column for those features to equal the 'Level' for their parent features for consistency.с Note that none of the features in the OpenAFS for Windows MSI package are designed to be installed to run from 'source' or 'advertised'.с It is recommended that you set 'msidbFeatureAttributesFavorLocal' (0), 'msidbFeatureAttributesFollowParent' (2) and 'msidbFeatureAttributesDisallowAdvertise' (8) attributes for new features.
If you are creating new components, retain the same component GUID when creating new transforms against new releases of the OpenAFS MSI package.
After making the adjustments to the MSI database using ORCA.EXE you can generate a transform with MSITRAN.EXE as follows :
(Modified MSI package is 'openafs-en_US_new.msi' and the original MSI package is 'openafs-en_US.msi'.с Generates transform 'openafs-transform.mst')
ссс > msitran.exe -g openafs-en_US.msi openafs-en_US_new.msi openafs-transform.mst
See the Platform SDK documentation for information on command line options for MSITRAN.EXE.
The MSI package is designed to uninstall previous versions of OpenAFS for Windows during installation.с Note that it doesn't directly upgrade an existing installation.с This is intentional and ensures that development releases which do not have strictly increasing version numbers are properly upgraded.
Versions of OpenAFS that are upgraded by the MSI package are:
1) OpenAFS
MSI package
Upgrade code {6823EEDD-84FC-4204-ABB3-A80D25779833}
Up to current release
2) MIT's
Transarc AFS MSI package
Upgrade code {5332B94F-DE38-4927-9EAB-51F4A64193A7}
Up to version 3.6.2
3) OpenAFS
NSIS package
All versions
Note that versions of the OpenAFS NSIS package prior to 1.3.65 had a bug where it couldn't be uninstalled properly in unattended mode.с Therefore the MSI package will not try to uninstall an OpenAFS NSIS package if running unattended.с This means that group policy based deployments will fail on machines that have the OpenAFS NSIS package installed.
If you have used a different MSI package to install OpenAFS and wish to upgrade it you can author rows into the 'Upgrade' table as described in the Platform SDK.
When performing an upgrade with msiexec.exe execute the MSI with the repair options "vomus".
The service parameters primarily affect the behavior of the AFS client service (afsd_service.exe).
Value: LANadapterType: DWORD LAN adapter number to use.с This is the lana number of the LAN adapter that the SMB server should bind to.с If unspecified or set to -1, a LAN adapter with named 'AFS' or a loopback adapter will be selected.с If neither are present, then all available adapters will be bound to.с When binding to a non-loopback adapter, the NetBIOS name hostname%-AFS' will be used (where %hostname% is the NetBIOS name of the host truncated to 11 characters). Otherwise, the NetBIOS name will be 'AFS'. |
Value: CacheSizeType: DWORD Size of the AFS cache in 1k blocks. |
Value: ChunkSizeType: DWORD Size of chunk for reading and writing. Actual chunk size is 2^cm_logChunkSize. |
Value: DaemonsType: DWORD Number of background daemons (number of threads of cm_BkgDaemon). (see cm_BkgDaemon in cm_daemon.c) |
Value: ServerThreadsType: DWORD Number of SMB server threads (number of threads of smb_Server). (see smb_Server in smb.c). |
Value: StatsType: DWORD Cache configuration. |
Value: LogoffPreserveTokensType: DWORD {1,0} If enabled (set to 1), the Logoff Event handler will not attempt to delete the user's tokensс if the user's profile is stored outside of AFS. |
Value: RootVolumeType: REG_SZ Root volume name. |
Value: MountrootType: REG_SZ Name of root mount point.с In symlinks, if a path starts with cm_mountRoot, it is assumed that the path is absolute (as opposed to relative) and is adjusted accordingly. Eg: if a path is specified as /afs/athena.mit.edu/foo/bar/baz and cm_mountRoot is "/afs", then the path is interpreted as \\afs\all\athena.mit.edu\foo\bar\baz.с If a path does not start with with cm_mountRoot, the path is assumed to be relative and suffixed to the reference directory (i.e. directory where the symlink exists) |
Value: CachePathType: REG_SZ or REG_EXPAND_SZ Location of on-disk cache file.с The default is the SYSTEM account's TEMP directory.с The attributes assigned to the file are HIDDEN and SYSTEM. |
Value: NonPersistentCachingType: DWORD [0..1] When this registry value is set to a non-zero value, the CachePath value is ignored and the cache data is stored in the windows paging file.с This prevents the use of persistent caching (when available) as well as the ability to alter the size of the cache at runtime using the "fs setcachesize" command. |
Value: ValidateCacheType: DWORD [0..2] This value determines if and when persistent cache validation is performed. 0 - Validation is disabled |
Value: TrapOnPanicType: DWORD {1,0} Issues a breakpoint in the event of a panic. (breakpoint: _asm int 3). |
Value: NetbiosNameType: REG_EXPAND_SZ Specifies the NetBIOS name to be used when binding to a Loopback adapter.с To provide the old behavior specify a value ofс "%COMPUTERNAME%-AFS". |
Value: IsGatewayType: DWORD {1,0} Select whether or not this AFS client should act as a gateway.с If set and the NetBIOS name hostname-AFS is bound to a physical NIC, other machines in the subnet can access AFS via SMB connections to hostname-AFS. When IsGateway is non-zero, the LAN adapter detection code will avoid binding to a loopback adapter.с This will ensure that the NetBIOS name will be of the form hostname-AFS instead of the value set by the "NetbiosName" registry value. |
Value: ReportSessionStartupsType: DWORD {1,0} If enabled, all SMB sessions created are recorded in the Application event log.с This also enables other events such as drive mappings or various error types to be logged. |
Value: TraceBufferSizeType: DWORD Number of entries to keep in trace log. |
Value: SysNameType: REG_SZ Provides an initial value for "fs sysname".с The string can contain one or more replacement values for @sys in order of preference separated by whitespace. |
Value: SecurityLevelType: DWORD {1,0} Enables encryption on RX calls. |
Value: UseDNSType: DWORD {1,0} Enables resolving volservers using AFSDB DNS queries. As of 1.3.60, this value is ignored as the DNS query support utilizes the Win32 DNSQuery API which is available on Win2000 and above. |
Value: FreelanceClientType: DWORD {1,0} Enables freelance client. |
Value: HideDotFilesType: DWORD {1,0} Enables marking dotfiles with the hidden attribute.с Dot files are files whose name starts with a period (excluding "." and ".."). |
Value: MaxMpxRequestsType: DWORD Maximum number of multiplexed SMB requests that can be made. |
Value: MaxVCPerServerType: DWORD Maximum number of SMB virtual circuits. |
Value: CellType: REG_SZ Name of root cell (the cell from which root.afs should be mounted in \\afs\all). |
Value: RxNoJumboType: DWORD {0,1} If enabled, does not send or indicate that we are able to send or receive RX jumbograms. |
Value: RxMaxMTUType: DWORD If set to anything other than -1, uses that value as the maximum MTU supported by the RX interface. In order to enable OpenAFS to operate across the Cisco IPSec VPN client, this value must be set to 1264 or smaller. |
Value: ConnDeadTimeoutType: DWORD The Connection Dead Time is enforced to be at a minimum 15 seconds longer than the minimum SMB timeout as specified by [HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters] SessTimeout If the minimum SMB timeout is not specified the value is 45 seconds.с See http://support.microsoft.com:80/support/kb/articles/Q102/0/67.asp |
Value: HardDeadTimeoutType: DWORD The Hard Dead Time is enforced to be at least double the ConnDeadTimeout.с The provides an opportunity for at least one retry. |
Value: TraceOptionType: DWORD {0-15} Enables logging of debug output to the Windows Event Log. Bit 0 enables logging of "Logon Events" processed by the Network Provider and Winlogon Event Notification Handler.с Bit 1 enables logging of events captured by the AFS Client Service. Bit 2 enables real-time viewing of "fs trace" logging with DbgView or similar tools. Bit 3 enables "fs trace" logging on startup. |
Value: AllSubmountType: DWORD {0, 1} Variable: allSubmount (smb.c) By setting this value to 0, the "\\NetbiosName\all" mount point will not be created.с This allows the read-write versions of root.afs to be hidden. |
Value: NoFindLanaByNameType: DWORD {0, 1} Disables the attempt to identity the network adapter to use by looking for an adapter with a display name of "AFS". |
Value: MaxCPUsType: DWORD {1..32} or {1..64} depending on the
architecture If this value is specified, afsd_service.exe will restrict itself to executing on the specified number of CPUs if there are a greater number installed in the machine.с |
Value: smbAuthTypeType: DWORD {0..2} If this value is specified, it defines the type of SMB authentication which must be present in order for the Windows SMB client to connect to the AFS Client Service's SMB server.с The values are: 0 = No authentication required |
Value: MaxLogSizeType: DWORD {0 .. MAXDWORD} This entry determines the maximum size of the %WINDIR%\TEMP\afsd_init.log file.с If the file is larger than this value when afsd_service.exe starts the file will be reset to 0 bytes.с If this value is 0, it means the file should be allowed to grow indefinitely. |
Value: FlushOnHibernateType: DWORD {0,1} If set, flushes all volumes before the machine goes on hibernate or stand-by. |
Value: <Drive Letter:> for example "G:"Type: REG_SZ Specifies the submount name to be mapped by afsd_service.exe at startup to the provided drive letter. |
Value: CellServDBDirType: REG_SZ Specifies the directory containing the CellServDB file.с When this value is not specified, the AFS Client install directory is used. |
Value: VerifyServiceSignatureType: REG_DWORD This value can be used to disable the runtime verification of the digital signatures applied to afsd_service.exe and the OpenAFS DLLs it loads.с This test is performed to verify thatсс the DLLs which are loaded by afsd_service.exe are from the same distribution as afsd_service.exe.с This is to prevent random errors caused when DLLs from one distribution of AFS are loaded by another one.с This is not a security test.с The reason for disabling this test is to free up additional memory which can be used for a large cache size. |
Value: IoctlDebugType: REG_DWORD This value can be used to debug the cause of pioctl() failures.с Set a non-zero value and the pioctl() library will output status information to stdout.с Executing command line tools such as tokens.exe, fs.exe, etc can then be used to determine why the pioctl() call is failing. |
Value: MiniDumpTypeType: REG_DWORD This value is used to specify the type of minidump generated by afsd_service.exe either when the process crashes or when a user initiated is dump file is generated with the "fs.exe minidump" command. Valid values are dependent on the version of DbgHelp.dll installed on the machine.с See the Microsoft Developer Library for further information. MiniDumpNormal = 0x00000000, |
Value: StoreAnsiFilenamesType: REG_DWORD This value can be used to force the AFS Client Service to store filenames using the Windows system's ANSI character set instead of the OEM Code Page character set which has traditionally been used by SMB file systems.с Note: The use of ANSI characters will render access to files with 8-bit OEM file names unaccessible from Windows.с This option is of use primarily when you wish to allow file names produced on Windows to be accessible from Latin-1 UNIX systems and vice versa. |
Value: "smb/cifs share name"Type: REG_SZ This key is used to map SMB/CIFS shares to Client Side Caching (off-line access) policies. For each share one of the following policies may be used: "manual", "programs", "documents", "disable".с These values used to be stored in afsdsbmt.ini |
Value: "numeric value"Type: REG_SZ This key is used to store dot terminated mount point strings for use in constructing the fake root.afs volume when Freelance (dynamic roots) mode is activated. "athena.mit.edu#athena.mit.edu:root.cell." ".athena.mit.edu%athena.mit.edu:root.cell." These values used to be stored in afs_freelance.ini |
Value: "numeric value"Type: REG_SZ This key is used to store a dot terminated symlink strings for use in constructing the fake root.afs volume when Freelance (dynamic roots) mode is activated. "linkname:destination-path." "athena:athena.mit.edu." "home:athena.mit.edu\user\j\a\jaltman." "filename:path\file." |
Value: "submount name"Type: REG_EXPAND_SZ This key is used to store mappings of UNIX style AFS paths to submount names which can be referenced as UNC paths.с For example the submount string є/athena.mit.edu/user/j/a/jaltman" can be associated with the submount name "jaltman.home".с This can then be referenced as the UNC path \\AFS\jaltman.home. These values used to be stored in afsdsbmt.ini NOTE: Submounts should no longer be used with OpenAFS. Use the Windows Explorer to create drive mappings to AFS UNC paths instead of using the AFS Submount mechanism. |
Value: "hostname or ip address"Type: REG_DWORD This key is used to specify a default set of VLDB server preferences. For each entry the value name will be either the IP address of a server or a fully qualified domain name.с The value will be the ranking.с The ranking will be adjusted by a random value between 0 and 256 prior to the preference being set. |
Value: "hostname or ip address"Type: REG_DWORD This key is used to specify a default set of File server preferences. For each entry the value name will be either the IP address of a server or a fully qualified domain name.с The value will be the ranking.с The ranking will be adjusted by a random value between 0 and 256 prior to the preference being set. |
Affects the network provider (afslogon.dll).
Value: FailLoginsSilentlyType: DWORD Do not display message boxes if the login fails. |
Value: NoWarningsType: DWORD Disables visible warnings during logon. |
Value: AuthentProviderPathType: REG_SZ Specifies the install location of the authentication provider dll. |
Value: ClassType: DWORD Specifies the class of network provider |
Value: DependOnGroupType: REG_MULTI_SZ Specifies the service groups upon which the AFS Client Service depends.с Windows should not attempt to start the AFS Client Service until all of the services within these groups have successfully started. |
Value: DependOnServiceType: REG_MULTI_SZ Specifies a list of services upon which the AFS Client Service depends.с Windows should not attempt to start the AFS Client Service until all of the specified services have successfully started. |
Value: NameType: REG_SZ Specifies the display name of the AFS Client Service |
Value: ProviderPathType: REG_SZ Specifies the DLL to use for the network provider |
The network provider can be configured to have different behavior depending on the domain that the user logs into.с These settings are only relevant when using integrated login.с A domain refers to an Active Directory (AD) domain, a trusted Kerberos (non-AD) realm or the local machine (i.e. local account logins).с The domain name that is used for selecting the domain would be the domain that is passed into the NPLogonNotify function of the network provider.
Domain specific registry keys are:
с (NP key)
с (Domains key)
с (Specific domain key. One per domain.)
с (Localhost key)
сHKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider
с |
с +- Domain
сссс +-AD1.EXAMPLE.COM
сссс +-AD2.EXAMPLE.NET
сссс +-LOCALHOST
Each of the domain specific keys can have the set of values described in 2.1.1.с The effective values are chosen as described in 2.1.2.
Value: LogonOptionsType: DWORD NSIS/WiX: depends on user configuration 0x00 - Integrated Logon is not used High Security Mode generates random SMB names for the creation of Drive Mappings.с This mode should not be used without Integrated Logon. As of 1.3.65 the SMB server supports SMB authentication.с The High Security Mode should not be used when using SMB authentication (SMBAuthType setting is non zero). |
Value: FailLoginsSilentlType: DWORD (1|0) If true, does not display any visible warnings in the event of an error during the integrated login process. |
Value: LogonScriptType: REG_SZ or REG_EXPAND_SZ A logon script that will be scheduled to be run after the profile load is complete.с If using the REG_EXPAND_SZ type, you can use any system environment variable as "%varname%" which would be expanded at the time the network provider is run.с Optionally using a "%s" in the value would result in it being expanded into the AFS SMB username for the session. |
Value: LoginRetryIntervalType: DWORD If the OpenAFS client service has not started yet, the network provider will wait for a maximum of "LoginRetryInterval" seconds while retrying every "LoginSleepInterval" seconds to check if the service is up. |
Value: LoginSleepIntervalType: DWORD See description of LoginRetryInterval. |
Value: TheseCellsType: REG_MULTI_SZ When Kerberos 5 is being used, TheseCells provides a list of additional cells for which tokens should be obtained with the default Kerberos 5 principal. |
During login to domain X, where X is the domain passed into NPLogonNotify as lpAuthentInfo->LogonDomainName or the string 'LOCALHOST' if lpAuthentInfo->LogonDomainName equals the name of the computer, the following keys will be looked up.
1. NP key. ("HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider")
2. Domains key. (NP key\"Domain")
3. Specific domain key. (Domains key\X)
If the specific domain key does not exist, then the domains key will be ignored.с All the configuration information in this case will come from the NP key.
If the specific domain key exists, then for each of the values metioned in (2), they will be looked up in the specific domain key, domains key and the NP key successively until the value is found. The first instance of the value found this way will be the effective for the login session.с If no such instance can be found, the default will be used.с To re-iterate, a value in a more specific key supercedes a value in a less specific key.с The exceptions to this rule are stated below.
To retain backwards compatibility, the following exceptions are made to 2.1.2.
Historically, the 'FailLoginsSilently' value was in HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters key and not in the NP key.с Therefore, for backwards compatibility, the value in the Parameters key will supercede all instances of this value in other keys.с In the absence of this value in the Parameters key, normal scope rules apply.
If a 'LogonScript' is not specified in the specific domain key nor in the domains key, the value in the NP key will only be checked if the effective 'LogonOptions' specify a high security integrated login.с If a logon script is specified in the specific domain key or the domains key, it will be used regardless of the high security setting.с Please be aware of this when setting this value.
Affects the behavior of afscreds.exe
Value: GatewayType: REG_SZ If the AFS client is utilizing a gateway to obtain AFS access, the name of the gateway is specified by this value. |
Value: CellType: REG_SZ The value Cell is used to determine if the AFS Client Service has been properly configured or not. |
Value: ShowTrayIconType: DWORD {0, 1} This value is used to determine whether or not a shortcut should be maintained in the user's Start Menu->Programs->Startup folder. This value used to be stored at [HKLM\Software\TransarcCorporation\AFS Client\AfsCreds]. The current user value is checked first; if it does not exist the local machine value is checked. |
Value: EnableKFWType: DWORD {0, 1} When MIT Kerberos for Windows can be loaded, Kerberos 5 will be used to obtain AFS credentials.с By setting this value to 0, the internal Kerberos 4 implementation will be used instead.с The current user value is checked first; if it does not exist the local machine value is checked. |
Value: Use524Type: DWORD {0, 1} When MIT Kerberos for Windows can be loaded, Kerberos 5 will be used to obtain AFS credentials.с By setting this value to 1, the Kerberos 5 tickets will be converted to Kerberos 4 tokens via a call to the krb524 daemon.с The current user value is checked first; if it does not exist the local machine value is checked. |
Value: AfscredsShortcutParamsType: REG_SZ This value specifies the command line options which should be set as part of the shortcut to afscreds.exe.с afscreds.exe rewrites the shortcut each time it exits so as to ensure that the shortcut points to the latest version of the program.с This value is used to determine which values should be used for command line parameters.с The current user value is checked first; if it does not exist the local machine value is checked. The following subset of the command line options is appropriate for use in this registry setting: -A = autoinit |
Value: Authentication CellType: REG_SZ This value allows the user to configure a different cell name to be used as the default cell when acquiring tokens in afscreds.exe. |
Value: "afs cell name"Type: DWORD {0, 1} These values are used to save and restore the state of the reminder flag for each cell for which the user has obtained tokens. This value used to be stored at [HKLM\Software\TransarcCorporation\AFS Client\AfsCreds]. |
Value: "upper case drive letter"Type: DWORD {0, 1} These values are used to store the persistence state of the AFS drive mappings as listed in the [...\Client\Mappings] key. These values used to be stored in the afsdsbmt.ini file |
Value: "upper case drive letter"Type: REG_SZ These values are used to store the AFS path in UNIX notation to which the drive letter is to be mapped. These values used to be stored in the afsdsbmt.ini file. |
Variable: AFS_RPC_ENCRYPTValues:сс "OFF" disables the use of RPC
encryption any other value allows RPC encryption to be used |
Variable: AFS_RPC_PROTSEQValues:ссссссссссс "ncalrpc"с - local RPC |