Commit DTD validation errors in the Windows Release Notes
[openafs.git] / doc / xml / ReleaseNotesWindows / relnotes.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.3//EN"
3         "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY version SYSTEM "version.xml">
5 ]>
6
7 <book>
8   <bookinfo>
9     <title>OpenAFS for Windows Release Notes</title>
10     <copyright>
11       <year>2003-2010</year>
12       <holder>Secure Endpoints Inc.</holder>
13     </copyright>
14     <legalnotice>
15       <para>This documentation is covered by the MIT License.</para>
16     </legalnotice>
17     <revhistory>
18         &version;
19     </revhistory>
20     <abstract>
21       <para>This document provides a series of usage notes regarding the OpenAFS for Windows
22       client, supported platforms, contribution information, debugging techniques, and
23       a reference to supported Windows registry values.
24      </para>
25     </abstract>
26   </bookinfo>
27   <preface>
28     <title id='Preface'>Preface</title>
29     <para>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.  </para>
30     <para>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.  </para>
31     <para>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
32       <emphasis>releasing</emphasis> the current contents of the source volume.
33     </para>
34     <para>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.</para>
35     <para>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.
36   </para>
37   </preface>
38   <chapter id='chap_1'>
39     <title id='Installer_Options'>Installer Options</title>
40     <para>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:</para>
41     <para>
42       <orderedlist>
43         <listitem>
44         <para>
45    an executable (.exe) that is built using the Nullsoft Scriptable Installation System, or
46         </para>
47         </listitem>
48         <listitem>
49         <para>
50   a Windows Installer package (.msi) that is built using WiX and can be customized for organizations via the use of MSI Transforms (see
51           <link linkend='MSI_Deployment_Guide'>MSI Deployment Guide</link>)
52         </para>
53         </listitem>
54       </orderedlist>
55     </para>
56   </chapter>
57   <chapter id='chap_2'>
58     <title id='System_Requirements'>System Requirements</title>
59     <section>
60       <title id='Supported_Operating_Systems'>2.1 Supported Operating Systems</title>
61       <para>
62       <indexterm><primary>operating system versions, supported</primary></indexterm>
63       <indexterm><primary>system requirements</primary></indexterm>
64       <itemizedlist>
65         <listitem>
66           <para>Microsoft Windows 2000 Workstation</para>
67         </listitem>
68         <listitem>
69           <para>Microsoft Windows 2000 Server </para>
70         </listitem>
71         <listitem>
72           <para>Microsoft Windows XP Home</para>
73         </listitem>
74         <listitem>
75           <para>Microsoft Windows XP Professional</para>
76         </listitem>
77         <listitem>
78           <para>Microsoft Windows XP 64</para>
79         </listitem>
80         <listitem>
81           <para>Microsoft Windows 2003 Server (32-bit and 64-bit Intel)</para>
82         </listitem>
83         <listitem>
84           <para>Microsoft Windows 2003 R2 Server (32-bit and 64-bit Intel)</para>
85         </listitem>
86         <listitem>
87           <para>Microsoft Windows Vista (32-bit and 64-bit Intel)</para>
88         </listitem>
89         <listitem>
90           <para>Microsoft Windows 2008 Server (32-bit and 64-bit Intel)</para>
91         </listitem>
92         <listitem>
93           <para>Microsoft Windows 7 (32-bit and 64-bit Intel)</para>
94         </listitem>
95         <listitem>
96           <para>Microsoft Windows 2008 Server R2 (32-bit and 64-bit Intel)</para>
97         </listitem>
98       </itemizedlist>
99     </para></section>
100     <section>
101       <title id='Unsupported_Operating_Systems'>2.1.1 Unsupported Operating Systems</title>
102       <para>
103       <indexterm><primary>operating system versions, unsupported</primary></indexterm>
104       <itemizedlist>
105         <listitem>
106           <para> Microsoft Windows 95</para>
107         </listitem>
108         <listitem>
109           <para>Microsoft Windows 98</para>
110         </listitem>
111         <listitem>
112           <para>Microsoft Windows 98 OSR2</para>
113         </listitem>
114         <listitem>
115           <para>Microsoft Windows ME</para>
116         </listitem>
117         <listitem>
118           <para>Microsoft NT</para>
119         </listitem>
120       </itemizedlist>
121       </para>
122       <para>Older releases of OpenAFS are available for download if unsupported 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.</para>
123     </section>
124     <section>
125       <title id='Disk_Space'>2.2 Disk Space</title>
126       <para>
127       <indexterm><primary>disk space required</primary></indexterm>
128       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.  The maximum cache size for 32-bit Windows is approximately 1.2GB.  On 64-bit Windows there is no practical limit on the cache size.
129       </para>
130     </section>
131     <section>
132       <title id='Additional_Software_Packages'>2.3 Additional Software Packages</title>
133     <indexterm><primary>kerberos for windows</primary></indexterm>
134       <para>
135         <ulink url='http://web.mit.edu/kerberos/dist/index.html'>MIT Kerberos for Windows</ulink> 2.6.x or 3.x.x if Kerberos v5 authentication support is desired.  The recommended release is version 3.2.2.  For 64-bit Windows installations, the 64-bit version of Kerberos for Windows is required.  For 32-bit Windows installations, the 32-bit version of Kerberos for Windows is required.
136         See <link linkend='Kerberos_v5_Requirements'>3.2 Kerberos v5 Requirements</link> for additional details.
137       </para>
138     </section>
139   </chapter>
140   <chapter id='chap_3'>
141     <title id='Operational_Notes'>Operational Notes</title>
142     <section>
143     <title id='Unicode_Support'>3.1. Unicode Support</title>
144     <indexterm><primary>unicode</primary></indexterm>
145     <indexterm><primary>character sets</primary></indexterm>
146     <indexterm><primary>roaming profiles</primary></indexterm>
147     <indexterm><primary>folder redirection</primary></indexterm>
148       <para>Starting with the 1.5.50 release of OpenAFS for Windows, each of the AFS Client Service, the AFS Explorer Shell Extension, and the command-line tools are Unicode enabled.  No longer is OpenAFS restricted to accessing file system objects whose names can be represented in the locale specific OEM code page.  This has significant benefits for end users.  Most importantly it permits non-Western languages to now be used for file system object names in AFS from Microsoft Windows operating systems.  Now that Unicode names are supported,
149         <ulink url='http://en.wikipedia.org/wiki/Roaming_user_profile'>Roaming User Profiles</ulink> and
150         <ulink url='http://en.wikipedia.org/wiki/Folder_redirection'>Folder Redirection</ulink> will no longer fail when a user attempts to store an object with a name that cannot be represented in the OEM code page.
151       </para>
152       <para>Unicode names are stored in AFS using UTF-8 encoding.  UTF-8 is supported as a locale on MacOS X, Linux, Solaris, and most other operating systems.  This permits non-Western object names to be exchanged between Microsoft Windows and other operating systems.  The OpenAFS for Windows client also implements
153         <ulink url='http://en.wikipedia.org/wiki/Unicode_normalization'>Unicode Normalization</ulink> as part of the name lookup algorithm.  This is necessary because Unicode does not provide a unique representation for each input string.  The use of normalization permits a file system object name created on MacOS X to be matched with the same string entered on Microsoft Windows even though the operating system’s choice of representation may be different.
154       </para>
155       <para>It is important to note that AFS file servers are not character set agnostic.  All file system object names are stored as octet strings without any character set tagging.  If a file system object is created using OEM Code Page 858 and then interpreted as UTF-8 it is likely that the object name will appear to be gibberish.  OpenAFS for Windows goes to great lengths to ensure that the object name is converted to a form that will permit the user to rename the object using Unicode.  Accessing UTF-8 names on UNIX systems that have the locale set to one of the ISO Latin character sets will result in the UTF-8 strings appearing to be gibberish.  </para>
156       <para>Neither UNIX AFS nor Microsoft Windows 2000 systems can perform Unicode Normalization for string comparisons.  Although it is possible to store and read Unicode object names, it is possible that a user may not be able to open an object by typing the name of the object at the keyboard.  GUI point and click operations should permit any object to be accessed.</para>
157     </section>
158     <section>
159       <title id='Kerberos_v5_Requirements'>3.2. Requirements for Kerberos v5 Authentication</title>
160       <indexterm><primary>kerberos for windows</primary></indexterm>
161       <para>The OpenAFS distribution ships with its own implementation of Kerberos v4 and although it is Kerberos v5 capable, it relies on third party Kerberos v5 libraries.  The OpenAFS 1.4 series (and later) integrates with
162         <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink> 2.6.5 and above.  OpenAFS Kerberos v5 capable functionality includes integrated logon, the AFS Authentication Tool, the Network Identity Manager AFS provider, and the aklog command.  These tools provide support for Kerberos v5 authentication including acquisition and automatic renewal of AFS tokens as well as support for single sign-on via the Microsoft Windows Kerberos Logon Service.
163       </para>
164         <indexterm><primary>network identity manager</primary></indexterm>
165       <para>The recommended version of
166         <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink> is 3.2.2 as distributed by <ulink url='https://www.secure-endpoints.com/'>Secure Endpoints Inc.</ulink>.  As of this writing, the Secure Endpoints Inc. distribution provides 64-bit Windows support which is unavailable from MIT.  KFW 3.2.2 includes Network Identity Manager 1.3.1 which integrates with the
167         <link linkend='Network_Identity_Manager_Provider'>AFS Provider</link> installed as part of OpenAFS for Windows.
168       </para>
169     <indexterm><primary>transarc afs</primary></indexterm>
170       <para>With Kerberos for Windows installed, the OpenAFS for Windows client can obtain Kerberos v5 service tickets for AFS cells for use as tokens.  When a Kerberos v5 derived AFS token is in use, all of the AFS Servers within the authenticated cell must support Kerberos v5 authentication.  If a Kerberos v5 based token is presented to an AFS server that does not support them, the server will be unable to communicate with the client.  Attempts to access AFS volumes stored on such a server will fail with a "No Kerberos Key" error.  Kerberos v5 based tokens are supported by OpenAFS revisions 1.2.8 or later.  IBM Transarc servers do not support Kerberos v5.</para>
171       <section>
172         <title id='Active_Directory'>3.2.1. Active Directory</title>
173         <indexterm><primary>active directory</primary></indexterm>
174         <indexterm><primary>des-cbc-crc encryption type</primary></indexterm>
175         <para>Microsoft Windows Active Directory can be used as a Kerberos v5 KDC in conjunction with OpenAFS.  There are two things to consider when using an Active Directory as the Kerberos realm that issues the AFS service ticket.  First, the Kerberos v5 tickets issued by Active Directory can be quite large when compared to tickets issued by a traditional UNIX KDCs due to the inclusion of Windows specific authorization data (the Microsoft PAC).  If the issued tickets are larger than 344 bytes, the OpenAFS 1.2 servers will be unable to process them and will issue a RXKADBADTICKET error.  OpenAFS 1.4 (and beyond) servers can support the largest tickets that Active Directory can issue.  Second, the Kerberos v5 tickets issued by Windows 2003 Active Directory are encrypted with the DES-CBC-MD5 encryption type (enctype).  OpenAFS 1.2 servers only support the DES-CBC-CRC enctype.  As a result, OpenAFS 1.2 servers cannot process the resulting Kerberos v5 tokens.  Windows 2000 Active Directory issues tickets with the DES-CBC-CRC enctype.  Windows Server 2008 R2 Active Directory domain by default disables use of DES-CBC-MD5 and it must be enabled.</para>
176         <para>Microsoft has documented in
177           <ulink url='http://support.microsoft.com/kb/832572/'>Knowledge Base article 832572</ulink> a new NO_AUTH_REQUIRED flag that can be set on the account mapped to the AFS service principal.  When this flag is set, the PAC authorization data will not be included in the ticket.  Setting this flag is recommended for all accounts that are associated with non-Windows services and that do not understand the authorization data stored in the PAC.  This flag cannot be used if AFS service tickets are obtained via cross-realm using an Active Directory user principal.
178         </para>
179         <para>Note that an Active Directory computer object cannot be used for the afs service principal.</para>
180       </section>
181       <section>
182         <title id='Using_krb524_Service'>3.2.2. Using the krb524 Service</title>
183         <indexterm><primary>krb524</primary></indexterm>
184         <indexterm><primary>port, 4444/udp</primary></indexterm>
185         <indexterm><primary>registry value, Use524</primary></indexterm>
186         <para>Before there was native support for Kerberos v5 derived AFS tokens, the krb524 service was used to convert a Kerberos v5 service ticket into a Kerberos v4 service ticket that could in turn be used to construct an AFS authentication token.  As of OpenAFS 1.2.8, support was added to allow the immediate use of Kerberos v5 tickets as AFS (2b) tokens. This is the first building block necessary to break away from the limitations of Kerberos v4 with AFS.  By using Kerberos v5 directly we avoid the security holes inherent in Kerberos v4 cross-realm.  We also gain access to cryptographically stronger algorithms for authentication and encryption.</para>
187         <para>Another reason for using Kerberos v5 directly is because the krb524 service runs on a port (4444/udp) which has increasingly been 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.</para>
188         <para></para>
189         <para>Replacing the Kerberos v4 ticket with a Kerberos v5 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 v5 ticket.  Unfortunately, some organizations have AFS cell names and Kerberos realm names which differ by more then just lower and upper case and rely on a modification to krb524d that maps a Kerberos v5 ticket from realm FOO to a Kerberos v4 ticket in realm BAR.  This allows user@FOO to appear to be user@bar for the purposes of accessing the AFS cell.        
190         </para>
191         <para>To support this mode of operation OpenAFS for Windows 1.4 supports a registry value, 
192           <link linkend='Value_Use524'>Use524</link>, that forces the use of krb524d within the AFS Authentication Tool and integrated logon.  This option should only be used by individuals until such time as their organizations can transition away from the krb524 service.
193         </para>
194         <para>Note that the OpenAFS 1.4.x servers permit the use of a secondary realm name that can be treated as equivalent to the cell name for authentication.  This functionality can be used to avoid the need for the krb524 service if and only if both realms are managed by the same administrative entity.
195         </para>
196       </section>
197       <section>
198         <title id='Network_Identity_Manager_Provider'>3.2.3. Network Identity Manager Provider</title>
199         <indexterm><primary>network identity manager</primary></indexterm>
200         <para>As of release 1.5.9, OpenAFS for Windows includes a Network Identity Manager Provider for obtaining AFS tokens.  This plug-in is a contribution from
201           <ulink url='https://www.secure-endpoints.com/'>Secure Endpoints Inc.</ulink>  Network Identity Manager is a multiple identity credential management tool that ships with
202           <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink> version 3.0 and above.  The OpenAFS plug-in requires
203           <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink> version 3.1 or above.  Version 3.2.2 is recommended for the best user experience.
204         </para>
205         <para>
206           <inlinemediaobject>
207             <imageobject>
208               <imagedata format='JPG' fileref='relnotes00.jpg' />
209             </imageobject>
210           </inlinemediaobject>
211         </para>
212         <para>The Network Identity Manager replaces the former KFW ticket manager, &quot;Leash&quot;, and when combined with the OpenAFS Provider it can be used as a replacement for the AFS Authentication Tool (afscreds.exe).  Unlike both Leash and the AFS Authentication Tool, Network Identity Manager with the OpenAFS Provider can easily acquire and renew AFS tokens for multiple cells from one or more Kerberos v5 identities.</para>
213         <para>
214           <inlinemediaobject>
215             <imageobject>
216               <imagedata format='JPG' fileref='relnotes01.jpg' />
217             </imageobject>
218           </inlinemediaobject>
219         </para>
220         <para>The AFS configuration panel for each Kerberos v5 identity is used to configure which cells credentials should be obtained for and how they should be obtained.  If the cell to realm mapping cannot be automatically determined, it can be explicitly specified.  If the cell does not support Kerberos v5 tickets as tokens, then a krb524 service can be configured.</para>
221         <para>
222           <inlinemediaobject>
223             <imageobject>
224               <imagedata format='JPG' fileref='relnotes02.jpg' />
225             </imageobject>
226           </inlinemediaobject>
227         </para>
228         <para>The OpenAFS Provider configuration panel can be used to check the status of the AFS Client Service and its version.  An optional checkbox is provided that will prevent the AFS Authentication Tool from being started by Windows after login.   A shortcut to the OpenAFS Control Panel is also provided.</para>
229         <para>As of OpenAFS 1.5.66, the Network Identity Manager OpenAFS Provider displays the same AFS Lock notification icon generated by the AFS Authentication Tool.  The AFS Lock can be used to determine if:</para>
230         <itemizedlist>
231         <listitem><para>one or more AFS tokens are valid</para></listitem>
232         <listitem><para>no AFS tokens are present but the AFS service is running</para></listitem>
233         <listitem><para>the AFS Service is not running</para></listitem>
234         <listitem><para>the AFS Service is running but there is a communication error</para></listitem>
235         </itemizedlist>
236       </section>
237     </section>
238     <section>
239       <title id='Use_of_Microsoft_Loopback'>3.3. Use of the Microsoft Loopback Adapter by the AFS Client Service</title>
240       <indexterm><primary>microsoft loopback adapter</primary></indexterm>
241       <para>The Microsoft Loopback Adapter (MLA) is installed with a name "AFS" and a pre-assigned IP address of 10.254.254.253.  The MLA is bound to the &quot;Client for Microsoft Networks&quot; service and not bound to the &quot;File and Printer Sharing for Microsoft Networks&quot; service.  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 "AFS" SMB Service and the local machine's File Sharing Service.  This 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:</para>
242       <itemizedlist>
243         <listitem>
244           <para>stop the AFS Client Service</para>
245         </listitem>
246         <listitem>
247           <para>bind the "Client for Microsoft Networks" to the MLA</para>
248         </listitem>
249         <listitem>
250           <para>unbind "File and Printer Sharing for Microsoft Networks" from the MLA</para>
251         </listitem>
252         <listitem>
253           <para>disable and then re-enable the MLA</para>
254         </listitem>
255         <listitem>
256           <para>start the AFS Client Service</para>
257         </listitem>
258       </itemizedlist>
259       <para>When the MLA is not installedNETBIOS name published by OpenAFS SMB server must be unique because it is published on the public network.  The unique name will take the form &quot;<emphasis>MACHINE</emphasis>-AFS&quot;.  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 globally 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.
260       </para>
261     </section>
262     <section>
263       <title id='Using_Freelance_Mode'>3.4. Using Freelance (Dynamic Root) Mode to Improve Mobility</title>
264       <indexterm><primary>freelance mode</primary></indexterm>
265       <indexterm><primary>root.afs volume, fake</primary></indexterm>
266       <indexterm><primary>mount points</primary></indexterm>
267       <indexterm><primary>symlinks</primary></indexterm>
268       <para>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. </para>
269       <para>To allow the OpenAFS Client Service to operate in these environments, Freelance mode dynamically constructs a fake "root.afs" volume from mount points and symlinks stored in the local registry.</para>
270       <para>The content of the fake &quot;root.afs&quot; volume is dynamically generated as cells are accessed.  When the fake "root.afs" volume is initially constructed it will only contain two mount points: a
271         <emphasis>regular path </emphasis>and
272         <emphasis>read-write path </emphasis>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
273         <emphasis>read-write path</emphasis>; otherwise the mount point will be a
274         <emphasis>regular path</emphasis>.  These mount points are preserved in the registry at key:
275       </para>
276       <para>
277         <link linkend='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Freelance'>HKLM\SOFTWARE\OpenAFS\Client\Freelance</link>
278       </para>
279       <para>Additional mount points may be manually created using the "fs mkmount" command.  Mount points may be removed using the "fs rmmount" command.</para>
280       <para>&gt;fs mkmount \\AFS\athena.mit.edu root.cell athena.mit.edu</para>
281       <para>&gt;fs mkmount \\AFS\.athena.mit.edu root.cell athena.mit.edu -rw</para>
282       <para>&gt;fs rmmount \\AFS\athena.mit.edu</para>
283       <para>&gt;fs rmmount \\AFS\.athena.mit.edu</para>
284       <para>Symlinks may also be created within the Freelance &quot;root.afs&quot; volume.</para>
285       <para>&gt;symlink make \\afs\link \\afs\athena.mit.edu\user\j\a\jaltman</para>
286       <para>      &gt;symlink list \\afs\link</para>
287       <para>      '\\afs\link' is a symlink to 'athena.mit.edu\user\j\a\jaltman'</para>
288       <para>&gt;symlink rm \\afs\link</para>
289       <para>The symlinks are stored in the registry at:</para>
290       <para>
291         <link linkend='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Freelance_Symlinks'>HKLM\SOFTWARE\OpenAFS\Client\Freelance\Symlinks</link> 
292       </para>
293     </section>
294     <section>
295       <title id='Locating_VLDB_via_DNS'>3.5. Locating AFS Volume Database Servers via DNS </title>
296       <indexterm><primary>dns, vldb lookups</primary></indexterm>
297       <indexterm><primary>afsdb dns records</primary></indexterm>
298       <para>The OpenAFS for Windows client will use DNS SRV records and AFSDB records to discover the location of AFS Volume Database servers when entries for the cell are not present in the client's CellServDB file (\%PROGRAMFILES%\OpenAFS\Client\CellServDB).
299       Also see <link linkend="Registry_VLDB_Configuration">Registry Configuration for AFS Volume Database Servers</link>.</para>
300     </section>
301     <section>
302       <title id='Integrated_Logon'>3.6. Obtaining AFS Tokens as a Integrated Part of Windows Logon</title>
303       <indexterm><primary>integrated logon</primary></indexterm>
304       <indexterm><primary>single sign-on</primary></indexterm>
305       <indexterm><primary>kerberos for windows</primary></indexterm>
306       <indexterm><primary>afslogon.dll</primary></indexterm>
307       <indexterm><primary>EnableKFW</primary></indexterm>
308       <indexterm><primary>Use524</primary></indexterm>
309       <indexterm><primary>tokens</primary></indexterm>
310       <para>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 &quot;ATHENA.MIT.EDU&quot; is obtained by performing a domain name to realm mapping on the hostname of one of the cell's Volume Database servers.</para>
311       <para>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.</para>
312       <para>When KFW is configured, Integrated Logon will use it to obtain tokens. Use of KFW for Integrated Logon can be disabled via the
313         <link linkend='Value_EnableKFW'>EnableKFW</link> registry value.  Use of the krb524 service can be configured via the
314         <link linkend='Value_Use524'>Use524</link> registry value.
315       </para>
316       <para>Integrated Logon will not transfer Kerberos v5 tickets into the user’s logon session credential cache. KFW 3.1 and above provides that functionality on its own.</para>
317       <para>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.</para>
318       <para>Integrated Logon supports the ability to obtain tokens for multiple cells.  For further information on how to configure this feature read about the
319         <link linkend='Value_TheseCells'>TheseCells</link> value.
320       </para>
321     </section>
322     <section>
323       <title id='AFS_System_Tray'>3.7. AFS Authentication Tool Command Line Options</title>
324       <indexterm><primary>afscreds.exe</primary></indexterm>
325       <indexterm><primary>system tray tool</primary></indexterm>
326       <indexterm><primary>network identity manager</primary></indexterm>
327       <para>The AFS Authentication Tool (afscreds.exe) has been deprecated in favor of Network Identity Manager.  afscreds.exe will be removed from the OpenAFS in a future release.</para>
328       <para>The AFS Authentication Tool (afscreds.exe) supports several command line options: </para>
329       <itemizedlist>
330         <listitem>
331           <para>-A = autoinit </para>
332         </listitem>
333         <listitem>
334           <para>-E = force existing afscreds to exit</para>
335         </listitem>
336         <listitem>
337           <para>-I = install startup shortcut</para>
338         </listitem>
339         <listitem>
340           <para>-M = renew drive maps (deprecated)</para>
341         </listitem>
342         <listitem>
343           <para>-N = IP address change detection </para>
344         </listitem>
345         <listitem>
346           <para>-Q = quiet mode.  do not display start service dialog if afsd_service is not already running</para>
347         </listitem>
348         <listitem>
349           <para>-S = show tokens dialog on startup</para>
350         </listitem>
351         <listitem>
352           <para>-U = uninstall startup shortcut</para>
353         </listitem>
354         <listitem>
355           <para>-X = test and do map share (deprecated)</para>
356         </listitem>
357         <listitem>
358           <para> -Z = unmap drives (deprecated)</para>
359         </listitem>
360       </itemizedlist>
361       <para>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.</para>
362       <para>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.</para>
363       <para>By default afscreds.exe is configured by the OpenAFS.org installers to use &quot;-A -N -M -Q&quot; 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
364         <link linkend='Value_AfscredsShortcutParams'>AfscredsShortcutParams</link> in
365         <link linkend='appendix_a'>Appendix A</link>.
366       </para>
367       <para>
368       Due to conflicts with Vista and Windows 7 User Account Control, the Drive Letter Mount and Advanced tabs of the AFS Authentication Tool were disabled beginning with the 1.5.66 release.
369       </para>
370     </section>
371     <section>
372       <title id='AFS_Client_Admin_Group'>3.8. The &quot;AFS Client Admins&quot; Authorization Group</title>
373       <indexterm><primary>AFS client administrator authorization group</primary></indexterm>
374       <indexterm><primary>AFS Client Admins</primary></indexterm>
375       <indexterm><primary>fs checkservers</primary></indexterm>
376       <indexterm><primary>fs setcachesize</primary></indexterm>
377       <indexterm><primary>fs newcell</primary></indexterm>
378       <indexterm><primary>fs sysname</primary></indexterm>
379       <indexterm><primary>fs exportafs</primary></indexterm>
380       <indexterm><primary>fs setcell</primary></indexterm>
381       <indexterm><primary>fs setserverprefs</primary></indexterm>
382       <indexterm><primary>fs storebehind</primary></indexterm>
383       <indexterm><primary>fs setcrypt</primary></indexterm>
384       <indexterm><primary>fs cscpolicy</primary></indexterm>
385       <indexterm><primary>fs trace</primary></indexterm>
386       <indexterm><primary>fs minidump</primary></indexterm>
387       <indexterm><primary>symlink make</primary></indexterm>
388       <indexterm><primary>fs makemount</primary></indexterm>
389       <indexterm><primary>Freelance root.afs volume</primary></indexterm>
390       <para>The OpenAFS for Windows 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:</para>
391       <itemizedlist>
392         <listitem>
393           <para>checkservers with a non-zero timer value</para>
394         </listitem>
395         <listitem>
396           <para>setcachesize</para>
397         </listitem>
398         <listitem>
399           <para>newcell</para>
400         </listitem>
401         <listitem>
402           <para>sysname with a new sysname list</para>
403         </listitem>
404         <listitem>
405           <para>exportafs</para>
406         </listitem>
407         <listitem>
408           <para>setcell</para>
409         </listitem>
410         <listitem>
411           <para>setserverprefs</para>
412         </listitem>
413         <listitem>
414           <para>storebehind</para>
415         </listitem>
416         <listitem>
417           <para>setcrypt</para>
418         </listitem>
419         <listitem>
420           <para>cscpolicy</para>
421         </listitem>
422         <listitem>
423           <para>trace</para>
424         </listitem>
425         <listitem>
426           <para>minidump</para>
427         </listitem>
428       </itemizedlist>
429       <para>The creation or removal of mount points and symlinks in the Freelance &quot;root.afs&quot; volume are also restricted to members of the &quot;AFS Client Admins&quot; group.</para>
430       <para>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.</para>
431       <para>Setting the default sysname for a machine should be done via the
432         <link linkend='Value_SysName'>SysName registry value</link> and not via "fs sysname".
433       </para>
434     </section>
435     <section>
436       <title id='Support_for_UNC_Paths'>3.9. OpenAFS Support for UNC Paths </title>
437       <indexterm><primary>UNC paths</primary></indexterm>
438       <indexterm><primary>JP Software</primary><secondary>4NT</secondary></indexterm>
439       <indexterm><primary>JP Software</primary><secondary>Take Commands</secondary></indexterm>
440       <indexterm><primary>PowerShell</primary></indexterm>
441       <para>The OpenAFS 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.  </para>
442       <para>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.  JPSoftware added special recognition for OpenAFS to its command shells, 4NT 7.0 and Take Command 7.0.  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.</para>
443       <para>JPSoftware's web site is
444         <ulink url='http://www.jpsoft.com/'>http://www.jpsoft.com</ulink>.
445       </para>
446       <para>Microsoft PowerShell 1.0 and 2.0 will also support UNC paths as the current directory. </para>
447     </section>
448     <section>
449       <title id='aklog.exe'>3.10. aklog.exe</title>
450       <indexterm><primary>aklog.exe</primary></indexterm>
451       <para>The OpenAFS Client ships with its own version of aklog.exe which should be used in preference to those obtained by other sources.  The OpenAFS aklog.exe supports Kerberos v5 as well as the ability to auto-generate AFS IDs within foreign PTS databases.</para>
452       <para>
453         <programlisting>
454     Usage: aklog [-d] [[-cell | -c] cell [-k krb_realm]]
455                  [[-p | -path] pathname]
456                  [-noprdb] [-force]
457                  [-5 [-m]| -4]
458
459                  -d = output debugging information.
460                  cell = zero or more cells for which tokens will be obtained
461                  krb_realm = the kerberos realm of the cell.
462                  pathname = the directory for which authentication is required
463                  -noprdb = don't try to determine AFS ID.
464                  -5 or -4 = use Kerberos V (default) or Kerberos IV tickets
465                  -m = use krb524d to convert Kerberos V tickets to Kerberos IV
466       </programlisting>
467       </para>
468     </section>
469     <section>
470       <title id='OpenAFS_Servers_on_Windows'>3.11. OpenAFS Servers on Windows are Unsupported</title>
471       <indexterm><primary>OpenAFS Servers on Windows</primary></indexterm>
472       <indexterm><primary>Freelance mode</primary></indexterm>
473       <indexterm><primary>EnableKFW</primary></indexterm>
474       <indexterm><primary>power management</primary></indexterm>
475       <indexterm><primary>kaserver</primary></indexterm>
476       <para>The AFS Server functionality provided as part of the OpenAFS install package 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.</para>
477       <para>Known issues include lack of support for power management and dynamic network configuration.  Salvager is also known to crash.</para>
478       <section>
479         <title id='OpenAFS_Server_Installation'>3.11.1. OpenAFS Server Installation</title>
480         <para>When the OpenAFS Server is installed, the TransarcAFSServer service (bosctlsvc.exe) will be installed and configured.  The TransarcAFSServer service will auto-start the traditional AFS bos server.  The former AFS Server Configuration wizard makes assumptions that no longer hold true and it has therefore been disabled.  However, following the instructions for installing the AFS Servers on UNIX it is possible to properly configure the AFS Servers on Microsoft Windows.  The AFS Server binaries, configuration files, and log files are installed under %Program Files%\OpenAFS\Server.
481           <ulink url='http://www.openafs.org/no-more-des.html'>kaserver has been deprecated and its use is strongly discouraged.</ulink>  Instead, Active Directory or some other Kerberos v5 KDC should be used in its place.
482         </para>
483       </section>
484       <section>
485         <title id='Using_the_AFS_Client_Service_with_OpenAFS_Server'>3.11.2. Using the AFS Client Service when the Server is installed</title>
486         <para>A few notes on the usage of the AFS Client Service if it is going to be used with the OpenAFS AFS Server:</para>
487         <itemizedlist>
488           <listitem>
489             <para>Freelance mode should be disabled when the AFS Client Service is installed on the same machine as the AFS Server,.  Otherwise, you will be unable to manipulate the contents of the root.afs volume for the hosted cell without constructing an explicit mountpoint to the root.afs volume from another volume.</para>
490           </listitem>
491           <listitem>
492             <para>The AFS Server and related tools only support the built in kaserver (Kerberos IV).  If kaserver is being used,
493               <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink> should not be installed or must be disabled via the
494               <link linkend='Value_EnableKFW'>EnableKFW</link> registry value.
495             </para>
496           </listitem>
497           <listitem>
498             <para>The AFS Servers are not aware of power management events nor are they aware of network configuration changes.  It is strongly advised that the AFS servers be installed only on systems that will not be shutdown or suspended unexpectedly.   An inadvertent shutdown will corrupt volume data.</para>
499           </listitem>
500         </itemizedlist>
501       </section>
502     </section>
503     <section>
504       <title id='OpenAFS_Debug_Symbols'>3.12. OpenAFS Debugging Symbol files</title>
505       <indexterm><primary>debug symbols</primary></indexterm>
506       <para>The OpenAFS for Windows installers 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:</para>
507       <itemizedlist>
508         <listitem>
509           <para>whether or not the binaries were compiled with optimization (release: yes, debug: no)</para>
510         </listitem>
511         <listitem>
512           <para>whether or not the debug symbols are installed by default (release: no, debug: yes)</para>
513         </listitem>
514         <listitem>
515           <para>whether or not
516             <emphasis>fs trace</emphasis> logging is turned on by default (release: no, debug: yes)
517           </para>
518         </listitem>
519         <listitem>
520           <para>whether or not additional debug statements were compiled into the binaries (release: no, debug: yes)</para>
521         </listitem>
522       </itemizedlist>
523     </section>
524     <section>
525       <title id='Large_File_Support'>3.13. Large File (64-bit) Support</title>
526       <indexterm><primary>large file support</primary></indexterm>
527       <indexterm><primary>64-bit file sizes</primary></indexterm>
528       <para>As of release 1.5.3, OpenAFS for Windows supports files larger than 2GB.  The maximum file size is now 16777216 terabytes when the AFS File Server supports large files.   If the AFS File Server does not support 64-bit file sizes, then the maximum file size remains 2GB.</para>
529     </section>
530     <section>
531       <title id='Encrypted_AFS_Network_Communication'>3.14. Encrypted AFS Network Communication</title>
532       <indexterm><primary>encryption</primary></indexterm>
533       <indexterm><primary>fs setcrypt</primary></indexterm>
534       <para>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 &quot;fs crypt&quot; command.  Transitions between &quot;crypt&quot; and &quot;non-crypt&quot; modes are logged to the Windows Application Event Log. </para>
535     </section>
536     <section>
537       <title id='Authenticated_SMB_Access_to_Client_Service'>3.15. Authenticated SMB Access to the OpenAFS Client Service</title>
538       <indexterm><primary>SMB authentication</primary></indexterm>
539       <indexterm><primary>NTLM</primary></indexterm>
540       <indexterm><primary>GSS SPNEGO</primary></indexterm>
541       <para>OpenAFS authenticates 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.    </para>
542       <para>When GSS SPNEGO attempts a Kerberos v5 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.</para>
543     </section>
544     <section>
545       <title id='No_More_INI_Files'>3.16. INI Files Replaced By Windows Registry</title>
546       <indexterm><primary>INI files</primary></indexterm>
547       <indexterm><primary>CellServDB</primary></indexterm>
548       <indexterm><primary>AFSCONF</primary></indexterm>
549       <para>IBM AFS and OpenAFS 1.2 Windows clients stored configuration data in Windows .INI files.   This OpenAFS client does not use Windows .INI files for the storage of configuration data.   All settings are stored in the registry (see
550         <link linkend='appendix_a'>Appendix A</link>).  The CellServDB file is now stored in either the %ALLUSERSPROFILE%\Application Data\OpenAFS\Client directory (aka \ProgramData\OpenAFS\Client on Vista\Win7\2008) or the %PROGRAMFILES%\OpenAFS\Client directory.   The
551         <link linkend='Value_CellServDBDir'>CellServDBDir</link> registry value or the AFSCONF environment variable can be used to specify an alternative location.
552       </para>
553       <para>For users converting from IBM AFS clients, during installation OpenAFS will relocate the contents of the &quot;afsdcell.ini&quot; file to the new CellServDB file.  OpenAFS will also import the contents of the &quot;afs_freelance.ini&quot; file to the Windows registry.   OpenAFS will not process the contents of the &quot;afsddbmt.ini&quot;.</para>
554     </section>
555     <section>
556       <title id='Windows_Internet_Connection_Firewall'>3.17. Microsoft Windows Internet Connection Firewall</title>
557       <indexterm><primary>Windows Internet Connection Firewall</primary></indexterm>
558       <indexterm><primary>firewall</primary></indexterm>
559       <indexterm><primary>Back Connection</primary></indexterm>
560       <para>The OpenAFS 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
561         <emphasis>Back Connection</emphasis> registry entries are added to allow SMB authentication to be performed across the Microsoft Loopback Adapter.
562       </para>
563     </section>
564     <section>
565       <title id='Browsing_AFS_from_Explorer_Shell'>3.18. Browsing AFS from the Explorer Shell and Office</title>
566       <indexterm><primary>Explorer Shell</primary></indexterm>
567       <indexterm><primary>Microsoft Office</primary></indexterm>
568       <para>The OpenAFS Client Service implements the CIFS Remote Admin Protocol and the Microsoft RPC SVRSVC and WKSSVC services 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.</para>
569     </section>
570     <section>
571       <title id='Byte_Range_Locking'>3.19. Byte Range Locking</title>
572       <indexterm><primary>byte range locking</primary></indexterm>
573       <indexterm><primary>Microsoft Office</primary></indexterm>
574       <indexterm><primary>EnableServerLocks</primary></indexterm>
575       <para>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 for Windows release 1.5 (or greater) implements byte range locking within the CIFS-AFS gateway server.   This support for byte range locking obtains AFS’ advisory file server locks to simulate Microsoft Windows mandatory locks.   When an application opens a file, a lock will be obtained from AFS indicating that the file is in use.  If the lock is a write lock, access to the file will be restricted to other applications running on the same machine as the first application to request the lock.   Applications running on other machines will see the AFS full file lock and will be unable to access the file.</para>
576       <para>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.</para>
577       <para>As the CIFS-AFS gateway server attempts to implement Windows lock semantics on top of AFS lock semantics it is important to understand how AFS file locks work.  In Windows there are no special privileges associated with obtaining file locks.  If you can read or execute a file, then you can obtain shared and exclusive locks.  In general, a Windows shared lock equates to an AFS read lock and a Windows exclusive lock equates to an AFS write lock.  In AFS if you can write to a file, then you can obtain a write lock.  However, in AFS if you can read a file it does not mean that you can obtain a read lock on it.   The ability to obtain read locks is granted only if you have the lock (or ‘k’) privilege.  This behavior is required in order to allow anonymous users to read files while preventing them from being able to deny access to the files to other users. 
578         <emphasis>OpenAFS 1.4.0 and earlier as well as all IBM AFS file servers have an implementation bug that prevents users with write privileges from being able to obtain locks without the lock privilege.</emphasis>  When AFS serves data out of read-only volumes the file server will deny all requests for read and write locks because the contents of the volume cannot be changed by the client.
579       </para>
580       <para>Since Microsoft Windows applications almost always attempt to obtain a temporary exclusive lock when accessing files the OpenAFS Client’s CIFS-AFS gateway implements the following semantics in order to reduce the inconvenience on end users.  </para>
581       <itemizedlist mark='bullet'>
582         <listitem>
583           <para>If the file is located on a read-only volume and the application requests a shared lock, the CIFS-AFS server will grant the lock request without asking the AFS file server.</para>
584         </listitem>
585         <listitem>
586           <para>If the file is located on a read-only volume and the application opens the file with write access and requests an exclusive lock, the CIFS-AFS server will refuse the lock request and return a read only error.</para>
587         </listitem>
588         <listitem>
589           <para>If the file is located on a read-only volume and the application opens the file with only read access and requests an exclusive lock, the CIFS-AFS server will fulfill the lock request with a read lock.</para>
590         </listitem>
591         <listitem>
592           <para>If the file is located on a read-write volume and the application requests an exclusive lock, the CIFS-AFS server will request a write lock from the AFS file server.  If granted by the file server, then the CIFS-AFS server will grant the lock request.  If the request is denied due to an access denied error and the user has the lookup, read and lock privileges and the file was opened for read only access, then the CIFS-AFS server will request a read lock from the file server.  If the request is denied due to an access denied error and the user has the lookup and read privileges but not the lock privilege, then the CIFS-AFS server will grant the request even though the AFS file server said ‘no’.  If the user does not have at least those permissions, the CIFS-AFS server will deny the request.</para>
593         </listitem>
594         <listitem>
595           <para>If the file is located on a read-write volume and the application requests a shared lock, the CIFS-AFS server will request a read lock from the AFS file server.  If granted by the file server, then the CIFS-AFS server grants the lock request.  If the request is denied due to an access denied error and the user has the lookup and read privileges but not the lock privilege, then the CIFS-AFS server will grant the request even though the AFS file server said ‘no’.  If the user does not have at least those permissions, the CIFS-AFS server will deny the request.</para>
596         </listitem>
597         <listitem>
598           <para>If multiple processes on the same machine attempt to access the same file simultaneously, the CIFS-AFS server will locally manage the granted locks and all processes will share a single lock on the AFS file server.</para>
599         </listitem>
600         <listitem>
601           <para>If the CIFS-AFS server is unable to renew the AFS file server locks, then it will invalidate the associated file handles.  This is the same behavior that an application will experience if it was using a Windows File Share and the connection was broken.   Invalidating the file handles prevents subsequent data corruption from taking place.</para>
602         </listitem>
603       </itemizedlist>
604       <para>If you wish to disable the acquisition of locks from the file server, this can be performed using the
605         <link linkend='Value_EnableServerLocks'>EnableServerLocks</link> registry value.
606       </para>
607     </section>
608     <section>
609       <title id='Automatic_Discarding_of_Tokens_at_Logoff'>3.20. Automatic Discarding of AFS Tokens at Logoff</title>
610       <indexterm><primary>tokens</primary></indexterm>
611       <indexterm><primary>LogoffPreserveTokens</primary></indexterm>
612       <para>The OpenAFS Client 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.</para>
613       <para>If there is a need to disable this functionality, the
614         <link linkend='Value_LogoffPreserveTokens'>LogoffPreserveTokens</link> registry value can be used. (see
615         <link linkend='appendix_a'>Appendix A</link>.)
616       </para>
617     </section>
618     <section>
619       <title id='Windows_Terminal_Server_Installs'>3.21. Windows Terminal Server installations</title>
620       <indexterm><primary>Terminal Server</primary></indexterm>
621       <indexterm><primary>Installation</primary></indexterm>
622       <para>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.</para>
623     </section>
624     <section>
625       <title id='Hidden_Dot_Files'>3.22. Hidden Dot Files</title>
626       <indexterm><primary>HideDotFiles</primary></indexterm>
627       <para>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.  This behavior can be altered via the
628         <link linkend='Value_HideDotFiles'>HideDotFiles</link> registry value.
629       </para>
630     </section>
631     <section>
632       <title id='Status_Cache_Limits'>3.23. Status Cache Limits</title>
633       <indexterm><primary>afs_confige.exe</primary></indexterm>
634       <indexterm><primary>AFS Configuration Control Panel</primary></indexterm>
635       <indexterm><primary>cache limits</primary></indexterm>
636       <indexterm><primary>Stats</primary></indexterm>
637       <para>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.</para>
638       <para>If you are experiencing poor performance try increasing the maximum number of Status Cache entries.  Each entry requires approximately 1.2K.  The default number of Status Cache entries is 10,000.  This can be adjusted using the
639         <link linkend='Value_Stats'>Stats</link> registry value.
640       </para>
641     </section>
642     <section>
643       <title id='NETBIOS_over_TCP'>3.24. NETBIOS over TCP/IP must be enabled</title>
644       <indexterm><primary>NETBIOS over TCP</primary></indexterm>
645       <para>"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.  If you are using the Microsoft Loopback Adapter, configure the &quot;Netbios over TCP/IP&quot; setting for the adapter.</para>
646     </section>
647     <section>
648       <title id='OpenAFS_binaries_digital_signatures'>3.25. OpenAFS binaries are digitally signed</title>
649       <indexterm><primary>digital signatures</primary></indexterm>
650       <indexterm><primary>Secure Endpoints Inc.</primary></indexterm>
651       <indexterm><primary>VerifyServiceSignature</primary></indexterm>
652       <para>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.  </para>
653       <para>
654         <link linkend='appendix_a'>Appendix A</link> documents the "
655         <link linkend='Value_VerifyServiceSignature'>VerifyServiceSignature</link>" registry value which can be used to disable the signature check.  The file version check cannot be disabled.
656       </para>
657     </section>
658     <section>
659       <title id='Maximum_Cache_Size'>3.26. Maximum Size of the AFSCache File</title>
660       <indexterm><primary>cache size</primary></indexterm>
661       <para>The maximum cache size on 32-bit Windows 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.  Significantly larger cache sizes can be used on 64-bit Windows.</para>
662       <para>On 32-bit systems that have Apple Bonjour 1.0.6 installed, the maximum cache size is further constrained due design flaw in the Apple mdnsNSP.dll which is injected into all processes that use network services.  On these systems the maximum is approximately 512MB.</para>
663     </section>
664     <section>
665       <title id='Filename_Character_Sets'>3.27. Filename Character Sets</title>
666       <indexterm><primary>character sets</primary></indexterm>
667       <indexterm><primary>StoreAnsiFilenames</primary></indexterm>
668       <para>This section describes functionality and concerns related to pre-1.5.50 releases of OpenAFS for Windows.   This release stores all file names on the file servers as Unicode encoded using UTF-8.</para>
669       <para>OpenAFS for Windows implements an SMB server which is used as a gateway to the AFS filesystem.  Because of limitations of the SMB implementation in pre-1.5.50 releases, Windows stored 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 or Unicode (UTF-8) character sets typically used as the default on UNIX systems in both the United States and Western Europe.  Filenames stored by OpenAFS for Windows were therefore unreadable on UNIX systems if they include any of the following characters:</para>
670       <informaltable frame='all'>
671         <tgroup rowsep='1' align='left' colsep='1' cols='1'>
672           <colspec colwidth='442pt' colname='c1' />
673           <tbody>
674             <row>
675               <entry>
676                 <para>     [Ç]  128  08/00  200  80  C cedilla</para>
677                 <para>     [ü]  129  08/01  201  81  u diaeresis</para>
678                 <para>     [é]  130  08/02  202  82  e acute</para>
679                 <para>     [â]  131  08/03  203  83  a circumflex</para>
680                 <para>     [ä]  132  08/04  204  84  a diaeresis</para>
681                 <para>     [à]  133  08/05  205  85  a grave</para>
682                 <para>     [å]  134  08/06  206  86  a ring</para>
683                 <para>     [ç]  135  08/07  207  87  c cedilla</para>
684                 <para>     [ê]  136  08/08  210  88  e circumflex</para>
685                 <para>     [ë]  137  08/09  211  89  e diaeresis</para>
686                 <para>     [è]  138  08/10  212  8A  e grave</para>
687                 <para>     [ï]  139  08/11  213  8B  i diaeresis</para>
688                 <para>     [î]  140  08/12  214  8C  i circumflex</para>
689                 <para>     [ì]  141  08/13  215  8D  i grave</para>
690                 <para>     [Ä]  142  08/14  216  8E  A diaeresis</para>
691                 <para>     [Å]  143  08/15  217  8F  A ring</para>
692                 <para>     [É]  144  09/00  220  90  E acute</para>
693                 <para>     [æ]  145  09/01  221  91  ae diphthong</para>
694                 <para>     [Æ]  146  09/02  222  92  AE diphthong</para>
695                 <para>     [ô]  147  09/03  223  93  o circumflex</para>
696                 <para>     [ö]  148  09/04  224  94  o diaeresis</para>
697                 <para>     [ò]  149  09/05  225  95  o grave</para>
698                 <para>     [û]  150  09/06  226  96  u circumflex</para>
699                 <para>     [ù]  151  09/07  227  97  u grave</para>
700                 <para>     [ÿ]  152  09/08  230  98  y diaeresis</para>
701                 <para>     [Ö]  153  09/09  231  99  O diaeresis</para>
702                 <para>     [Ü]  154  09/10  232  9A  U diaeresis</para>
703                 <para>     [ø]  155  09/11  233  9B  o slash</para>
704                 <para>     [£]  156  09/12  234  9C  Pound sterling sign</para>
705                 <para>     [Ø]  157  09/13  235  9D  O slash</para>
706                 <para>     [×]  158  09/14  236  9E  Multiplication sign</para>
707                 <para>     [ƒ]  159  09/15  237  9F  Florin sign</para>
708               </entry>
709             </row>
710           </tbody>
711         </tgroup>
712       </informaltable>
713       <para> </para>
714       <para>The pre-1.5.50 OpenAFS Client provided an optional registry value,
715         <link linkend='Value_StoreAnsiFilenames'>StoreAnsiFilenames</link>, that could 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.
716       </para>
717       <para>All versions of OpenAFS for Windows 1.5.50 and above exchange file names with Microsoft Windows using the Unicode character set. All file names are read from and stored to AFS file servers using the UTF-8 encoding of Unicode. As a result the
718         <link linkend='Value_StoreAnsiFilenames'>StoreAnsiFilenames</link> option is no longer supported.
719       </para>
720     </section>
721     <section>
722       <title id='Character_Set_Issues_Roaming_Profiles'>3.28. Character Set Issues with Roaming Profiles</title>
723       <indexterm><primary>character sets</primary></indexterm>
724       <indexterm><primary>roaming profiles</primary></indexterm>
725       <para>This section describes functionality and concerns related to pre-1.5.50 releases of OpenAFS for Windows.   This release stores all file names on the file servers as Unicode encoded using UTF-8.</para>
726       <para>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 during the character set conversion.  The pre-1.5.50 OpenAFS Client’s CIFS gateway did not support UNICODE.  To avoid this problem some sites run custom logoff scripts (assigned by group policy) which rename all files to use only the supported characters for the locale.</para>
727       <para>Versions of OpenAFS for Windows 1.5.50 and above do not suffer from these issues.</para>
728     </section>
729     <section>
730       <title id='AFSCache_File'>3.29. The AFSCache File</title>
731       <indexterm><primary>AFSCache</primary></indexterm>
732       <indexterm><primary>cache file</primary></indexterm>
733       <indexterm><primary>SysInternals</primary></indexterm>
734       <para>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.  </para>
735       <para>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 while the AFS Client Service is stopped.</para>
736     </section>
737     <section>
738       <title id='Restricting_OpenAFS_Service_Start_and_Stop'>3.30. Restricting OpenAFS Client Service Start and Stop</title>
739       <indexterm><primary>service start restrictions</primary></indexterm>
740       <indexterm><primary>TransarcAFSDaemon</primary></indexterm>
741       <indexterm><primary>afsdacl.exe</primary></indexterm>
742       <para>A new command line tool, afsdacl.exe, can be used to restrict the ability to start and stop the OpenAFS Client Service.</para>
743       <para>
744         <programlisting>
745     afsdacl : Set or reset the DACL to allow starting or stopping
746               the afsd service by any ordinary user.
747
748     Usage: afsdacl [-set | -reset] [-show]
749            -set   : Sets the DACL
750            -reset : Reset the DACL
751            -show  : Show current DACL (SDSF)
752     </programlisting>
753       </para>
754     </section>
755     <section>
756       <title id='SysName_List'>3.31. The @sys Name List</title>
757       <indexterm><primary>@sys</primary></indexterm>
758       <indexterm><primary>fs sysname</primary></indexterm>
759       <indexterm><primary>SysName</primary></indexterm>
760       <para>The default @sys name list in the OpenAFS Client is set to "x86_win32 i386_w2k i386_nt40" for 32-bit x86 systems.  The default is "amd64_win64" for amd 64-bit versions of Windows.</para>
761     </section>
762     <section>
763       <title id='Symlinks_to_AFS_UNC_Paths'>3.32. Symlinks to AFS UNC Paths</title>
764       <indexterm><primary>UNC paths</primary></indexterm>
765       <indexterm><primary>symlinks</primary></indexterm>
766       <indexterm><primary>path separators</primary></indexterm>
767       <indexterm><primary>symlink.exe</primary></indexterm>
768       <indexterm><primary>symlink make</primary></indexterm>
769       <para>In OpenAFS, 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 client.</para>
770       <para>The <emphasis>symlink make</emphasis> command will automatically translate \\AFS\... to /afs/... for you.</para>
771     </section>
772     <section>
773       <title id='Cache_Manager_Debugging'>3.33. Cache Manager Debugging</title>
774       <indexterm><primary>debugging the cache manager</primary></indexterm>
775       <indexterm><primary>cmdebug.exe</primary></indexterm>
776       <para>The OpenAFS Client implements the Cache Manager Debugging RPC Interface.  The CM debugger can be queried with cmdebug.exe.  </para>
777       <para>
778         <programlisting>
779     Usage: cmdebug -servers &lt;server machine&gt; [-port &lt;IP port&gt;] [-long] [-refcounts]
780                     [-callbacks] [-ctime] [-addrs] [-cache] [-cellservdb] [-help]
781     Where: -long        print all info
782            -refcounts   print only cache entries with positive reference counts
783            -callbacks   print only cache entries with callbacks
784            -ctime       print human readable expiration time
785            -addrs       print only host interfaces
786            -cache       print only cache configuration
787            -cellservdb  print only cellservdb info
788     </programlisting>
789       </para>
790     </section>
791     <section>
792       <title id='Windows_Logon_Caching_vs_Kerberos_Logons'>3.34. Windows Logon Caching vs. Kerberos Logons</title>
793       <indexterm><primary>windows logon caching</primary></indexterm>
794       <indexterm><primary>kerberos</primary></indexterm>
795       <para>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.</para>
796     </section>
797     <section>
798       <title id='Initial_Server_Preferences'>3.35. Initial Server Preferences</title>
799       <indexterm><primary>server preferences</primary></indexterm>
800       <indexterm><primary>fs setserverprefs</primary></indexterm>
801       <indexterm><primary>setting server preferences</primary></indexterm>
802       <para>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
803         <link linkend='appendix_a'>Appendix A</link> for details on the "
804         <link linkend='Regkey_HKLM_SOFTWARE_OpenAFS_Client_ServerPreferences_VLDB'>Server Preferences</link>" keys.
805       </para>
806     </section>
807     <section>
808       <title id='File_Timestamps_and_DST'>3.36. File Timestamps and Daylight Saving Time</title>
809       <indexterm><primary>timestamps</primary></indexterm>
810       <indexterm><primary>DST</primary></indexterm>
811       <indexterm><primary>UTC</primary></indexterm>
812       <para>The OpenAFS Client 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.</para>
813       <para>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.</para>
814     </section>
815     <section>
816       <title id='Windows_RPC_client_support'>3.37. Windows RPC client support must be installed </title>
817       <indexterm><primary>RPC client support</primary></indexterm>
818       <para>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":</para>
819       <para>   HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_np"</para>
820       <para>   HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_ip_tcp"</para>
821       <para>   HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncadg_ip_udp"</para>
822       <para>   HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_http"</para>
823     </section>
824     <section>
825       <title id='Generating_Minidumps'>3.38. Generating Minidumps of the OpenAFS Client Service</title>
826       <indexterm><primary>minidumps</primary></indexterm>
827       <indexterm><primary>fs minidump</primary></indexterm>
828       <para>OpenAFS 1.4 added 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.</para>
829     </section>
830     <section>
831       <title id='AFS_UUIDs_vs_System_Cloning'>3.39. AFS Client Universally Unique Identifiers (UUIDs) vs. System Cloning</title>
832       <indexterm><primary>UUIDs</primary></indexterm>
833       <indexterm><primary>system cloning</primary></indexterm>
834       <indexterm><primary>NonPersistentCaching</primary></indexterm>
835       <indexterm><primary>instloop.exe</primary></indexterm>
836       <indexterm><primary>msiexec.exe</primary></indexterm>
837       <para>The OpenAFS Client implements Universally Unique Identifiers (UUIDs).  They are used to provide the AFS file server with a method of identifying the client that is independent of IP address.  This permits the AFS file server to track mobile clients or those behind Network Address Translators when they move from address to address or port to port. Tracking the client improves client performance by permitting callback state to be maintained across location changes. The UUID is generated when the AFSCache file is created and is maintained as long as the contents of the AFSCache file are valid.  The UUID is stored in the AFSCache file. </para>
838       <para>When cloning machines that have Windows AFS client installed it is necessary to generate a new UUID for each client. This will be done automatically if the Windows Machine SID is re-generated using Microsoft SysPrep. If the SID is not being re-generated either the AFSCache file should be deleted or the command
839         <emphasis>fs uuid -generate</emphasis> must be executed after the the clone is created.
840         <emphasis role='bold'>Multiple AFS clients reporting the same UUID will not only result in horrible AFS client performance and cache inconsistencies, but they will also put a tremendous strain on the AFS file servers.</emphasis>
841       </para>
842       <para>For lab environments that wish to erase all cached data on each restart, the
843         <link linkend='Value_NonPersistentCaching'>NonPersistentCaching</link> option will disable the use of the persistent cache file. As a side effect, a new UUID will be generated for the AFS client service on each restart.
844       </para>
845       <para>When a Windows system is cloned, the Microsoft Loopback Adapter will be disabled in the cloned system.  Administrators must re-install the Microsoft Loopback Adapter within the cloned environment.  This can be automated by using the OpenAFS &quot;
846         <emphasis>instloop.exe</emphasis> –
847         <emphasis>i</emphasis>&quot; command.  Instloop.exe can be extracted from the MSI installer by performing an administrative install via
848         <emphasis>msiexec.exe /a</emphasis>.
849       </para>
850     </section>
851     <section>
852       <title id='Delayed_Write_Errors'>3.40. Delayed Write Errors with Microsoft Office Applications</title>
853       <indexterm><primary>delayed write errors</primary></indexterm>
854       <indexterm><primary>ConnDeadTimeout</primary></indexterm>
855       <indexterm><primary>SMBAsyncStoreSize</primary></indexterm>
856       <indexterm><primary>EnableSMBAsyncStore</primary></indexterm>
857       <indexterm><primary>SMB timeouts</primary></indexterm>
858       <para>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 &quot;delayed write error&quot; 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. </para>
859       <para>The CIFS session timeout defaults to 45 seconds and can be increased by modifying the
860         <link linkend='Value_ConnDeadTimeout'>ConnDeadTimeout registry value</link>.
861       </para>
862       <para>Beginning with the 1.5.33 release, the performance characteristics of SMB Write Data operations can be adjusted.  In prior releases all writes were performed using a restricted asynchronous store model in which only one asynchronous store operation per file can be performed at a time.  The reason for this restriction is limit the amount of data the cache manager will accept without it having been written to the file server.  If too much unwritten data is accepted, the file close operation will block until all of the unwritten data is output and this could trigger a CIFS client disconnect.  </para>
863       <para>Prior to 1.5.33 the size of the asynchronous store was always equal to the chunk size which was often too large for low bandwidth connections.  The asynchronous store size now defaults to 32KB and is configurable using the
864         <link linkend='Value_SMBAsyncStoreSize'>SMBAsyncStoreSize</link> registry value.  Asynchronous store operations can also be disabled using the
865         <link linkend='Value_EnableSMBAsyncStore'>EnableSMBAsyncStore</link> registry value in which case all writes received by the cache manager block until the Rx StoreData operation completes.
866       </para>
867       <para>During the first quarter of 2009 Microsoft added new functionality to the SMB Redirector which permits an extended timeout period to be used
868             for an enumerated list of Netbios server names.  This functionality was distributed in Service Pack 2 for Vista and 2008 and is incorporated
869             into the RTM releases of Windows 7 and Server 2008 R2.  Updates to Windows XP (KB916204), XP64 (KB969289), and Server 2003 (KB969289) were
870             made available as hot fixes.  When this support is available, the OpenAFS for Windows client 1.5.61 and above will raise the timeout period
871             from 45 seconds to 10 minutes.</para>
872     </section>
873     <section>
874       <title id='Global_Drives'>3.41. Global Drives (aka Service Drive Letters) are no longer supported by Microsoft</title>
875       <indexterm><primary>global drives</primary></indexterm>
876       <indexterm><primary>service drive letters</primary></indexterm>
877       <indexterm><primary>path ioctl failures</primary></indexterm>
878       <para>The Global DriveAuto-mount feature has been deprecated due to the following Microsoft KB article.</para>
879       <para>
880         <ulink url='http://msdn.microsoft.com/library/en-us/dllproc/base/services_and_redirected_drives.asp'>http://msdn.microsoft.com/library/en-us/dllproc/base/services_and_redirected_drives.asp</ulink>
881       </para>
882       <para>The article says that services mounting drive letters are no longer supported by Microsoft and may act unpredictably. 
883             The experience other users have had is that if the connection to the OpenAFS CIFS/SMB server is terminated by the
884             Windows CIFS client, the drive mapping may not be re-established until the machine is rebooted.</para>
885       <para>OpenAFS supports UNC paths and whenever possible applications should be modified to use UNC form
886             \\AFS\&lt;cellname&gt;\&lt;path&gt; instead of drive letters.</para>
887       <para>Another problem with service mounted drive letters is that the drives are reported as local disk devices
888             and cannot be resolved as being mapped to the \\AFS name space.  As a result, AFS path ioctl operations will
889             fail.  The fs.exe and symlink.exe command line tools and the AFS Explorer Shell extension will not operate
890             on service mounted drive letters.</para>
891     </section>
892     <section>
893       <title id='SixtyFour-bit_Windows'>3.42. 64-bit Microsoft Windows Installations</title>
894       <indexterm><primary>64-bit Windows</primary></indexterm>
895       <para>Although 64-bit Windows platforms support both 64-bit and 32-bit applications, the OpenAFS Service installed on the machine must be 64-bit.  The 64-bit installer contains only 64-bit executables.  In order to support 32-bit applications that link against OpenAFS libraries it is required that a separate 32-bit OpenAFS Tools set be installed.  For example, the 32-bit version of Kerberos for Windows can be used with the 32-bit OpenAFS Tools to manage AFS tokens.</para>
896       <para>OpenAFS on 64-bit Windows benefits from the lifting of the 2GB process memory restriction that is present in 32-bit Windows.   Without this restriction the AFS Cache File can become arbitrarily large limited only by available disk space.</para>
897     </section>
898     <section>
899       <title id='Windows_Vista_Known_Issues'>3.43. Known Issues with Microsoft Windows Vista, Windows 7, and Server 2008 [R2]</title>
900       <indexterm><primary>windows vista</primary></indexterm>
901       <indexterm><primary>windows 2008</primary></indexterm>
902       <indexterm><primary>windows 7</primary></indexterm>
903       <para>OpenAFS for Windows works with Microsoft Windows Vista, Windows 7 and Server 2008 [R2] from both the command prompt and the Explorer Shell.
904             When performing an upgrade from earlier versions of Microsoft Windows the Microsoft Loopback Adapter (MSLA) will be uninstalled.
905             OpenAFS should be re-installed after the Windows Upgrade installation to restore the MSLA configuration.</para>
906       <para>Due to a feature change in Windows Vista’s Plug-n-Play network stack, during a standby/hibernate operation the
907             MSLA is disabled just as any other hardware device would be.  This causes the OpenAFS Client’s network binding to be lost.
908             As a result, it takes anywhere from 30 to 90 seconds after the operating system is resumed for access to the OpenAFS Client
909             and the AFS file name space to be restored.  Until the network bindings have been re-established, ticket managers and other
910             tools will report that the &quot;AFS Client Service may not have been started&quot;.</para>
911       <para>
912         Windows 7 and Server 2008 R2 contain a bug that will prevent access to \\AFS after either a network media link state change or
913         DHCP client lease results in the loss or change of assigned IP address.  When the bug is triggered, all attempts to connect to
914         \\AFS will result in a "Bad Network Name" error even though "nbtstat.exe -n" reports the name &quot;AFS&quot; as locally registered.
915         HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters &quot;DisableDHCPMediaSense&quot; (DWORD) can be set to &quot;1&quot;
916         to disable network media sense events from being delivered to the DHCP client.  Under some circumstances this will avoid triggering
917         the bug.  See <ulink url='http://support.microsoft.com/kb/239924'>KB239924: How to disable the Media Sensing Feature for TCP/IP in Windows</ulink>.
918       </para>
919       <para>Windows Vista, Windows 7, and Server 2008 [R2] implement
920         <ulink url='http://www.microsoft.com/technet/windowsvista/library/0d75f774-8514-4c9e-ac08-4c21f5c6c2d9.mspx'>User Account Control</ulink> (UAC), a new security feature that implements least user privilege.  With UAC, applications only run with the minimum required privileges.  Even Administrator accounts run applications without the &quot;Administrator&quot; access control credentials.  One side effect of this is that existing applications that mix user and system configuration capabilities must be re-written to separate those functions that require &quot;Administrator&quot; privileges into a separate process space.  Future updates to OpenAFS will incorporate the necessary privilege separation, until that time some functions such as the Start and Stop Service features of the AFS Authentication Tool and the AFS Control Panel will not work unless they are &quot;Run as Administrator&quot;.  When a Vista user account that is a member of the &quot;Administrators&quot; group is used to access the AFS Control Panel (afs_config.exe), the process must be &quot;Run as Administrator&quot;.   Otherwise, attempts to modify the OpenAFS configuration will appear to succeed but in reality will have failed due to Vista’s system file and registry virtualization feature.
921       </para>
922       <para>The help files provided with OpenAFS are in .HLP format.
923         <ulink url='http://support.microsoft.com/kb/917607'>Windows Vista, Windows 7, and Server 2008 [R2] do not include a help engine for this format.</ulink>
924       </para>
925     </section>
926     <section>
927       <title id='AFS_Share_Direct_Access_to_Volumes'>3.44. New AFS Share Name Syntax Provides Direct Access to Volumes</title>
928       <indexterm><primary>share names</primary></indexterm>
929       <indexterm><primary>afs volumes - direct access</primary></indexterm>
930       <para>Starting with the 1.5.21 release of OpenAFS for Windows, the following syntax can be used to access any volume in any cell without requiring the creation of a mount point.</para>
931       <para>\\AFS\&lt;cell&gt;&lt;mount point type&gt;&lt;volume&gt;\</para>
932       <para>Where &lt;cell&gt; can be either a full cell name or an unambiguous prefix, the &lt;mount point type&gt; is ‘#’ for a normal mount point or ‘%’ to force the use of a read-write volume, and &lt;volume&gt; is either a volume name or its ID number.</para>
933       <para>Examples include:</para>
934       <para>    \\AFS\athena.mit.edu#user.jaltman\</para>
935       <para>    \\AFS\athena%user.jaltman\</para>
936       <para>    \\AFS\athena.mit.edu# 537235559\</para>
937     </section>
938     <section>
939       <title id='Differences_between_Windows_and_Unix'>3.45. Differences between Windows and UNIX <emphasis>fs examine</emphasis></title>
940       <indexterm><primary>fs examine</primary></indexterm>
941       <indexterm><primary>fs chown</primary></indexterm>
942       <indexterm><primary>fs chgrp</primary></indexterm>
943       <indexterm><primary>owner information</primary></indexterm>
944       <indexterm><primary>group information</primary></indexterm>
945       <para>The OpenAFS for Windows version of &quot;fs examine&quot; provide two additional lines of output when compared to the
946         UNIX implementation.  These lines include the owner and group information for the file as well as the volume status.
947         The Windows output will also indicate the type of object {File, Directory, Mountpoint, Symlink, ...} that was examined.</para>
948       <para>[C:\]fs examine \\afs\athena#user.jaltman</para>
949       <para>Directory \\afs\athena#user.jaltman (537235559.1.1) contained in cell athena.mit.edu</para>
950       <para>
951         <emphasis role='bold'>Owner jaltman (28180) Group jaltman (28180)</emphasis>
952       </para>
953       <para>Volume status for vid = 537235559 named user.jaltman is</para>
954       <para>Current disk quota is 1500000</para>
955       <para>Current blocks used are 1244184</para>
956       <para>The partition has 151945877 blocks available out of 511163724</para>
957       <para><emphasis role='bold'>Volume is online</emphasis></para>
958       <para></para>
959       <para>The object owner and group information is not available on Microsoft Windows via any other method.</para>
960       <para>To set the owner use <emphasis>fs chown -owner &lt;user name or id&gt; [-path &lt;dir/file path&gt;+] [-literal]</emphasis></para>
961       <para>To set the group use <emphasis>fs chgrp -group &lt;user name or id&gt; [-path &lt;dir/file path&gt;+] [-literal]</emphasis></para>
962     </section>
963     <section>
964       <title id='fs_Command_Literal_Option'>3.46. Literal evaluation of AFS objects via fs commands</title>
965       <indexterm><primary>-literal</primary></indexterm>
966       <indexterm><primary>fs examine</primary></indexterm>
967       <indexterm><primary>fs flush</primary></indexterm>
968       <indexterm><primary>fs whereis</primary></indexterm>
969       <indexterm><primary>fs whichcell</primary></indexterm>
970       <para>Beginning with the 1.5.31 release, the fs commands
971         <emphasis>examine</emphasis>,
972         <emphasis>flush</emphasis>,
973         <emphasis>whereis</emphasis>, and
974         <emphasis>whichcell</emphasis> provide a new command-line parameter,
975         <emphasis>-literal</emphasis>.  When specified, if the evaluated object is a symlink or a mountpoint the resulting output will describe the specified object and not the object that is the target of the symlink or mountpoint.
976       </para>
977     </section>
978     <section>
979       <title id='Out_of_Quota_Errors'>3.47. Out of Quota errors</title>
980       <indexterm><primary>out of quota</primary></indexterm>
981       <indexterm><primary>quotas</primary></indexterm>
982       <para>Prior to the 1.5.31 release, out of quota errors were reported to the calling application as an out of space error.  As of 1.5.31, an out of space error will indicate that the partition on which the volume is located is in fact out of space.  Whereas an out of quota error indicates that the user does not have permission to allocate additional space.</para>
983     </section>
984     <section>
985       <title id='Linked_Cells'>3.48. Linked Cells</title>
986       <indexterm><primary>linked cells</primary></indexterm>
987       <indexterm><primary>cell renaming</primary></indexterm>
988       <indexterm><primary>cell splitting</primary></indexterm>
989       <indexterm><primary>cell merging</primary></indexterm>
990       <indexterm><primary>CellServDB</primary></indexterm>
991       <para>The 1.5.55 release adds support for linked cells as implemented in the Unix OpenAFS client.  When two cells are linked, a volume lookup in one cell that fails is retried in the linked cell.  This functionality can be used to implement:</para>
992       <itemizedlist mark='bullet'>
993         <listitem>
994           <para>a test cell which provides substitutes for a subset of the volumes in the linked production cell</para>
995         </listitem>
996         <listitem>
997           <para>a cell renaming</para>
998         </listitem>
999         <listitem>
1000           <para>a cell splitting</para>
1001         </listitem>
1002         <listitem>
1003           <para>a cell merger</para>
1004         </listitem>
1005       </itemizedlist>
1006       <para>Two cells are linked in the CellServDB file:</para>
1007       <para>
1008         <programlisting>
1009        &gt;cell-one     cell-two        #Description
1010        ...
1011        &gt;cell-two     cell-one        #Description
1012        ...
1013        </programlisting>
1014       </para>
1015       <para>aklog and Network Identity Manager will automatically obtain tokens for the linked cell when tokens for the other cell is specified.
1016       </para>
1017     </section>
1018     <section>
1019     <title id="Registry_VLDB_Configuration">3.49 Registry Configuration for AFS Volume Database Servers</title>
1020       <indexterm><primary>vldb server locations</primary></indexterm>
1021       <indexterm><primary>CellServDB</primary></indexterm>
1022     <para>Beginning with the 1.5.60 release, the <link linkend="Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB">[HKLM\SOFTWARE\OpenAFS\Client\CellServDB]</link>
1023     registry key can be used to distribute Volume Database Server location information either as a supplement to the <emphasis>CellServDB file</emphasis> or
1024     as a substitute for it.  The precedence order for lookups is: Registry, File, and then DNS.</para>
1025     </section>
1026     <section>
1027     <title id="HTMLHelp_Documentation">3.50 Documentation Converted to Windows HTML Help</title>
1028       <indexterm><primary>HTMLHelp</primary></indexterm>
1029     <para>Starting with the 1.5.60 release, this document, the OpenAFS Administrator Guide and the OpenAFS User Guide are provided in HTML Help format instead
1030     of raw HTML pages.</para>
1031     </section>
1032     <section>
1033       <title id='MSRPC_Services'>3.51. Support for Microsoft RPC Services: WKSSVC and SRVSVC</title>
1034       <indexterm><primary>Explorer Shell</primary></indexterm>
1035       <indexterm><primary>Microsoft Office</primary></indexterm>
1036       <para>Beginning with the 1.5.62 release, the OpenAFS SMB Server supports named pipes and the Microsoft RPC Services
1037         WKSSVC and SRVSVC.  This permits a significantly improved Netbios Server browsing experience with both the
1038         <emphasis>NET VIEW \\AFS</emphasis> command and the Explorer Shell.  No longer will Windows display truncated
1039         cell names as available network shares.  The network share properties will also include the object type and
1040         and the target of symlinks and mount points.</para>
1041     </section>
1042     <section>
1043       <title id='fs_newcell_differences'>3.52. Differences between Windows and UNIX <emphasis>fs newcell</emphasis></title>
1044       <indexterm><primary>fs newcell</primary></indexterm>
1045       <para>
1046         The OpenAFS for Windows version of &quot;fs newcell&quot; prior to 1.5.74 behaved quite differently than its UNIX counterpart.
1047         Instead of adding cell server information for a new cell, the command simply caused the cache manager to destroy all of its
1048         cell server information and then reload it the next time the server list for a cell is needed.  The UNIX version explicitly
1049         replaces the server list for a cell with a new list.
1050       </para>
1051       <para>
1052         Beginning with the 1.5.75 release, the Windows version will continue to behave as prior versions did when no parameters
1053         are specified but will accept an extended UNIX command-line syntax as well.  In addition to the UNIX parameters,
1054         the Windows &quot;fs newcell&quot; command accepts four new ones:
1055       </para>
1056       <itemizedlist>
1057         <listitem>
1058           <para>[-fsport &lt;cell's fileserver port&gt;]</para>
1059           <para>Specifies an alternate port number at which the cell's file servers are listening</para>
1060         </listitem>
1061         <listitem>
1062           <para>[-vlport &lt;cell's vldb server port&gt;]</para>
1063           <para>Specifies an alternate port number at which the cell's volume location database servers are listening</para>
1064         </listitem>
1065         <listitem>
1066           <para>[-registry]</para>
1067           <para>Instructs the cache manager to save the cell server information to the registry database</para>
1068         </listitem>
1069         <listitem>
1070           <para>[-dns]</para>
1071           <para>Indicates that the cell server information should be obtained via DNS SRV or DNS AFSDB records</para>
1072         </listitem>
1073       </itemizedlist>
1074     </section>
1075   </chapter>
1076   <chapter id='chap_4'>
1077     <title id='How_to_Debug_Problems'>How to Debug Problems with OpenAFS for Windows</title>
1078       <indexterm><primary>debugging</primary></indexterm>
1079     <para>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.</para>
1080     <section>
1081       <title id='pioctl_debugging'>4.1. pioctl debugging (
1082         <link linkend='Value_IoctlDebug'>IoctlDebug</link> registry key)
1083       </title>
1084       <indexterm><primary>IoctlDebug</primary></indexterm>
1085       <indexterm><primary>tokens.exe</primary></indexterm>
1086       <indexterm><primary>aklog.exe</primary></indexterm>
1087       <indexterm><primary>afscreds.exe</primary></indexterm>
1088       <para>pioctl (path-based ioctl) calls are used by various tools to communicate with the AFS Client Service.  Some of the operations performed include:</para>
1089       <itemizedlist>
1090         <listitem>
1091           <para>setting/querying tokens  (tokens.exe, aklog.exe, afscreds.exe)</para>
1092         </listitem>
1093         <listitem>
1094           <para>setting/querying ACLs </para>
1095         </listitem>
1096         <listitem>
1097           <para>setting/querying cache parameters</para>
1098         </listitem>
1099         <listitem>
1100           <para>flushing files or volumes</para>
1101         </listitem>
1102         <listitem>
1103           <para>setting/querying server preferences</para>
1104         </listitem>
1105         <listitem>
1106           <para>querying path location</para>
1107         </listitem>
1108         <listitem>
1109           <para>checking the status of servers and volumes</para>
1110         </listitem>
1111         <listitem>
1112           <para>setting/querying the sysname list</para>
1113         </listitem>
1114       </itemizedlist>
1115       <para>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.   </para>
1116       <para>To assist in debugging these problems, the registry value:</para>
1117       <para>  [HKLM\SOFTWARE\OpenAFS\Client]</para>
1118       <para>  REG_DWORD:  IoctlDebug   = 0x01</para>
1119       <para>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.</para>
1120     </section>
1121     <section>
1122       <title id='afsd_service_init_log'>4.2. afsd_service initialization log (%WinDir%\TEMP\afsd_init.log)</title>
1123       <indexterm><primary>afsd_init.log</primary></indexterm>
1124       <indexterm><primary>MaxLogSize</primary></indexterm>
1125       <para>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.</para>
1126       <para>The
1127         <link linkend='Value_MaxLogSize'>MaxLogSize</link> 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.
1128       </para>
1129     </section>
1130     <section>
1131       <title id='afsd_service_debug_log'>4.3. afsd_service debug logs (fs trace {-on, -off, -dump} -&gt;%WinDir%\TEMP\afsd.log)</title>
1132       <indexterm><primary>afsd.log</primary></indexterm>
1133       <indexterm><primary>fs trace</primary></indexterm>
1134       <indexterm><primary>TraceBufferSize</primary></indexterm>
1135       <para>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
1136         <link linkend='Value_TraceBufferSize'>TraceBufferSize registry value</link>:
1137       </para>
1138       <para>  [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
1139       <para>  REG_DWORD  TraceBufferSize </para>
1140       <para>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.</para>
1141     </section>
1142     <section>
1143       <title id='Using_Sysinternals_Tools'>4.4. Using SysInternal’s Debug Viewer, Process Monitor and Process Explorer Tools</title>
1144       <indexterm><primary>SysInternals</primary></indexterm>
1145       <indexterm><primary>dbgview.exe</primary></indexterm>
1146       <indexterm><primary>procmon.exe</primary></indexterm>
1147       <indexterm><primary>TraceOption</primary></indexterm>
1148       <para>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
1149         <ulink url='http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx'>Debug Viewer</ulink> to capture real-time debugging output.  When the OpenAFS Client Service starts and Bit 2 of the
1150         <link linkend='Value_TraceOption'>TraceOption</link> value in the registry is set, all trace log events are output using the Windows Debug Monitor interface (OutputDebugString). 
1151       </para>
1152       <para>  [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
1153       <para>REG_DWORD   TraceOption = 0x04</para>
1154       <para>Use &quot;fs trace –on&quot; and &quot;fs trace –off&quot; to toggle the generation of log messages. </para>
1155       <para>Sysinternal’s
1156         <ulink url='http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx'>Process Monitor</ulink> can be use to monitor the file operations requested by applications and their success or failure.  
1157       </para>
1158       <para>In Process Monitor, set a filter to include only events on file paths that refer to the AFS name space. Be sure to include both the UNC path as well as any drive letters mapped to AFS. </para>
1159       <para>Turn on the
1160         <emphasis>Clock Time</emphasis> and
1161         <emphasis>Show Milliseconds</emphasis> 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
1162         <link linkend='Reporting_Bugs'>bug reports</link>.
1163       </para>
1164       <para>Sysinternal's
1165         <ulink url='http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx'>Process Explorer</ulink> is a replacement for the Windows Task Manager and so much more.  Process Explorer can be configured to use the DbgHelp.dll from "
1166         <ulink url='http://www.microsoft.com/whdc/devtools/debugging/default.mspx'>Microsoft Debugging Tools for Windows</ulink>" as well as the debug symbols shipped as an optional component of the OpenAFS for Windows installer.  (Options-&gt;Configure Symbols)   Once configured the "Threads" tab of the process properties dialog will permit the viewing of a fully documented stack for each displayed thread.  Hint: If there is a deadlock in the cache manager, two or more of the threads will be stuck in a call to osi_TWait().
1167       </para>
1168     </section>
1169     <section>
1170       <title id='Creating_Microsoft_Minidumps'>4.5. Creating Microsoft MiniDumps
1171 (fs minidump -&gt; %WinDir%\TEMP\afsd.dmp)</title>
1172       <indexterm><primary>minidumps</primary></indexterm>
1173       <indexterm><primary>fs minidump</primary></indexterm>
1174       <indexterm><primary>MiniDumpType</primary></indexterm>
1175       <indexterm><primary>afsd.dmp</primary></indexterm>
1176       <para>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.  The most accurate MiniDump files will be produced after installing "
1177         <ulink url='http://www.microsoft.com/whdc/devtools/debugging/default.mspx'>Microsoft Debugging Tools for Windows</ulink>".
1178       </para>
1179       <para>The
1180         <link linkend='Value_MiniDumpType'>MiniDumpType</link> registry value can be used to adjust the scope of the process information included within the dump file.  By default the MiniDump only contains the stacks of all threads and the values of all global variables.  A much more useful MiniDump is one that contains the contents of the heap.  Be warned, a MiniDump with heap will be as large as the cache file.  In addition, it will include all of the data stored within the cache.  If there are privacy concerns, do not produce a MiniDump with heap.
1181       </para>
1182     </section>
1183     <section>
1184       <title id='Integrated_Logon_Debugging'>4.6. Single Sign-on (Integrated Logon) debugging</title>
1185       <indexterm><primary>integrated logon</primary></indexterm>
1186       <indexterm><primary>TraceOption</primary></indexterm>
1187       <para>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
1188         <link linkend='Value_TraceOption'>TraceOption</link> registry value:
1189       </para>
1190       <para>  [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
1191       <para>  REG_DWORD   TraceOption = 0x01</para>
1192       <para>will instruct the Integrated Logon Network Provider and Event Handlers to log information to the Windows Event Log: Application under the name &quot;AFS Logon".</para>
1193     </section>
1194     <section>
1195       <title id='rxdebug_usage'>4.7. RX (AFS RPC) debugging (rxdebug)</title>
1196       <indexterm><primary>rxdebug.exe</primary></indexterm>
1197       <para>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.  </para>
1198       <para>
1199         <programlisting>
1200     Usage: rxdebug -servers &lt;server machine&gt; [-port &lt;IP port&gt;] [-nodally]
1201            [-allconnections] [-rxstats] [-onlyserver] [-onlyclient]
1202            [-onlyport &lt;show only &lt;port&gt;&gt;]
1203            [-onlyhost &lt;show only &lt;host&gt;&gt;]
1204            [-onlyauth &lt;show only &lt;auth level&gt;&gt;] [-version]
1205            [-noconns] [-peers] [-help]
1206     Where: -nodally         don't show dallying conns
1207            -allconnections  don't filter out uninteresting connections
1208            -rxstats         show Rx statistics
1209            -onlyserver      only show server conns
1210            -onlyclient      only show client conns
1211            -version         show AFS version id
1212            -noconns         show no connections
1213            -peers           show peers
1214       </programlisting>
1215       </para>
1216     </section>
1217     <section>
1218       <title id='cmdebug_usage'>4.8. Cache Manager debugging (cmdebug)</title>
1219       <indexterm><primary>cmdebug.exe</primary></indexterm>
1220       <para>The cmdebug.exe tool can be used to query the state of the AFS Cache Manager on a given machine.</para>
1221       <para>
1222         <programlisting>
1223     Usage: cmdebug -servers &lt;server machine&gt; [-port &lt;IP port&gt;] [-long] [-refcounts]
1224            [-callbacks] [-ctime] [-addrs] [-cache] [-cellservdb] [-help]
1225     Where: -long        print all info
1226            -refcounts   print only cache entries with positive reference counts
1227            -callbacks   print only cache entries with callbacks
1228            -ctime       print human readable expiration time
1229            -addrs       print only host interfaces
1230            -cache       print only cache configuration
1231            -cellservdb  print only cellservdb info
1232       </programlisting>
1233       </para>
1234     </section>
1235     <section>
1236       <title id='Persistent_Cache_Consistency_Check'>4.9. Persistent Cache consistency check</title>
1237       <indexterm><primary>AFSCache</primary></indexterm>
1238       <indexterm><primary>validate cache file</primary></indexterm>
1239       <para>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.</para>
1240       <para>  afsd_service.exe --validate-cache &lt;cache-path&gt;</para>
1241     </section>
1242     <section>
1243       <title id='Token_Acquisition_Debugging'>4.10. Token Acquisition Debugging</title>
1244       <indexterm><primary>tokens</primary></indexterm>
1245       <indexterm><primary>klog.exe</primary></indexterm>
1246       <indexterm><primary>kinit.exe</primary></indexterm>
1247       <indexterm><primary>aklog.exe</primary></indexterm>
1248       <para>If you are having trouble obtaining tokens with the Network Identity Manager AFS credential provider, it is recommended that you verify your ability to obtain tokens using the command-line tools
1249         <emphasis>klog.exe</emphasis> (if you are using kaserver) or
1250         <emphasis>kinit.exe</emphasis> and
1251         <emphasis>aklog.exe</emphasis> (if you are using Kerberos v5.)  The aklog.exe
1252         <emphasis>–d</emphasis> option will be quite helpful in diagnosing Kerberos v5 related problems.
1253       </para>
1254     </section>
1255   </chapter>
1256   <chapter id='chap_5'>
1257     <title id='Reporting_Bugs'>Reporting Bugs</title>
1258       <indexterm><primary>bug reports</primary></indexterm>
1259     <para>Bug reports should be sent to
1260       <ulink url='mailto:openafs-bugs@openafs.org?subject=Bug%20Report'>openafs-bugs@openafs.org</ulink>.  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.
1261     </para>
1262     <para>Configuring DrWatson to generate dump files for crashes:</para>
1263     <orderedlist>
1264       <listitem>
1265         <para>Run drwtsn32.exe to configure or to identify where the log and the crash dump files are created: </para>
1266       </listitem>
1267       <listitem>
1268         <para>click Start &gt; Run...  </para>
1269       </listitem>
1270       <listitem>
1271         <para>type drwtsn32 &lt;enter&gt;. </para>
1272       </listitem>
1273       <listitem>
1274         <para>Select either a Crash Dump Type: Mini or Full. </para>
1275       </listitem>
1276       <listitem>
1277         <para>Clear Dump Symbol Table</para>
1278       </listitem>
1279       <listitem>
1280         <para>Clear Append to Existing Log file. </para>
1281       </listitem>
1282       <listitem>
1283         <para>Check Dump All Thread Contexts.</para>
1284       </listitem>
1285       <listitem>
1286         <para>Check Create Crash Dump File</para>
1287       </listitem>
1288       <listitem>
1289         <para>Next run the monitoring module of Dr. Watson: </para>
1290       </listitem>
1291       <listitem>
1292         <para>click Start &gt; Run...</para>
1293       </listitem>
1294       <listitem>
1295         <para>type drwatson &lt;enter&gt;. </para>
1296       </listitem>
1297       <listitem>
1298         <para>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.</para>
1299       </listitem>
1300     </orderedlist>
1301     <para>Once you have the Dr. Watson's logfile and minidump, zip them and attach them to your e-mail.</para>
1302     <para>When reporting a error, please be sure to include the version of OpenAFS.
1303     </para>
1304   </chapter>
1305   <chapter id='chap_6'>
1306     <title id='Contributing_to_OpenAFS'>How to Contribute to the Development of OpenAFS for Windows</title>
1307       <indexterm><primary>contributing to OpenAFS</primary></indexterm>
1308     <para>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.</para>
1309     <section>
1310       <title id='USENIX_OpenAFS_Fund'>6.1. The USENIX OpenAFS Fund </title>
1311       <indexterm><primary>USENIX OpenAFS Fund</primary></indexterm>
1312       <para>
1313         <ulink url='http://www.usenix.org/'>USENIX</ulink>, 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.
1314       </para>
1315       <informaltable frame='none'>
1316         <tgroup rowsep='1' align='left' colsep='1' cols='1'>
1317           <colspec colwidth='405pt' colname='c1' />
1318           <tbody>
1319             <row>
1320               <entry>
1321                 <para>
1322                   <programlisting>
1323     USENIX OpenAFS Fund
1324     USENIX Association
1325     2560 Ninth St., Suite 215
1326     Berkeley, CA 94710
1327                   </programlisting>
1328                 </para>
1329               </entry>
1330             </row>
1331           </tbody>
1332         </tgroup>
1333       </informaltable>
1334       <para>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
1335         <ulink url='https://db.usenix.org/cgi-bin/openafs/openafs.cgi'>donation online</ulink>.
1336       </para>
1337     </section>
1338     <section>
1339       <title id='Secure_Endpoints_Inc'>6.2. Secure Endpoints Inc. </title>
1340       <indexterm><primary>Secure Endpoints Inc.</primary></indexterm>
1341       <para>
1342         <ulink url='http://www.secure-endpoints.com/'>Secure Endpoints Inc.</ulink> provides development and support services for OpenAFS for Windows and
1343         <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink>.  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.
1344       </para>
1345       <para>Secure Endpoints Inc. accepts software development agreements from organizations who wish to fund a well-defined set of bug fixes or new features. </para>
1346       <para>Secure Endpoints Inc. provides contract based support for the OpenAFS for Windows and the
1347         <ulink url='http://web.mit.edu/kerberos/'>MIT Kerberos for Windows</ulink> products.
1348       </para>
1349     </section>
1350     <section>
1351       <title id='Direct_Code_Contributions'>6.3. Direct contributions of code and/or documentation </title>
1352       <para>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. </para>
1353     </section>
1354     <section>
1355       <title id='OAFW_Mailing_Lists'>6.4. OpenAFS for Windows Mailing Lists</title>
1356       <indexterm><primary>mailing lists</primary></indexterm>
1357       <indexterm><primary>openafs-win32-devel</primary></indexterm>
1358       <indexterm><primary>openafs-info</primary></indexterm>
1359       <para>If you wish to participate in OpenAFS for Windows development please join the
1360         <ulink url='mailto:openafs-win32-devel@openafs.org?subject=OpenAFS%20for%20Windows%20Development%20Contribution'>openafs-win32-devel@openafs.org</ulink> mailing list.
1361       </para>
1362       <para>
1363         <emphasis role='bold'>https://lists.openafs.org/mailman/listinfo/openafs-win32-devel</emphasis>
1364       </para>
1365       <para>User questions should be sent to the
1366         <ulink url='mailto:openafs-info@openafs.org?subject=OpenAFS%20for%20Windows%20User%20Question'>openafs-info@openafs.org</ulink> mailing list. 
1367       </para>
1368       <para>
1369         <emphasis role='bold'>https://lists.openafs.org/mailman/listinfo/openafs-info</emphasis>
1370       </para>
1371       <para>You must join the mailing lists if you wish to post to the list without incurring a moderation delay.</para>
1372     </section>
1373   </chapter>
1374   <chapter id='chap_7'>
1375     <title id='MSI_Deployment_Guide'>MSI Deployment Guide</title>
1376       <indexterm><primary>msi deployment</primary></indexterm>
1377       <indexterm><primary>msi transforms</primary></indexterm>
1378     <section>
1379       <title id='Introduction_to_MSI_Deployment'>7.1. Introduction</title>
1380       <para>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.</para>
1381       <para>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.</para>
1382       <section>
1383         <title id='MSI_Deployment_Requirements'>7.1.1 Requirements</title>
1384         <para>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.</para>
1385         <para>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.</para>
1386         <para>For reference, the schema for the MSI package is based on SCHEMA.MSI distributed with the Platform SDK.</para>
1387         <para>For general information about "Windows Installer", refer to:</para>
1388         <para>   
1389           <ulink url='http://msdn.microsoft.com/library/en-us/msi/setup/windows_installer_start_page.asp'>http://msdn.microsoft.com/library/en-us/msi/setup/windows_installer_start_page.asp</ulink>
1390         </para>
1391         <para>For general information about authoring MSI transforms, refer to:</para>
1392         <para>   
1393           <ulink url='http://msdn.microsoft.com/library/en-us/msi/setup/transforms.asp'>http://msdn.microsoft.com/library/en-us/msi/setup/transforms.asp</ulink>
1394         </para>
1395         <para>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:</para>
1396         <para>   
1397           <ulink url='http://msdn.microsoft.com/library/en-us/msi/setup/a_customization_transform_example.asp'>http://msdn.microsoft.com/library/en-us/msi/setup/a_customization_transform_example.asp</ulink>
1398         </para>
1399       </section>
1400       <section>
1401         <title id='MSI_Authoring_Transforms'>7.1.2 Authoring a Transform</title>
1402         <para>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:</para>
1403         <orderedlist>
1404           <listitem>
1405             <para>copy openafs.msi openafs-modified.msi</para>
1406           </listitem>
1407           <listitem>
1408             <para>(edit the openafs-modified.msi to include the necessary changes)</para>
1409           </listitem>
1410           <listitem>
1411             <para>msitran -g openafs.msi openafs-modified.msi openafs-transform.mst</para>
1412           </listitem>
1413           <listitem>
1414             <para>(generates openafs-transform.mst, which is the transform)</para>
1415           </listitem>
1416         </orderedlist>
1417         <para>Transforms have an extension of .mst.  'msitran' is a tool distributed as part of the "Windows Installer" SDK (part of the Windows Platform SDK).</para>
1418         <para>You can test a transform by:</para>
1419         <orderedlist>
1420           <listitem>
1421             <para>copy openafs.msi openafs-test.msi</para>
1422           </listitem>
1423           <listitem>
1424             <para>msitran -a openafs-transform.mst openafs-test.msi</para>
1425           </listitem>
1426         </orderedlist>
1427         <para>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.</para>
1428         <para>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.</para>
1429       </section>
1430     </section>
1431     <section>
1432       <title id='MSI_Configuration_Options'>7.2. Configuration Options</title>
1433       <para>The logic necessary to implement many of the settings described in
1434         <link linkend='appendix_a'>Appendix A</link> 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.
1435       </para>
1436       <section>
1437         <title id='MSI_Configurable_Properties'>7.2.1 Configurable Properties</title>
1438         <para>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.</para>
1439         <para>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.</para>
1440         <para>For each property, the associated registry setting is referenced by the same text used in
1441           <link linkend='appendix_a'>Appendix A</link>.
1442         </para>
1443         <para>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.</para>
1444         <para>Numeric values should be authored as decimal strings.</para>
1445         <section>
1446           <title id='MSI_Setting_Properties'>7.2.1.1 Setting Properties</title>
1447           <para>In order to set a property,</para>
1448           <orderedlist>
1449             <listitem>
1450               <para>Open the MSI in ORCA.EXE</para>
1451             </listitem>
1452             <listitem>
1453               <para>Select the 'Property' table from the list of tables on the left.</para>
1454             </listitem>
1455             <listitem>
1456               <para>Find the property in the list of properties on the right, double click the value and type the new value.</para>
1457             </listitem>
1458             <listitem>
1459               <para>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.</para>
1460             </listitem>
1461           </orderedlist>
1462         </section>
1463         <section>
1464           <title id='MSI_OAFW_Properties'>7.2.1.2 OpenAFS for Windows Properties</title>
1465           <informaltable frame='all'>
1466             <tgroup rowsep='1' align='left' colsep='1' cols='1'>
1467               <colspec colwidth='447pt' colname='c1' />
1468               <tbody>
1469                 <row>
1470                   <entry>
1471                     <para>
1472                       <emphasis>(Service parameters):</emphasis>
1473                     </para>
1474                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
1475                   </entry>
1476                 </row>
1477                 <row>
1478                   <entry>
1479                     <para>
1480                       <emphasis>(Network provider):</emphasis>
1481                     </para>
1482                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
1483                   </entry>
1484                 </row>
1485                 <row>
1486                   <entry>
1487                     <para>
1488                       <emphasis>(OpenAFS Client):</emphasis>
1489                     </para>
1490                     <para>[HKLM\SOFTWARE\OpenAFS\Client]</para>
1491                   </entry>
1492                 </row>
1493               </tbody>
1494             </tgroup>
1495           </informaltable>
1496           <section>
1497             <title id='MSI_OAFW_Registry_Properties'>7.2.1.2.1 Registry Properties</title>
1498             <para>These properties are used to set the values of registry entries associated with OpenAFS for Windows.</para>
1499             <informaltable frame='all'>
1500               <tgroup rowsep='1' align='left' colsep='1' cols='1'>
1501                 <colspec colwidth='447pt' colname='c1' />
1502                 <tbody>
1503                   <row>
1504                     <entry>
1505                       <para>
1506                         <emphasis role='bold'>AFSCACHEPATH</emphasis>
1507                       </para>
1508                       <para>Registry key    :
1509                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1510                       </para>
1511                       <para>Registry value :
1512                         <link linkend='Value_CachePath'>CachePath</link>
1513                       </para>
1514                       <para>Valid values    : string .</para>
1515                     </entry>
1516                   </row>
1517                   <row>
1518                     <entry>
1519                       <para>
1520                         <emphasis role='bold'>AFSCACHESIZE</emphasis>
1521                       </para>
1522                       <para>Registry key    :
1523                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1524                       </para>
1525                       <para>Registry value :
1526                         <link linkend='Value_CacheSize'>CacheSize</link>
1527                       </para>
1528                       <para>Valid values    : numeric</para>
1529                     </entry>
1530                   </row>
1531                   <row>
1532                     <entry>
1533                       <para>
1534                         <emphasis role='bold'>AFSCELLNAME</emphasis>
1535                       </para>
1536                       <para>Registry key    :
1537                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1538                       </para>
1539                       <para>Registry value :
1540                         <link linkend='Value_Cell'>Cell</link>
1541                       </para>
1542                       <para>Valid values    : string</para>
1543                     </entry>
1544                   </row>
1545                   <row>
1546                     <entry>
1547                       <para>
1548                         <emphasis role='bold'>FREELANCEMODE</emphasis>
1549                       </para>
1550                       <para>Registry key    :
1551                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1552                       </para>
1553                       <para>Registry value :
1554                         <link linkend='Value_FreelanceClient'>FreelanceClient</link>
1555                       </para>
1556                       <para>Valid values    : '1' or '0'</para>
1557                     </entry>
1558                   </row>
1559                   <row>
1560                     <entry>
1561                       <para>
1562                         <emphasis role='bold'>HIDEDOTFILES</emphasis>
1563                       </para>
1564                       <para>Registry key    :
1565                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1566                       </para>
1567                       <para>Registry value :
1568                         <link linkend='Value_HideDotFiles'>HideDotFiles</link>
1569                       </para>
1570                       <para>Valid values    : '1' or '0'</para>
1571                     </entry>
1572                   </row>
1573                   <row>
1574                     <entry>
1575                       <para>
1576                         <emphasis role='bold'>LOGONOPTIONS</emphasis>
1577                       </para>
1578                       <para>Registry key    :
1579                         <link linkend='Domain_Specific_Regkeys'>(Network Provider)</link>
1580                       </para>
1581                       <para>Registry value :
1582                         <link linkend='Value_LogonOptions'>LogonOptions</link>
1583                       </para>
1584                       <para>Valid values    : '0', '1' or '3'</para>
1585                       <para>See
1586                         <link linkend='appendix_a'>Appendix A</link>
1587                         <link linkend='Domain_Specific_Configuration'>section 2.1 (Domain Specific Configuration keys for Network Provider)</link> for more details.
1588
1589
1590
1591                       </para>
1592                     </entry>
1593                   </row>
1594                   <row>
1595                     <entry>
1596                       <para>
1597                         <emphasis role='bold'>MOUNTROOT</emphasis>
1598                       </para>
1599                       <para>Registry key    :
1600                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1601                       </para>
1602                       <para>Registry value :
1603                         <link linkend='Value_Mountroot'>Mountroot</link>
1604                       </para>
1605                       <para>Valid values    : string</para>
1606                     </entry>
1607                   </row>
1608                   <row>
1609                     <entry>
1610                       <para>
1611                         <emphasis role='bold'>NETBIOSNAME</emphasis>
1612                       </para>
1613                       <para>Registry key    :
1614                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1615                       </para>
1616                       <para>Registry value :
1617                         <link linkend='Value_NetbiosName'>NetbiosName</link>
1618                       </para>
1619                       <para>Valid values    : string (at most 15 characters)</para>
1620                     </entry>
1621                   </row>
1622                   <row>
1623                     <entry>
1624                       <para>
1625                         <emphasis role='bold'>NOFINDLANABYNAME</emphasis>
1626                       </para>
1627                       <para>Registry key    :
1628                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1629                       </para>
1630                       <para>Registry value :
1631                         <link linkend='Value_NoFindLanaByName'>NoFindLanaByName</link>
1632                       </para>
1633                       <para>Valid values    : '1' or '0'</para>
1634                     </entry>
1635                   </row>
1636                   <row>
1637                     <entry>
1638                       <para>
1639                         <emphasis role='bold'>RXMAXMTU</emphasis>
1640                       </para>
1641                       <para>Registry key    :
1642                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1643                       </para>
1644                       <para>Registry value :
1645                         <link linkend='Value_RxMaxMTU'>RxMaxMTU</link>
1646                       </para>
1647                       <para>Valid values    : numeric</para>
1648                     </entry>
1649                   </row>
1650                   <row>
1651                     <entry>
1652                       <para>
1653                         <emphasis role='bold'>SECURITYLEVEL</emphasis>
1654                       </para>
1655                       <para>Registry key    :
1656                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1657                       </para>
1658                       <para>Registry value :
1659                         <link linkend='Value_SecurityLevel'>SecurityLevel</link>
1660                       </para>
1661                       <para>Valid values    : '1' or '0'</para>
1662                     </entry>
1663                   </row>
1664                   <row>
1665                     <entry>
1666                       <para>
1667                         <emphasis role='bold'>SMBAUTHTYPE</emphasis>
1668                       </para>
1669                       <para>Registry key    :
1670                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1671                       </para>
1672                       <para>Registry value :
1673                         <link linkend='Value_smbAuthType'>SMBAuthType</link>
1674                       </para>
1675                       <para>Valid values    : '0','1' or '2'</para>
1676                     </entry>
1677                   </row>
1678                   <row>
1679                     <entry>
1680                       <para>
1681                         <emphasis role='bold'>STOREANSIFILENAMES</emphasis>
1682                       </para>
1683                       <para>Registry key    :
1684                         <link linkend='Regkey_HKLM_SOFTWARE_OpenAFS_Client'>(OpenAFS Client)</link>
1685                       </para>
1686                       <para>Registry value :
1687                         <link linkend='Value_StoreAnsiFilenames'>StoreAnsiFilenames</link>
1688                       </para>
1689                       <para>Valid values    : '0' or '1'</para>
1690                       <para>This option is no longer supported as of 1.5.50 now that all file names are stored to AFS file servers using the UTF-8 encoding of Unicode.</para>
1691                     </entry>
1692                   </row>
1693                   <row>
1694                     <entry>
1695                       <para>
1696                         <emphasis role='bold'>USEDNS</emphasis>
1697                       </para>
1698                       <para>Registry key    :
1699                         <link linkend='Service_Parameters'>(Service Parameters)</link>
1700                       </para>
1701                       <para>Registry value :
1702                         <link linkend='Value_UseDNS'>UseDNS</link>
1703                       </para>
1704                       <para>Valid values    : '1' or '0'</para>
1705                     </entry>
1706                   </row>
1707                 </tbody>
1708               </tgroup>
1709             </informaltable>
1710           </section>
1711           <section>
1712             <title id='MSI_OAFW_AFSCreds_Properties'>
1713                7.2.1.2.2 AFSCreds.exe Properties
1714             </title>
1715             <para>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.</para>
1716             <informaltable frame='all'>
1717               <tgroup rowsep='1' align='left' colsep='1' cols='1'>
1718                 <colspec colwidth='447pt' colname='c1' />
1719                 <tbody>
1720                   <row>
1721                     <entry>
1722                       <para>
1723                         <emphasis role='bold'>CREDSSTARTUP</emphasis>
1724                       </para>
1725                       <para>Valid values    : '1' or '0'</para>
1726                       <para>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.</para>
1727                     </entry>
1728                   </row>
1729                   <row>
1730                     <entry>
1731                       <para>
1732                         <emphasis role='bold'>CREDSAUTOINIT</emphasis>
1733                       </para>
1734                       <para>Valid values    : '-a' or ''</para>
1735                       <para>Enables automatic initialization.</para>
1736                     </entry>
1737                   </row>
1738                   <row>
1739                     <entry>
1740                       <para>
1741                         <emphasis role='bold'>CREDSIPCHDET</emphasis>
1742                       </para>
1743                       <para>Valid values    : '-n' or ''</para>
1744                       <para>Enables IP address change detection.</para>
1745                     </entry>
1746                   </row>
1747                   <row>
1748                     <entry>
1749                       <para>
1750                         <emphasis role='bold'>CREDSQUIET</emphasis>
1751                       </para>
1752                       <para>Valid values    : '-q' or ''</para>
1753                       <para>Enables quiet mode.</para>
1754                     </entry>
1755                   </row>
1756                   <row>
1757                     <entry>
1758                       <para>
1759                         <emphasis role='bold'>CREDSRENEWDRMAP</emphasis>
1760                       </para>
1761                       <para>Valid values    : '-m' or '’</para>
1762                       <para>Enables renewing drive map at startup.</para>
1763                     </entry>
1764                   </row>
1765                   <row>
1766                     <entry>
1767                       <para>
1768                         <emphasis role='bold'>CREDSSHOW</emphasis>
1769                       </para>
1770                       <para>Valid values    : '-s' or ''</para>
1771                       <para>Enables displaying the credential manager window when AFSCREDS starts up.</para>
1772                     </entry>
1773                   </row>
1774                 </tbody>
1775               </tgroup>
1776             </informaltable>
1777           </section>
1778         </section>
1779       </section>
1780       <section>
1781         <title id='MSI_Existing_Registry_Entries'>7.2.2 Existing Registry Entries</title>
1782         <para>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).</para>
1783       </section>
1784       <section>
1785         <title id='MSI_Replacing_Configuration_Files'>7.2.3 Replacing Configuration Files</title>
1786         <para>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.</para>
1787         <para>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).</para>
1788         <para>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.</para>
1789         <para>The walkthrough below is to add a custom 'CellServDB' file.</para>
1790         <orderedlist>
1791           <listitem>
1792             <para>Disable the component that contains the configuration file that you want to replace.</para>
1793             <orderedlist>
1794               <listitem>
1795                 <para>Locate and select the 'Component' table in the 'Tables' list.</para>
1796               </listitem>
1797               <listitem>
1798                 <para>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
1799                   <link linkend='MSI_Configuration_File_Components'>7.2.3.1</link>.  For this example, the component name is 'elf_CellServDB'.
1800                 </para>
1801               </listitem>
1802               <listitem>
1803                 <para>Go to the 'Condition' column of the component.</para>
1804               </listitem>
1805               <listitem>
1806                 <para>Enter a condition that evaluates to false. I.e. 'DONOTINSTALL'. (Note that an undefined property always evaluates to false).</para>
1807                 <para>Note that you can also use this step to disable other configuration files without providing replacements.</para>
1808               </listitem>
1809             </orderedlist>
1810           </listitem>
1811           <listitem>
1812             <para>Add a new component containing the new configuration file.</para>
1813             <orderedlist>
1814               <listitem>
1815                 <para>Select the 'Component' table in the 'Tables' list.</para>
1816               </listitem>
1817               <listitem>
1818                 <para>Select 'Tables'-&gt;'Add Row' (Ctrl-R).</para>
1819               </listitem>
1820               <listitem>
1821                 <para>Enter the following :</para>
1822                 <informaltable frame='all'>
1823                   <tgroup rowsep='1' align='left' colsep='1' cols='2'>
1824                     <colspec colwidth='84pt' colname='c1' />
1825                     <colspec colwidth='318pt' colname='c2' />
1826                     <tbody>
1827                       <row>
1828                         <entry>
1829                           <para>Component</para>
1830                         </entry>
1831                         <entry>
1832                           <para>cmf_my_CellServDB</para>
1833                         </entry>
1834                       </row>
1835                       <row>
1836                         <entry>
1837                           <para>ComponentID</para>
1838                         </entry>
1839                         <entry>
1840                           <para>{7019836F-BB2C-4AF6-9463-0D6EC9035CF1}</para>
1841                         </entry>
1842                       </row>
1843                       <row>
1844                         <entry>
1845                           <para>Directory_</para>
1846                         </entry>
1847                         <entry>
1848                           <para>dirClient</para>
1849                         </entry>
1850                       </row>
1851                       <row>
1852                         <entry>
1853                           <para>Attributes</para>
1854                         </entry>
1855                         <entry>
1856                           <para>144</para>
1857                         </entry>
1858                       </row>
1859                       <row>
1860                         <entry>
1861                           <para>Condition</para>
1862                         </entry>
1863                         <entry>
1864                           <para> </para>
1865                         </entry>
1866                       </row>
1867                       <row>
1868                         <entry>
1869                           <para>KeyPath</para>
1870                         </entry>
1871                         <entry>
1872                           <para>fil_my_CellServDB</para>
1873                         </entry>
1874                       </row>
1875                     </tbody>
1876                   </tgroup>
1877                 </informaltable>
1878                 <para>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.</para>
1879                 <para>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.</para>
1880                 <para>            'fil_my_CellServDB' is a key into the 'File' table which we will fill later.</para>
1881               </listitem>
1882             </orderedlist>
1883           </listitem>
1884           <listitem>
1885             <para>Add a new feature to hold the new component.</para>
1886             <orderedlist>
1887               <listitem>
1888                 <para>Select the 'Feature' table.</para>
1889               </listitem>
1890               <listitem>
1891                 <para>Add a new row (Ctrl-R or 'Tables'-&gt;'Add Row') with the following values:</para>
1892                 <informaltable frame='all'>
1893                   <tgroup rowsep='1' align='left' colsep='1' cols='2'>
1894                     <colspec colwidth='94pt' colname='c1' />
1895                     <colspec colwidth='307pt' colname='c2' />
1896                     <tbody>
1897                       <row>
1898                         <entry>
1899                           <para>Feature</para>
1900                         </entry>
1901                         <entry>
1902                           <para>fea_my_CellServDB</para>
1903                         </entry>
1904                       </row>
1905                       <row>
1906                         <entry>
1907                           <para>Feature_Parent</para>
1908                         </entry>
1909                         <entry>
1910                           <para>feaClient</para>
1911                         </entry>
1912                       </row>
1913                       <row>
1914                         <entry>
1915                           <para>Title</para>
1916                         </entry>
1917                         <entry>
1918                           <para> </para>
1919                         </entry>
1920                       </row>
1921                       <row>
1922                         <entry>
1923                           <para>Description</para>
1924                         </entry>
1925                         <entry>
1926                           <para> </para>
1927                         </entry>
1928                       </row>
1929                       <row>
1930                         <entry>
1931                           <para>Display</para>
1932                         </entry>
1933                         <entry>
1934                           <para>0</para>
1935                         </entry>
1936                       </row>
1937                       <row>
1938                         <entry>
1939                           <para>Level</para>
1940                         </entry>
1941                         <entry>
1942                           <para>30</para>
1943                         </entry>
1944                       </row>
1945                       <row>
1946                         <entry>
1947                           <para>Directory_</para>
1948                         </entry>
1949                         <entry>
1950                           <para> </para>
1951                         </entry>
1952                       </row>
1953                       <row>
1954                         <entry>
1955                           <para>Attributes</para>
1956                         </entry>
1957                         <entry>
1958                           <para>8</para>
1959                         </entry>
1960                       </row>
1961                     </tbody>
1962                   </tgroup>
1963                 </informaltable>
1964                 <para>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.</para>
1965                 <para>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).</para>
1966                 <para>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.</para>
1967               </listitem>
1968             </orderedlist>
1969           </listitem>
1970           <listitem>
1971             <para>Join the component and the feature.</para>
1972             <orderedlist>
1973               <listitem>
1974                 <para>Select the 'FeatureComponents' table.</para>
1975               </listitem>
1976               <listitem>
1977                 <para>Add a new row with the following values:</para>
1978                 <informaltable frame='all'>
1979                   <tgroup rowsep='1' align='left' colsep='1' cols='2'>
1980                     <colspec colwidth='90pt' colname='c1' />
1981                     <colspec colwidth='312pt' colname='c2' />
1982                     <tbody>
1983                       <row>
1984                         <entry>
1985                           <para>Feature</para>
1986                         </entry>
1987                         <entry>
1988                           <para>fea_my_CellServDB</para>
1989                         </entry>
1990                       </row>
1991                       <row>
1992                         <entry>
1993                           <para>Component</para>
1994                         </entry>
1995                         <entry>
1996                           <para>cmf_my_CellServDB</para>
1997                         </entry>
1998                       </row>
1999                     </tbody>
2000                   </tgroup>
2001                 </informaltable>
2002               </listitem>
2003             </orderedlist>
2004           </listitem>
2005           <listitem>
2006             <para>Add an entry to the 'File' table.</para>
2007             <orderedlist>
2008               <listitem>
2009                 <para>Select the 'File' table.</para>
2010               </listitem>
2011               <listitem>
2012                 <para>Add a new row with the following values:</para>
2013                 <informaltable frame='all'>
2014                   <tgroup rowsep='1' align='left' colsep='1' cols='2'>
2015                     <colspec colwidth='91pt' colname='c1' />
2016                     <colspec colwidth='311pt' colname='c2' />
2017                     <tbody>
2018                       <row>
2019                         <entry>
2020                           <para>File</para>
2021                         </entry>
2022                         <entry>
2023                           <para>fil_my_CellServDB</para>
2024                         </entry>
2025                       </row>
2026                       <row>
2027                         <entry>
2028                           <para>Component_</para>
2029                         </entry>
2030                         <entry>
2031                           <para>cmf_my_CellServDB</para>
2032                         </entry>
2033                       </row>
2034                       <row>
2035                         <entry>
2036                           <para>FileName</para>
2037                         </entry>
2038                         <entry>
2039                           <para>CellServDB</para>
2040                         </entry>
2041                       </row>
2042                       <row>
2043                         <entry>
2044                           <para>FileSize</para>
2045                         </entry>
2046                         <entry>
2047                           <para>(enter file size here)</para>
2048                         </entry>
2049                       </row>
2050                       <row>
2051                         <entry>
2052                           <para>Attributes</para>
2053                         </entry>
2054                         <entry>
2055                           <para>8192</para>
2056                         </entry>
2057                       </row>
2058                       <row>
2059                         <entry>
2060                           <para>Sequence</para>
2061                         </entry>
2062                         <entry>
2063                           <para>1000</para>
2064                         </entry>
2065                       </row>
2066                     </tbody>
2067                   </tgroup>
2068                 </informaltable>
2069                 <para>                (leave other fields blank)</para>
2070                 <para>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.</para>
2071                 <para>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.</para>
2072               </listitem>
2073             </orderedlist>
2074           </listitem>
2075           <listitem>
2076             <para>Set a media source for the file.</para>
2077             <orderedlist>
2078               <listitem>
2079                 <para>Select the 'Media' table.</para>
2080               </listitem>
2081               <listitem>
2082                 <para>Add a row with the following values :</para>
2083                 <informaltable frame='all'>
2084                   <tgroup rowsep='1' align='left' colsep='1' cols='2'>
2085                     <colspec colwidth='93pt' colname='c1' />
2086                     <colspec colwidth='309pt' colname='c2' />
2087                     <tbody>
2088                       <row>
2089                         <entry>
2090                           <para>DiskId</para>
2091                         </entry>
2092                         <entry>
2093                           <para>2</para>
2094                         </entry>
2095                       </row>
2096                       <row>
2097                         <entry>
2098                           <para>LastSequence</para>
2099                         </entry>
2100                         <entry>
2101                           <para>1000</para>
2102                         </entry>
2103                       </row>
2104                     </tbody>
2105                   </tgroup>
2106                 </informaltable>
2107                 <para>                (leave other fields blank)</para>
2108                 <para>The sequence number of 1000 designates this as the media source for the newly added file.
2109         </para>
2110               </listitem>
2111             </orderedlist>
2112           </listitem>
2113         </orderedlist>
2114         <section>
2115           <title id='MSI_Configuration_File_Components'>7.2.3.1 Components for Configuration Files</title>
2116           <para>CellServDB: 'cpf_CellServDB' (ID {D5BA4C15-DBEC-4292-91FC-B54C30F24F2A})</para>
2117         </section>
2118       </section>
2119       <section>
2120         <title id='MSI_Adding_Domain_Specific_Registry_Keys'>7.2.4 Adding Domain Specific Registry Keys</title>
2121         <para>Following is an example for adding domain specific registry keys.</para>
2122         <para>    Refer to
2123           <link linkend='appendix_a'>Appendix A</link> section 2.1 for more information.
2124
2125
2126
2127         </para>
2128         <para>    Columns that are unspecified should be left empty.</para>
2129         <para>    We create a new feature and component to hold the new registry keys.</para>
2130         <informaltable frame='all'>
2131           <tgroup rowsep='1' align='left' colsep='1' cols='1'>
2132             <colspec colwidth='448pt' colname='c1' />
2133             <tbody>
2134               <row>
2135                 <entry>
2136                   <para>    'Feature' table:</para>
2137                 </entry>
2138               </row>
2139               <row>
2140                 <entry>
2141                   <para>            (new row)
2142             Feature            : 'feaDomainKeys'
2143             Feature Parent : 'feaClient'
2144             Display           : 0
2145             Level               : 30
2146             Attributes        : 10</para>
2147                 </entry>
2148               </row>
2149               <row>
2150                 <entry>
2151                   <para>    'Component' table:</para>
2152                 </entry>
2153               </row>
2154               <row>
2155                 <entry>
2156                   <para>            (new row)
2157             Component     : 'rcm_DomainKeys'
2158             ComponentId  : '{4E3FCBF4-8BE7-40B2-A108-C47CF743C627}'
2159             Directory         : 'TARGETDIR'
2160             Attributes        : 4
2161             KeyPath          : 'reg_domkey0'</para>
2162                 </entry>
2163               </row>
2164               <row>
2165                 <entry>
2166                   <para>    'FeatureComponents' table:</para>
2167                 </entry>
2168               </row>
2169               <row>
2170                 <entry>
2171                   <para>            (new row)
2172             Feature            : 'feaDomainKeys'
2173             Component     : 'rcm_DomainKeys'</para>
2174                 </entry>
2175               </row>
2176               <row>
2177                 <entry>
2178                   <para>    'Registry' table:</para>
2179                 </entry>
2180               </row>
2181               <row>
2182                 <entry>
2183                   <para>            (new row)
2184             Registry          : 'reg_domkey0'
2185             Root                : 2
2186             Key                 : 'SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain'
2187             Component     : 'rcm_DomainKeys'</para>
2188                 </entry>
2189               </row>
2190               <row>
2191                 <entry>
2192                   <para>            (new row)
2193             Registry          : 'reg_domkey1'
2194             Root                : 2
2195             Key                 : 'SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain'
2196             Name              : '*'
2197             Component     : 'rcm_DomainKeys'</para>
2198                 </entry>
2199               </row>
2200               <row>
2201                 <entry>
2202                   <para>            (new row)
2203             Registry          : 'reg_domkey2'
2204             Root                : 2
2205             Key                 : 'SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\ATHENA.MIT.EDU'
2206             Name              : '*'
2207             Component     : 'rcm_DomainKeys'</para>
2208                 </entry>
2209               </row>
2210               <row>
2211                 <entry>
2212                   <para>            (new row)
2213             Registry          : 'reg_domkey3'
2214             Root                : 2
2215             Key                 : 'SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\ATHENA.MIT.EDU'
2216             Name              : 'LogonOptions'
2217             Value              : 1
2218             Component     : 'rcm_DomainKeys'</para>
2219                 </entry>
2220               </row>
2221               <row>
2222                 <entry>
2223                   <para>            (new row)
2224             Registry          : 'reg_domkey4'
2225             Root                : 2
2226             Key                 : SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST'
2227             Name              : '*'
2228             Component     : 'rcm_DomainKeys'</para>
2229                 </entry>
2230               </row>
2231               <row>
2232                 <entry>
2233                   <para>            (new row)
2234             Registry          : 'reg_domkey5'
2235             Root                : 2
2236             Key                 : 'SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST'
2237             Name              : 'LogonOptions'
2238             Value              : 0
2239             Component     : 'rcm_DomainKeys'</para>
2240                 </entry>
2241               </row>
2242               <row>
2243                 <entry>
2244                   <para>            (new row)
2245             Registry          : 'reg_domkey6'
2246             Root                : 2
2247             Key                 : 'SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST'
2248             Name              : 'FailLoginsSilently'
2249             Value              : 1
2250             Component     : 'rcm_DomainKeys'</para>
2251                 </entry>
2252               </row>
2253             </tbody>
2254           </tgroup>
2255         </informaltable>
2256         <para> </para>
2257         <para>The example adds domain specific keys for 'ATHENA.MIT.EDU' (enable integrated logon) and 'LOCALHOST' (disable integrated logon and fail logins silently).</para>
2258       </section>
2259       <section>
2260         <title id='MSI_Adding_Site_Specific_Freelance_Registry_Keys'>7.2.5 Adding Site Specific Freelance Registry Keys</title>
2261         <para>Following is an example for adding site specific Freelance registry keys to pre-populate the Mountpoints and Symlinks in the fake root.afs volume.</para>
2262         <para>    Columns that are unspecified should be left empty.</para>
2263         <para>    We create a new feature and component to hold the new registry keys.</para>
2264         <informaltable frame='all'>
2265           <tgroup rowsep='1' align='left' colsep='1' cols='1'>
2266             <colspec colwidth='447pt' colname='c1' />
2267             <tbody>
2268               <row>
2269                 <entry>
2270                   <para>    'Feature' table:</para>
2271                 </entry>
2272               </row>
2273               <row>
2274                 <entry>
2275                   <para>            (new row)
2276             Feature            : 'feaFreelanceKeys'
2277             Feature Parent : 'feaClient'
2278             Display           : 0
2279             Level               : 30
2280             Attributes        : 10</para>
2281                 </entry>
2282               </row>
2283               <row>
2284                 <entry>
2285                   <para>    'Component' table:</para>
2286                 </entry>
2287               </row>
2288               <row>
2289                 <entry>
2290                   <para>            (new row)
2291             Component     : 'rcm_FreelanceKeys'
2292             ComponentId  : '{4E3B3CBF4-9AE7-40C3-7B09-C48CF842C583}'
2293             Directory         : 'TARGETDIR'
2294             Attributes        : 4
2295             KeyPath          : 'reg_freekey0'</para>
2296                 </entry>
2297               </row>
2298               <row>
2299                 <entry>
2300                   <para>    'FeatureComponents' table:</para>
2301                 </entry>
2302               </row>
2303               <row>
2304                 <entry>
2305                   <para>            (new row)
2306             Feature            : 'feaFreelanceKeys'
2307             Component     : 'rcm_FreelanceKeys'</para>
2308                 </entry>
2309               </row>
2310               <row>
2311                 <entry>
2312                   <para>    'Registry' table:</para>
2313                 </entry>
2314               </row>
2315               <row>
2316                 <entry>
2317                   <para>            (new row)
2318             Registry          : 'reg_freekey0'
2319             Root                : 2
2320             Key                 : 'SOFTWARE\OpenAFS\Client\Freelance'
2321             Component     : 'rcm_FreelanceKeys'</para>
2322                 </entry>
2323               </row>
2324               <row>
2325                 <entry>
2326                   <para>            (new row)
2327             Registry          : 'reg_freekey1'
2328             Root                : 2
2329             Key                 : 'SOFTWARE\OpenAFS\Client\Freelance'
2330             Name              : '0'
2331             Value              : 'athena.mit.edu#athena.mit.edu:root.cell.'
2332             Component     : 'rcm_FreelanceKeys'</para>
2333                 </entry>
2334               </row>
2335               <row>
2336                 <entry>
2337                   <para>            (new row)
2338             Registry          : 'reg_freekey2'
2339             Root                : 2
2340             Key                 : 'SOFTWARE\OpenAFS\Client\Freelance'
2341             Name              : '1'
2342             Value              : '.athena.mit.edu%athena.mit.edu:root.cell.'
2343             Component     : 'rcm_FreelanceKeys'</para>
2344                 </entry>
2345               </row>
2346               <row>
2347                 <entry>
2348                   <para>            (new row)
2349             Registry          : 'reg_freekey3'
2350             Root                : 2
2351             Key                 : 'SOFTWARE\OpenAFS\Client\Freelance\Symlinks'
2352             Component     : 'rcm_FreelanceKeys'</para>
2353                 </entry>
2354               </row>
2355               <row>
2356                 <entry>
2357                   <para>            (new row)
2358             Registry          : 'reg_freekey4'
2359             Root                : 2
2360             Key                 : 'SOFTWARE\OpenAFS\Client\Freelance\Symlinks'
2361             Name              : '0'
2362             Value              : 'athena:athena.mit.edu.'
2363             Component     : 'rcm_FreelanceKeys'</para>
2364                 </entry>
2365               </row>
2366               <row>
2367                 <entry>
2368                   <para>            (new row)
2369             Registry          : 'reg_freekey5'
2370             Root                : 2
2371             Key                 : 'SOFTWARE\OpenAFS\Client\Freelance\Symlinks'
2372             Name              : '1'
2373             Value              : '.athena:.athena.mit.edu.'
2374             Component     : 'rcm_FreelanceKeys'</para>
2375                 </entry>
2376               </row>
2377             </tbody>
2378           </tgroup>
2379         </informaltable>
2380         <para>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.
2381         </para>
2382       </section>
2383     </section>
2384     <section>
2385       <title id='Additional_Resources'>7.3 Additional Resources</title>
2386       <para>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.</para>
2387       <para>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 :</para>
2388       <para>http://msdn.microsoft.com/library/en-us/msi/setup/using_transforms_to_add_resources.asp</para>
2389       <para>A sample walkthrough of adding a new configuration file is in section 2.3.</para>
2390       <para>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.</para>
2391       <para>If you are creating new components, retain the same component GUID when creating new transforms against new releases of the OpenAFS MSI package.</para>
2392       <para>After making the adjustments to the MSI database using ORCA.EXE you can generate a transform with MSITRAN.EXE as follows :</para>
2393       <para>(Modified MSI package is 'openafs-en_US_new.msi' and the original MSI package is 'openafs-en_US.msi'.  Generates transform 'openafs-transform.mst')</para>
2394       <para>    &gt; msitran.exe -g openafs-en_US.msi openafs-en_US_new.msi openafs-transform.mst</para>
2395       <para>See the Platform SDK documentation for information on command line options for MSITRAN.EXE.</para>
2396     </section>
2397     <section>
2398       <title id='Upgrades'>7.4. Upgrades</title>
2399       <para>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.</para>
2400       <para>Versions of OpenAFS that are upgraded by the MSI package are:</para>
2401       <orderedlist>
2402         <listitem>
2403           <para>OpenAFS MSI package</para>
2404           <para>Upgrade code {6823EEDD-84FC-4204-ABB3-A80D25779833}</para>
2405           <para>Up to current release</para>
2406         </listitem>
2407         <listitem>
2408           <para>MIT's Transarc AFS MSI package</para>
2409           <para>Upgrade code {5332B94F-DE38-4927-9EAB-51F4A64193A7}</para>
2410           <para>Up to version 3.6.2</para>
2411         </listitem>
2412         <listitem>
2413           <para>OpenAFS NSIS package</para>
2414           <para>All versions</para>
2415         </listitem>
2416       </orderedlist>
2417       <para>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.</para>
2418       <para>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.</para>
2419       <para>When performing an upgrade with msiexec.exe execute the MSI with the repair options "vomus".</para>
2420     </section>
2421   </chapter>
2422   <chapter id='appendix_a' label='Appendix A'>
2423     <title id='Registry_Values'>Registry Values</title>
2424     <section>
2425       <title id='Service_Parameters'>A.1. Service parameters</title>
2426       <para>The service parameters primarily affect the behavior of the AFS client service (afsd_service.exe).</para>
2427       <section>
2428         <title id='Regkey_TransarcAFSDaemon_Parameters'>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</title>
2429         <section>
2430             <title id='Regkey_TransarcAFSDaemon_Parameters_LanAdapter'>Value: LanAdapter</title>
2431             <indexterm><primary>LANadapter</primary></indexterm>
2432             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2433             <para>Type: DWORD</para>
2434             <para>Default: -1</para>
2435             <para>Variable: LANadapter</para>
2436             <para>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'.</para>
2437         </section>
2438         <section>
2439             <title id='Regkey_TransarcAFSDaemon_Parameters_CacheSize'><anchor id='Value_CacheSize' />Value: CacheSize</title>
2440             <indexterm><primary>CacheSize</primary></indexterm>
2441             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2442             <para>Type: DWORD</para>
2443             <para>Default: 98304 (CM_CONFIGDEFAULT_CACHESIZE)</para>
2444             <para>Variable: cm_initParams.cacheSize</para>
2445             <para>Size of the AFS cache in 1k blocks.</para>
2446         </section>
2447         <section>
2448             <title id='Regkey_TransarcAFSDaemon_Parameters_ChunkSize'>Value: ChunkSize</title>
2449             <indexterm><primary>ChunkSize</primary></indexterm>
2450             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2451                   <para>Type: DWORD</para>
2452                   <para>Default: 20 (CM_CONFIGDEFAULT_CHUNKSIZE)</para>
2453                   <para>Variable: cm_logChunkSize (cm_chunkSize = 1 &lt;&lt; cm_logChunkSize)</para>
2454                   <para>Size of chunk for reading and writing. Actual chunk size is 2^cm_logChunkSize. The default chunk size is therefore 1 MB.</para>
2455                 </section>
2456                 <section>
2457                 <title id='Regkey_TransarcAFSDaemon_Parameters_Daemons'>Value: Daemons</title>
2458                   <para>
2459                     <emphasis>Value: Daemons</emphasis>
2460                   </para>
2461                   <para>Type: DWORD</para>
2462                   <para>Default: 4 (CM_CONFIGDEFAULT_DAEMONS)</para>
2463                   <para>Variable: numBkgD</para>
2464                   <para>Number of background daemons (number of threads of cm_BkgDaemon). (see cm_BkgDaemon in cm_daemon.c)</para>
2465                 </section>
2466
2467
2468                 <section>
2469             <title id='Regkey_TransarcAFSDaemon_Parameters_ServerThreads'>Value: ServerThreads</title>
2470             <indexterm><primary>ServerThreads</primary></indexterm>
2471             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2472                   <para>Type: DWORD</para>
2473                   <para>Default: 25 (CM_CONFIGDEFAULT_SVTHREADS)</para>
2474                   <para>Variable: numSvThreads</para>
2475                   <para>Number of SMB server threads (number of threads of smb_Server). (see smb_Server in smb.c).</para>
2476                 </section>
2477
2478
2479                 <section>
2480             <title id='Regkey_TransarcAFSDaemon_Parameters_Stats'>Value: Stats</title>
2481             <indexterm><primary>Stats</primary></indexterm>
2482                     <anchor id='Value_Stats' />
2483             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2484                   <para>Type: DWORD</para>
2485                   <para>Default: 10000 (CM_CONFIGDEFAULT_STATS)</para>
2486                   <para>Variable: cm_initParams.nStatCaches</para>
2487                   <para>Cache configuration.</para>
2488                 </section>
2489
2490
2491                 <section>
2492             <title id='Regkey_TransarcAFSDaemon_Parameters_Volumes'>Value: Volumes</title>
2493             <indexterm><primary>Volumes</primary></indexterm>
2494             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2495                   <para>
2496                        Type: DWORD
2497                   </para>
2498                   <para>
2499 Default:  3333 (CM_CONFIGDEFAULT_STATS/3)
2500                   </para>
2501                   <para>
2502 Variable: cm_initParams.nVolumes</para>
2503                   <para>
2504                     <emphasis>Cache configuration.</emphasis>
2505                   </para>
2506                 </section>
2507
2508
2509                 <section>
2510             <title id='Regkey_TransarcAFSDaemon_Parameters_Cells'>Value: Cells</title>
2511             <indexterm><primary>Cells</primary></indexterm>
2512             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2513                   <para>Type: DWORD
2514                   </para>
2515                   <para>
2516 Default: 1024 (CM_CONFIGDEFAULT_CELLS)
2517                   </para>
2518                   <para>
2519 Variable: cm_initParams.nCells</para>
2520                   <para>
2521                     <emphasis>Cache configuration.</emphasis>
2522                   </para>
2523                 </section>
2524
2525
2526                 <section>
2527             <title id='Regkey_TransarcAFSDaemon_Parameters_LogoffPreserveTokens'>Value: LogoffPreserveTokens</title>
2528             <indexterm><primary>LogoffPreserveTokens</primary></indexterm>
2529                     <anchor id='Value_LogoffPreserveTokens' />
2530             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2531                   <para>Type: DWORD {1,0}
2532                   </para>
2533                   <para>
2534 Default : 0</para>
2535                   <para>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.</para>
2536                 </section>
2537
2538
2539                 <section>
2540             <title id='Regkey_TransarcAFSDaemon_Parameters_RootVolume'>Value: RootVolume</title>
2541             <indexterm><primary>RootVolume</primary></indexterm>
2542             <indexterm><primary>root.afs</primary></indexterm>
2543             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2544                   <para>Type: REG_SZ
2545                   </para>
2546                   <para>
2547 Default: "root.afs"
2548                   </para>
2549                   <para>
2550 Variable: cm_rootVolumeName</para>
2551                   <para>Root volume name.</para>
2552                 </section>
2553
2554
2555                 <section>
2556             <title id='Regkey_TransarcAFSDaemon_Parameters_MountRoot'>Value: MountRoot</title>
2557             <indexterm><primary>MountRoot</primary></indexterm>
2558             <indexterm><primary>/afs</primary></indexterm>
2559                     <anchor id='Value_Mountroot' />
2560             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2561                   <para>Type: REG_SZ
2562                   </para>
2563                   <para>
2564 Default: "/afs"
2565                   </para>
2566                   <para>
2567 Variable: cm_mountRoot</para>
2568                   <para>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)</para>
2569                 </section>
2570
2571
2572                 <section>
2573             <title id='Regkey_TransarcAFSDaemon_Parameters_CachePath'>Value: CachePath</title>
2574             <indexterm><primary>CachePath</primary></indexterm>
2575             <indexterm><primary>AFSCache</primary></indexterm>
2576                     <anchor id='Value_CachePath' />
2577             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2578                   <para>Type: REG_SZ or REG_EXPAND_SZ
2579                   </para>
2580                   <para>
2581 Default: "%TEMP%\AFSCache"
2582                   </para>
2583                   <para>
2584 Variable: cm_CachePath</para>
2585                   <para>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.</para>
2586                 </section>
2587
2588
2589                 <section>
2590             <title id='Regkey_TransarcAFSDaemon_Parameters_NonPersistentCaching'>Value: NonPersistentCaching</title>
2591             <indexterm><primary>NonPersistentCaching</primary></indexterm>
2592                     <anchor id='Value_NonPersistentCaching' />
2593             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2594                   <para>Type: DWORD [0..1]
2595                   </para>
2596                   <para>
2597 Default: 0
2598                   </para>
2599                   <para>
2600 Variable: buf_CacheType</para>
2601                   <para>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 disables the use of persistent caching and the ability to maintain a single UUID for the AFS client service across restarts.</para>
2602                 </section>
2603
2604
2605                 <section>
2606             <title id='Regkey_TransarcAFSDaemon_Parameters_ValidateCache'>Value: ValidateCache</title>
2607             <indexterm><primary>ValidateCache</primary></indexterm>
2608             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2609                   <para>Type: DWORD [0..2]
2610                   </para>
2611                   <para>
2612 Default: 1
2613                   </para>
2614                   <para>
2615 Variable: buf_CacheType</para>
2616                   <para>This value determines if and when persistent cache validation is performed.</para>
2617                   <para>
2618                     <simplelist>
2619                       <member>0 - Validation is disabled</member>
2620                       <member>1 - Validation is performed at startup</member>
2621                       <member>2 - Validation is performed at shutdown</member>
2622                     </simplelist>
2623                   </para>
2624                 </section>
2625
2626
2627                 <section>
2628             <title id='Regkey_TransarcAFSDaemon_Parameters_TrapOnPanic'>Value: TrapOnPanic</title>
2629             <indexterm><primary>TrapOnPanic</primary></indexterm>
2630             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2631                   <para>Type: DWORD {1,0}
2632                   </para>
2633                   <para>
2634 Default: 0
2635                   </para>
2636                   <para>
2637 Variable: traceOnPanic</para>
2638                   <para>Issues a breakpoint in the event of a panic. (breakpoint: _asm int 3).</para>
2639                 </section>
2640
2641
2642                 <section>
2643             <title id='Regkey_TransarcAFSDaemon_Parameters_NetbiosName'>Value: NetbiosName</title>
2644             <indexterm><primary>NetbiosName</primary></indexterm>
2645             <indexterm><primary>SMB Server Name</primary></indexterm>
2646             <indexterm><primary>\\AFS</primary></indexterm>
2647                     <anchor id='Value_NetbiosName' />
2648             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2649                   <para>Type: REG_EXPAND_SZ
2650                   </para>
2651                   <para>
2652 Default: "AFS"
2653                   </para>
2654                   <para>
2655 Variable: cm_NetbiosName</para>
2656                   <para>Specifies the NetBIOS name to be used when binding to a Loopback adapter.  To provide the old behavior specify a value of  "%COMPUTERNAME%-AFS".</para>
2657                 </section>
2658
2659
2660                 <section>
2661             <title id='Regkey_TransarcAFSDaemon_Parameters_IsGateway'>Value: IsGateway</title>
2662             <indexterm><primary>IsGateway</primary></indexterm>
2663             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2664                   <para>Type: DWORD {1,0}
2665                   </para>
2666                   <para>
2667 Default: 0
2668                   </para>
2669                   <para>
2670 Variable: isGateway</para>
2671                   <para>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.</para>
2672                   <para>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.</para>
2673                 </section>
2674
2675
2676                 <section>
2677             <title id='Regkey_TransarcAFSDaemon_Parameters_ReportSessionStartups'>Value: ReportSessionStartups</title>
2678             <indexterm><primary>ReportSessionStartups</primary></indexterm>
2679             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2680                   <para>Type: DWORD {1,0}
2681                   </para>
2682                   <para>
2683 Default: 0
2684                   </para>
2685                   <para>
2686 Variable: reportSessionStartups</para>
2687                   <para>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.</para>
2688                 </section>
2689
2690
2691                 <section>
2692             <title id='Regkey_TransarcAFSDaemon_Parameters_TraceBufferSize'>Value: TraceBufferSize</title>
2693             <indexterm><primary>TraceBufferSize</primary></indexterm>
2694                     <anchor id='Value_TraceBufferSize' />
2695             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2696                   <para>Type: DWORD
2697                   </para>
2698                   <para>
2699 Default: 10000 (CM_CONFIGDEFAULT_TRACEBUFSIZE)
2700                   </para>
2701                   <para>
2702 Variable: traceBufSize</para>
2703                   <para>Number of entries to keep in trace log.</para>
2704                 </section>
2705
2706
2707                 <section>
2708             <title id='Regkey_TransarcAFSDaemon_Parameters_SysName'>Value: SysName</title>
2709             <indexterm><primary>SysName</primary></indexterm>
2710                     <anchor id='Value_SysName' />
2711             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2712                   <para>Type: REG_SZ
2713                   </para>
2714                   <para>
2715 Default: &quot;x86_win32 i386_w2k i386_nt40&quot; (X86)
2716                   </para>
2717                   <para>
2718 &quot;amd64_win64 x86_win32 i386_w2k&quot; (AMD64)
2719                   </para>
2720                   <para>
2721 Variable: cm_sysName</para>
2722                   <para>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.</para>
2723                 </section>
2724
2725
2726                 <section>
2727             <title id='Regkey_TransarcAFSDaemon_Parameters_SecurityLevel'>Value: SecurityLevel</title>
2728             <indexterm><primary>SecurityLevel</primary></indexterm>
2729             <indexterm><primary>fs setcrypt</primary></indexterm>
2730                     <anchor id='Value_SecurityLevel' />
2731             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2732                   <para>Type: DWORD {1,0}
2733                   </para>
2734                   <para>
2735 Default: 0
2736                   </para>
2737                   <para>
2738 Variable: cryptall</para>
2739                   <para>Enables encryption on RX calls.</para>
2740                 </section>
2741
2742
2743                 <section>
2744             <title id='Regkey_TransarcAFSDaemon_Parameters_UseDNS'>Value: UseDNS</title>
2745             <indexterm><primary>UseDNS</primary></indexterm>
2746             <indexterm><primary>AFSDB DNS records</primary></indexterm>
2747             <indexterm><primary>SRV DNS records</primary></indexterm>
2748                     <anchor id='Value_UseDNS' />
2749             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2750                   <para>Type: DWORD {1,0}
2751                   </para>
2752                   <para>
2753 Default: 1
2754                   </para>
2755                   <para>
2756 Variable: cm_dnsEnabled</para>
2757                   <para>Enables resolving volservers using AFSDB DNS and SRV DNS queries.</para>
2758                 </section>
2759
2760
2761                 <section>
2762             <title id='Regkey_TransarcAFSDaemon_Parameters_FreelanceClient'>Value: FreelanceClient</title>
2763             <indexterm><primary>FreelanceClient</primary></indexterm>
2764             <indexterm><primary>dynroot</primary></indexterm>
2765                     <anchor id='Value_FreelanceClient' />
2766             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2767                   <para>Type: DWORD {1,0}
2768                   </para>
2769                   <para>
2770 Default: 0
2771                   </para>
2772                   <para>
2773 Variable: cm_freelanceEnabled</para>
2774                   <para>Enables freelance client.</para>
2775                 </section>
2776
2777
2778                 <section>
2779             <title id='Regkey_TransarcAFSDaemon_Parameters_HideDotFiles'>Value: HideDotFiles</title>
2780             <indexterm><primary>HideDotFiles</primary></indexterm>
2781                     <anchor id='Value_HideDotFiles' />
2782             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2783                   <para>Type: DWORD {1,0}
2784                   </para>
2785                   <para>
2786 Default: 1
2787                   </para>
2788                   <para>
2789 Variable: smb_hideDotFiles</para>
2790                   <para>Enables marking dotfiles with the hidden attribute.  Dot files are files whose name starts with a period (excluding "." and "..").</para>
2791                 </section>
2792
2793
2794                 <section>
2795             <title id='Regkey_TransarcAFSDaemon_Parameters_MaxMpxRequests'>Value: MaxMpxRequests</title>
2796             <indexterm><primary>MaxMpxRequests</primary></indexterm>
2797             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2798                   <para>Type: DWORD
2799                   </para>
2800                   <para>
2801 Default: 50
2802                   </para>
2803                   <para>
2804 Variable: smb_maxMpxRequests</para>
2805                   <para>Maximum number of multiplexed SMB requests that can be made.</para>
2806                 </section>
2807
2808
2809                 <section>
2810             <title id='Regkey_TransarcAFSDaemon_Parameters_MaxVCPerServer'>Value: MaxVCPerServer</title>
2811             <indexterm><primary>MaxVCPerServer</primary></indexterm>
2812             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2813                   <para>Type: DWORD
2814                   </para>
2815                   <para>
2816 Default: 100
2817                   </para>
2818                   <para>
2819 Variable: smb_maxVCPerServer</para>
2820                   <para>Maximum number of SMB virtual circuits.</para>
2821                 </section>
2822
2823
2824                 <section>
2825             <title id='Regkey_TransarcAFSDaemon_Parameters_Cell'>Value: Cell</title>
2826             <indexterm><primary>Cell</primary></indexterm>
2827             <indexterm><primary>workstation cell name</primary></indexterm>
2828                     <anchor id='Value_Cell' />
2829             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2830                   <para>Type: REG_SZ
2831                   </para>
2832                   <para>
2833 Default: &lt;none&gt;
2834                   </para>
2835                   <para>
2836 Variable: rootCellName</para>
2837                   <para>Name of root cell (the cell from which root.afs should be mounted in \\afs\all).</para>
2838                 </section>
2839
2840
2841                 <section>
2842             <title id='Regkey_TransarcAFSDaemon_Parameters_RxEnablePeerStats'>Value: RxEnablePeerStats</title>
2843             <indexterm><primary>RxEnablePeerStats</primary></indexterm>
2844             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2845                   <para>Type: DWORD {0, 1}
2846                   </para>
2847                   <para>
2848 Default: 1
2849                   </para>
2850                   <para>
2851 Variable: rx_enable_peer_stats</para>
2852                   <para>When set to 1, the Rx library collects peer statistics.</para>
2853                   <para> </para>
2854                 </section>
2855
2856
2857                 <section>
2858             <title id='Regkey_TransarcAFSDaemon_Parameters_RxEnableProcessStats'>Value: RxEnableProcessStats</title>
2859             <indexterm><primary>RxEnableProcessStats</primary></indexterm>
2860             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2861                   <para>Type: DWORD {0, 1}
2862                   </para>
2863                   <para>
2864 Default: 1
2865                   </para>
2866                   <para>
2867 Variable: rx_extra_process_stats</para>
2868                   <para>When set to 1, the Rx library collects process statistics.</para>
2869                   <para> </para>
2870                 </section>
2871
2872
2873                 <section>
2874             <title id='Regkey_TransarcAFSDaemon_Parameters_RxExtraPackets'>Value: RxExtraPackets</title>
2875             <indexterm><primary>RxExtraPackets</primary></indexterm>
2876             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2877                   <para>Type: DWORD
2878                   </para>
2879                   <para>
2880 Default: 120
2881                   </para>
2882                   <para>
2883 Variable: rx_extraPackets</para>
2884                   <para>When set, this number of extra Rx packets are allocated at startup.</para>
2885                 </section>
2886
2887
2888                 <section>
2889             <title id='Regkey_TransarcAFSDaemon_Parameters_RxMaxMTU'>Value: RxMaxMTU</title>
2890             <indexterm><primary>RxMaxMTU</primary></indexterm>
2891                     <anchor id='Value_RxMaxMTU' />
2892             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2893                   <para>Type: DWORD
2894                   </para>
2895                   <para>
2896 Default: 0
2897                   </para>
2898                   <para>
2899 Variable: rx_mtu</para>
2900                   <para>If set to anything other than 0, that value is used as the maximum send and receive MTU supported by the RX interface.</para>
2901                   <para>In order to enable OpenAFS to operate across releases of the Cisco IPSec VPN client prior than 5.0, this value must be set to 1264 or smaller.</para>
2902                 </section>
2903
2904
2905                 <section>
2906             <title id='Regkey_TransarcAFSDaemon_Parameters_RxNoJumbo'>Value: RxNoJumbo</title>
2907             <indexterm><primary>RxNoJumbo</primary></indexterm>
2908             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2909                   <para>Type: DWORD {0,1}
2910                   </para>
2911                   <para>
2912 Default: 0
2913                   </para>
2914                   <para>
2915 Variable: rx_nojumbo</para>
2916                   <para>If enabled, does not send or indicate that we are able to send or receive RX jumbograms.</para>
2917                 </section>
2918
2919
2920                 <section>
2921             <title id='Regkey_TransarcAFSDaemon_Parameters_ConnDeadTimeout'>Value: ConnDeadTimeout</title>
2922             <indexterm><primary>ConnDeadTimeout</primary></indexterm>
2923                     <anchor id='Value_ConnDeadTimeout' />
2924             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2925                   <para>
2926                      Type: DWORD
2927                   </para>
2928                   <para>
2929                      Default: 0 (seconds)
2930                   </para>
2931                   <para>
2932                      Variable: ConnDeadtimeout</para>
2933                   <para>When the value is 0, this setting is configured to be one-half the HardDeadTimeout value.</para>
2934                 </section>
2935
2936
2937                 <section>
2938             <title id='Regkey_TransarcAFSDaemon_Parameters_HardDeadTimeout'>Value: HardDeadTimeout</title>
2939             <indexterm><primary>HardDeadTimeout</primary></indexterm>
2940             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2941                   <para>
2942                      Type: DWORD
2943                   </para>
2944                   <para>
2945                      Default: 0 (seconds)
2946                   </para>
2947                   <para>
2948                      Variable: HardDeadtimeout</para>
2949                   <para>The Hard Dead Time is enforced to be at least double the ConnDeadTimeout.  The provides an opportunity for at least one retry. </para>
2950                   <para>The value 0 seconds means that the real timeout should be set to be equal to the minimum SMB timeout which can be configured in the registry at: </para>
2951                   <para></para>
2952                   <para>  [HKLM\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters]</para>
2953                   <para>    SessTimeout</para>
2954                   <para></para>
2955                   <para>If the minimum SMB timeout is not specified the value is 45 seconds.  See
2956                     <ulink url='http://support.microsoft.com/support/kb/articles/Q102/0/67.asp'>http://support.microsoft.com:80/support/kb/articles/Q102/0/67.asp</ulink>
2957                   </para>
2958                 </section>
2959
2960                 <section>
2961             <title id='Regkey_TransarcAFSDaemon_Parameters_IdleDeadTimeout'>Value: IdleDeadTimeout</title>
2962             <indexterm><primary>IdleDeadTimeout</primary></indexterm>
2963             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2964                   <para>
2965                      Type: DWORD
2966                   </para>
2967                   <para>
2968                         Default: 0 (seconds)
2969                   </para>
2970                   <para>
2971                         Variable: IdleDeadtimeout
2972                   </para>
2973                   <para>The Idle Dead Time determines how long the cache manager will wait for an RPC to complete when the service is responding that it is busy.
2974                         If the timeout occurs on a replicated object, the cache manager can choose to fail over to an alternate replica.
2975                         This value is typically the same as the ConnDeadTimeout. </para>
2976                 </section>
2977
2978
2979                 <section>
2980             <title id='Regkey_TransarcAFSDaemon_Parameters_NATPingInterval'>Value: NATPingInterval</title>
2981             <indexterm><primary>NATPingInterval</primary></indexterm>
2982             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
2983                   <para>
2984                      Type: DWORD
2985                   </para>
2986                   <para>
2987                         Default: 0 (seconds)
2988                   </para>
2989                   <para>
2990                         Variable: NatPingInterval
2991                   </para>
2992                   <para>
2993                      The NAT Ping Interval determines how frequently a low-level Rx ping packet is sent to
2994                      every file server using an anonymous connection.  The value 0 seconds disables the
2995                      functionality.  A non-zero value activates the NAT ping behavior.  This option can be
2996                      enabled on clients that access AFS file servers from behind a NAT or port mapping
2997                      firewall that maintains a short timeout on UDP port mappings.  In this case the AFS
2998                      cache manager may not receive AFS callbacks from the file server.  This registry value
2999                      should be set to a number of seconds shorter than the port mapping timeout period.
3000                      When there is no other information to go on, a value of 20 seconds can be used.
3001                   </para>
3002                 </section>
3003
3004
3005                 <section>
3006             <title id='Regkey_TransarcAFSDaemon_Parameters_TraceOption'>Value: TraceOption</title>
3007             <indexterm><primary>TraceOption</primary></indexterm>
3008                     <anchor id='Value_TraceOption' />
3009             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3010                   <para>Type: DWORD {0-15}
3011                   </para>
3012                   <para>
3013 Default: 0</para>
3014                   <para>Enables logging of debug output to the Windows Event Log.</para>
3015                   <para>Bit 0 enables logging of "Logon Events" processed by the Network Provider and Winlogon Event Notification Handler.  </para>
3016                   <para>Bit 1 enables logging of events captured by the AFS Client Service.</para>
3017                   <para>Bit 2 enables real-time viewing of "fs trace" logging with DbgView or similar tools.</para>
3018                   <para>Bit 3 enables "fs trace" logging on startup.</para>
3019                 </section>
3020
3021
3022                 <section>
3023             <title id='Regkey_TransarcAFSDaemon_Parameters_AllSubmount'>Value: AllSubmount</title>
3024             <indexterm><primary>AllSubmount</primary></indexterm>
3025             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3026                   <para>Type: DWORD {0, 1}
3027                   </para>
3028                   <para>
3029 Default: 1</para>
3030                   <para>Variable: allSubmount (smb.c)</para>
3031                   <para>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.</para>
3032                 </section>
3033
3034
3035                 <section>
3036             <title id='Regkey_TransarcAFSDaemon_Parameters_NoFindLanaByName'>Value: NoFindLanaByName</title>
3037             <indexterm><primary>NoFindLanaByName</primary></indexterm>
3038                     <anchor id='Value_NoFindLanaByName' />
3039             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3040                   <para>Type: DWORD {0, 1}
3041                   </para>
3042                   <para>
3043 Default: 0</para>
3044                   <para>Disables the attempt to identity the network adapter to use by looking for an adapter with a display name of "AFS".</para>
3045                 </section>
3046
3047
3048                 <section>
3049             <title id='Regkey_TransarcAFSDaemon_Parameters_MaxCPUs'>Value: MaxCPUs</title>
3050             <indexterm><primary>MaxCPUs</primary></indexterm>
3051             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3052                   <para>Type: DWORD {1..32} or {1..64} depending on the architecture
3053                   </para>
3054                   <para>
3055 Default: &lt;no default&gt;</para>
3056                   <para>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.  </para>
3057                 </section>
3058
3059
3060                 <section>
3061             <title id='Regkey_TransarcAFSDaemon_Parameters_SmbAuthType'>Value: SmbAuthType</title>
3062             <indexterm><primary>SMBAuthType</primary></indexterm>
3063                     <anchor id='Value_smbAuthType' />
3064             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3065                   <para>Type: DWORD {0..2}
3066                   </para>
3067                   <para>
3068 Default: 2</para>
3069                   <para>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:</para>
3070                   <para>0 = No authentication required
3071                   </para>
3072                   <para>
3073                     <simplelist>
3074                       <member>
3075 1 = NTLM authentication required
3076 </member>
3077                       <member>
3078 2 = Extended (GSS SPNEGO) authentication required
3079 </member>
3080                     </simplelist>
3081                   </para>
3082                   <para>
3083 The default is Extended authentication</para>
3084                 </section>
3085
3086
3087                 <section>
3088             <title id='Regkey_TransarcAFSDaemon_Parameters_MaxLogSize'>Value: MaxLogSize</title>
3089             <indexterm><primary>MaxLogSize</primary></indexterm>
3090                     <anchor id='Value_MaxLogSize' />
3091             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3092                   <para>Type: DWORD {0 .. MAXDWORD}
3093                   </para>
3094                   <para>
3095 Default: 100K</para>
3096                   <para>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.</para>
3097                 </section>
3098
3099
3100                 <section>
3101             <title id='Regkey_TransarcAFSDaemon_Parameters_FlushOnHibernate'>Value: FlushOnHibernate</title>
3102             <indexterm><primary>FlushOnHibernate</primary></indexterm>
3103             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3104                   <para>Type: DWORD {0,1}
3105                   </para>
3106                   <para>
3107 Default: 1</para>
3108                   <para>If set, flushes all volumes before the machine goes on hibernate or stand-by.</para>
3109                 </section>
3110
3111
3112                 <section>
3113             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckDownInterval'>Value: DaemonCheckDownInterval</title>
3114             <indexterm><primary>DaemonCheckDownInterval</primary></indexterm>
3115             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3116                   <para>Type: DWORD (seconds)
3117                   </para>
3118                   <para>
3119 Default: 180</para>
3120                   <para>This value controls how frequently the AFS cache manager probes servers that are marked as &quot;down&quot;.</para>
3121                 </section>
3122
3123
3124                 <section>
3125             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckUpInterval'>Value: DaemonCheckUpInterval</title>
3126             <indexterm><primary>DaemonCheckUpInterval</primary></indexterm>
3127             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3128                   <para>Type: DWORD (seconds)
3129                   </para>
3130                   <para>
3131 Default: 600</para>
3132                   <para>This value controls how frequently the AFS cache manager probes servers that are marked as &quot;up&quot;.</para>
3133                 </section>
3134
3135
3136                 <section>
3137             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckVolInterval'>Value: DaemonCheckVolInterval</title>
3138             <indexterm><primary>DaemonCheckVolInterval</primary></indexterm>
3139             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3140                   <para>Type: DWORD (seconds)
3141                   </para>
3142                   <para>
3143 Default: 3600</para>
3144                   <para>This value controls how frequently the AFS cache manager forces a reset on the existing volume database information.</para>
3145                 </section>
3146
3147
3148                 <section>
3149             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckCBInterval'>Value: DaemonCheckCBInterval</title>
3150             <indexterm><primary>DaemonCheckCBInterval</primary></indexterm>
3151             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3152                   <para>Type: DWORD (seconds)
3153                   </para>
3154                   <para>
3155 Default: 60</para>
3156                   <para>This value controls how frequently the AFS cache manager checks for callback invalidation.</para>
3157                 </section>
3158
3159
3160                 <section>
3161             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckLockInterval'>Value: DaemonCheckLockInterval</title>
3162             <indexterm><primary>DaemonCheckLockInterval</primary></indexterm>
3163             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3164                   <para>Type: DWORD (seconds)
3165                   </para>
3166                   <para>
3167 Default: 60</para>
3168                   <para>This value controls how frequently the AFS cache manager checks for invalid file locks.</para>
3169                 </section>
3170
3171
3172                 <section>
3173             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckTokenInterval'>Value: DaemonCheckTokenInterval</title>
3174             <indexterm><primary>DaemonCheckTokenInterval</primary></indexterm>
3175             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3176                   <para>Type: DWORD (seconds)
3177                   </para>
3178                   <para>
3179 Default: 180</para>
3180                   <para>This value controls how frequently the AFS cache manager checks for expired tokens.</para>
3181                 </section>
3182
3183
3184                 <section>
3185             <title id='Regkey_TransarcAFSDaemon_Parameters_DaemonCheckOfflineVolInterval'>Value: DaemonCheckOfflineVolInterval</title>
3186             <indexterm><primary>DaemonCheckOfflineVolInterval</primary></indexterm>
3187             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3188                   <para>Type: DWORD (seconds)
3189                   </para>
3190                   <para>
3191 Default: 600</para>
3192                   <para>This value controls how frequently the AFS cache manager checks offline volumes to see if they have come back online.  At the same time volumes which were determined to be busy have their state reset to online.</para>
3193                 </section>
3194
3195
3196                 <section>
3197             <title id='Regkey_TransarcAFSDaemon_Parameters_CallBackPort'>Value: CallBackPort</title>
3198             <indexterm><primary>CallBackPort</primary></indexterm>
3199             <indexterm><primary>port 7001/udp</primary></indexterm>
3200             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3201                   <para>Type: DWORD
3202                   </para>
3203                   <para>
3204 Default: 7001</para>
3205                   <para>This value specifies which port number should be used for receiving callbacks from the file server.  The standard AFS Callback port is 7001.  Alternative values can be useful if the client is behind a NAT and a permanent port mapping for the client is being configured.</para>
3206                 </section>
3207
3208
3209                 <section>
3210             <title id='Regkey_TransarcAFSDaemon_Parameters_EnableServerLocks'>Value: EnableServerLocks</title>
3211             <indexterm><primary>EnableServerLocks</primary></indexterm>
3212                     <anchor id='Value_EnableServerLocks' />
3213             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3214                   <para>Type: DWORD {0, 1, 2}
3215                   </para>
3216                   <para>
3217 Default: 1</para>
3218                   <para>Determines whether or not the AFS file server is contacted for </para>
3219                   <para>0: never obtain server locks</para>
3220                   <para>1: obtain server locks unless the file server says not to</para>
3221                   <para>2: always obtain server locks</para>
3222                 </section>
3223
3224
3225                 <section>
3226             <title id='Regkey_TransarcAFSDaemon_Parameters_DeleteReadOnly'>Value: DeleteReadOnly</title>
3227             <indexterm><primary>DeleteReadOnly</primary></indexterm>
3228             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3229                   <para>Type: DWORD {0, 1}
3230                   </para>
3231                   <para>
3232 Default: 0</para>
3233                   <para>Determines whether or not the AFS Cache Manager will permit files marked with the &quot;Read Only&quot; DOS attribute to be deleted or not.  For compatibility with Explorer, the default is ‘no’.</para>
3234                   <para>0: do not permit &quot;Read Only&quot; files to be deleted.</para>
3235                   <para>1: delete files that have the &quot;Read Only&quot; attribute set without complaint.</para>
3236                 </section>
3237
3238
3239                 <section>
3240             <title id='Regkey_TransarcAFSDaemon_Parameters_BPlusTrees'>Value: BPlusTrees</title>
3241             <indexterm><primary>BPlusTrees</primary></indexterm>
3242             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3243                   <para>Type: DWORD {0, 1}
3244                   </para>
3245                   <para>
3246 Default: 1</para>
3247                   <para>Determines whether or not the AFS Cache Manager uses locally constructed B+ Trees to speed up the performance of directory searches.  </para>
3248                   <para>0: do not use B+ Trees for directory lookups</para>
3249                   <para>1: use B+ Trees for directory lookups</para>
3250                 </section>
3251
3252
3253                 <section>
3254             <title id='Regkey_TransarcAFSDaemon_Parameters_PrefetchExecutableExtensions'>Value: PrefetchExecutableExtensions</title>
3255             <indexterm><primary>PrefetchExecutableExtensions</primary></indexterm>
3256             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3257                   <para>Type: MULTI_SZ
3258                   </para>
3259                   <para>
3260 Default: none specified</para>
3261                   <para>The AFS Cache Manager will pre-fetch the entire contents of any file whose name matches ends with one of the specified extensions.  This option is intended for use primarily with executables and dynamic link libraries that should be fully cached prior to a machine losing its connection with the file server.</para>
3262                 </section>
3263
3264
3265                 <section>
3266             <title id='Regkey_TransarcAFSDaemon_Parameters_OfflineReadOnlyIsValid'>Value: OfflineReadOnlyIsValid</title>
3267             <indexterm><primary>OfflineReadOnlyIsValid</primary></indexterm>
3268             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3269                   <para>Type: DWORD {0, 1}
3270                   </para>
3271                   <para>
3272 Default: 0</para>
3273                   <para>Determines whether or not cached data from .readonly volumes is considered valid even if a callback cannot be registered with a file server.  This option is meant to be used by organizations for whom .readonly volume content very rarely changes (if ever.)</para>
3274                   <para>0: do not treat offline .readonly content as valid</para>
3275                   <para>1: treat offline .readonly content as valid</para>
3276                 </section>
3277
3278
3279                 <section>
3280             <title id='Regkey_TransarcAFSDaemon_Parameters_GiveUpAllCallBacks'>Value: GiveUpAllCallBacks</title>
3281             <indexterm><primary>GiveUpAllCallBacks</primary></indexterm>
3282             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3283                   <para>Type: DWORD {0, 1}
3284                   </para>
3285                   <para>
3286 Default: 0</para>
3287                   <para>Determines whether or not the AFS Cache Manager will give up all callbacks prior to the service being suspended or shutdown.  Doing so will have significant performance benefits for the file servers.  However, file servers older than 1.4.6 can become unstable if the GiveUpAllCallBacks RPC is executed.</para>
3288                   <para>0: do not perform GiveUpAllCallBacks RPCs</para>
3289                   <para>1: perform GiveUpAllCallBacks RPCs </para>
3290                 </section>
3291
3292
3293                 <section>
3294             <title id='Regkey_TransarcAFSDaemon_Parameters_ReadOnlyVolumeVersioning'>Value: ReadOnlyVolumeVersioning</title>
3295             <indexterm><primary>ReadOnlyVolumeVersioning</primary></indexterm>
3296             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3297                   <para>Type: DWORD {0, 1}
3298                   </para>
3299                   <para>
3300 Default: 0</para>
3301                   <para>
3302                      Determines whether or not the AFS Cache Manager will will make use of the volume version information reported
3303                      by the file server as part of the AFSVolSync data structure.  Use of volume version information can significantly
3304                      reduce the number of FetchStatus RPCs issued on objects stored in read-only volumes.  This functionality is
3305                      disabled by default because all OpenAFS file servers older than OpenAFS 1.4.10 failed to include valid volume
3306                      version information as part of the BulkStatus and InlineBulkStatus RPCs.
3307                   </para>
3308                   <para>0: do not make use of volume version information</para>
3309                   <para>1: make use of volume version information</para>
3310                 </section>
3311
3312
3313                 <section>
3314             <title id='Regkey_TransarcAFSDaemon_Parameters_FollowBackupPath'>Value: FollowBackupPath</title>
3315             <indexterm><primary>FollowBackupPath</primary></indexterm>
3316             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3317                   <para>Type: DWORD {0, 1}
3318                   </para>
3319                   <para>
3320 Default: 0</para>
3321                   <para>Determines whether or not the AFS Cache Manager will give preference to .backup volumes when following mount points that originate in a .backup volume.</para>
3322                   <para>0: do not prefer .backup volumes when the mount point originates in a .backup volume.</para>
3323                   <para>1: prefer .backup volumes when the mount point originates in a .backup volume.</para>
3324                 </section>
3325
3326
3327                 <section>
3328             <title id='Regkey_TransarcAFSDaemon_Parameters_RxUdpBufSize'>Value: RxUdpBufSize</title>
3329             <indexterm><primary>RxUdpBufSize</primary></indexterm>
3330             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3331                   <para>Type: DWORD {bytes}
3332                   </para>
3333                   <para>
3334 Default: 262144</para>
3335                   <para>Specifies the UDP socket receive and send buffer sizes..</para>
3336                 </section>
3337       </section>
3338       <section>
3339         <title id='Regkey_TransarcAFSDaemon_Parameters_GlobalAutoMapper'>Regkey:
3340 [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters\GlobalAutoMapper]</title>
3341             <indexterm><primary>GlobalAutoMapper</primary></indexterm>
3342                 <section>
3343             <title id='Regkey_TransarcAFSDaemon_Parameters_GlobalAutoMapper_DriveLetter'>Value: &lt;DriveLetter&gt;</title>
3344             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters\GlobalAutoMapper]</para>
3345                   <para>Type: REG_SZ</para>
3346                   <para>Specifies the submount name to be mapped by afsd_service.exe at startup to the provided drive letter.</para>
3347                   <para>
3348                     <emphasis>This option is deprecated.</emphasis>
3349                   </para>
3350                 </section>
3351       </section>
3352       <section>
3353         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</title>
3354                 <section>
3355             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDBDir'>Value: CellServDBDir</title>
3356             <indexterm><primary>CellServDB</primary></indexterm>
3357             <indexterm><primary>CellServDBDir</primary></indexterm>
3358                     <anchor id='Value_CellServDBDir' />
3359             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3360                   <para>Type: REG_SZ
3361                   </para>
3362                   <para>
3363 Default: &lt;not defined&gt;</para>
3364                   <para>Specifies the directory containing the CellServDB file.  When this value is not specified, the ProgramData directory is searched and if the CellServDB file is not found, the AFS Client install directory is used.</para>
3365                 </section>
3366
3367
3368                 <section>
3369             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_VerifyServiceSignature'>Value: VerifyServiceSignature</title>
3370             <indexterm><primary>VerifyServiceSignature</primary></indexterm>
3371                     <anchor id='Value_VerifyServiceSignature' />
3372             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3373                   <para>Type: REG_DWORD
3374                   </para>
3375                   <para>
3376 Default: 0x1</para>
3377                   <para>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.</para>
3378                 </section>
3379
3380
3381                 <section>
3382             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_IoctlDebug'>Value: IoctlDebug</title>
3383             <indexterm><primary>IoctlDebug</primary></indexterm>
3384             <indexterm><primary>path ioctl debugging</primary></indexterm>
3385                     <anchor id='Value_IoctlDebug' />
3386             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3387                   <para>Type: REG_DWORD
3388                   </para>
3389                   <para>
3390 Default: 0x0</para>
3391                   <para>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. </para>
3392                 </section>
3393
3394
3395                 <section>
3396             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_MiniDumpType'>Value: MiniDumpType</title>
3397             <indexterm><primary>minidumps</primary></indexterm>
3398             <indexterm><primary>MiniDumpType</primary></indexterm>
3399                     <anchor id='Value_MiniDumpType' />
3400             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3401                   <para>Type: REG_DWORD
3402                   </para>
3403                   <para>
3404 Default: 0x0 (MiniDumpNormal)</para>
3405                   <para>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.</para>
3406                   <para>Valid values are dependent on the version of DbgHelp.dll installed on the machine.  The best version to use is not the version that comes with the operating system but the version that is included in the most recent release of "
3407                     <ulink url='http://www.microsoft.com/whdc/devtools/debugging/default.mspx'>Microsoft Debugging Tools for Windows</ulink>".  See the Microsoft Developer Library for further information.
3408                   </para>
3409                   <simplelist type='vert'>
3410                     <member>
3411 MiniDumpNormal = 0x00000000
3412       </member>
3413                     <member>
3414 MiniDumpWithDataSegs = 0x00000001
3415       </member>
3416                     <member>
3417 MiniDumpWithFullMemory = 0x00000002
3418       </member>
3419                     <member>
3420 MiniDumpWithHandleData = 0x00000004
3421       </member>
3422                     <member>
3423 MiniDumpFilterMemory = 0x00000008
3424       </member>
3425                     <member>
3426 MiniDumpScanMemory = 0x00000010
3427       </member>
3428                     <member>
3429 MiniDumpWithUnloadedModules = 0x00000020
3430       </member>
3431                     <member>
3432 MiniDumpWithIndirectlyReferencedMemory = 0x00000040
3433       </member>
3434                     <member>
3435 MiniDumpFilterModulePaths = 0x00000080
3436       </member>
3437                     <member>
3438 MiniDumpWithProcessThreadData = 0x00000100
3439       </member>
3440                     <member>
3441 MiniDumpWithPrivateReadWriteMemory = 0x00000200
3442       </member>
3443                     <member>
3444 MiniDumpWithoutOptionalData = 0x00000400
3445       </member>
3446                     <member>
3447 MiniDumpWithFullMemoryInfo = 0x00000800
3448       </member>
3449                     <member>
3450 MiniDumpWithThreadInfo = 0x00001000
3451       </member>
3452                     <member>
3453 MiniDumpWithCodeSegs = 0x00002000
3454       </member>
3455                   </simplelist>
3456                 </section>
3457
3458
3459                 <section>
3460             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_EnableSMBAsyncStore'>Value: EnableSMBAsyncStore</title>
3461             <indexterm><primary>EnableSMBAsyncStore</primary></indexterm>
3462                     <anchor id='Value_EnableSMBAsyncStore' />
3463             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3464                   <para>Type: REG_DWORD
3465                   </para>
3466                   <para>
3467 Default: 0x1</para>
3468                   <para>This value can be used to disable the use of SMB Asynchronous Store operations. </para>
3469                 </section>
3470
3471
3472                 <section>
3473             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_SMBAsyncStoreSize'>Value: SMBAsyncStoreSize</title>
3474             <indexterm><primary>SMBAsyncStoreSize</primary></indexterm>
3475                     <anchor id='Value_SMBAsyncStoreSize' />
3476             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3477                   <para>Type: REG_DWORD
3478                   </para>
3479                   <para>
3480 Default: 32</para>
3481                   <para>This value determines the size of SMB Asynchronous Store operations. This value can be used to increase the write performance on higher speed networks by increasing the value.  The value must be a multiple of the cache buffer block size and cannot be larger than the cache manager chunk size.  The specified value will be adjusted to enforce its compliance with these restrictions.</para>
3482                 </section>
3483
3484
3485                 <section>
3486             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_StoreAnsiFilenames'>Value: StoreAnsiFilenames</title>
3487             <indexterm><primary>StoreAnsiFilenames</primary></indexterm>
3488             <indexterm><primary>Unicode</primary></indexterm>
3489             <indexterm><primary>character sets</primary></indexterm>
3490                     <anchor id='Value_StoreAnsiFilenames' />
3491             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
3492                   <para>Type: REG_DWORD
3493                   </para>
3494                   <para>
3495 Default: 0x0</para>
3496                   <para>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.  </para>
3497                   <para>Note: The use of ANSI characters will render access to files with 8-bit OEM file names inaccessible 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.</para>
3498                   <para>This value is ignored now that all file names are processed as Unicode and stored on the file server as UTF-8.</para>
3499                 </section>
3500
3501       </section>
3502       <section>
3503         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CSCPolicy'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CSCPolicy]</title>
3504             <indexterm><primary>CSCPolicy</primary></indexterm>
3505                 <section>
3506             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CSCPolicy_'>Value: &lt;smb share name&gt;</title>
3507             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CSCPolicy]</para>
3508                   <para>Type: REG_SZ
3509                   </para>
3510                   <para>
3511 Default: &lt;none&gt;</para>
3512                   <para>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".  </para>
3513                   <para>These values used to be stored in afsdsbmt.ini</para>
3514                 </section>
3515       </section>
3516
3517       <section>
3518         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB]</title>
3519             <indexterm><primary>CellServDB</primary></indexterm>
3520         <para>The <emphasis>CellServDB</emphasis> key is an alternative to the <emphasis>CellServDB</emphasis> file that can be used either to supplement
3521               or override its contents.   This registry entry is meant to provide organizations that centrally manage their client configurations using
3522               <emphasis>Active Directory Group Policy</emphasis> a means of updating records for individual cells or servers without pushing out a new file.
3523        </para>
3524        <para>At the present time the <emphasis>CellServDB</emphasis> key contains no values; only subkeys.  Each subkey is the name of a <emphasis>Cell</emphasis>.  For example, <emphasis>grand.central.org</emphasis>.
3525        </para>
3526        <para>Support for registry <emphasis>CellServDB</emphasis> configuration was added in 1.5.60.</para>
3527        </section>
3528
3529       <section>
3530         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;cellname&gt;]</title>
3531         <para>The actual name of the <emphasis>&lt;cellname&gt;</emphasis> key is the full name of the cell whose configuration is being specified.  The <emphasis>&lt;cellname&gt;</emphasis> key contains both values and subkeys.  Each subkey represents a single host name or IP address.  When a host is to be known by more than one name or IP address, a separate subkey should be created for each.
3532         Unlike the &lt;cellname&gt; key name, the &lt;server&gt; key names do not have to be actual host names.</para>
3533                 <section>
3534             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_Description'>Value: Description</title>
3535             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;]</para>
3536                   <para>Type: REG_SZ
3537                   </para>
3538                   <para>Default: &lt;none&gt;</para>
3539                   <para>This value is used to store a description of the Cell appropriate for display in end user facing tools.</para>
3540                 </section>
3541
3542
3543                 <section>
3544             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_ForceDNS'>Value: ForceDNS</title>
3545             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;]</para>
3546                   <para>Type: REG_DWORD</para>
3547                   <para>Range: 0 or 1</para>
3548                   <para>Default: 0 if &lt;server&gt; subkeys exist; 1 otherwise</para>
3549                   <para>When set to 1 all server configuration provided in the registry or the <emphasis>CellServDB file</emphasis> is ignored and DNS AFSDB lookups are used instead.</para>
3550                 </section>
3551
3552
3553                 <section>
3554             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_LinkedCell'>Value: LinkedCell</title>
3555             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;]</para>
3556                   <para>Type: REG_SZ
3557                   </para>
3558                   <para>Default: &lt;none&gt;</para>
3559                   <para>This value names an alternative cell to which this cell should be linked.  When two cells are linked by the OpenAFS client, volume lookups that fail in the specified cell will be searched for in the linked cell
3560                   and when tokens are requested for one of the cells they will be obtained for both.
3561                   This functionality can be used for example to develop a test cell that is equivalent to a production cell with the exception that it substitutes test versions of volumes
3562                   for the production versions.  Another use is to assist in the transition from one cell name to another.</para>
3563                   <para>See also: <link linkend="Linked_Cells">Linked Cells</link>.</para>
3564                 </section>
3565
3566       </section>
3567
3568       <section>
3569         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_Server'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;cellname&gt;\&lt;server&gt;]</title>
3570         <para>The actual name of the <emphasis>&lt;server&gt;</emphasis> key may be a fully qualified domain name of the server whose configuration is being specified.
3571         If a domain name is specified as the key name, all values become optional.
3572         </para>
3573                 <section>
3574             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_Server_HostName'>Value: HostName</title>
3575             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;\&lt;Server&gt;]</para>
3576                   <para>Type: REG_SZ</para>
3577                   <para>Default: &lt;none&gt;</para>
3578                   <para>This value is used to specify a fully qualified domain name appropriate that matches either a DNS A or DNS CNAME record.  If provided, this value supercedes
3579                   the name of the &lt;server&gt; key.  It is recommended that the value of this field be terminated with a period in order to avoid the use of domain substitution
3580                   during the gethostbyname() evaluation.
3581                   </para>
3582                 </section>
3583
3584
3585                 <section>
3586             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_Server_IPv4Address'>Value: IPv4Address</title>
3587              <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;\&lt;Server&gt;]</para>
3588                   <para>Type: REG_SZ</para>
3589                   <para>Default: &lt;none&gt;</para>
3590                   <para>If the DNS host name lookup fails this value will be used as the IPv4 address for the server.</para>
3591                 </section>
3592
3593
3594                 <section>
3595             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_Server_Rank'>Value: Rank</title>
3596             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;\&lt;Server&gt;]</para>
3597                   <para>Type: REG_DWORD
3598                   </para>
3599                   <para>Range: 0..65535</para>
3600                   <para>Default: 0</para>
3601                   <para>This value specifies the default server preference.  A value of 0 indicates that no preference has been specified.  When non-zero values
3602                   are specified lower values indicate a stronger preference than higher values.</para>
3603                 </section>
3604
3605
3606                 <section>
3607             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_CellServDB_Cell_Server_Comment'>Value: Comment</title>
3608             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\CellServDB\&lt;Cell Name&gt;\&lt;Server&gt;]</para>
3609                   <para>Type: REG_SZ</para>
3610                   <para>Default: &lt;none&gt;</para>
3611                   <para>A text string that can be displayed to end users to describe the server.</para>
3612                 </section>
3613       </section>
3614
3615       <section>
3616         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Freelance'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Freelance]</title>
3617             <indexterm><primary>Freelance</primary></indexterm>
3618             <indexterm><primary>Freelance Mount Points</primary></indexterm>
3619                 <section>
3620             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Freelance_NumericValue'>Value: &lt;numeric value&gt;</title>
3621             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Freelance]</para>
3622                   <para>Type: REG_SZ
3623                   </para>
3624                   <para>
3625 Default: &lt;none&gt;</para>
3626                   <para>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.</para>
3627                   <para>"athena.mit.edu#athena.mit.edu:root.cell."</para>
3628                   <para>".athena.mit.edu%athena.mit.edu:root.cell."</para>
3629                   <para>These values used to be stored in afs_freelance.ini</para>
3630                 </section>
3631       </section>
3632       <section>
3633         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Freelance_Symlinks'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Freelance\Symlinks]</title>
3634             <indexterm><primary>Freelance Symlinks</primary></indexterm>
3635                 <section>
3636             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Freelance_Symlinks_NumericValue'>Value: &lt;numeric value&gt;</title>
3637             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Freelance\Symlinks]</para>
3638                   <para>Type: REG_SZ
3639                   </para>
3640                   <para>
3641 Default: &lt;none&gt;</para>
3642                   <para>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.</para>
3643                   <para>"linkname:destination-path."</para>
3644                   <para>"athena:athena.mit.edu."</para>
3645                   <para>"home:athena.mit.edu\user\j\a\jaltman."</para>
3646                   <para>"filename:path\file."</para>
3647                 </section>
3648       </section>
3649       <section>
3650         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Realms'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Realms]</title>
3651             <indexterm><primary>Realms</primary></indexterm>
3652             <indexterm><primary>network identity manager</primary></indexterm>
3653         <para>The Realms key is used to provide initialization data to be used when new identities are added to the Network Identity Manager.  The AFS Provider will search for a subkey that matches the realm of the identity.  If such a key exists, its values will be used to populate the AFS configuration for the identity.</para>
3654       </section>
3655       <section>
3656         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Realms_RealmName'>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Realms\&quot;Realm Name&quot;]</title>
3657         <para>In addition to the optional values, this key contains one subkey for each cell that is to be added to the AFS Provider configuration.  </para>
3658                 <section>
3659             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Realms_RealmName_AFSEnabled'>Value: AFSEnabled</title>
3660             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Realms\&lt;Realm Name&gt;]</para>
3661                   <para>Type: REG_DWORD
3662                   </para>
3663                   <para>
3664 Default: 0x01</para>
3665                   <para>This key is used to specify whether the new identity should be configured to obtain AFS credentials.  In general, it is only specified when disabling the acquisition of AFS credentials is desired.  The default is to obtain AFS credentials.</para>
3666                 </section>
3667       </section>
3668       <section>
3669         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Realms_RealmName_CellName'>Regkey:
3670 [HKLM\SOFTWARE\OpenAFS\Client\Realms\&quot;Realm Name&quot;\&quot;Cell Name&quot;]</title>
3671                 <section>
3672             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Realms_RealmName_CellName_MethodName'>Value: MethodName</title>
3673             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Realms\&lt;Realm Name&gt;\&lt;Cell Name&gt;]</para>
3674                   <para>Type: REG_SZ
3675                   </para>
3676                   <para>
3677 Default: &lt;none&gt;</para>
3678                   <para>This key is used to specify the token acquisition method to be used.  When unspecified, the AFS provider will automatically try Kerberos v5 and then Kerberos v5 (if available).  As of this writing valid method names include &quot;Auto&quot;, &quot;Kerberos5&quot;, &quot;Kerberos524&quot;, &quot;Kerberos4&quot;.</para>
3679                   <para>Note: Kerberos524 and Kerberos4 cannot be used with 64-bit Kerberos for Windows.</para>
3680                 </section>
3681
3682
3683                 <section>
3684             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Realms_RealmName_CellName_Realm'>Value: Realm</title>
3685             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Realms\&lt;Realm Name&gt;\&lt;Cell Name&gt;]</para>
3686                   <para>Type: REG_SZ
3687                   </para>
3688                   <para>
3689 Default: &lt;none&gt;</para>
3690                   <para>This key is used to specify the realm to be used when acquiring AFS tokens.  If not specified, the realm will be determined by performing a domain to realm mapping on the domain of a random volume location database server for the cell.</para>
3691                 </section>
3692
3693       </section>
3694       <section>
3695         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Submounts'>Regkey:
3696 [HKLM\SOFTWARE\OpenAFS\Client\Submounts]</title>
3697             <indexterm><primary>Submounts</primary></indexterm>
3698                 <section>
3699             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_Submounts_SubmountName'>Value: &lt;Submount Name&gt;</title>
3700             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Submounts]</para>
3701                   <para>Type: REG_EXPAND_SZ
3702                   </para>
3703                   <para>
3704 Default: &lt;none&gt;</para>
3705                   <para>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 &quot;/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.</para>
3706                   <para>These values used to be stored in afsdsbmt.ini</para>
3707                   <para>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.</para>
3708                 </section>
3709
3710       </section>
3711       <section>
3712         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_ServerPreferences_VLDB'>Regkey:
3713 [HKLM\SOFTWARE\OpenAFS\Client\Server Preferences\VLDB]</title>
3714             <indexterm><primary>Server Preferences</primary></indexterm>
3715                 <section>
3716             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_ServerPreferences_VLDB_HostName'>Value: &lt;hostname or ip address&gt;</title>
3717             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Server Preferences\VLDB]</para>
3718                   <para>Type: REG_DWORD
3719                   </para>
3720                   <para>
3721 Default: &lt;none&gt;</para>
3722                   <para>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 15 prior to the preference being set.</para>
3723                 </section>
3724       </section>
3725       <section>
3726         <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_ServerPreferences_File'>Regkey:
3727 [HKLM\SOFTWARE\OpenAFS\Client\Server Preferences\File]</title>
3728                 <section>
3729             <title id='Regkey_HKLM_SOFTWARE_OpenAFS_Client_ServerPreferences_File_HostName'>Value: &lt;hostname or ip address&gt;</title>
3730             <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client\Server Preferences\File]</para>
3731                   <para>Type: REG_DWORD
3732                   </para>
3733                   <para>
3734 Default: &lt;none&gt;</para>
3735                   <para>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 15 prior to the preference being set.</para>
3736                 </section>
3737       </section>
3738     </section>
3739     <section>
3740       <title id='Integrated_Logon_Parameters'>A.2. Integrated Logon Network Provider Parameters</title>
3741             <indexterm><primary>integrated logon</primary></indexterm>
3742       <para>Affects the network provider (afslogon.dll).</para>
3743       <section>
3744         <title id='NP_Regkey_TransarcAFSDaemon_Parameters'>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</title>
3745                 <section>
3746             <title id='NP_Regkey_TransarcAFSDaemon_Parameters_FailLoginsSilently'>Value: FailLoginsSilently</title>
3747             <indexterm><primary>FailLoginsSilently</primary></indexterm>
3748             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
3749                   <para>Type: DWORD
3750                   </para>
3751                   <para>
3752 Default: 0</para>
3753                   <para>Do not display message boxes if the login fails.</para>
3754                 </section>
3755       </section>
3756       <section>
3757         <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider'>Regkey:
3758 [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</title>
3759                 <section>
3760             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_NoWarnings'>Value: NoWarnings</title>
3761             <indexterm><primary>NoWarnings</primary></indexterm>
3762             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3763                   <para>Type: DWORD
3764                   </para>
3765                   <para>
3766 Default: 0</para>
3767                   <para>Disables visible warnings during logon.</para>
3768                 </section>
3769
3770                 <section>
3771             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_AuthentProviderPath'>Value: AuthentProviderPath</title>
3772             <indexterm><primary>AuthentProviderPath</primary></indexterm>
3773             <indexterm><primary>afslogon.dll</primary></indexterm>
3774             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3775                   <para>Type: REG_SZ
3776                   </para>
3777                   <para>
3778 NSIS: %WINDIR%\SYSTEM32\afslogon.dll</para>
3779                   <para>Specifies the install location of the authentication provider dll.</para>
3780                 </section>
3781
3782
3783                 <section>
3784             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_Class'>Value: Class</title>
3785             <indexterm><primary>Class</primary></indexterm>
3786             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3787                   <para>Type: DWORD
3788                   </para>
3789                   <para>
3790 NSIS: 0x02</para>
3791                   <para>Specifies the class of network provider</para>
3792                 </section>
3793
3794
3795                 <section>
3796             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_DependOnGroup'>Value: DependOnGroup</title>
3797             <indexterm><primary>DependOnGroup</primary></indexterm>
3798             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3799                   <para>Type: REG_MULTI_SZ
3800                   </para>
3801                   <para>
3802 NSIS: PNP_TDI</para>
3803                   <para>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.</para>
3804                 </section>
3805
3806
3807                 <section>
3808             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_DependOnService'>Value: DependOnService</title>
3809             <indexterm><primary>DependOnService</primary></indexterm>
3810             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3811                   <para>Type: REG_MULTI_SZ
3812                   </para>
3813                   <para>
3814 NSIS: Tcpip NETBIOS RpcSs</para>
3815                   <para>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.</para>
3816                 </section>
3817
3818
3819                 <section>
3820             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_Name'>Value: Name</title>
3821             <indexterm><primary>Name - network provider</primary></indexterm>
3822             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3823                   <para>Type: REG_SZ
3824                   </para>
3825                   <para>
3826 NSIS: "OpenAFSDaemon"</para>
3827                   <para>Specifies the display name of the AFS Client Service</para>
3828                 </section>
3829
3830
3831                 <section>
3832             <title id='NP_Regkey_TransarcAFSDaemon_NetworkProvider_ProviderPath'>Value: ProviderPath</title>
3833             <indexterm><primary>ProviderPath</primary></indexterm>
3834             <indexterm><primary>afslogon.dll</primary></indexterm>
3835             <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</para>
3836                   <para>Type: REG_SZ
3837                   </para>
3838                   <para>
3839 NSIS: %WINDIR%\SYSTEM32\afslogon.dll</para>
3840                   <para>Specifies the DLL to use for the network provider</para>
3841                 </section>
3842
3843       </section>
3844     </section>
3845     <section>
3846       <title id='Domain_Specific_Configuration'>A.2.1 Domain specific configuration keys for the Network Provider</title>
3847             <indexterm><primary>domain logon configuration</primary></indexterm>
3848       <para>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.</para>
3849       <para>Domain specific registry keys are:</para>
3850       <section>
3851         <title id='Domain_Regkey_TransarcAFSDaemon_NetworkProvider'>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]</title>
3852         <para>  (NP key)</para>
3853       </section>
3854       <section>
3855         <title id='Domain_Regkey_TransarcAFSDaemon_NetworkProvider_Domain'>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</title>
3856         <para>  (Domains key)</para>
3857       </section>
3858       <section>
3859         <title id='Domain_Regkey_TransarcAFSDaemon_NetworkProvider_Domain_DomainName'>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\"domain name"]</title>
3860         <para>  (Specific domain key. One per domain.)</para>
3861       </section>
3862       <section>
3863         <title id='Domain_Regkey_TransarcAFSDaemon_NetworkProvider_Domain_LocalHost'>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</title>
3864         <para>  (Localhost key)</para>
3865       </section>
3866       <section>
3867         <title id='Domain_Example'>Domain Specific Example:</title>
3868         <para> HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider</para>
3869         <para>  |</para>
3870         <para>  +- Domain</para>
3871         <para>     +-AD1.EXAMPLE.COM</para>
3872         <para>     +-AD2.EXAMPLE.NET</para>
3873         <para>     +-LOCALHOST</para>
3874         <para>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.</para>
3875       </section>
3876       <section>
3877         <title id='Domain_Specific_Configuration_Values'>A.2.1.1 Domain Specific Configuration Values</title>
3878         <section>
3879           <title id='Domain_Specific_Regkeys'>Regkeys: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider]
3880 [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]
3881 [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\"domain name"]
3882 [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</title>
3883                   <section>
3884             <title id='Domain_Specific_Regkeys_LogonOptions'>Value: LogonOptions</title>
3885             <indexterm><primary>LogonOptions</primary></indexterm>
3886                       <anchor id='Value_LogonOptions' />
3887                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
3888                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
3889                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
3890                     <para>Type: DWORD
3891                   </para>
3892                     <para>
3893 Default: 0x01</para>
3894                     <para>NSIS/WiX: depends on user configuration</para>
3895                     <para>
3896                       <simplelist>
3897                         <member>0x00 - Integrated Logon is not used
3898 </member>
3899                         <member>
3900 0x01 - Integrated Logon is used
3901 </member>
3902                         <member>
3903 0x02 - High Security Mode is used (deprecated)
3904 </member>
3905                         <member>
3906 0x03 - Integrated Logon with High Security Mode is used (deprecated)
3907 </member>
3908                       </simplelist>
3909                     </para>
3910                     <para>High Security Mode generates random SMB names for the creation of Drive Mappings.  This mode should not be used without Integrated Logon.</para>
3911                     <para>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).</para>
3912                   </section>
3913
3914
3915                   <section>
3916             <title id='Domain_Specific_Regkeys_FailLoginsSilently'>Value: FailLoginsSilently</title>
3917             <indexterm><primary>FailLoginsSilently</primary></indexterm>
3918                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
3919                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
3920                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
3921                     <para>Type: DWORD (1|0)
3922                   </para>
3923                     <para>
3924 Default: 0
3925                   </para>
3926                     <para>
3927 NSIS/WiX: (not set)</para>
3928                     <para>If true, does not display any visible warnings in the event of an error during the integrated login process.</para>
3929                   </section>
3930
3931
3932                   <section>
3933             <title id='Domain_Specific_Regkeys_LogonScript'>Value: LogonScript</title>
3934             <indexterm><primary>LogonScript</primary></indexterm>
3935                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
3936                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
3937                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
3938                     <para>Type: REG_SZ or REG_EXPAND_SZ
3939                   </para>
3940                     <para>
3941 Default: (null)
3942                   </para>
3943                     <para>
3944 NSIS/WiX: (only value under NP key) &lt;install path&gt;\afscreds.exe -:%s -x -a -m -n -q</para>
3945                     <para>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.</para>
3946                   </section>
3947
3948
3949                   <section>
3950             <title id='Domain_Specific_Regkeys_LoginRetryInterval'>Value: LoginRetryInterval</title>
3951             <indexterm><primary>LoginRetryInterval</primary></indexterm>
3952                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
3953                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
3954                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
3955                     <para>Type: DWORD
3956                   </para>
3957                     <para>
3958 Default: 30
3959                   </para>
3960                     <para>
3961 NSIS/WiX: (not set)</para>
3962                     <para>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.</para>
3963                   </section>
3964
3965
3966                   <section>
3967             <title id='Domain_Specific_Regkeys_LoginSleepInterval'>Value: LoginSleepInterval</title>
3968             <indexterm><primary>LoginSleepInterval</primary></indexterm>
3969                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
3970                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
3971                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
3972                     <para>Type: DWORD
3973                   </para>
3974                     <para>
3975 Default: 5
3976                   </para>
3977                     <para>
3978 NSIS/WiX: (not set)</para>
3979                     <para>See description of LoginRetryInterval.</para>
3980                   </section>
3981
3982
3983                   <section>
3984             <title id='Domain_Specific_Regkeys_Realm'>Value: Realm</title>
3985             <indexterm><primary>Realm</primary></indexterm>
3986                       <anchor id='Value_Realm' />
3987                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
3988                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
3989                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
3990                     <para>Type: REG_SZ
3991                   </para>
3992                     <para>
3993 NSIS: &lt;not set&gt;</para>
3994                     <para>When Kerberos v5 is being used, Realm specifies the Kerberos v5 realm that should be appended to the first component of the Domain logon username to construct the Kerberos v5 principal for which AFS tokens should be obtained.</para>
3995                   </section>
3996
3997
3998                   <section>
3999             <title id='Domain_Specific_Regkeys_TheseCells'>Value: TheseCells</title>
4000             <indexterm><primary>TheseCells</primary></indexterm>
4001                       <anchor id='Value_TheseCells' />
4002                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain]</para>
4003                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\&lt;domain name&gt;]</para>
4004                     <para>[HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider\Domain\LOCALHOST]</para>
4005                     <para>Type: REG_MULTI_SZ
4006                   </para>
4007                     <para>
4008 NSIS: &lt;not set&gt;</para>
4009                     <para>When Kerberos v5 is being used, TheseCells provides a list of additional cells for which tokens should be obtained with the default Kerberos v5 principal.</para>
4010                   </section>
4011
4012         </section>
4013       </section>
4014       <section>
4015         <title id='Selection_Effective_Values_for_Domain_Specific_Configuration'>A.2.1.2 Selection of effective values for domain specific configuration</title>
4016         <para>During login to domain X, where X is the domain passed into NPLogonNotify as lpAuthentInfo-&gt;LogonDomainName or the string 'LOCALHOST' if lpAuthentInfo-&gt;LogonDomainName equals the name of the computer, the following keys will be looked up.</para>
4017         <para>1.      NP key. ("HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider")</para>
4018         <para>2.      Domains key. (NP key\"Domain")</para>
4019         <para>3.      Specific domain key. (Domains key\X)</para>
4020         <para>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.</para>
4021         <para>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.</para>
4022       </section>
4023       <section>
4024         <title id='Domain_Specific_Configuration_Exceptions'>A.2.1.3 Exceptions to A.2.1.2</title>
4025         <para>To retain backwards compatibility, the following exceptions are made to A.2.1.2.</para>
4026         <section>
4027           <title id='Domain_Specific_Configuration_Exception_FailLoginsSilently'>2.1.3.1 'FailLoginsSilently'</title>
4028             <indexterm><primary>FailLoginsSilently</primary></indexterm>
4029           <para>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.</para>
4030         </section>
4031         <section>
4032           <title id='Domain_Specific_Configuration_Exception_LogonScript'>2.1.3.2 'LogonScript'</title>
4033             <indexterm><primary>LogonScript</primary></indexterm>
4034           <para>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.</para>
4035         </section>
4036       </section>
4037     </section>
4038     <section>
4039       <title id='AFSCreds_Parameters'>A.3. AFS Credentials System Tray Tool parameters</title>
4040             <indexterm><primary>afscreds.exe</primary></indexterm>
4041             <indexterm><primary>System Tray Tool</primary></indexterm>
4042       <para>Affects the behavior of afscreds.exe</para>
4043       <section>
4044         <title id='AFSCreds_Regkey_TransarcAFSDaemon_Parameters'>Regkey:
4045 [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</title>
4046                 <section>
4047             <title id='AFSCreds_Regkey_TransarcAFSDaemon_Parameters_Gateway'>Value: Gateway</title>
4048             <indexterm><primary>Gateway</primary></indexterm>
4049                 <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
4050                   <para>Type: REG_SZ
4051                   </para>
4052                   <para>
4053 Default: ""
4054                   </para>
4055                   <para>
4056 Function: GetGatewayName()</para>
4057                   <para>If the AFS client is utilizing a gateway to obtain AFS access, the name of the gateway is specified by this value.</para>
4058                 </section>
4059
4060
4061                 <section>
4062             <title id='AFSCreds_Regkey_TransarcAFSDaemon_Parameters_Cell'>Value: Cell</title>
4063             <indexterm><primary>Cell</primary></indexterm>
4064                 <para>Regkey: [HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters]</para>
4065                   <para>Type: REG_SZ
4066                   </para>
4067                   <para>
4068 Default: &lt;none&gt;
4069                   </para>
4070                   <para>
4071 Variable: IsServiceConfigured()</para>
4072                   <para>The value Cell is used to determine if the AFS Client Service has been properly configured or not.</para>
4073                 </section>
4074       </section>
4075       <section>
4076         <title id='AFSCreds_Regkey_Software_OpenAFS_Client'>Regkey:
4077 [HKLM\SOFTWARE\OpenAFS\Client]
4078 [HKCU\SOFTWARE\OpenAFS\Client]</title>
4079                 <section>
4080             <title id='AFSCreds_Regkey_Software_OpenAFS_Client_ShowTrayIcon'>Value: ShowTrayIcon</title>
4081             <indexterm><primary>ShowTrayIcon</primary></indexterm>
4082                 <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
4083                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client]</para>
4084                   <para>Type: DWORD {0, 1}
4085                   </para>
4086                   <para>
4087 Default: 1
4088                   </para>
4089                   <para>
4090 Function: InitApp(), Main_OnCheckTerminate()</para>
4091                   <para>This value is used to determine whether or not a shortcut should be maintained in the user's Start Menu-&gt;Programs-&gt;Startup folder. </para>
4092                   <para>This value used to be stored at [HKLM\Software\TransarcCorporation\AFS Client\AfsCreds].</para>
4093                   <para>The current user value is checked first; if it does not exist the local machine value is checked.</para>
4094                 </section>
4095
4096
4097                 <section>
4098             <title id='AFSCreds_Regkey_Software_OpenAFS_Client_EnableKFW'>Value: EnableKFW</title>
4099             <indexterm><primary>EnableKFW</primary></indexterm>
4100                     <anchor id='Value_EnableKFW' />
4101                 <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
4102                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client]</para>
4103                   <para>Type: DWORD {0, 1}
4104                   </para>
4105                   <para>
4106 Default: 1
4107                   </para>
4108                   <para>
4109 Function: KFW_is_available()</para>
4110                   <para>When MIT Kerberos for Windows can be loaded, Kerberos v5 will be used to obtain AFS credentials.  By setting this value to 0, the internal Kerberos v4 implementation will be used instead.  The current user value is checked first; if it does not exist the local machine value is checked.</para>
4111                 </section>
4112
4113
4114                 <section>
4115             <title id='AFSCreds_Regkey_Software_OpenAFS_Client_AcceptDottedPrincipalNames'>Value: AcceptDottedPrincipalNames</title>
4116             <indexterm><primary>AcceptDottedPrincipalName</primary></indexterm>
4117                 <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
4118                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client]</para>
4119                   <para>Type: DWORD {0, 1}
4120                   </para>
4121                   <para>
4122 Default: 1
4123                   </para>
4124                   <para>
4125 Function: KFW_accept_dotted_usernames()</para>
4126                   <para>Kerberos v5 principal names are traditionally mapped to Kerberos v4 names by the AFS servers before they can be looked up in the Protection database.  The mapping algorithm used permits collisions to occur.  Both of the Kerberos v5 names, "user.admin@REALM" and "user/admin@REALM" are interpreted as the same user identity within the cell.  To enable both names to be sent to the server by AFSCreds or Integrated Logon, set this value to 1.</para>
4127                 </section>
4128
4129
4130                 <section>
4131             <title id='AFSCreds_Regkey_Software_OpenAFS_Client_Use524'>Value: Use524</title>
4132             <indexterm><primary>Use524</primary></indexterm>
4133                     <anchor id='Value_Use524' />
4134                 <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
4135                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client]</para>
4136                   <para>Type: DWORD {0, 1}
4137                   </para>
4138                   <para>
4139 Default: 0
4140                   </para>
4141                   <para>
4142 Function: KFW_use_krb524()</para>
4143                   <para>When MIT Kerberos for Windows can be loaded, Kerberos v5 will be used to obtain AFS credentials.  By setting this value to 1, the Kerberos v5 tickets will be converted to Kerberos v4 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.</para>
4144                 </section>
4145
4146
4147                 <section>
4148             <title id='AFSCreds_Regkey_Software_OpenAFS_Client_AfscredsShortcutParams'>Value: AfscredsShortcutParams</title>
4149             <indexterm><primary>AfscredsShortcutParams</primary></indexterm>
4150                     <anchor id='Value_AfscredsShortcutParams' />
4151                 <para>Regkey: [HKLM\SOFTWARE\OpenAFS\Client]</para>
4152                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client]</para>
4153                   <para>Type: REG_SZ
4154                   </para>
4155                   <para>
4156 Default: "-A -M -N -Q"
4157                   </para>
4158                   <para>
4159 Function: Shortcut_FixStartup</para>
4160                   <para>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.</para>
4161                   <para>The following subset of the command line options is appropriate for use in this registry setting:</para>
4162                   <para>
4163                     <simplelist>
4164                       <member>-A = autoinit
4165 </member>
4166                       <member>
4167 -M = renew drive maps
4168 </member>
4169                       <member>
4170 -N = ip address change detection
4171 </member>
4172                       <member>
4173 -Q = quiet mode.  do not display start service dialog if afsd_service is not already running
4174 </member>
4175                       <member>
4176 -S = show tokens dialog on startup
4177 </member>
4178                       <member>
4179 -Z = unmap drives
4180 </member>
4181                     </simplelist>
4182                   </para>
4183                 </section>
4184       </section>
4185       <section>
4186         <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client'>Regkey:
4187 [HKCU\SOFTWARE\OpenAFS\Client]</title>
4188                 <section>
4189             <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_AuthenticationCell'>Value: Authentication Cell</title>
4190             <indexterm><primary>Authentication Cell</primary></indexterm>
4191                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client]</para>
4192                   <para>Type: REG_SZ
4193                   </para>
4194                   <para>
4195 Default: &lt;none&gt;
4196                   </para>
4197                   <para>
4198 Function: Afscreds.exe GetDefaultCell()</para>
4199                   <para>This value allows the user to configure a different cell name to be used as the default cell when acquiring tokens in afscreds.exe.</para>
4200                 </section>
4201
4202       </section>
4203       <section>
4204         <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_Reminders'>Regkey:
4205 [HKCU\SOFTWARE\OpenAFS\Client\Reminders]</title>
4206             <indexterm><primary>Reminders</primary></indexterm>
4207                 <section>
4208             <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_Reminders_Cell'>Value: &lt;afs cell name&gt;</title>
4209                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client\Reminders]</para>
4210                   <para>Type: DWORD {0, 1}
4211                   </para>
4212                   <para>
4213 Default: &lt;none&gt;
4214                   </para>
4215                   <para>
4216 Function: LoadRemind(), SaveRemind()</para>
4217                   <para>These values are used to save and restore the state of the reminder flag for each cell for which the user has obtained tokens.</para>
4218                   <para>This value used to be stored at [HKLM\Software\TransarcCorporation\AFS Client\AfsCreds].</para>
4219                 </section>
4220       </section>
4221       <section>
4222         <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_ActiveMaps'>Regkey:
4223 [HKCU\SOFTWARE\OpenAFS\Client\Active Maps]</title>
4224             <indexterm><primary>ActiveMaps</primary></indexterm>
4225                 <section>
4226             <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_ActiveMaps_DriveLetter'>Value: &lt;upper case drive letter&gt;</title>
4227                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client\ActiveMaps]</para>
4228                   <para>Type: DWORD {0, 1}
4229                   </para>
4230                   <para>
4231 Default: &lt;none&gt;</para>
4232                   <para>These values are used to store the persistence state of the AFS drive mappings as listed in the [...\Client\Mappings] key.</para>
4233                   <para>These values used to be stored in the afsdsbmt.ini file</para>
4234                 </section>
4235
4236       </section>
4237       <section>
4238         <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_Mappings'>Regkey:
4239 [HKCU\SOFTWARE\OpenAFS\Client\Mappings]</title>
4240                 <section>
4241             <title id='AFSCreds_Regkey_HKCU_Software_OpenAFS_Client_Mappings_DriveLetter'>Value: &lt;upper case drive letter&gt;</title>
4242                 <para>Regkey: [HKCU\SOFTWARE\OpenAFS\Client\Mappings]</para>
4243                   <para>Type: REG_SZ
4244                   </para>
4245                   <para>
4246 Default: &lt;none&gt;</para>
4247                   <para>These values are used to store the AFS path in UNIX notation to which the drive letter is to be mapped.</para>
4248                   <para>These values used to be stored in the afsdsbmt.ini file.</para>
4249                 </section>
4250       </section>
4251     </section>
4252
4253
4254     <section>
4255       <title id='OpenAFS_Service_Environment_Variables'>A.4 OpenAFS Client Service Environment Variables</title>
4256               <section>
4257             <title id='OpenAFS_Service_Environment_Variables_AFS_RPC_ENCRYPT'>Value: AFS_RPC_ENCRYPT</title>
4258             <indexterm><primary>AFS_RPC_ENCRYPT</primary></indexterm>
4259                 <para>Values:
4260                   <simplelist>
4261                     <member> "OFF" disables the use of RPC encryption </member>
4262                     <member>any other value allows RPC encryption to be used</member>
4263                   </simplelist>
4264                 </para>
4265                 <para>
4266 Default: RPC encryption is on
4267                 </para>
4268               </section>
4269
4270
4271               <section>
4272             <title id='OpenAFS_Service_Environment_Variables_AFS_RPC_PROTSEQ'>Value: AFS_RPC_PROTSEQ</title>
4273             <indexterm><primary>AFS_RPC_PROTSEQ</primary></indexterm>
4274                 <para>Values:
4275                   <simplelist>
4276                     <member>
4277 "ncalrpc" - local RPC
4278 </member>
4279                     <member>
4280 "ncacn_np" - named pipes
4281 </member>
4282                     <member>
4283 "ncacn_ip_tcp" - tcp/ip
4284 </member>
4285                   </simplelist>
4286                 </para>
4287                 <para>
4288 Default: local RPC
4289                 </para>
4290               </section>
4291     </section>
4292   </chapter>
4293   <index><para></para></index>
4294 </book>
4295 <!-- Keep this comment at the end of the file
4296 Local variables:
4297 mode: xml
4298 sgml-omittag:nil
4299 sgml-shorttag:nil
4300 sgml-namecase-general:nil
4301 sgml-general-insert-case:lower
4302 sgml-minimize-attributes:nil
4303 sgml-always-quote-attributes:t
4304 sgml-indent-step:2
4305 sgml-indent-data:nil
4306 sgml-parent-document:nil
4307 sgml-exposed-tags:nil
4308 sgml-local-catalogs:nil
4309 sgml-local-ecat-files:nil
4310 End:
4311   -->