Prefer the realm of the user when doing referrals style ISC krb5-get-creds

The the realm of the user's principal and prefer that when doing a lookup.
This code still need to be smarter can cache the "initial value" -> positive result
to avoid roundtrips to the KDC.
This commit is contained in:
Love Hornquist Astrand
2009-07-17 15:43:19 -07:00
parent d4ca938866
commit 8b71d0b93f
4 changed files with 13 additions and 8 deletions

View File

@@ -339,8 +339,8 @@ OM_uint32 _gsskrb5_acquire_cred
if (desired_name != GSS_C_NO_NAME) {
ret = _gsskrb5_canon_name(minor_status, context, 0, desired_name,
&handle->principal);
ret = _gsskrb5_canon_name(minor_status, context, 0, NULL,
desired_name, &handle->principal);
if (ret) {
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
free(handle);