[OpenAFS] Roaming Profiles on AFS
Christos Triantafyllidis
ctria@physics.auth.gr
Mon, 10 Jan 2005 20:22:36 +0200
This is a cryptographically signed message in MIME format.
--------------ms070004090004090700030008
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Rodney M Dyer wrote:
> Question Christos, can you logon as administrator, obtain a token as the
> user, then xcopy/robocopy the contents of the failed profile directory
> out into AFS manually?
>
Yes. i can do this.
Jeffrey Altman wrote:
> Possibly because the user name contains non-ascii characters.
username is "ctria" (without quotes)
I don't think that it is a unicode problem because if it was i think
that at the userenv log wouldn't say "Roaming profile directory does not
exist" when it exists. And i think that it would start copying files
till it find the unicode named file. (my profile dir on afs is empty
after logoff).
Rolandas Naujikas wrote:
> We are using global path names like \\afs\cell\... to profiles without
> problems. At logoff OpenAFS client detects from ADS or NT domain or from
> local user info where is profile, and if it is in AFS, doesn't delete
> AFS token. I'm myself wrote code for some cases, tested, and it really
> detects in 99% cases (exept in case of ActiveDirectory). I'm also have
> problems when I used profile paths like N:\cell\...
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.
Christos Triantafyllidis,
Aristotles University of Thessaloniki, Greece
Department Of Physics
--------------ms070004090004090700030008
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII2jCC
BGkwggNRoAMCAQICAXkwDQYJKoZIhvcNAQEFBQAwOjELMAkGA1UEBhMCR1IxEzARBgNVBAoT
CkhlbGxhc0dyaWQxFjAUBgNVBAMTDUhlbGxhc0dyaWQgQ0EwHhcNMDQxMjE0MTY1MTQ5WhcN
MDUxMjE0MTY1MTQ5WjBgMQswCQYDVQQGEwJHUjETMBEGA1UEChMKSGVsbGFzR3JpZDEYMBYG
A1UECxMPcGh5c2ljcy5hdXRoLmdyMSIwIAYDVQQDExlUcmlhbnRpYWZpbGxpZGlzIENocmlz
dG9zMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDxroacvgqMWnnCvlPswU5pcgjFKAX
p3JURCiaVTM/vTV2w+Cdcn/UYIG3laQmOJ36i3zTdTqh8sIY+WFUb9aHtO4mMhJX6h+lBhFQ
ZQdg0WwM/gxd2wmJpw/oE7PzqdOK8Ft/MNet05y8yviBDnJ4BWTVDcMGXuVKhu8Z8DMhLQID
AQABo4IB1jCCAdIwDAYDVR0TAQH/BAIwADARBglghkgBhvhCAQEEBAMCBaAwDgYDVR0PAQH/
BAQDAgTwMB0GA1UdDgQWBBRDHhIEDJD1vlcAsxawfR8SWItBMTBiBgNVHSMEWzBZgBQ2JrZf
N/CM+XHHrtwWXOVkKCEc7qE+pDwwOjELMAkGA1UEBhMCR1IxEzARBgNVBAoTCkhlbGxhc0dy
aWQxFjAUBgNVBAMTDUhlbGxhc0dyaWQgQ0GCAQAwTwYDVR0fBEgwRjBEoEKgQIY+aHR0cDov
L3BraS5waHlzaWNzLmF1dGguZ3IvaGVsbGFzZ3JpZC1jYS9DUkwvaG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