Christos Triantafyllidis wrote:
I tried to use global drive to "\\afs\cell" but i have the same problem.
at code of \winnt\afsd\afslogon.c i changed the following at the AFS_Logoff_Event function.
if (strlen(profileDir)) {
DebugEvent("Profile Directory: %s", profileDir);
if (IsPathInAfs(profileDir)) {
MessageBox(0, "TRUE", "AFS Logon", MB_OK);
} else {
MessageBox(0, "FALSE", "AFS Logon", MB_OK);
}
if (FALSE) {
if (code = ktc_ForgetAllTokens())
DebugEvent("AFS_Logoff_Event - ForgetAllTokens failed [%lX]",code);
else
DebugEvent0("AFS_Logoff_Event - ForgetAllTokens succeeded");
} else {
DebugEvent0("AFS_Logoff_Event - Tokens left in place; profile in AFS");
}
I did this first to force that ktc_ForgetAllTokens() is not executed and second to see what IsPathInAfs returns for my profileDir. I got a FALSE messagebox (which means that afslogon.dll thinks that my profile is NOT on AFS) and even that the ktc_ForgetAllTokens() was not executed i still had the same problem.
The only purpose of the AFS_Logoff_Event is to delete the tokens.
Remove the AFS_Logoff_Event from the registry. If you still have a problem, it is not related to the possession of tokens.
As for the problem with IsPathInAFS() returning false when it should be true, what is the path which is being passed to it? Is it correct?
What is the return code from the pioctl() call?
Jeffrey Altman
smime.p7s
Description: S/MIME Cryptographic Signature
