windows-notes-20050628
[openafs.git] / doc / txt / winnotes / afs-changes-since-1.2.txt
1 Since 1.3.84:
2  * Update the NSIS install scripts to use 2.07.   This release adds 
3    recommended installation categories: AFS Client, AFS Administrator,
4    AFS Server, AFS Development Kit.  Each category includes a different 
5    default subset of the OpenAFS components.
6
7    The OpenAFS logo is now associated with the NSIS uninstall entry
8    in the Add/Remove Programs control panel.
9
10  * The user name associated with AFS tokens when obtained with
11    integrated login, the afs systray tool, or aklog will always
12    include the full Kerberos 5 user principal name regardless of 
13    whether or not the cell is local to the realm.
14
15  * Eric William's IFS redirector has been checked onto the CVS head.
16    This code is experimental at the current time and is not being 
17    incorporated into the 1-4 branch releases.  Instructions for 
18    building from sources are found in the top-level README-NT file.
19
20  * Modify integrated login so that it does not enter an infinite
21    loop if the service is not set to auto start.
22
23  * Added asetkey.exe used to set a Kerberos 5 key for use by the
24    AFS server daemons
25
26  * Added uninstall.exe to Wix installation
27
28  * More modifications to algorithms used to wake sleeping threads.
29
30 Since 1.3.83:
31
32  * Changes to the algorithms used to wake threads when they are
33    put to sleep because of conflicts over buffer operations.
34
35 Since 1.3.82:
36  * The OpenAFS integrated logon obtains Kerberos 5 tickets as part of 
37    the process of producing AFS tokens.  The tokens are stored within
38    the AFS Client Service but the Kerberos 5 tickets have been discarded.
39    New functionality has been added to temporarily copy the tickets to
40    a file ccache during the short window between the NPLogonNotify and
41    WinLogon Logon Event.  The Logon Event handler starts a process as
42    user, afscpcc.exe, that copies the tickets into the default ccache.
43    The file ccache is then destroyed by the event handler.
44
45  * During synchronization operations on stat cache entries, if threads
46    are forced to sleep it was possible that the threads would not be
47    woken under heavy load.
48
49  * Enforce the delete on close flag specified by the NTCreateX()
50    operation.
51
52  * A race condition in the rx library was fixed that resulted in 
53    a deadlock in rx_NewCall when the RX_CONN_MAKECALL_WAITING flag
54    was cleared when threads were still waiting to use the 
55    connection.   Also, fixed a potential case in which the 
56    connection could be destroyed while threads were waiting to use it.
57
58  * The DNLC freelist has been seen to become corrupted with still 
59    active entries being stored on the freelist.  Changes were made
60    to perform a better job of cleaning entries before placing them
61    onto the freelist; marking them with the correct magic value when
62    purging the list; and allowing the list to be purged on startup
63    if the cache validation fails.
64
65  * Windows Crash Reporting does not get triggered for afsd_service.exe
66    because it provides its own top level exception handler.  This patch 
67    places an explicit call to ReportCrash() on platforms which support 
68    it.  (XP and above.)
69
70    If you configure Crash Reporting via AD Policy to capture crash
71    reports within the domain, then you will receive this output.
72
73  * Generate MiniDumps independent of the Windows Crash Reporting.
74  
75    (a) If an exception occurs,a minidump will be generated at the path
76        %TEMP%\afsd.dmp. The type of minidump defaults to Normal but 
77        can be set to any other type via use of the
78        registry.      
79
80        [HKLM\SOFTWARE\OpenAFS\Client]  MiniDumpType (DWORD)
81
82    (b) MiniDumps can be generated at any time using the "fs minidump"
83        command.   This allows you to generate a minidump without 
84        stopping the process or even requiring the use of a debugger
85        on the system.
86
87   * an RX connection which reports bad ticket now treats it the same way
88     the expired ticket is treated.   The ticket is removed from the 
89     connection and a new anonymous connection is established.
90
91   * fs memdump now requires that the caller be in the AFS Client Admins
92     group
93
94   * additional debugging information is provided in cm_Analyze when the
95     error code is ignored.
96
97   * Fix a regression introduced into the pioctl() client code which
98     will cause a crash in winlogon.exe, explorer.exe and fs.exe if
99     MIT KFW is not installed. (1.3.82a)
100
101   * Remove AFS Gateway option from OpenAFS Control Panel (1.3.82a)
102
103 Since 1.3.81:
104   * Fix a race condition in cm_EndCallbackGrantingCall() that 
105     could leave 'nrevp' pointing to freed memory.  In the process,
106     optimize the processing to ensure that the applications monitoring
107     the status of the stat cache entry are only notified at most 
108     once.
109
110   * Conditionalize access to the Explorer Shell AFS->Mount Point
111     ->Remove menu item.  Disable the item if the selected item(s)
112     are not mount points.
113
114   * Activate AFS RPC (RX) Free Packet Queues stored in Thread
115     Local Storage.  This eliminates thread contention on the
116     global RX free packet queue.  This should improve performance
117     on multi-CPU systems.
118
119   * Fix the IP address filtering code to properly load/unload
120     the IPHelper DLL so that Windows XP/2003 and beyond systems
121     do not have to manually probe the registry.
122
123   * CleanupACLEnt() was not being called consistently with 
124     the cm_scache_t object referred to by the back pointer
125     mutex locked. This could in very rare conditions lead to
126     an invalid memory access.
127
128   * Added a script command to the msi installer "afs_replace"
129     which can be used to replace one version of OpenAFS with
130     another without requiring an uninstall and reinstall if
131     the installed msi is no longer in its original location.
132
133   * Apparently the problem with multi-domain forests with cross-
134     realm trusts to non-Windows realms was not entirely solved.
135     The authentication to the AFS SMB service failed because 
136     the wrong name was being used.  Using ASU as an example,
137     the authentication was being performed with the name
138     "QAAD\user" (an account in the forest root) and not 
139     "user@ASU.EDU (the MIT Kerberos principal used to login with)
140
141     The solution was to add an additional dependency on KFW
142     in order or to be able to easily obtain the client principal 
143     name stored in the MSLSA ccache TGT.  This information is 
144     used in two locations:  
145
146     - the pioctl() function 
147
148     - a new WinLogon Event Handler for the "logon" event.  
149
150     The pioctl function will now be able to use the correct
151     name when calling WNetAddConnection2() and the "logon"
152     event handler will now be able to call WNetAddConnection2().
153     The hope is that the "logon" event handler will be called 
154     before the profile is loaded but I have not guarrantee
155     that will happen. 
156
157 Since 1.3.80:
158   * Fixed a locking error in cm_TryBulkStat() which had the
159     potential of deadlocking the system for the length of time
160     it takes to perform a bulk status fetch operation.
161
162   * Replaced time conversion code (UnixTime <-> FILETIME) to 
163     be completely arithmetic instead of relying on a bizarre
164     algorithm involving a variety of C RTL time functions.
165     This has the side effect that UnixTime and FILETIME which
166     are both stored in UTC are interpretted as UTC throughout
167     the year.  Windows will apply the same localization to AFS
168     as it does to NTFS.  Applications which rely on the ability
169     to sync files between the two file systems will no longer
170     see the timestamps of files in AFS change an hour relative
171     to the files stored in NTFS or Windows based backup devices.
172
173   * Fixed a invalid memory access under a bizarre circumstance.
174     Windows will allow a physical mass media device to be 
175     installed via Plug N Play to the system and will assign it
176     the lowest available drive letter.  This is true even if the
177     drive letter is currently assigned in the user session to
178     a network device via NET USE (or its equivalent.)  When this
179     happens, queries sent to the CIFS server will contain invalid
180     data.  This invalid data was not being caught by the AFS 
181     Client Service and was resulting in a crash when Freelance
182     mode was in use.  
183
184   * Fixed a reference count error when registering callbacks
185     on a stat cache object if the callback was already registered
186
187   * Add a case to cm_Analyze() in order to handle the case where
188     cm_GetConnByMServers() returns CM_ERROR_NOSUCHVOLUME because
189     the server list for the volume is empty.  In this case, force
190     an update of the volume info and retry.
191
192   * Insert a missing cm_EndCallbackGrantingCall() which could
193     result in threads waiting for a callback to complete to never
194     be woken up.
195
196   * In the persistent cache, there is a maximum number of volume
197     entries.  Allow volume entries to be reused if the maximum
198     number have been allocated and their reference count is zero.
199
200   * If we already have a dead virtual connection object, don't 
201     ignore the fact that additional dead vc objects must be taken
202     care of.
203
204   * Removed a deadlock condition introduced in the summer of 2004.
205     Do not hold mx locks around calls to RX functions including
206     rx_NewCall().  That is what reference counts on the rx_connection
207     object are for.
208
209   * Fixed an initialization error in afslogon.dll which could
210     result in random behavior including a failure to terminate
211     the NPLogon function. (1.3.80b)
212
213   * Fixed an error preventing the use of SMB authentication
214     on Windows 2000.  (1.3.80a)
215
216 Since 1.3.77:
217   * Updated CellServDB to Public CellServDB 16 Mar 2005
218
219   * Fixed DNS AFSDB queries to ensure that "csail" cannot be
220     misinterpretted as "csail.mit.edu" when the resolver 
221     is configured to append ".mit.edu" to failed DNS queries.
222
223   * Fixed another case in which the client would replace connections
224     to the host when it was not necessary.  In this case the 
225     situation would occur if cryptall was on and the connections
226     were unauthenticated due to lack of an appropriate token.
227
228   * OpenAFS for Windows has failed to work at sites which are 
229     utilizing a cross-realm trust between an MIT/Heimdal realm
230     and a multi-domain Windows forest when the workstation being
231     accessed is not located in the root domain.  This is caused 
232     by a bug in the workstation which was triggered after the 
233     introduction of Windows 2003 Server.  When the bug is triggered,
234     the workstation attempts to authenticate users to afsd_service.exe
235     by contacting the Domain Controller instead of using the 
236     LSA loopback authentication mechanism.
237
238     One of the reasons this bug occurs is because the workstation    
239     does not have a reliable way of knowing that the service whose
240     netbios name is "AFS" is located on the workstation.  This will
241     be fixed starting in Longhorn Beta 1 by Microsoft.  The 
242     "BackConnectionHostNames" registry value will be used to 
243     indicate that the authentications to that service name should
244     be performed using the loopback authentication mechanism.
245
246     In the meantime, when Logon Caching is enabled, we can force
247     afsd_service.exe to authenticate using the logon cache before
248     contacting the Domain Controller.  This will work with both
249     password and smart card based logons.  
250
251   * The allDown logic in cm_ConnByMServers() was wrong.  The allDown
252     flag should not be cleared if a volume's server reference is 
253     marked as "offline".  In the case where all of the volume's 
254     servers are either "down" or the volumes are "offline", we want
255     cm_Analyze() to process the condition as CM_ERROR_ALLOFFLINE
256     instead of as CM_ERROR_TIMEDOUT.  In fact, CM_ERROR_TIMEDOUT
257     should never occur in practice.
258
259     In the case of CM_ERROR_ALLOFFLINE, cm_Analyze() will sleep for
260     5 seconds, clear the server down and volume busy flags, and 
261     then force an update from the VLDB.  This allows the client to 
262     update the location of a volume if the reason for it being 
263     marked offline is because it is being moved.  Calls to 
264     cm_ConnByMServers() will be retried either until success or
265     the RDRtimeout period is reached.
266
267   * Correct the Power Management code behavior in response to 
268     Standby, Suspend, and Shutdown events.  Instead of flushing the
269     buffers associated with the mounted SMB submounts, simply write
270     all buffers which are marked dirty.
271
272   * Added support for "TheseCells" to afslogon.dll.  "TheseCells"
273     provides a list of cells other than the default cell for which
274     tokens should be obtained using the default Kerberos principal.
275     This functionality is logon domain specific and is only available
276     when using KFW for authentication.
277
278   * Fixed FindNext Invalid Handle error caused by over agressive 
279     attempts at garbage collecting dirSearch entries when the 
280     dirSearch ID wraps from the maximum value to 1.
281
282   * Add support for registry defined server preferences for VLDB and 
283     File servers.  See registry.txt for details.
284
285   * Increased default cache size to 96MB and default number of cache
286     entries to 10,000.
287
288   * Fixed refCount leaks related to directory lookups and pioctl calls.
289
290   * Callbacks revoked during a race condition with an attempt to 
291     obtain the same callback no longer result in an inaccessible
292     stat cache entry.
293
294   * New command line tool:
295
296         afsdacl : Set or reset the DACL to allow starting or stopping
297              the afsd service by any ordinary user.
298
299         Usage : afsdacl [-set | -reset] [-show]
300               -set   : Sets the DACL
301               -reset : Reset the DACL
302               -show  : Show current DACL (SDSF)
303
304   * IP addresses are no longer queried once at startup.  Instead IP
305     addresses are obtained as needed.   Loopback adapter addresses are
306     no longer published to the server.
307
308   * Pay attention to the MIT KFW registry configuration for automatic
309     importation of MSLSA credentials. (SOFTWARE\MIT\Leash32,MsLsaImport)
310
311   * Fix (once again) case-sensitive comparisons which was apparently 
312     broken in 1.3.72.
313
314   * Activate support for vos listvol -format
315
316   * Population of the "AFS Client Admins" group failed on non-English
317     versions of Windows because the name of the "Administrators" group
318     is localized.  Now we lookup the name of the group by using the
319     Administrators Group Alias Relative ID.
320
321   * Multiple cell token acquisition within afscreds.exe was broken in the 
322     case of Kerberos 5 cross realm authentication.  Instead of contacting
323     the KDC associated with the cell's realm, afscreds would obtain a 
324     token from the KDC of the user's realm.  This would result in
325     "invalid kvno errors" while authenticating to the AFS servers.  
326     Unauthenticated access would work.  The symptoms would vary based upon
327     whether or not the VLDB servers had been contacted using unauthenticated
328     connections prior to the user obtaining tokens.
329
330   * The list of ACL entries was becoming corrupted.  It appears as if 
331     an ACL when it expires was not being appropriately cleaned up.  In
332     fact, it was left in the list of ACLs associated with the scache 
333     entry.
334
335   * Changed the default @sys name list to "x86_win32 i386_w2k i386_nt40"
336     for 32-bit x86 systems.  The default for itanium will be "ia64_win64"
337     and "amd64_win64" for amd 64-bit processors.
338
339   * When executing executables, Windows provides a mechanisms by which
340     the normal search for DLLs can be bypassed.  If a file foo.exe is
341     being executed and there exists a file or directory "foo.exe.local" 
342     (the contents are ignored if a file), then Windows will search for
343     DLLs first in the "foo.exe.local" directory and second in the 
344     directory in which the "foo.exe" file is located.  
345
346     Previous releases of OAFW would improperly return 
347     STATUS_NOT_A_DIRECTORY instead of the expected 
348     STATUS_OBJECT_PATH_NOT_FOUND.  This would cause the Windows SMB client
349     to terminate the search for the DLL causing the execution of the 
350     application to fail.
351
352   * Rework the reference counting of smb_vc_t objects.  The references  
353     stored in the waiting locks were not counted.  This could result in
354     an assertion if the reference count drops to zero.
355
356   * "fs wscell" returns "Freelance.Local.Root" for the workstation cell
357     when running in freelance mode.
358
359   * Added support for persistent caching of file contents, stat entries,
360     volume data, cell data, and name lookup data.  When the registry 
361     value, "NonPersistentCaching", is not defined or set to 0 the file 
362     specified by "CachePath" becomes a persistent cache file.   The 
363     size of the cache file is computed at run time.  It has a maximum
364     size of approximately 1.2GB.  The contents of the file will be 
365     validated according to the rules specified by the "ValidateCache"
366     registry value.  
367
368   * Added support for UUIDs.  UUIDs are kept for as long as the 
369     cache file is intact.
370
371   * Added cmdebug.exe and support cache manager debugging callback 
372     interfaces in afsd_service.exe.
373
374     Usage: cmdebug -servers <server machine> [-port <IP port>] [-long] 
375                    [-addrs] [-cache] [-help]
376     Where: -long   print all info
377            -addrs  print only host interfaces
378            -cache  print only cache configuration
379
380   * Symlinks to \\AFS\[all\]... will now be treated the same as 
381     symlinks to /afs/....   However, please use /afs/... as otherwise
382     the symlinks won't work on Unix.
383   
384   * Correct a problem with local CellID allocation for cells whose 
385     server list is obtained via DNS instead of a CellServDB file.  If
386     the DNS information expires the CellID assigned to the entry will
387     be changed.  This causes all of the cm_scache_t objects which refer
388     to the old cellID number to become useless.  Attempts to access 
389     files or directories with cm_scache_t objects using the old cellID
390     will fail since the server list cannot be obtained.
391
392   * Correct deadlock condition in cm_EndCallbackGrantingCall which can
393     be triggered if the volume referenced by the cm_scache_t object is
394     offline.
395
396   * The AFS Service needs to respond to SERVICE_ACCEPT_SHUTDOWN messages
397     in addition to SERVICE_ACCEPT_STOP.
398
399   * Move RPC shutdown until after the SMB and RX shutdown procedures 
400     complete.  Block until RPC shutdown is complete.
401
402   * Modify afslogon.dll (integrated logon) to wait for service if its
403     state is START_PENDING.  If the timeout period occurs, reset to 
404     the retry interval and not the sleep interval.
405
406   * When renewing the server list for a cell obtained via DNS AFSDB
407     records, the cm_cell_t entry must be removed from the list of all 
408     cells.  Otherwise, the list of cells will be corrupted.
409  
410   * In the dcache and scache modules, use the cm_scache_t dataVersion
411     instead of the cm_fakeDirVersion.  
412
413   * Synchronize fs.c with the unix version.
414
415   * The variable used to determine whether a file or virtual memory
416     mapped cache is used was not properly initialized to a default
417     value. If the registry setting "NonPersistentCaching" was not
418     set, the choice would be random.   Properly initialized to be
419     "file".
420
421   * The memory mapped view was never unmapped before closing the file
422     at service shutdown.  This is now properly cleaned up.
423
424   * Default location of Cache file is now %TEMP%\AFSCache
425
426 Since 1.3.76:
427
428   * A bug affecting new installations of 1.3.75/76 would result in
429     the creating of incorrect mountpoints in the freelance root.afs 
430     volume for the default cell.
431
432     If "fs \\afs\all\<cellname>" lists a volume name of "root" instead
433     of "root.cell", you have been affected by the bug.  To correct the
434     problem, execute the following commands:
435
436           fs rmmount \\afs\all\<cellname>
437           fs rmmount \\afs\all\.<cellname>
438         
439           fs mkmount \\afs\all\<cellname> root.cell <cellname>
440           fs mkmount \\afs\all\.<cellname> root.cell <cellname> -rw
441
442 Since 1.3.75:
443
444   * A bug has been fixed in the auto-generation of Freelance root.afs
445     symlinks which produced random entries in the \\AFS\all directory.
446
447   * Support has been added for multi-homed servers
448
449 Since 1.3.74:
450   * Added a new registry value, "StoreAnsiFilenames", which can be used
451     to force the use of ANSI character sets instead of OEM Code Pages.
452     This feature is useful when users require the ability to create 
453     filenames with 8-bit characters and need to access the files from
454     both Latin-1 based Unix systems as well as from Windows.
455
456     Activation of this feature will prevent access to files stored with
457     8-bit OEM characters.
458
459   * Shutdown all SMB threads in a synchronized manner when stopping the 
460     service.
461  
462   * There is currently a maximum cache size of 1.3GB.  The limit is imposed
463     by the largest contiguous block of unused memory within the 2GB process
464     space which can be assigned to the memory mapped file.  Unfortunately,
465     when the executable digital signature verification code is activated
466     Windows sees fit to further segment the process memory which in turn
467     reduces the size of the maximum cache file to less then 800MB.  If
468     larger cache sizes are desired, a new registry value should be set:
469
470       HKLM\SOFTWARE\OpenAFS\Client (DWORD) "VerifyServiceSignature" = 0x0
471
472     Setting this value will disable the runtime verification of digital
473     signatures on afsd_service.exe and the afs dlls which it loads.  It
474     will not disable the the version number check on those same files.
475     The signature verification is not a security messure and is only meant
476     to enhance the ability to afsd_service.exe to detect potential
477     destablizing mixtures of DLLs from incompatible distributions.
478
479     Added code to auto-disable the signature verification check if 
480     the desired cache size is greater then 700MB.
481
482   * Windows' WinTrustVerify(WIN_SPUB_ACTION_PUBLISHED_SOFTWARE) is 
483     used to verify the validity of the afsd_service.exe binary 
484     as well as each of the AFS DLLs loaded by the service.  Not only
485     must the digital signature be valid but the signatures of the 
486     DLL must be signed by the same entity as the service.
487
488   * Implement new functions: cm_freelanceMountPointExists and
489     cm_freelanceSymlinkExists.  Use them along with other validity
490     checks in cm_freelanceAddMount and cm_freelanceAddSymlink to
491     ensure that name collisions do not occur and that empty strings
492     are not valid file names.
493
494     A symlink may not have a name which would resolve to a valid 
495     cell name.  Doing so would prevent access to the cell.
496
497   * Add missing cm_HoldSCacheNoLock call to Freelance mount point
498     re-initialization code.  The reference counts of the fake root.afs
499     volume scache object(s) would become invalid when the mount point
500     or symlink lists were altered.
501
502   * Add registry entries to provide mappings from the afsdsbmt.ini
503     to the new locations for applications which count on the use
504     of the old Profile file APIs.  These apps are likely to fail
505     if the user does not have administrator privileges and the 
506     registry is locked down.
507
508   * The afs_config.exe submounts dialog had two errors.  
509     First, attempts to remove entries failed because the registry
510     key was being opened without KEY_WRITE privileges.  
511     Second, when editing a submount entry, changing the name
512     would add a new key and leave the original one in place. 
513     Now the original submount will be removed if its name is 
514     changed.
515
516   * In recent months there have been several incidents in which
517     users have experienced problems starting or accessing 
518     afsd_service.exe and after significant effort has been spent
519     it has turned out that they have two versions of AFS on the
520     machine or an inconsistent set of DLLs.  
521
522     Code has now been added to afsd_service.exe which will walk
523     the list of modules loaded by afsd_service.exe and validate
524     that the version of the AFS DLLs matches the version of the
525     afsd_service.exe executable.  If they do not match the service
526     will not start.  
527
528   * When Freelance mode is enabled and there is no registry
529     key HKLM\SOFTWARE\OpenAFS\Client\Freelance, afsd_service.exe
530     will attempt to import the afs_freelance.ini file contents.
531     If the file does not exist, it was creating a dummy file
532     with a r/o and r/w entry for the default cell and then
533     importing those values.
534
535     This process has been changed.  The temporary file is no
536     longer created.   Also, both the OpenAFS Client install
537     directory as well as %WINDIR% are checked for previous
538     afs_freelance.ini files.
539
540   * Added support for VL_GetEntryByNameN().  Still need to add
541     support for VL_GetEntryByNameU() for multi-homed support.
542
543   * Fix a deadlock situation in afscreds.exe when canceling an
544     auto-generated Obtain Tokens dialog
545
546 Since 1.3.72/73:
547   * Fix the locking of objects during Directory Searches in the
548     SMB/CIFS server.  The failure to properly lock the reference 
549     counts was resulting in the premature freeing of smb_dirSearch_t 
550     objects while they were still in use by the SMB/CIFS client.
551     This does not solve the "Invalid Handle" problem.
552
553   * Fix Find Cell By Name pioctl call to return a valid cell
554     name for the Freelance fake root.afs volume.  
555     "Freelance.Local.Root".
556
557   * Fix the Explorer Shell Extension Symlinks->Add operation.
558     The dialog template was missing and the link destination
559     string was too short.
560
561   * Add support for symlinks to Freelance root.afs volume
562     Stored at HKLM\SOFTWARE\OpenAFS\Client\Freelance\Symlinks
563        <number>  =  "<linkname>:<relative-path>."
564     Use symlink.exe to create, list, or remove
565
566   * Remove the fallback to the use of KFW's KRB4 library when obtaining
567     tokens.  We never obtain KRB4 tickets.
568
569   * Fix AFS Client Configuration Control Panel to support new SysName
570     protocol.
571
572   * Fix a bug in afsd_service.exe which could result in the SysName
573     not being read from the registry.
574
575 Since 1.3.71:
576   * Add code to block the issuance of AFS tokens by aklog.exe or
577     afscreds.exe when the Kerberos 5 principal name contains a dot.
578
579   * Modify the IsAdmin() function to always treat the local SYSTEM
580     account as an AFS client administrator.  Affects fs.exe and 
581     afs_config.exe.
582
583   * Modify the internal handling of Quota Exceeded errors
584
585   * Upgrade all reference count fields in the Windows cache manager
586     and the osi library to use unsigned long instead of signed short.
587     A similar fix has been applied to the afs rpc (rx) library.
588
589   * fix the Windows cache manager to prevent it from replacing the 
590     rx_connection object associated with the cm_conn_t object on each
591     and every operation if "fs crypt" was set.  This explains the 
592     dramatic performance difference when crypt is used vs clear.
593     The problem: 'cryptall', a boolean flag indicating whether or not 
594     "fs crypt" is set, was being compared to the rx_connection 
595     cryptlevel which is either rxkad_clear:0 or rxkad_crypt:2.
596     1 != 2 and therefore the rx_connection was always destroyed 
597     and replaced on each and every operation.
598
599     Lock the cm_conn_t object around every call to RXAFS_xxxx functions.
600     It is not safe for the cm_conn_t object to not be locked because
601     rx_DestroyConnection might be called from another thread if:
602         - the user's tokens have changed or expired
603         - the crypt mode has changed
604
605     This fix appears to have also taken care of the problems associated
606     with Overlapped Writes resulting in Delayed Write errors.
607
608   * fix NSIS installer's AdminGroup.exe to properly create and
609     remove groups when given -create or -remove.  The string comparison
610     test was wrong.
611
612   * fs sysname now accepts a list of sysname values 
613
614   * added a new registry value HKLM\SOFTWARE\OpenAFS\Client "IoctlDebug"
615     DWORD which when set to a non-zero value will cause error message
616     text to be output to stderr from the pioctl() routine.  Useful in 
617     debugging failures of fs.exe, tokens.exe, etc.
618
619   * added a test to the power management code to only perform a 
620     flush operation if there is at least one network adapter which
621     is not a loopback adapter.
622
623   * Fix bug in loading of registry value HKLM\SOFTWARE\OpenAFS\Client
624     "EnableKFW".  This value will not be read if the key
625     HKCU\SOFTWARE\OpenAFS\Client exists; even if the "EnableKFW" 
626     value under that key does not.
627
628   * provide mechanisms to force the use of krb524d for Kerberos 5
629     ticket to AFS token conversion.  For afslogon.dll and afscreds.exe
630     there is a new registry value "Use524" and for aklog.exe a new
631     command line parameter "-m".
632
633   * Fix the pattern matching algorithm to properly match patterns
634     ending with a '*'.
635
636   * smb_ReceiveCoreRename() was factored to produce smb_Rename()
637     which is used by both the original function and the new
638     smb_ReceiveNTRename().  smb_ReceiveNTRename() supports the
639     creation of HardLinks in addition to Renaming.  smb_Link() 
640     is a new function which creates HardLinks via cm_Link().
641     cm_Link() is a new vnodeops function which creates links
642     using RXAFS_Link().
643
644     smb_ReceiveNTRename() does not support the File Copy and 
645     Move Cluster Information operations described in its interface.
646     ReceiveNTRename is under documented in CIFS-TR-1p00_FINAL.pdf.
647
648   * When opening files via symlinks, we should follow the symlinks
649     until we reach the actual file stat cache entry.  The stat cache
650     entry of the file should then be stored in the FID instead of
651     stat scache entry of the symlink.
652
653   * return bad operation errors for all unimplemented functions
654     even if we do not know the functions exist.
655
656   * Log bad packets and unknown operation packets to the trace log
657
658   * Map CM_ERROR_BADOP to STATUS_NOT_SUPPORTED instead of 
659     0xC09820FF
660   
661   * Update list of known CIFS operations to include all those listed
662     in CIFS-TR-1p00_FINAL.pdf.
663
664   * Modify the handling of HKLM\SOFTWARE\OpenAFS\Client\Submounts
665     to support the REG_EXPAND_SZ type.
666
667 Since 1.3.70:
668   * A new Windows authorization group "AFS Client Admins" is now 
669     created and populated with the members of the "Administrators"
670     group.  The group is used to determine which accounts on the
671     machine may be used to modify the AFS Client Configuration via
672     the UI and command line tools.  afs_config.exe, fs.exe, 
673
674   * Modify the WinLogon Logoff Event Handler to query NT4 domain
675     controllers for the remote profile path if Active Directory
676     services are not available.
677
678   * Fix aklog.exe to not add the AFS ID to the username
679
680   * PTS registration of new users to foreign cells has been added to 
681      afscreds.exe
682
683   * The cm_Daemon thread is used to perform checks for 
684     down servers, up servers, volumes, callback expirations, 
685     lock maintenance and token expiration.  Due to a gaff in
686     larger integer division the thread never performed any 
687     work.  Instead the current time computation would always
688     be less then the trigger times.  This had an adverse affect
689     on the client's ability to maintain communication with servers,
690     keep volumes up to date, and flush user tokens and acls
691     when they have expired. This was broken when the 1.3 branch
692     was modified to support VC7 which no longer included 
693     largeint.lib
694
695   * An initialization problem with the Freelance code was 
696     detected while fixing the callbackRequest.  The cm_rootSCachep
697     object is obtained during afsd_InitDaemons() but the callback 
698     information is incomplete.  The callback information will not
699     be obtained until cm_MergeStatus is called from within
700     cm_GetCallback.  Unfortunately, cm_SyncOp did not properly 
701     test for the conditions under which the callback information
702     must be obtained.  
703
704   * Reports have been filed indicating that callbacks were
705     being lost.  An examination of the code indicated that the
706     cm_server_t objects were not being properly reference
707     counted by the cm_scache_t and cm_callbackRequest_t objects.
708     In particular, the cm_server_t objects may have been freed
709     from beneath the cm_conn_t objects.
710
711     All of the reference counting is now done via the functions:
712         cm_GetServer
713         cm_GetServerNoLock
714         cm_PutServer
715         cm_PutServerNoLock
716     this improves the ability to track the referrals.  
717
718     Each cm_BeginCallbackGranting Call now allocates a reference
719     to the cm_server_t.  The cm_EndCallbackGrantingCall either
720     frees the reference or transfers it to the cm_scache_t
721     cbServerp field.  These are then appropriately tracked
722     through the cm_Analyze call.
723
724   * Ensure that the dnlc hash table is the same size as the
725     dir name hash table (as per original author's note).
726     Increase the dnlc CM_AFSNCNAMESIZE to a multiple of 8
727     for compatibility with 64-bit systems.
728
729   * fix smb_ApplyV3DirListPatches to properly apply the hidden
730      attribute to dotfiles when the infoLevel < 0x101 and 
731      cm_SyncOp has failed.
732
733   * Fix the Freelance registry initialization code.  There
734     was a possibility that some systems could end up with 
735     garbage in the registry during a clean install.
736
737 Since 1.3.66:
738    * file and directory names beginning with "." will now be given the
739      hidden attribute when the volume access is anonymous.  this matches
740      the behavior when the volume access is via an authenticated user.
741
742    * Added a change monitor to the HKLM\SOFTWARE\OpenAFS\Client\Freelance
743      key.  When a change occurs mark the root.afs data as invalid and
744      for it to be reloaded on the next access.  This allows administrators
745      to modify the mount point list without restarting the service.
746      
747      The freelance client used to provide a fake modification time for
748      the root.afs volume data and its mount points of 7/09/2001 14:24 EDT.
749      Added code to extract the last modification time of the Freelance
750      registry key and use that instead.  The time now represents the 
751      most recent mount point change.
752
753    * PTS registration of new users to foreign cells has been added to 
754      aklog.exe
755
756    * Additional Cache Control and Credential Manager options have been
757      added to the WiX installer.  See deployment guide for details.
758
759    * The CachePath setting is now optionally a REG_EXPAND_SZ type
760   
761    * The WiX installer has been upgraded.  Version 2.0.1927.1 is now 
762      required.
763
764    * The loopback installation code may have had a problem updating the
765      %ETC%\HOSTS file which could have resulted in a premature failure.
766      Work around code has been added for the case where the file cannot
767      be deleted.
768
769    * The default max chunksize was increased from 15 (32K) to 17 (128K)
770      because Windows sends 64K blocks when using overlapped writes.
771
772    * The default number of server threads was increased from 4 to 25 to
773      better handle overlapped writes.  
774
775    * The "AfscredsShortcutParams" registry value was not being properly
776      loaded by afscreds.exe.  Therefore, the default value was always being
777      used instead of the value set by the installer.
778
779    * Windows XP provides downgrade attack detection to prevent an attacker
780      from being able to force the use of NTLM simply by disrupting 
781      communication with the KDC.  This attack cannot exist between the 
782      Windows CIFS client and the AFS Client Service.  Therefore, when a
783      downgrade has been detected the afs pioctl library will force the 
784      establishment of a new CIFS connection using NTLM.
785  
786    * A locking error was discovered surrounding all references to volume
787      server lists within the cm_cell.c source file. 
788
789    * The logged into Windows username was incorrect on Terminal Server
790      machines.
791
792    * A new registry value "NonPersistentCaching" was added to the service
793      parameters key.  When set to a non-zero value, the afs cache is stored
794      in the Windows paging file.  There are two limitations to choosing
795      this option: 
796         1. when persistent caching is implemented it won't work with 
797            this flag set since there will be nothing to persist.
798         2. with this flag set the initial paging allocation cannot be
799            changed while the service is running
800
801    * An initialization bug was discovered in aklog.exe which affected users
802      who have a domain name for their afs servers which could not be mapped
803      to a realm
804
805 Since 1.3.65:
806    * afs_config.exe now validates cell names against DNS in addition
807      to the CellServDB file.
808
809    * In order to allow the freelance client to connect to a volume with ID 
810      equal to 1 on the default cell we changed the fake root.afs volume ID
811      once again.  This time we choose 0xFFFFFFFF.  In addition, we change
812      the cell ID of the fake root.afs volume from 1 to 0xFFFFFFFF as well.
813      It will now be impossible for a volume ID to match that of another 
814      cell unless the client is connected to 0xFFFFFFFD cells.  That should
815      be enough room for growth.
816
817    * Fix "fs mkmount" command to work with UNC paths and when
818      started from non-AFS drives.  It is now possible to create a mount
819      point in the freelance fake root.afs volume with the command
820
821         fs mkmount \\AFS\all\<directory-name> <volume-name> <cellname>
822
823      For example,
824         
825         fs mkmount \\AFS\all\openafs.org root.cell openafs.org
826         fs mkmount \\AFS\all\.openafs.org root.cell openafs.org -rw
827
828    * The algorithm used to re-attempt access to the servers associated with
829      a volume has been altered to properly address the case in which all 
830      servers have been marked down.  The previous algorithm did not reset
831      the server's down flags so the servers were never actually retried.
832      This caused a problem with active volumes if the network connectivity
833      was lost as could be the case with a network cable removal, wireless
834      drop, or laptop hibernation.  With the fix volume access is restored
835      almost instantenously when network connectivity becomes available.
836
837    * Support for SMB/CIFS browsing has been added to the AFS Client Service
838      SMB server.  It is now possible to use "NET VIEW \\AFS" to obtain a
839      listing of AFS submounts and freelance mount points.  Support for
840      NETSHAREENUM, NETSHAREGETINFO, NETSERVERENUM2, NETSERVERGETINFO
841      significantly enhances the behavior of AFS volumes within the Explorer
842      Shell.  For instance, "AFS" now shows up as server in the Explorer
843      with each submount or freelance mount point visible as a share.
844      The right click menu in each folder now works with full functionality
845      on a consistent basis.
846
847    * The network provider can be configured to have different behavior
848      depending on the domain that the user logs into.  These settings are
849      only relevant when using integrated login.  A domain refers to an
850      Active Directory (AD) domain, a trusted Kerberos (non-AD) realm or the
851      local machine (i.e. local account logins).  The domain name that is
852      used for selecting the domain would be the domain that is passed into
853      the NPLogonNotify function of the network provider. (see registry.txt
854      for details)
855
856    * Added a new registry value [HKCU\SOFTWARE\OpenAFS\Client] 
857      "Authentication Cell" which may be used to specify a default 
858      authentication cell for afscreds.exe which is different from
859      the default cell for the AFS Client Service daemon.
860
861    * Added a Logoff WinLogon Event Notification function to afslogon.dll.
862      afslogon.dll moved to %WINDIR%\System32\.
863      New registry entries added to register the dll for Winlogon events.
864
865      The logoff event will now force a call to ktc_ForgetAllTokens()
866      using the context of the user being logged off as long as the 
867      user's profile is not loaded from within AFS.  If the profile 
868      was loaded from AFS we can't release the tokens since the Logoff
869      event is triggered prior to the profile being written back to 
870      the its source location.  This is now performed in an XP SP2 
871      safe manner.
872
873    * Windows XP SP2 Internet Connection Firewall interoperability
874      has been added.
875
876    * The %WINDIR%\afsdsbmt.ini contains four sections:
877         Submounts, Drive Mappings, Active Maps and CSC Policies.
878      The Submounts and CSC policies are now stored in the registry under
879         [HKLM\SOFTWARE\OpenAFS\Client\Submounts]
880         [HKLM\SOFTWARE\OpenAFS\Client\CSCPolicy]
881      The Drive Mappings and Active Maps are stored in the registry under
882         [HKCU\SOFTWARE\OpenAFS\Client\Mappings]
883         [HKCU\SOFTWARE\OpenAFS\Client\Active Maps]
884
885      There is no automatic migration of this data as it would be impossible
886      to consistently migrate data to user profiles which may not be active
887      when the machine is updated.
888
889    * The %WINDIR%\afs_freelance.ini contains lists of mountpoints for the
890      fake root.afs volume.  For the same reasons as for the cellservdb file,
891      this information should not be in %WINDIR%.  This information is now
892      kept under the registry key
893         [HKLM\SOFTWARE\OpenAFS\Client\Freelance]
894
895      The data from the afs_freelance.ini file will be automatically 
896      migrated to the registry on first execution of afsd_service.exe
897
898    * Keeping the CellServDB file in the location %WINDIR%\afsdcell.ini is 
899      troublesome for several reasons.  One, it is confusing for those who
900      expect the file to be named "CellServDB" instead of "afsdcell.ini".
901      Two, this file is not a Windows Profile formatted file.  Three, 
902      applications should not be reading or writing to %WINDIR%.  It causes
903      problems for Windows Terminal Server.
904
905      The new location of CellServDB will be the OpenAFS Client install 
906      directory which is by default C:\Program Files\OpenAFS\Client and can
907      be determined by querying the registry for 
908      [HKLM\SOFTWARE\TransarcCorporation\AFS Client\CurrentVersion]PathName
909
910      The existing afsdcell.ini will be migrated by the NSIS installer. 
911      The Wix installer must still be updated to do the same.
912
913    * Change NSIS installer to use DNS by default; to remove Integrated Logon
914      High Security mode; and to add Terminal Services compatibility registry
915      entries to allow the OpenAFS tools to find the afsdcell.ini and other
916      configuration files in %WINDIR%.
917   
918    * Add support for authenticated SMB connections.   This will remove
919      the need for high security mode in most situations.  Both NTLM
920      and Extended Security (GSS SPNEGO) modes are supported.  Effectively,
921      only NTLM can be used even though Kerberos is now supported.  The
922      reason is that it is not possible to construct a service principal
923      which is unique to each individual machine.
924
925      SMB Extended Auth does not work on XP SP2 unless one of two registry
926      modifications are made:
927
928      (1) To disable the check for matching host names on loopback connections
929         set this key.  This does not require a reboot:
930
931         [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
932             "DisableLoopbackCheck"=dword:00000001
933
934      (2) To add the AFS SMB/CIFS service name to an approved list.  This
935         does require a reboot:
936
937         [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0]
938             "BackConnectionHostNames"=multi-sz "AFS" "MACHINE-AFS"
939
940      afsd_service.exe will automatically add the current Netbios Name
941      to the BackConnectionHostNames list and then temporarily disable
942      the loopback check for one cycle of startup/shutdown of the service.
943      We assume most folks do not start/stop without a reboot so this 
944      will be adequate in most cases.
945
946    * Fix security hole in afslogon.dll which allowed passwords to be
947      sent in clear text to the KDC in a misformed principal name.
948
949    * Fix cm_GetCell() to properly handle expired dns entries
950      without crashing
951
952    * If Freelance mode is active and the afs_freelance.ini
953      file does not exist, do not create an empty file.
954      Instead create a file containing ro and rw mountpoints
955      to the default cell using the standard conventions.
956
957    * Modify the Freelance support to handle the ability
958      to create rw mount points in the fake root.afs volume.
959
960    * Changed the RPC mechanism used for token setting from 
961      named pipes to local.  Use of named pipes can be restored
962      by setting the environment variable AFS_RPC_PROTSEQ to
963      "ncacn_np". 
964
965      Named pipes were required when a Windows 9x system was
966      using a NT system in gateway mode which is incompatible
967      with our use of local loopback adapters.
968
969    * In afscreds.exe, if a username of the form user@REALM is
970      specified and no password is specified, do not perform a 
971      kinit operation.  Only perform the aklog functionality.
972
973    * Add a new registry value which allows the number of processors
974      on which afsd_service.exe executes to be restricted.  Valid
975      values are 1..numOfProcessors
976
977        HKLM\SYSTEM\CurrentControlSet\Services\TransarcAfsDaemon\Parameters
978           (DWORD) MaxCPUs 
979
980 Since 1.3.64:
981    * A second MSI based installer option is now available.
982
983    * Fixed Kerberos 5 kinit functionality in afscreds.exe to properly
984      request tickets for user/instance@REALM instead of just user@REALM
985
986    * Modify the Power Management Notify routine to wait for the Hard Dead
987      timeout period instead of a fixed 19 seconds.  With the longer timeout
988      periods Hibernation and Standby could never succeed when network 
989      connectivity is not available.
990
991    * The following fs.exe commands are now restricted to Administrator:
992      - checkservers with a non-zero timer value
993      - setcachesize
994      - newcell
995      - sysname with a new sysname list
996      - exportafs 
997      - setcell
998      - setserverprefs
999      - storebehind
1000      - setcrypt
1001      - cscpolicy
1002      - trace
1003
1004      setting the default sysname for a machine should be done via the
1005      registry and not via "fs sysname".
1006
1007    * NSIS installer adds options to install Debugging Symbols
1008      and the Microsoft Loopback Adapter; the user is now also
1009      given the ability to select the afscreds.exe startup options.
1010
1011    * Build system modified to generate symbols for FREE (aka RELEASE)
1012      builds as well as CHECKED (aka DEBUG) builds
1013
1014    * Sites which have a volume ID of 0x20000001 assigned to their
1015      root.cell volumes have been experiencing problems with accessing
1016      the root.cell volume of their cell when Freelance mode has been
1017      active.  This was because 0x20000001 was assigned to the fake
1018      root.afs volume created by freelance.  The fake volume id is
1019      now set to 0x00000001 to prevent conflicts.
1020
1021    * The timeout logic in the AFS Client Service has been wrong
1022      for sometime.  It is based on two different assumptions.
1023      First, the SMB client timeout is a fix value as was the case
1024      with OS/2 Lan Manager.  This assumption is incorrect.  The
1025      SMB timeout in Windows is a dynamic value computed based upon
1026      a fixed minimum timeout to which is added time based upon the
1027      size of the request and the performance characteristics of
1028      the connection.  Second, it is the responsibility of the 
1029      SMB Server to enforce the timeout requirements of the client.
1030      This is untrue.  The SMB Server cannot be expected to know
1031      the requirements of the client.  More importantly, if the 
1032      SMB server uses the SMB client timeout as a value to restrict
1033      its behavior as an RX client, the performance characteristics
1034      of the local SMB session would be used to prematurely terminate
1035      WAN connections with significantly different performance 
1036      characteristics.
1037
1038      The timeout logic has therefore been modified in the following
1039      manner:
1040       . the Lan Manager Workstation (SMB) Session Timeout is used only
1041         as a basis for configuring the Connection Dead Timeout 
1042         and Hard Dead Timeout values.  The Connection Dead Timeout
1043         must be at least 15 seconds longer than the SMB Timeout
1044         and the Hard Dead Timeout must be at least double the 
1045         Connection Dead Timeout.
1046       . New registry entries have been added to allow the Connection
1047         Dead Timeout and Hard Dead Timeout values independent of the
1048         Lan Manager Workstation Session Timeout
1049       . The test to enforce the SMB Client Timeout has been removed.
1050         
1051      One of the side-effects of removing the enforcement of the SMB 
1052      Client Timeout is that regardless of whether or not the SMB client
1053      is available to receive the response (and how would the SMB server
1054      know) the RX protocol response can be used to update the AFS 
1055      Client Service state for ready access by future SMB client 
1056      requests.
1057
1058      This should be the end of the "Server paused or restarting messages"
1059    
1060    * Add support for arbitrary UNC paths to the pioctl() support.
1061      This enables the fs commands as well as the AFS Shell Extension
1062      to work correctly when UNC paths are being used.
1063
1064    * Fix afscreds.exe (by updating afskfw.lib) to search for cells via
1065      DNS if the cell configuration cannot be determined via CellServDB
1066
1067    * Add debug info to test whether CM_BUF_WAITING or CM_SCACHE_WAITING
1068      are ever set more than once at a time
1069  
1070    * Fix the management of lists of cm_cell_t structures when using 
1071      DNS to lookup cell information.  The previous code would fail to
1072      reuse the same cellID for a cell if DNS was used more than once
1073      for a given cell name.  When the ttl expired, a single cm_cell_t
1074      could be inserted into the cm_allCellsp list more than once 
1075      producing a loop.  In addition, the vlServerp list belonging to
1076      the cell was not freed resulting in improper refCounting of the
1077      servers.
1078
1079    * Add DNS support to cm_IoctlNewCell() which previous only examined
1080      the CellServDB file
1081
1082    * Add cm_FreeServer() function and call it from cm_FreeServerList()
1083      to properly garbage collect cm_server_t objects 
1084      
1085    * Add numVCs variable to smb.c to track the number of smb_vc_t 
1086      objects created and use it to initialize the vcID field which 
1087      previously was set to 0 in all objects resulting in FindByID 
1088      collisions.
1089
1090    * Fixed DNS lookups to work consistently throughout the OpenAFS
1091      product instead of just from within the afsd_service.exe
1092
1093    * Added a runtime check to ensure that AFS Client Service SMB
1094      Server is accepting connections before attempting to mount
1095      global drives.
1096
1097    * Read IP addresses for volume servers out of the CellServDB
1098      file if gethostbyname() on the hostname fails.
1099
1100    * Fix getcellconfig() to populate both the Hostnames as well
1101      as IP addresses when loading cell data via DNS
1102
1103    * Increase the Connection Dead Time to 50 from 20 seconds
1104      Increase the Hard Dead Time to 120 from 40 seconds
1105      (matches the Unix values)
1106
1107    * Fixed an assertion validating the number of allocated NCBs
1108
1109    * Fixed the build environment to consistently build for 
1110      Windows 2000 and above.  (APPVER = 5.0)
1111
1112    * Fixed rx_debug to properly validate the receipt in incoming
1113      data with select() and recvfrom().  Do not copy data out of
1114      the socket buffer unless success is indicated.
1115
1116 Since 1.3.63:
1117    * afsd_service.exe will now display a message box to the 
1118      desktop when it terminates due to an IP Address Change.
1119   
1120    * installer no longer deletes AFS Server configuration data
1121      on uninstall
1122
1123    * installer generates a warning dialog if the RPC service 
1124      is not properly configured
1125
1126    * installer compressed with lzma instead of bzip2
1127
1128    * afsd_service.exe shutdown crash solved once and for all
1129  
1130    * reference counting of smb_vc_t data structures improved
1131  
1132    * name space collision of smb_fid_t event objects corrected
1133
1134    * the output of "fs memdump" is now written to 
1135      %WINDIR%\TEMP\afsd_alloc.log
1136
1137    * the file TaAfsApp_1033.dll is now properly installed allowing
1138      the User Manager to start
1139   
1140    * a new algorithm is used for computing filename pattern matches
1141
1142    * afscreds.exe now accepts user names containing instance
1143      fields.
1144
1145    * Fix the Directory Name Lookup Cache to be case-sensitive.
1146      This is crucial in environments in which a Windows client
1147      is accessing a directory with more than one filename that
1148      differs only by case.  If the directory contains "FOO" 
1149      and "Foo".  You want "DEL Foo" to delete the correct one.
1150      We still have a problem in that "DEL foo" will delete a
1151      random filename.  This will be addressed in a future release.
1152
1153    * Fix afscreds.exe -M option (renewMaps) to work when High
1154      Security mode is off.  Also, remember to disable the ActiveMap
1155      flag in afsdsbmt.ini when a drive mapping is removed.
1156
1157    * Updates to NSIS installer script.  AFS Server configuration
1158      data will not be destroyed on un-install or re-install.  
1159      Use a better compression algorithm.
1160    
1161    * afslogon.dll now uses KFW to obtain tokens when available
1162    
1163    * afslogon.dll when given an all uppercase username will
1164      attempt to authenticate with both the uppercase name
1165      and an all lowercase variation
1166
1167    * DST modification removed.  The fix appears to make things
1168      worse after a reboot of the machine.
1169
1170    * fs.exe:  added "cscpolicy" which is used to 
1171      change client side caching policy for AFS shares
1172
1173      Usage: fs cscpolicy [-share <AFS share>] [-manual] [-programs] 
1174                          [-documents] [-disable] [-help]
1175
1176    * Several uninitialized variables have been initialized
1177
1178    * It is now possible to obtain tokens using cross realm
1179      Kerberos within afscreds.exe:
1180         cell:      dementia.org
1181         user:      jaltman@ATHENA.MIT.EDU
1182         password:  xxxxxxxx
1183      Will obtain a cross realm ticket for jaltman/DEMENTIA.ORG@ATHENA.MIT.EDU
1184      will will in turn be used to obtain afs@DEMENTIA.ORG.
1185      The resulting token will be stored with the display name 
1186        jaltman@ATHENA.MIT.EDU@dementia.org
1187
1188    * aklog.exe has been added to the client
1189
1190      Usage: aklog [-d] [[-cell | -c] cell [-k krb_realm]] 
1191                   [[-p | -path] pathname]
1192                   [-noprdb] [-force]
1193                   [-5 | -4]
1194
1195         -d gives debugging information.
1196         krb_realm is the kerberos realm of a cell.
1197         pathname is the name of a directory to which you wish to authenticate.
1198         -noprdb means don't try to determine AFS ID.
1199         -5 or -4 selects whether to use Kerberos V or Kerberos IV.
1200            (default is Kerberos V)
1201         No commandline arguments means authenticate to the local cell.
1202
1203 Since 1.3.62:
1204    * All of the resource files have been restructured to adhere to
1205      a set of rules IBM implemented for loading string resources.
1206      These rules had either been forgotten or were not discovered
1207      by folks working on the OpenAFS sources.  The end result was
1208      memory corruption.  This is primary item which was preventing
1209      the AFS Server from working.
1210
1211    * Increased the size of the maximum ticket size stored in a token
1212      from 344 bytes to 12,000.  Increased the buffers used to convey
1213      messages between the pioctl() caller and the SMB Server from
1214      1000 bytes to 12,512.  The code appeared to have been writing
1215      above the top of the stack by quite a few number of bytes.
1216      (The increased ticket size is necessary for the next item.)
1217
1218    * When obtaining AFS Tokens via KFW, krb524 is no longer required.
1219      Instead the raw Kerberos 5 ticket is used in its entirety.  This
1220      is extremely important as it allows us to use pure Kerberos 5 KDCs
1221      as the source of the AFS authentication.  The use of up to 12,000 byte
1222      tickets will allow tickets produced by all versions of Microsoft
1223      Active Directory to be used.
1224       - create a user account.       
1225       - designate it DES only
1226       - disable pre-auth
1227       - specify its UPN to be  "afs@realm"
1228       - assign a SPN of "afs/cellname" to the UPN with setspn.exe
1229
1230    * Do not enforce the funky 8dot3 pattern matching rule that the first "."
1231      is special when using long file names.  (you must use "*.*" and not "*")
1232      Instead only enforce it when performing 8dot3 searches. 
1233
1234    * Fixed the DST problem with creation times being set one hour ahead
1235
1236    * Fixed the problem when using \\afs\cell-alias.  For example, 
1237      \\afs\uncc instead of \\afs\uncc.edu.  Do not a new cell struct
1238      for the alias name; instead simply expand the name.  One of the
1239      symptoms of this problem was a loss of acquired tokens.
1240
1241    * Fixed the AFS Shell Extension.  The Symbolic Link menu was empty 
1242      of strings.  (Only English strings provided.)
1243
1244    * Fixed the installer to properly replace in use files.  
1245
1246    * Fixed the build system to cleanup generated component version files
1247
1248    * The release build compiled with MSVC 6.0 compiler to avoid the 
1249      afsd_service.exe shutdown crash.  This does not solve the problem
1250      but simply avoids it for the time being.
1251
1252 Since 1.3.61:
1253
1254  * fix afslogon.dll to not corrupt memory when High Security mode
1255    is not used.  
1256
1257  * fix afsd_service.exe to not attempt to restore the stack when
1258    an exception occurs.  (not safe in multi-threaded programs)
1259
1260  * fix uninstaller to properly remove the CRT and MFC DLLs
1261  
1262  * remove a Message Box from afscreds.exe when getcellconfig()
1263    fails on a kerberos realm which is not a cell
1264
1265 The following is a list of changes to the OpenAFS for Window client
1266 since 1.3.60.
1267
1268  * "fs setserverprefs" will leave afsd service deadlocked
1269
1270  * "vos listaddrs" will core dump
1271
1272  * installer sets the appropriate keys to support Integrated Logon
1273
1274  * installer disables the "Find Lana by Name" functionality as it
1275    was causing headaches for many users
1276
1277  * fix the intermittent crash of the power management thread when
1278    shutting down the AFS Client Service
1279
1280  * optimizes the obtain drive mount list functionality which is 
1281    executed every time the mount tab in afscreds.exe and afs_config.exe
1282    are refreshed.  (this happens a lot)
1283
1284  * fix the service shutdown logic.  add the STOP_PENDING state
1285    and do not accept additional service events after we declare
1286    ourselves STOPPED.
1287
1288 The following is a list of changes to the OpenAFS for Window client
1289 since 1.2.10.
1290
1291 * flexelint was run against the source tree and hundreds (perhaps 
1292   thousands) of corrections were applied to ensure prototypes 
1293   were in use; types were used consistently; variables were 
1294   initialized; unused variables were removed; etc.
1295
1296 * A wide variety of instrumentation was added including the 
1297   ability to produce a stack trace from within afsd_service.exe
1298   when it crashes.
1299
1300 * Dynamic configuration of the RDRtimeout value based upon the
1301   LanMan Workstation Session Timeout
1302
1303 * The mount root no longer needs to be called "/afs".  This 
1304   is now set by a registry value "MountRoot" within the key
1305   HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
1306
1307 * The cell list is now only read out of afsdcell.ini when the
1308   file changes instead of each time a cell is resolved.
1309
1310 * Thread synchronization was added to cm_server.c and ktc_nt.c
1311
1312 * All calls to GlobalAlloc()/GlobalFree() were replaced with 
1313   calloc()/free().  The Global functions were needed on Windows 3.x
1314   but have caused a variety of problems on the Win32 platforms.
1315   Avoiding them is highly recommended by several Microsoft 
1316   Knowledgebase articles
1317
1318 * Support for Symbolic Links added to the AFS Shell Extension
1319
1320 * Added a registry value "OverlayEnabled" to determine if
1321   Shell Extension Overlays should be enabled.  
1322   HKLM\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters
1323
1324 * New Build system to support VC6, VC.NET, VC.NET2003 compilers and
1325   separate trees for checked and free builds.  Build system supports
1326   a custom directory src\WINNT\extra which can be used as a grafting
1327   location of organization specific additions to the build tree.
1328
1329 * New installer built using NSIS 2.0.  
1330
1331 * Named all kernel objects in order to allow them to be monitored
1332   with tools such as SysInternals' ProcExp.exe.
1333   
1334 * Introduced new EventLog framework for AFSD
1335
1336 * Introduced Power Management interface to AFSD for Standby and 
1337   Hibernate modes to allow cache to be flushed prior to network
1338   disconnect
1339
1340 * Utilize Win32 DNSQuery API instead of internal routines.  This 
1341   allows DNS SRV queries to be sent to all current domain name 
1342   servers.  Not just one specified in an INI file.  DNS is now
1343   always activated.
1344
1345 * "NetbiosName" registry value may be used to specify a fixed
1346   Netbios Name such as "AFS" to be used instead of "HOSTNAME-AFS"
1347   when the loopback adapter is in use.  If you need to use the 
1348   old notation with a loopback adapter installed specify a registry
1349   entry of 
1350
1351      "NetbiosName" REG_EXPAND_SZ = "%COMPUTERNAME%-AFS"
1352
1353 * Refactor all modules which depend on LAN Adapter and NetbiosName
1354   determination in a new library: lanahelper.lib.  This allows for
1355   consistent behavior throughout the product.
1356
1357 * Move the afsd.log and afsd_init.log files to the directory specified
1358   by the "TEMP" environment variable.  This is usually %WINDIR%\TEMP
1359   for services.  Added the Date to the log entries.
1360
1361 * New registry value "RxMaxMTU" used to limit the size of the RX 
1362   packets sent by the AFS Client Service to the Server.  In order
1363   to enable OpenAFS to work across the Cisco IPSec VPN the packet
1364   size must be restricted to 1264 or smaller.  The latest NSIS
1365   installer sets a value of 1260 by default.
1366
1367 * New registry value "RxNoJumbo" to disable the use of Jumbo Rx
1368   packets.  This is not needed in order to work across the Cisco
1369   VPN but might be needed for other network environments.  This
1370   value is not set by the NSIS installer.
1371
1372 * New registry value "HideDotFiles" is used to apply the Hidden
1373   attribute to files whose names begin with a '.'.   This value
1374   is set by the NSIS installer.
1375
1376 * New registry value "MaxMpxRequests" allows the maximum number
1377   of multiplexed sessions to be configured at run time.  This
1378   value is not set by the NSIS installer.  The default value is
1379   50.
1380
1381 * New registry value "MaxVCPerServer" allows the maxmimum number
1382   of VCs per server to be configured at run time.  This value is
1383   not set by the NSIS installer.  The default value is 100.
1384
1385 * New registry value "AllSubmount" allows the "all" submount to
1386   be disabled by setting its value to 0x00.
1387
1388 * Allow cells names to be valid mount points 
1389     \\<netbiosName>\<cellname>
1390
1391 * Store the active state of drive mappings in order for afscreds.exe
1392   to restore them upon startup
1393
1394 * Add exception handling to generate a Stack Trace to the afsd_init.log
1395   file if one happens to occur.
1396
1397 * Add lots of logging to help detect the cause of invalid SMB packets
1398
1399 * Enable Kerberos for Windows to be used to obtain AFS Tokens via
1400   conversion of Kerberos 5 "afs" service tickets.  Supports auto-
1401   renewal of expiring tokens as long as afscreds.exe is running.
1402
1403 * New afscreds.exe command line options:
1404     -A = autoinit
1405     -M = renew drive maps
1406     -N = ip address change detection
1407     -Z = unmap drives
1408
1409 * New registry value "EnableKFW" in {HKCU,HKLM}SOFTWARE\OpenAFS\Client 
1410   determines whether or not MIT Kerberos for Windows should be used
1411   to obtain tokens via Kerberos 5 tickets.
1412
1413 * New registry value "AfscredsShortcutParams" in 
1414   {HKCU,HKLM}SOFTWARE\OpenAFS\Client 
1415   determines the command line parameters to be specified when "fixing"
1416   the AFS Shortcut in the user's startup folder.
1417
1418 * The "ShowTrayIcon" registry value has been moved from 
1419   HKLM\Software\TransarcCorporation\AFS Client\AfsCreds to
1420   {HKCU,HKLM}SOFTWARE\OpenAFS\Client 
1421   
1422 * The <cell name> registry values used to store the token expiration
1423   reminders have been moved from 
1424   HKLM\Software\TransarcCorporation\AFS Client\AfsCreds to
1425   {HKCU,HKLM}SOFTWARE\OpenAFS\Client\Reminders
1426  
1427 * Obtain the Logon User Name from the Explorer key when available
1428
1429 * new text document doc\txt\winnotes\registry.txt lists all registry
1430   values used by OpenAFS (excluding the AFS Server)
1431
1432 * BUG: rx_securityClass objects were not properly reference 
1433   counted and were never freed.  
1434
1435 * BUG: reduce the number of conditions under which CM_ERROR_TIMEOUT
1436   would be generated.  The existence of a server does not imply
1437   that it is not down.  If all of the servers for a cell are down
1438   return CM_ERROR_NOSUCHVOLUME instead.  This prevents the Explorer
1439   Shell from hanging.
1440
1441 * BUG: the directory name lookup cache failed to free the entries
1442   in the cache when the name cache entries cycled.  The entries
1443   in the cache would become dereferenced without being freed.
1444
1445 * BUG: fs setserverprefs could be executed without Administrator
1446   privileges
1447
1448 * BUG: the number of allocated NCB objects (100) exceeded the number
1449   which could actually be waited upon by the kernel (64).  Any objects
1450   which were utilized above the limit could never have event completions
1451   detected.
1452
1453 * BUG: smb_username_t objects were not being reference counted and 
1454   were not properly freed.
1455
1456 * BUG: smb_tid_t objects could under unusual circumstances be freed
1457   before they were no longer referenced.
1458
1459 * BUG: smb_fid_t object pointer were frequently used even when 
1460   their value could be NULL.   They were not properly released and
1461   therefore they were never freed.
1462
1463 * BUG: smb_packet_t data structures were not completely initialized
1464   upon creation
1465
1466 * BUG: when Rx produces a CM_ERROR_NOIPC error do not return "Access
1467   Denied" because that causes the Explorer Shell to try again until
1468   access is obtained.  Instead return "Remote Resources" which allows 
1469   the shell to move on and treat the error as transient.
1470
1471 * BUG: when initializing the NCBreturns structure, separate Event objects
1472   were created for each NCB although a single Event object was supposed
1473   to be shared by all.
1474
1475 * BUG: smb_dirSearch_t objects were not being properly referenced counted
1476   or freed.
1477
1478 * BUG: smb_tran2Packet_t objects were not being properly referenced 
1479   counted or freed.
1480
1481 * BUG: directory path creation did not handle the case of multiple
1482   directories requiring creation in one attempt
1483
1484 * BUG: SMB requests which required an Extended Response were ignored.
1485   This prevented some files from being written to AFS volumes.
1486
1487 * BUG: character strings were being freed even after they were 
1488   inserted into in use data structures
1489
1490 * BUG: inconsistent usernames were used when High Security mode was
1491   enabled.  (there is still much to do in this area)
1492
1493 * BUG: pioctl() calls which require out of band RPC operations were
1494   susceptible to race conditions when performed by multiple processes
1495
1496 * BUG: memory allocation and deallocation crossed instances of the
1497   C Runtime Library producing memory leakage and corruption in 
1498   afscreds and the client configurator.
1499
1500
1501