[685] in Kerberos-V5-bugs
Error should be clearer when kerberos service is unknown
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Tue Aug 30 17:24:39 1994
Date: Tue, 30 Aug 1994 17:25:51 -0400
From: "Jonathan I. Kamens" <jik@cam.ov.com>
To: krb5-bugs@MIT.EDU
When the kerberos services can't be found in the /etc/services file or
NIS map, a clearer error than KDC_UNREACH should be returned.
I added a KRB5_SERVICE_UNKNOWN error code and modified locate_kdc.c to
use it. The patch for locate_kdc.c below is against beta 2; the patch
for krb5_err.et is against the beta 4 version of the file (with
previous changes I've already submitted).
Jonathan Kamens | OpenVision Technologies, Inc. | jik@cam.ov.com
*** krb5/lib/error_tables/krb5_err.et 1994/08/26 19:47:15 1.7
--- krb5/lib/error_tables/krb5_err.et 1994/08/30 20:33:15
***************
*** 198,203 ****
--- 198,204 ----
error_code KRB5_PROG_SUMTYPE_NOSUPP, "Program lacks support for checksum type"
error_code KRB5_REALM_UNKNOWN, "Cannot find KDC for requested realm"
+ error_code KRB5_SERVICE_UNKNOWN, "Kerberos service unknown"
error_code KRB5_KDC_UNREACH, "Cannot contact any KDC for requested realm"
error_code KRB5_NO_LOCALNAME, "No local name found for principal name"
*** krb5/lib/os/locate_kdc.c 1993/09/20 20:22:29 1.1
--- krb5/lib/os/locate_kdc.c 1994/08/30 20:38:39
***************
*** 89,95 ****
sec_udpport = sp->s_port;
#endif
}
! #endif
count = 0;
while (hostlist[count])
--- 89,97 ----
sec_udpport = sp->s_port;
#endif
}
! if (! (udpport || sec_udpport))
! return KRB5_SERVICE_UNKNOWN;
! #endif /* KRB5_USE_INET */
count = 0;
while (hostlist[count])