mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
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:
parent
b6ba98c7cd
commit
bab05cedab
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user