DEVEL15-windows-netidmgr-afs-provider-20070410

when using krb524 with a cross-realm service ticket the resulting krb4
cred will not contain the user's realm as there is only one realm field.


(cherry picked from commit 5bcd5ab54d)
This commit is contained in:
Jeffrey Altman 2007-04-10 23:09:18 +00:00
parent b6ba98c7cd
commit bab05cedab
2 changed files with 4 additions and 2 deletions

View File

@ -729,6 +729,7 @@ afs_klog(khm_handle identity,
char ServiceName[128];
khm_handle confighandle;
khm_int32 supports_krb4 = 1;
khm_int32 got524cred = 0;
/* signalling */
BOOL bGotCreds = FALSE; /* got creds? */
@ -1017,6 +1018,7 @@ afs_klog(khm_handle identity,
goto end_krb5;
}
rc = KSUCCESS;
got524cred = 1;
bGotCreds = TRUE;
}
@ -1146,7 +1148,7 @@ afs_klog(khm_handle identity,
StringCbCopyA(aclient.instance, sizeof(aclient.instance), "");
StringCchCatA(aclient.name, MAXKTCNAMELEN, "@");
StringCchCatA(aclient.name, MAXKTCNAMELEN, creds.realm);
StringCchCatA(aclient.name, MAXKTCNAMELEN, got524cred ? realm_of_user : creds.realm);
StringCbCopyA(aclient.cell, sizeof(aclient.cell), CellName);

View File

@ -92,7 +92,7 @@ EXPORTS
multi_Select @97
multi_Init @98
multi_Finalize_Ignore @99
add_to_error_table @100
afs_add_to_error_table @100
xdr_afsUUID @101
rx_GetSpecific @102
rx_SetSpecific @103