2 * The allDown logic in cm_ConnByMServers() was wrong. The allDown
3 flag should not be cleared if a volume's server reference is
4 marked as "offline". In the case where all of the volume's
5 servers are either "down" or the volumes are "offline", we want
6 cm_Analyze() to process the condition as CM_ERROR_ALLOFFLINE
7 instead of as CM_ERROR_TIMEDOUT. In fact, CM_ERROR_TIMEDOUT
8 should never occur in practice.
10 In the case of CM_ERROR_ALLOFFLINE, cm_Analyze() will sleep for
11 5 seconds, clear the server down and volume busy flags, and
12 then force an update from the VLDB. This allows the client to
13 update the location of a volume if the reason for it being
14 marked offline is because it is being moved. Calls to
15 cm_ConnByMServers() will be retried either until success or
16 the RDRtimeout period is reached.
18 * Correct the Power Management code behavior in response to
19 Standby, Suspend, and Shutdown events. Instead of flushing the
20 buffers associated with the mounted SMB submounts, simply write
21 all buffers which are marked dirty.
23 * Added support for "TheseCells" to afslogon.dll. "TheseCells"
24 provides a list of cells other than the default cell for which
25 tokens should be obtained using the default Kerberos principal.
26 This functionality is logon domain specific and is only available
27 when using KFW for authentication.
29 * Fixed FindNext Invalid Handle error caused by over agressive
30 attempts at garbage collecting dirSearch entries when the
31 dirSearch ID wraps from the maximum value to 1.
33 * Add support for registry defined server preferences for VLDB and
34 File servers. See registry.txt for details.
36 * Increased default cache size to 96MB and default number of cache
39 * Fixed refCount leaks related to directory lookups and pioctl calls.
41 * Callbacks revoked during a race condition with an attempt to
42 obtain the same callback no longer result in an inaccessible
45 * New command line tool:
47 afsdacl : Set or reset the DACL to allow starting or stopping
48 the afsd service by any ordinary user.
50 Usage : afsdacl [-set | -reset] [-show]
52 -reset : Reset the DACL
53 -show : Show current DACL (SDSF)
55 * IP addresses are no longer queried once at startup. Instead IP
56 addresses are obtained as needed. Loopback adapter addresses are
57 no longer published to the server.
59 * Pay attention to the MIT KFW registry configuration for automatic
60 importation of MSLSA credentials. (SOFTWARE\MIT\Leash32,MsLsaImport)
62 * Fix (once again) case-sensitive comparisons which was apparently
65 * Activate support for vos listvol -format
67 * Population of the "AFS Client Admins" group failed on non-English
68 versions of Windows because the name of the "Administrators" group
69 is localized. Now we lookup the name of the group by using the
70 Administrators Group Alias Relative ID.
72 * Multiple cell token acquisition within afscreds.exe was broken in the
73 case of Kerberos 5 cross realm authentication. Instead of contacting
74 the KDC associated with the cell's realm, afscreds would obtain a
75 token from the KDC of the user's realm. This would result in
76 "invalid kvno errors" while authenticating to the AFS servers.
77 Unauthenticated access would work. The symptoms would vary based upon
78 whether or not the VLDB servers had been contacted using unauthenticated
79 connections prior to the user obtaining tokens.
81 * The list of ACL entries was becoming corrupted. It appears as if
82 an ACL when it expires was not being appropriately cleaned up. In
83 fact, it was left in the list of ACLs associated with the scache
86 * Changed the default @sys name list to "x86_win32 i386_w2k i386_nt40"
87 for 32-bit x86 systems. The default for itanium will be "ia64_win64"
88 and "amd64_win64" for amd 64-bit processors.
90 * When executing executables, Windows provides a mechanisms by which
91 the normal search for DLLs can be bypassed. If a file foo.exe is
92 being executed and there exists a file or directory "foo.exe.local"
93 (the contents are ignored if a file), then Windows will search for
94 DLLs first in the "foo.exe.local" directory and second in the
95 directory in which the "foo.exe" file is located.
97 Previous releases of OAFW would improperly return
98 STATUS_NOT_A_DIRECTORY instead of the expected
99 STATUS_OBJECT_PATH_NOT_FOUND. This would cause the Windows SMB client
100 to terminate the search for the DLL causing the execution of the
103 * Rework the reference counting of smb_vc_t objects. The references
104 stored in the waiting locks were not counted. This could result in
105 an assertion if the reference count drops to zero.
107 * "fs wscell" returns "Freelance.Local.Root" for the workstation cell
108 when running in freelance mode.
110 * Added support for persistent caching of file contents, stat entries,
111 volume data, cell data, and name lookup data. When the registry
112 value, "NonPersistentCaching", is not defined or set to 0 the file
113 specified by "CachePath" becomes a persistent cache file. The
114 size of the cache file is computed at run time. It has a maximum
115 size of approximately 1.2GB. The contents of the file will be
116 validated according to the rules specified by the "ValidateCache"
119 * Added support for UUIDs. UUIDs are kept for as long as the
120 cache file is intact.
122 * Added cmdebug.exe and support cache manager debugging callback
123 interfaces in afsd_service.exe.
125 Usage: cmdebug -servers <server machine> [-port <IP port>] [-long]
126 [-addrs] [-cache] [-help]
127 Where: -long print all info
128 -addrs print only host interfaces
129 -cache print only cache configuration
131 * Symlinks to \\AFS\[all\]... will now be treated the same as
132 symlinks to /afs/.... However, please use /afs/... as otherwise
133 the symlinks won't work on Unix.
135 * Correct a problem with local CellID allocation for cells whose
136 server list is obtained via DNS instead of a CellServDB file. If
137 the DNS information expires the CellID assigned to the entry will
138 be changed. This causes all of the cm_scache_t objects which refer
139 to the old cellID number to become useless. Attempts to access
140 files or directories with cm_scache_t objects using the old cellID
141 will fail since the server list cannot be obtained.
143 * Correct deadlock condition in cm_EndCallbackGrantingCall which can
144 be triggered if the volume referenced by the cm_scache_t object is
147 * The AFS Service needs to respond to SERVICE_ACCEPT_SHUTDOWN messages
148 in addition to SERVICE_ACCEPT_STOP.
150 * Move RPC shutdown until after the SMB and RX shutdown procedures
151 complete. Block until RPC shutdown is complete.
153 * Modify afslogon.dll (integrated logon) to wait for service if its
154 state is START_PENDING. If the timeout period occurs, reset to
155 the retry interval and not the sleep interval.
157 * When renewing the server list for a cell obtained via DNS AFSDB
158 records, the cm_cell_t entry must be removed from the list of all
159 cells. Otherwise, the list of cells will be corrupted.
161 * In the dcache and scache modules, use the cm_scache_t dataVersion
162 instead of the cm_fakeDirVersion.
164 * Synchronize fs.c with the unix version.
166 * The variable used to determine whether a file or virtual memory
167 mapped cache is used was not properly initialized to a default
168 value. If the registry setting "NonPersistentCaching" was not
169 set, the choice would be random. Properly initialized to be
172 * The memory mapped view was never unmapped before closing the file
173 at service shutdown. This is now properly cleaned up.
175 * Default location of Cache file is now %TEMP%\AFSCache
179 * A bug affecting new installations of 1.3.75/76 would result in
180 the creating of incorrect mountpoints in the freelance root.afs
181 volume for the default cell.
183 If "fs \\afs\all\<cellname>" lists a volume name of "root" instead
184 of "root.cell", you have been affected by the bug. To correct the
185 problem, execute the following commands:
187 fs rmmount \\afs\all\<cellname>
188 fs rmmount \\afs\all\.<cellname>
190 fs mkmount \\afs\all\<cellname> root.cell <cellname>
191 fs mkmount \\afs\all\.<cellname> root.cell <cellname> -rw
195 * A bug has been fixed in the auto-generation of Freelance root.afs
196 symlinks which produced random entries in the \\AFS\all directory.
198 * Support has been added for multi-homed servers
201 * Added a new registry value, "StoreAnsiFilenames", which can be used
202 to force the use of ANSI character sets instead of OEM Code Pages.
203 This feature is useful when users require the ability to create
204 filenames with 8-bit characters and need to access the files from
205 both Latin-1 based Unix systems as well as from Windows.
207 Activation of this feature will prevent access to files stored with
208 8-bit OEM characters.
210 * Shutdown all SMB threads in a synchronized manner when stopping the
213 * There is currently a maximum cache size of 1.3GB. The limit is imposed
214 by the largest contiguous block of unused memory within the 2GB process
215 space which can be assigned to the memory mapped file. Unfortunately,
216 when the executable digital signature verification code is activated
217 Windows sees fit to further segment the process memory which in turn
218 reduces the size of the maximum cache file to less then 800MB. If
219 larger cache sizes are desired, a new registry value should be set:
221 HKLM\SOFTWARE\OpenAFS\Client (DWORD) "VerifyServiceSignature" = 0x0
223 Setting this value will disable the runtime verification of digital
224 signatures on afsd_service.exe and the afs dlls which it loads. It
225 will not disable the the version number check on those same files.
226 The signature verification is not a security messure and is only meant
227 to enhance the ability to afsd_service.exe to detect potential
228 destablizing mixtures of DLLs from incompatible distributions.
230 Added code to auto-disable the signature verification check if
231 the desired cache size is greater then 700MB.
233 * Windows' WinTrustVerify(WIN_SPUB_ACTION_PUBLISHED_SOFTWARE) is
234 used to verify the validity of the afsd_service.exe binary
235 as well as each of the AFS DLLs loaded by the service. Not only
236 must the digital signature be valid but the signatures of the
237 DLL must be signed by the same entity as the service.
239 * Implement new functions: cm_freelanceMountPointExists and
240 cm_freelanceSymlinkExists. Use them along with other validity
241 checks in cm_freelanceAddMount and cm_freelanceAddSymlink to
242 ensure that name collisions do not occur and that empty strings
243 are not valid file names.
245 A symlink may not have a name which would resolve to a valid
246 cell name. Doing so would prevent access to the cell.
248 * Add missing cm_HoldSCacheNoLock call to Freelance mount point
249 re-initialization code. The reference counts of the fake root.afs
250 volume scache object(s) would become invalid when the mount point
251 or symlink lists were altered.
253 * Add registry entries to provide mappings from the afsdsbmt.ini
254 to the new locations for applications which count on the use
255 of the old Profile file APIs. These apps are likely to fail
256 if the user does not have administrator privileges and the
257 registry is locked down.
259 * The afs_config.exe submounts dialog had two errors.
260 First, attempts to remove entries failed because the registry
261 key was being opened without KEY_WRITE privileges.
262 Second, when editing a submount entry, changing the name
263 would add a new key and leave the original one in place.
264 Now the original submount will be removed if its name is
267 * In recent months there have been several incidents in which
268 users have experienced problems starting or accessing
269 afsd_service.exe and after significant effort has been spent
270 it has turned out that they have two versions of AFS on the
271 machine or an inconsistent set of DLLs.
273 Code has now been added to afsd_service.exe which will walk
274 the list of modules loaded by afsd_service.exe and validate
275 that the version of the AFS DLLs matches the version of the
276 afsd_service.exe executable. If they do not match the service
279 * When Freelance mode is enabled and there is no registry
280 key HKLM\SOFTWARE\OpenAFS\Client\Freelance, afsd_service.exe
281 will attempt to import the afs_freelance.ini file contents.
282 If the file does not exist, it was creating a dummy file
283 with a r/o and r/w entry for the default cell and then
284 importing those values.
286 This process has been changed. The temporary file is no
287 longer created. Also, both the OpenAFS Client install
288 directory as well as %WINDIR% are checked for previous
289 afs_freelance.ini files.
291 * Added support for VL_GetEntryByNameN(). Still need to add
292 support for VL_GetEntryByNameU() for multi-homed support.
294 * Fix a deadlock situation in afscreds.exe when canceling an
295 auto-generated Obtain Tokens dialog
298 * Fix the locking of objects during Directory Searches in the
299 SMB/CIFS server. The failure to properly lock the reference
300 counts was resulting in the premature freeing of smb_dirSearch_t
301 objects while they were still in use by the SMB/CIFS client.
302 This does not solve the "Invalid Handle" problem.
304 * Fix Find Cell By Name pioctl call to return a valid cell
305 name for the Freelance fake root.afs volume.
306 "Freelance.Local.Root".
308 * Fix the Explorer Shell Extension Symlinks->Add operation.
309 The dialog template was missing and the link destination
310 string was too short.
312 * Add support for symlinks to Freelance root.afs volume
313 Stored at HKLM\SOFTWARE\OpenAFS\Client\Freelance\Symlinks
314 <number> = "<linkname>:<relative-path>."
315 Use symlink.exe to create, list, or remove
317 * Remove the fallback to the use of KFW's KRB4 library when obtaining
318 tokens. We never obtain KRB4 tickets.
320 * Fix AFS Client Configuration Control Panel to support new SysName
323 * Fix a bug in afsd_service.exe which could result in the SysName
324 not being read from the registry.
327 * Add code to block the issuance of AFS tokens by aklog.exe or
328 afscreds.exe when the Kerberos 5 principal name contains a dot.
330 * Modify the IsAdmin() function to always treat the local SYSTEM
331 account as an AFS client administrator. Affects fs.exe and
334 * Modify the internal handling of Quota Exceeded errors
336 * Upgrade all reference count fields in the Windows cache manager
337 and the osi library to use unsigned long instead of signed short.
338 A similar fix has been applied to the afs rpc (rx) library.
340 * fix the Windows cache manager to prevent it from replacing the
341 rx_connection object associated with the cm_conn_t object on each
342 and every operation if "fs crypt" was set. This explains the
343 dramatic performance difference when crypt is used vs clear.
344 The problem: 'cryptall', a boolean flag indicating whether or not
345 "fs crypt" is set, was being compared to the rx_connection
346 cryptlevel which is either rxkad_clear:0 or rxkad_crypt:2.
347 1 != 2 and therefore the rx_connection was always destroyed
348 and replaced on each and every operation.
350 Lock the cm_conn_t object around every call to RXAFS_xxxx functions.
351 It is not safe for the cm_conn_t object to not be locked because
352 rx_DestroyConnection might be called from another thread if:
353 - the user's tokens have changed or expired
354 - the crypt mode has changed
356 This fix appears to have also taken care of the problems associated
357 with Overlapped Writes resulting in Delayed Write errors.
359 * fix NSIS installer's AdminGroup.exe to properly create and
360 remove groups when given -create or -remove. The string comparison
363 * fs sysname now accepts a list of sysname values
365 * added a new registry value HKLM\SOFTWARE\OpenAFS\Client "IoctlDebug"
366 DWORD which when set to a non-zero value will cause error message
367 text to be output to stderr from the pioctl() routine. Useful in
368 debugging failures of fs.exe, tokens.exe, etc.
370 * added a test to the power management code to only perform a
371 flush operation if there is at least one network adapter which
372 is not a loopback adapter.
374 * Fix bug in loading of registry value HKLM\SOFTWARE\OpenAFS\Client
375 "EnableKFW". This value will not be read if the key
376 HKCU\SOFTWARE\OpenAFS\Client exists; even if the "EnableKFW"
377 value under that key does not.
379 * provide mechanisms to force the use of krb524d for Kerberos 5
380 ticket to AFS token conversion. For afslogon.dll and afscreds.exe
381 there is a new registry value "Use524" and for aklog.exe a new
382 command line parameter "-m".
384 * Fix the pattern matching algorithm to properly match patterns
387 * smb_ReceiveCoreRename() was factored to produce smb_Rename()
388 which is used by both the original function and the new
389 smb_ReceiveNTRename(). smb_ReceiveNTRename() supports the
390 creation of HardLinks in addition to Renaming. smb_Link()
391 is a new function which creates HardLinks via cm_Link().
392 cm_Link() is a new vnodeops function which creates links
395 smb_ReceiveNTRename() does not support the File Copy and
396 Move Cluster Information operations described in its interface.
397 ReceiveNTRename is under documented in CIFS-TR-1p00_FINAL.pdf.
399 * When opening files via symlinks, we should follow the symlinks
400 until we reach the actual file stat cache entry. The stat cache
401 entry of the file should then be stored in the FID instead of
402 stat scache entry of the symlink.
404 * return bad operation errors for all unimplemented functions
405 even if we do not know the functions exist.
407 * Log bad packets and unknown operation packets to the trace log
409 * Map CM_ERROR_BADOP to STATUS_NOT_SUPPORTED instead of
412 * Update list of known CIFS operations to include all those listed
413 in CIFS-TR-1p00_FINAL.pdf.
415 * Modify the handling of HKLM\SOFTWARE\OpenAFS\Client\Submounts
416 to support the REG_EXPAND_SZ type.
419 * A new Windows authorization group "AFS Client Admins" is now
420 created and populated with the members of the "Administrators"
421 group. The group is used to determine which accounts on the
422 machine may be used to modify the AFS Client Configuration via
423 the UI and command line tools. afs_config.exe, fs.exe,
425 * Modify the WinLogon Logoff Event Handler to query NT4 domain
426 controllers for the remote profile path if Active Directory
427 services are not available.
429 * Fix aklog.exe to not add the AFS ID to the username
431 * PTS registration of new users to foreign cells has been added to
434 * The cm_Daemon thread is used to perform checks for
435 down servers, up servers, volumes, callback expirations,
436 lock maintenance and token expiration. Due to a gaff in
437 larger integer division the thread never performed any
438 work. Instead the current time computation would always
439 be less then the trigger times. This had an adverse affect
440 on the client's ability to maintain communication with servers,
441 keep volumes up to date, and flush user tokens and acls
442 when they have expired. This was broken when the 1.3 branch
443 was modified to support VC7 which no longer included
446 * An initialization problem with the Freelance code was
447 detected while fixing the callbackRequest. The cm_rootSCachep
448 object is obtained during afsd_InitDaemons() but the callback
449 information is incomplete. The callback information will not
450 be obtained until cm_MergeStatus is called from within
451 cm_GetCallback. Unfortunately, cm_SyncOp did not properly
452 test for the conditions under which the callback information
455 * Reports have been filed indicating that callbacks were
456 being lost. An examination of the code indicated that the
457 cm_server_t objects were not being properly reference
458 counted by the cm_scache_t and cm_callbackRequest_t objects.
459 In particular, the cm_server_t objects may have been freed
460 from beneath the cm_conn_t objects.
462 All of the reference counting is now done via the functions:
467 this improves the ability to track the referrals.
469 Each cm_BeginCallbackGranting Call now allocates a reference
470 to the cm_server_t. The cm_EndCallbackGrantingCall either
471 frees the reference or transfers it to the cm_scache_t
472 cbServerp field. These are then appropriately tracked
473 through the cm_Analyze call.
475 * Ensure that the dnlc hash table is the same size as the
476 dir name hash table (as per original author's note).
477 Increase the dnlc CM_AFSNCNAMESIZE to a multiple of 8
478 for compatibility with 64-bit systems.
480 * fix smb_ApplyV3DirListPatches to properly apply the hidden
481 attribute to dotfiles when the infoLevel < 0x101 and
482 cm_SyncOp has failed.
484 * Fix the Freelance registry initialization code. There
485 was a possibility that some systems could end up with
486 garbage in the registry during a clean install.
489 * file and directory names beginning with "." will now be given the
490 hidden attribute when the volume access is anonymous. this matches
491 the behavior when the volume access is via an authenticated user.
493 * Added a change monitor to the HKLM\SOFTWARE\OpenAFS\Client\Freelance
494 key. When a change occurs mark the root.afs data as invalid and
495 for it to be reloaded on the next access. This allows administrators
496 to modify the mount point list without restarting the service.
498 The freelance client used to provide a fake modification time for
499 the root.afs volume data and its mount points of 7/09/2001 14:24 EDT.
500 Added code to extract the last modification time of the Freelance
501 registry key and use that instead. The time now represents the
502 most recent mount point change.
504 * PTS registration of new users to foreign cells has been added to
507 * Additional Cache Control and Credential Manager options have been
508 added to the WiX installer. See deployment guide for details.
510 * The CachePath setting is now optionally a REG_EXPAND_SZ type
512 * The WiX installer has been upgraded. Version 2.0.1927.1 is now
515 * The loopback installation code may have had a problem updating the
516 %ETC%\HOSTS file which could have resulted in a premature failure.
517 Work around code has been added for the case where the file cannot
520 * The default max chunksize was increased from 15 (32K) to 17 (128K)
521 because Windows sends 64K blocks when using overlapped writes.
523 * The default number of server threads was increased from 4 to 25 to
524 better handle overlapped writes.
526 * The "AfscredsShortcutParams" registry value was not being properly
527 loaded by afscreds.exe. Therefore, the default value was always being
528 used instead of the value set by the installer.
530 * Windows XP provides downgrade attack detection to prevent an attacker
531 from being able to force the use of NTLM simply by disrupting
532 communication with the KDC. This attack cannot exist between the
533 Windows CIFS client and the AFS Client Service. Therefore, when a
534 downgrade has been detected the afs pioctl library will force the
535 establishment of a new CIFS connection using NTLM.
537 * A locking error was discovered surrounding all references to volume
538 server lists within the cm_cell.c source file.
540 * The logged into Windows username was incorrect on Terminal Server
543 * A new registry value "NonPersistentCaching" was added to the service
544 parameters key. When set to a non-zero value, the afs cache is stored
545 in the Windows paging file. There are two limitations to choosing
547 1. when persistent caching is implemented it won't work with
548 this flag set since there will be nothing to persist.
549 2. with this flag set the initial paging allocation cannot be
550 changed while the service is running
552 * An initialization bug was discovered in aklog.exe which affected users
553 who have a domain name for their afs servers which could not be mapped
557 * afs_config.exe now validates cell names against DNS in addition
558 to the CellServDB file.
560 * In order to allow the freelance client to connect to a volume with ID
561 equal to 1 on the default cell we changed the fake root.afs volume ID
562 once again. This time we choose 0xFFFFFFFF. In addition, we change
563 the cell ID of the fake root.afs volume from 1 to 0xFFFFFFFF as well.
564 It will now be impossible for a volume ID to match that of another
565 cell unless the client is connected to 0xFFFFFFFD cells. That should
566 be enough room for growth.
568 * Fix "fs mkmount" command to work with UNC paths and when
569 started from non-AFS drives. It is now possible to create a mount
570 point in the freelance fake root.afs volume with the command
572 fs mkmount \\AFS\all\<directory-name> <volume-name> <cellname>
576 fs mkmount \\AFS\all\openafs.org root.cell openafs.org
577 fs mkmount \\AFS\all\.openafs.org root.cell openafs.org -rw
579 * The algorithm used to re-attempt access to the servers associated with
580 a volume has been altered to properly address the case in which all
581 servers have been marked down. The previous algorithm did not reset
582 the server's down flags so the servers were never actually retried.
583 This caused a problem with active volumes if the network connectivity
584 was lost as could be the case with a network cable removal, wireless
585 drop, or laptop hibernation. With the fix volume access is restored
586 almost instantenously when network connectivity becomes available.
588 * Support for SMB/CIFS browsing has been added to the AFS Client Service
589 SMB server. It is now possible to use "NET VIEW \\AFS" to obtain a
590 listing of AFS submounts and freelance mount points. Support for
591 NETSHAREENUM, NETSHAREGETINFO, NETSERVERENUM2, NETSERVERGETINFO
592 significantly enhances the behavior of AFS volumes within the Explorer
593 Shell. For instance, "AFS" now shows up as server in the Explorer
594 with each submount or freelance mount point visible as a share.
595 The right click menu in each folder now works with full functionality
596 on a consistent basis.
598 * The network provider can be configured to have different behavior
599 depending on the domain that the user logs into. These settings are
600 only relevant when using integrated login. A domain refers to an
601 Active Directory (AD) domain, a trusted Kerberos (non-AD) realm or the
602 local machine (i.e. local account logins). The domain name that is
603 used for selecting the domain would be the domain that is passed into
604 the NPLogonNotify function of the network provider. (see registry.txt
607 * Added a new registry value [HKCU\SOFTWARE\OpenAFS\Client]
608 "Authentication Cell" which may be used to specify a default
609 authentication cell for afscreds.exe which is different from
610 the default cell for the AFS Client Service daemon.
612 * Added a Logoff WinLogon Event Notification function to afslogon.dll.
613 afslogon.dll moved to %WINDIR%\System32\.
614 New registry entries added to register the dll for Winlogon events.
616 The logoff event will now force a call to ktc_ForgetAllTokens()
617 using the context of the user being logged off as long as the
618 user's profile is not loaded from within AFS. If the profile
619 was loaded from AFS we can't release the tokens since the Logoff
620 event is triggered prior to the profile being written back to
621 the its source location. This is now performed in an XP SP2
624 * Windows XP SP2 Internet Connection Firewall interoperability
627 * The %WINDIR%\afsdsbmt.ini contains four sections:
628 Submounts, Drive Mappings, Active Maps and CSC Policies.
629 The Submounts and CSC policies are now stored in the registry under
630 [HKLM\SOFTWARE\OpenAFS\Client\Submounts]
631 [HKLM\SOFTWARE\OpenAFS\Client\CSCPolicy]
632 The Drive Mappings and Active Maps are stored in the registry under
633 [HKCU\SOFTWARE\OpenAFS\Client\Mappings]
634 [HKCU\SOFTWARE\OpenAFS\Client\Active Maps]
636 There is no automatic migration of this data as it would be impossible
637 to consistently migrate data to user profiles which may not be active
638 when the machine is updated.
640 * The %WINDIR%\afs_freelance.ini contains lists of mountpoints for the
641 fake root.afs volume. For the same reasons as for the cellservdb file,
642 this information should not be in %WINDIR%. This information is now
643 kept under the registry key
644 [HKLM\SOFTWARE\OpenAFS\Client\Freelance]
646 The data from the afs_freelance.ini file will be automatically
647 migrated to the registry on first execution of afsd_service.exe
649 * Keeping the CellServDB file in the location %WINDIR%\afsdcell.ini is
650 troublesome for several reasons. One, it is confusing for those who
651 expect the file to be named "CellServDB" instead of "afsdcell.ini".
652 Two, this file is not a Windows Profile formatted file. Three,
653 applications should not be reading or writing to %WINDIR%. It causes
654 problems for Windows Terminal Server.
656 The new location of CellServDB will be the OpenAFS Client install
657 directory which is by default C:\Program Files\OpenAFS\Client and can
658 be determined by querying the registry for
659 [HKLM\SOFTWARE\TransarcCorporation\AFS Client\CurrentVersion]PathName
661 The existing afsdcell.ini will be migrated by the NSIS installer.
662 The Wix installer must still be updated to do the same.
664 * Change NSIS installer to use DNS by default; to remove Integrated Logon
665 High Security mode; and to add Terminal Services compatibility registry
666 entries to allow the OpenAFS tools to find the afsdcell.ini and other
667 configuration files in %WINDIR%.
669 * Add support for authenticated SMB connections. This will remove
670 the need for high security mode in most situations. Both NTLM
671 and Extended Security (GSS SPNEGO) modes are supported. Effectively,
672 only NTLM can be used even though Kerberos is now supported. The
673 reason is that it is not possible to construct a service principal
674 which is unique to each individual machine.
676 SMB Extended Auth does not work on XP SP2 unless one of two registry
677 modifications are made:
679 (1) To disable the check for matching host names on loopback connections
680 set this key. This does not require a reboot:
682 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
683 "DisableLoopbackCheck"=dword:00000001
685 (2) To add the AFS SMB/CIFS service name to an approved list. This
686 does require a reboot:
688 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0]
689 "BackConnectionHostNames"=multi-sz "AFS" "MACHINE-AFS"
691 afsd_service.exe will automatically add the current Netbios Name
692 to the BackConnectionHostNames list and then temporarily disable
693 the loopback check for one cycle of startup/shutdown of the service.
694 We assume most folks do not start/stop without a reboot so this
695 will be adequate in most cases.
697 * Fix security hole in afslogon.dll which allowed passwords to be
698 sent in clear text to the KDC in a misformed principal name.
700 * Fix cm_GetCell() to properly handle expired dns entries
703 * If Freelance mode is active and the afs_freelance.ini
704 file does not exist, do not create an empty file.
705 Instead create a file containing ro and rw mountpoints
706 to the default cell using the standard conventions.
708 * Modify the Freelance support to handle the ability
709 to create rw mount points in the fake root.afs volume.
711 * Changed the RPC mechanism used for token setting from
712 named pipes to local. Use of named pipes can be restored
713 by setting the environment variable AFS_RPC_PROTSEQ to
716 Named pipes were required when a Windows 9x system was
717 using a NT system in gateway mode which is incompatible
718 with our use of local loopback adapters.
720 * In afscreds.exe, if a username of the form user@REALM is
721 specified and no password is specified, do not perform a
722 kinit operation. Only perform the aklog functionality.
724 * Add a new registry value which allows the number of processors
725 on which afsd_service.exe executes to be restricted. Valid
726 values are 1..numOfProcessors
728 HKLM\SYSTEM\CurrentControlSet\Services\TransarcAfsDaemon\Parameters
732 * A second MSI based installer option is now available.
734 * Fixed Kerberos 5 kinit functionality in afscreds.exe to properly
735 request tickets for user/instance@REALM instead of just user@REALM
737 * Modify the Power Management Notify routine to wait for the Hard Dead
738 timeout period instead of a fixed 19 seconds. With the longer timeout
739 periods Hibernation and Standby could never succeed when network
740 connectivity is not available.
742 * The following fs.exe commands are now restricted to Administrator:
743 - checkservers with a non-zero timer value
746 - sysname with a new sysname list
755 setting the default sysname for a machine should be done via the
756 registry and not via "fs sysname".
758 * NSIS installer adds options to install Debugging Symbols
759 and the Microsoft Loopback Adapter; the user is now also
760 given the ability to select the afscreds.exe startup options.
762 * Build system modified to generate symbols for FREE (aka RELEASE)
763 builds as well as CHECKED (aka DEBUG) builds
765 * Sites which have a volume ID of 0x20000001 assigned to their
766 root.cell volumes have been experiencing problems with accessing
767 the root.cell volume of their cell when Freelance mode has been
768 active. This was because 0x20000001 was assigned to the fake
769 root.afs volume created by freelance. The fake volume id is
770 now set to 0x00000001 to prevent conflicts.
772 * The timeout logic in the AFS Client Service has been wrong
773 for sometime. It is based on two different assumptions.
774 First, the SMB client timeout is a fix value as was the case
775 with OS/2 Lan Manager. This assumption is incorrect. The
776 SMB timeout in Windows is a dynamic value computed based upon
777 a fixed minimum timeout to which is added time based upon the
778 size of the request and the performance characteristics of
779 the connection. Second, it is the responsibility of the
780 SMB Server to enforce the timeout requirements of the client.
781 This is untrue. The SMB Server cannot be expected to know
782 the requirements of the client. More importantly, if the
783 SMB server uses the SMB client timeout as a value to restrict
784 its behavior as an RX client, the performance characteristics
785 of the local SMB session would be used to prematurely terminate
786 WAN connections with significantly different performance
789 The timeout logic has therefore been modified in the following
791 . the Lan Manager Workstation (SMB) Session Timeout is used only
792 as a basis for configuring the Connection Dead Timeout
793 and Hard Dead Timeout values. The Connection Dead Timeout
794 must be at least 15 seconds longer than the SMB Timeout
795 and the Hard Dead Timeout must be at least double the
796 Connection Dead Timeout.
797 . New registry entries have been added to allow the Connection
798 Dead Timeout and Hard Dead Timeout values independent of the
799 Lan Manager Workstation Session Timeout
800 . The test to enforce the SMB Client Timeout has been removed.
802 One of the side-effects of removing the enforcement of the SMB
803 Client Timeout is that regardless of whether or not the SMB client
804 is available to receive the response (and how would the SMB server
805 know) the RX protocol response can be used to update the AFS
806 Client Service state for ready access by future SMB client
809 This should be the end of the "Server paused or restarting messages"
811 * Add support for arbitrary UNC paths to the pioctl() support.
812 This enables the fs commands as well as the AFS Shell Extension
813 to work correctly when UNC paths are being used.
815 * Fix afscreds.exe (by updating afskfw.lib) to search for cells via
816 DNS if the cell configuration cannot be determined via CellServDB
818 * Add debug info to test whether CM_BUF_WAITING or CM_SCACHE_WAITING
819 are ever set more than once at a time
821 * Fix the management of lists of cm_cell_t structures when using
822 DNS to lookup cell information. The previous code would fail to
823 reuse the same cellID for a cell if DNS was used more than once
824 for a given cell name. When the ttl expired, a single cm_cell_t
825 could be inserted into the cm_allCellsp list more than once
826 producing a loop. In addition, the vlServerp list belonging to
827 the cell was not freed resulting in improper refCounting of the
830 * Add DNS support to cm_IoctlNewCell() which previous only examined
833 * Add cm_FreeServer() function and call it from cm_FreeServerList()
834 to properly garbage collect cm_server_t objects
836 * Add numVCs variable to smb.c to track the number of smb_vc_t
837 objects created and use it to initialize the vcID field which
838 previously was set to 0 in all objects resulting in FindByID
841 * Fixed DNS lookups to work consistently throughout the OpenAFS
842 product instead of just from within the afsd_service.exe
844 * Added a runtime check to ensure that AFS Client Service SMB
845 Server is accepting connections before attempting to mount
848 * Read IP addresses for volume servers out of the CellServDB
849 file if gethostbyname() on the hostname fails.
851 * Fix getcellconfig() to populate both the Hostnames as well
852 as IP addresses when loading cell data via DNS
854 * Increase the Connection Dead Time to 50 from 20 seconds
855 Increase the Hard Dead Time to 120 from 40 seconds
856 (matches the Unix values)
858 * Fixed an assertion validating the number of allocated NCBs
860 * Fixed the build environment to consistently build for
861 Windows 2000 and above. (APPVER = 5.0)
863 * Fixed rx_debug to properly validate the receipt in incoming
864 data with select() and recvfrom(). Do not copy data out of
865 the socket buffer unless success is indicated.
868 * afsd_service.exe will now display a message box to the
869 desktop when it terminates due to an IP Address Change.
871 * installer no longer deletes AFS Server configuration data
874 * installer generates a warning dialog if the RPC service
875 is not properly configured
877 * installer compressed with lzma instead of bzip2
879 * afsd_service.exe shutdown crash solved once and for all
881 * reference counting of smb_vc_t data structures improved
883 * name space collision of smb_fid_t event objects corrected
885 * the output of "fs memdump" is now written to
886 %WINDIR%\TEMP\afsd_alloc.log
888 * the file TaAfsApp_1033.dll is now properly installed allowing
889 the User Manager to start
891 * a new algorithm is used for computing filename pattern matches
893 * afscreds.exe now accepts user names containing instance
896 * Fix the Directory Name Lookup Cache to be case-sensitive.
897 This is crucial in environments in which a Windows client
898 is accessing a directory with more than one filename that
899 differs only by case. If the directory contains "FOO"
900 and "Foo". You want "DEL Foo" to delete the correct one.
901 We still have a problem in that "DEL foo" will delete a
902 random filename. This will be addressed in a future release.
904 * Fix afscreds.exe -M option (renewMaps) to work when High
905 Security mode is off. Also, remember to disable the ActiveMap
906 flag in afsdsbmt.ini when a drive mapping is removed.
908 * Updates to NSIS installer script. AFS Server configuration
909 data will not be destroyed on un-install or re-install.
910 Use a better compression algorithm.
912 * afslogon.dll now uses KFW to obtain tokens when available
914 * afslogon.dll when given an all uppercase username will
915 attempt to authenticate with both the uppercase name
916 and an all lowercase variation
918 * DST modification removed. The fix appears to make things
919 worse after a reboot of the machine.
921 * fs.exe: added "cscpolicy" which is used to
922 change client side caching policy for AFS shares
924 Usage: fs cscpolicy [-share <AFS share>] [-manual] [-programs]
925 [-documents] [-disable] [-help]
927 * Several uninitialized variables have been initialized
929 * It is now possible to obtain tokens using cross realm
930 Kerberos within afscreds.exe:
932 user: jaltman@ATHENA.MIT.EDU
934 Will obtain a cross realm ticket for jaltman/DEMENTIA.ORG@ATHENA.MIT.EDU
935 will will in turn be used to obtain afs@DEMENTIA.ORG.
936 The resulting token will be stored with the display name
937 jaltman@ATHENA.MIT.EDU@dementia.org
939 * aklog.exe has been added to the client
941 Usage: aklog [-d] [[-cell | -c] cell [-k krb_realm]]
942 [[-p | -path] pathname]
946 -d gives debugging information.
947 krb_realm is the kerberos realm of a cell.
948 pathname is the name of a directory to which you wish to authenticate.
949 -noprdb means don't try to determine AFS ID.
950 -5 or -4 selects whether to use Kerberos V or Kerberos IV.
951 (default is Kerberos V)
952 No commandline arguments means authenticate to the local cell.
955 * All of the resource files have been restructured to adhere to
956 a set of rules IBM implemented for loading string resources.
957 These rules had either been forgotten or were not discovered
958 by folks working on the OpenAFS sources. The end result was
959 memory corruption. This is primary item which was preventing
960 the AFS Server from working.
962 * Increased the size of the maximum ticket size stored in a token
963 from 344 bytes to 12,000. Increased the buffers used to convey
964 messages between the pioctl() caller and the SMB Server from
965 1000 bytes to 12,512. The code appeared to have been writing
966 above the top of the stack by quite a few number of bytes.
967 (The increased ticket size is necessary for the next item.)
969 * When obtaining AFS Tokens via KFW, krb524 is no longer required.
970 Instead the raw Kerberos 5 ticket is used in its entirety. This
971 is extremely important as it allows us to use pure Kerberos 5 KDCs
972 as the source of the AFS authentication. The use of up to 12,000 byte
973 tickets will allow tickets produced by all versions of Microsoft
974 Active Directory to be used.
975 - create a user account.
976 - designate it DES only
978 - specify its UPN to be "afs@realm"
979 - assign a SPN of "afs/cellname" to the UPN with setspn.exe
981 * Do not enforce the funky 8dot3 pattern matching rule that the first "."
982 is special when using long file names. (you must use "*.*" and not "*")
983 Instead only enforce it when performing 8dot3 searches.
985 * Fixed the DST problem with creation times being set one hour ahead
987 * Fixed the problem when using \\afs\cell-alias. For example,
988 \\afs\uncc instead of \\afs\uncc.edu. Do not a new cell struct
989 for the alias name; instead simply expand the name. One of the
990 symptoms of this problem was a loss of acquired tokens.
992 * Fixed the AFS Shell Extension. The Symbolic Link menu was empty
993 of strings. (Only English strings provided.)
995 * Fixed the installer to properly replace in use files.
997 * Fixed the build system to cleanup generated component version files
999 * The release build compiled with MSVC 6.0 compiler to avoid the
1000 afsd_service.exe shutdown crash. This does not solve the problem
1001 but simply avoids it for the time being.
1005 * fix afslogon.dll to not corrupt memory when High Security mode
1008 * fix afsd_service.exe to not attempt to restore the stack when
1009 an exception occurs. (not safe in multi-threaded programs)
1011 * fix uninstaller to properly remove the CRT and MFC DLLs
1013 * remove a Message Box from afscreds.exe when getcellconfig()
1014 fails on a kerberos realm which is not a cell
1016 The following is a list of changes to the OpenAFS for Window client
1019 * "fs setserverprefs" will leave afsd service deadlocked
1021 * "vos listaddrs" will core dump
1023 * installer sets the appropriate keys to support Integrated Logon
1025 * installer disables the "Find Lana by Name" functionality as it
1026 was causing headaches for many users
1028 * fix the intermittent crash of the power management thread when
1029 shutting down the AFS Client Service
1031 * optimizes the obtain drive mount list functionality which is
1032 executed every time the mount tab in afscreds.exe and afs_config.exe
1033 are refreshed. (this happens a lot)
1035 * fix the service shutdown logic. add the STOP_PENDING state
1036 and do not accept additional service events after we declare
1039 The following is a list of changes to the OpenAFS for Window client
1042 * flexelint was run against the source tree and hundreds (perhaps
1043 thousands) of corrections were applied to ensure prototypes
1044 were in use; types were used consistently; variables were
1045 initialized; unused variables were removed; etc.
1047 * A wide variety of instrumentation was added including the
1048 ability to produce a stack trace from within afsd_service.exe
1051 * Dynamic configuration of the RDRtimeout value based upon the
1052 LanMan Workstation Session Timeout
1054 * The mount root no longer needs to be called "/afs". This
1055 is now set by a registry value "MountRoot" within the key
1056 HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
1058 * The cell list is now only read out of afsdcell.ini when the
1059 file changes instead of each time a cell is resolved.
1061 * Thread synchronization was added to cm_server.c and ktc_nt.c
1063 * All calls to GlobalAlloc()/GlobalFree() were replaced with
1064 calloc()/free(). The Global functions were needed on Windows 3.x
1065 but have caused a variety of problems on the Win32 platforms.
1066 Avoiding them is highly recommended by several Microsoft
1067 Knowledgebase articles
1069 * Support for Symbolic Links added to the AFS Shell Extension
1071 * Added a registry value "OverlayEnabled" to determine if
1072 Shell Extension Overlays should be enabled.
1073 HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
1075 * New Build system to support VC6, VC.NET, VC.NET2003 compilers and
1076 separate trees for checked and free builds. Build system supports
1077 a custom directory src\WINNT\extra which can be used as a grafting
1078 location of organization specific additions to the build tree.
1080 * New installer built using NSIS 2.0.
1082 * Named all kernel objects in order to allow them to be monitored
1083 with tools such as SysInternals' ProcExp.exe.
1085 * Introduced new EventLog framework for AFSD
1087 * Introduced Power Management interface to AFSD for Standby and
1088 Hibernate modes to allow cache to be flushed prior to network
1091 * Utilize Win32 DNSQuery API instead of internal routines. This
1092 allows DNS SRV queries to be sent to all current domain name
1093 servers. Not just one specified in an INI file. DNS is now
1096 * "NetbiosName" registry value may be used to specify a fixed
1097 Netbios Name such as "AFS" to be used instead of "HOSTNAME-AFS"
1098 when the loopback adapter is in use. If you need to use the
1099 old notation with a loopback adapter installed specify a registry
1102 "NetbiosName" REG_EXPAND_SZ = "%COMPUTERNAME%-AFS"
1104 * Refactor all modules which depend on LAN Adapter and NetbiosName
1105 determination in a new library: lanahelper.lib. This allows for
1106 consistent behavior throughout the product.
1108 * Move the afsd.log and afsd_init.log files to the directory specified
1109 by the "TEMP" environment variable. This is usually %WINDIR%\TEMP
1110 for services. Added the Date to the log entries.
1112 * New registry value "RxMaxMTU" used to limit the size of the RX
1113 packets sent by the AFS Client Service to the Server. In order
1114 to enable OpenAFS to work across the Cisco IPSec VPN the packet
1115 size must be restricted to 1264 or smaller. The latest NSIS
1116 installer sets a value of 1260 by default.
1118 * New registry value "RxNoJumbo" to disable the use of Jumbo Rx
1119 packets. This is not needed in order to work across the Cisco
1120 VPN but might be needed for other network environments. This
1121 value is not set by the NSIS installer.
1123 * New registry value "HideDotFiles" is used to apply the Hidden
1124 attribute to files whose names begin with a '.'. This value
1125 is set by the NSIS installer.
1127 * New registry value "MaxMpxRequests" allows the maximum number
1128 of multiplexed sessions to be configured at run time. This
1129 value is not set by the NSIS installer. The default value is
1132 * New registry value "MaxVCPerServer" allows the maxmimum number
1133 of VCs per server to be configured at run time. This value is
1134 not set by the NSIS installer. The default value is 100.
1136 * New registry value "AllSubmount" allows the "all" submount to
1137 be disabled by setting its value to 0x00.
1139 * Allow cells names to be valid mount points
1140 \\<netbiosName>\<cellname>
1142 * Store the active state of drive mappings in order for afscreds.exe
1143 to restore them upon startup
1145 * Add exception handling to generate a Stack Trace to the afsd_init.log
1146 file if one happens to occur.
1148 * Add lots of logging to help detect the cause of invalid SMB packets
1150 * Enable Kerberos for Windows to be used to obtain AFS Tokens via
1151 conversion of Kerberos 5 "afs" service tickets. Supports auto-
1152 renewal of expiring tokens as long as afscreds.exe is running.
1154 * New afscreds.exe command line options:
1156 -M = renew drive maps
1157 -N = ip address change detection
1160 * New registry value "EnableKFW" in {HKCU,HKLM}SOFTWARE\OpenAFS\Client
1161 determines whether or not MIT Kerberos for Windows should be used
1162 to obtain tokens via Kerberos 5 tickets.
1164 * New registry value "AfscredsShortcutParams" in
1165 {HKCU,HKLM}SOFTWARE\OpenAFS\Client
1166 determines the command line parameters to be specified when "fixing"
1167 the AFS Shortcut in the user's startup folder.
1169 * The "ShowTrayIcon" registry value has been moved from
1170 HKLM\Software\TransarcCorporation\AFS Client\AfsCreds to
1171 {HKCU,HKLM}SOFTWARE\OpenAFS\Client
1173 * The <cell name> registry values used to store the token expiration
1174 reminders have been moved from
1175 HKLM\Software\TransarcCorporation\AFS Client\AfsCreds to
1176 {HKCU,HKLM}SOFTWARE\OpenAFS\Client\Reminders
1178 * Obtain the Logon User Name from the Explorer key when available
1180 * new text document doc\txt\winnotes\registry.txt lists all registry
1181 values used by OpenAFS (excluding the AFS Server)
1183 * BUG: rx_securityClass objects were not properly reference
1184 counted and were never freed.
1186 * BUG: reduce the number of conditions under which CM_ERROR_TIMEOUT
1187 would be generated. The existence of a server does not imply
1188 that it is not down. If all of the servers for a cell are down
1189 return CM_ERROR_NOSUCHVOLUME instead. This prevents the Explorer
1192 * BUG: the directory name lookup cache failed to free the entries
1193 in the cache when the name cache entries cycled. The entries
1194 in the cache would become dereferenced without being freed.
1196 * BUG: fs setserverprefs could be executed without Administrator
1199 * BUG: the number of allocated NCB objects (100) exceeded the number
1200 which could actually be waited upon by the kernel (64). Any objects
1201 which were utilized above the limit could never have event completions
1204 * BUG: smb_username_t objects were not being reference counted and
1205 were not properly freed.
1207 * BUG: smb_tid_t objects could under unusual circumstances be freed
1208 before they were no longer referenced.
1210 * BUG: smb_fid_t object pointer were frequently used even when
1211 their value could be NULL. They were not properly released and
1212 therefore they were never freed.
1214 * BUG: smb_packet_t data structures were not completely initialized
1217 * BUG: when Rx produces a CM_ERROR_NOIPC error do not return "Access
1218 Denied" because that causes the Explorer Shell to try again until
1219 access is obtained. Instead return "Remote Resources" which allows
1220 the shell to move on and treat the error as transient.
1222 * BUG: when initializing the NCBreturns structure, separate Event objects
1223 were created for each NCB although a single Event object was supposed
1224 to be shared by all.
1226 * BUG: smb_dirSearch_t objects were not being properly referenced counted
1229 * BUG: smb_tran2Packet_t objects were not being properly referenced
1232 * BUG: directory path creation did not handle the case of multiple
1233 directories requiring creation in one attempt
1235 * BUG: SMB requests which required an Extended Response were ignored.
1236 This prevented some files from being written to AFS volumes.
1238 * BUG: character strings were being freed even after they were
1239 inserted into in use data structures
1241 * BUG: inconsistent usernames were used when High Security mode was
1242 enabled. (there is still much to do in this area)
1244 * BUG: pioctl() calls which require out of band RPC operations were
1245 susceptible to race conditions when performed by multiple processes
1247 * BUG: memory allocation and deallocation crossed instances of the
1248 C Runtime Library producing memory leakage and corruption in
1249 afscreds and the client configurator.