Please Review Changes to Windows Exports List for krb5 1.2.5 in KfW 2.2
Nicolas Williams
Nicolas.Williams at ubsw.com
Tue Apr 16 09:56:00 EDT 2002
On Tue, Apr 16, 2002 at 09:25:52AM -0400, Nicolas Williams wrote:
> As for the KRB5_SERVICE_UNKNOWN error, perhaps a new KRB5_NO_XREALM_PATH
> error would help.
Er, that would be KDC_ERR_S_PRINCIPAL_UNKNOWN.
After a cursory look I think that krb5_get_cred_from_kdc_opt() could use
a small modification to produce a different error when no x-realm path
exists, around here:
123 if ((retval = krb5_cc_retrieve_cred(context, ccache,
124 KRB5_TC_MATCH_SRV_NAMEONLY | KRB5_TC_SUPPORTED_KTYPES,
125 &tgtq, &tgt))) {
126
127 if (retval != KRB5_CC_NOTFOUND && retval != KRB5_CC_NOT_KTYPE) {
128 goto cleanup;
129 }
Add something like:
if (retval == KDC_ERR_S_PRINCIPAL_UNKNOWN) {
retval = KRB5_NO_XREALM_PATH;
goto cleanup;
}
And, of course, KRB5_NO_XREALM_PATH would have to be defined.
Cheers,
Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
More information about the krbdev
mailing list