[185] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Cannot find KDC

daemon@ATHENA.MIT.EDU (Nov-William H Rahe)
Thu Aug 1 12:34:48 1991

Date: Thu, 1 Aug 91 10:19:41 MDT
From: whrahe@somnet.sandia.gov (Nov-William H Rahe)
To: krb5-bugs@MIT.EDU

I have located and corrected my problem.  I copied my krb.conf file from
my Version 4 Kerberos to /krb5/krb.conf.  This file contained three spaces
between the realm specification and the hostname on the second line. I
assumed (incorrectly) that the three spaces were a tab.  As delivered,
src/lib/os/get_krbhst.c does not strip multiple delimeters when building
the hostlist.  Modification of /krb5/krb.conf to have only a single
delimeter between realm and host corrected the problem.  In addition, I
modified get_krbhst.c to strip multiple delimeters.
  diff get_krbhst.c get_krbhst.c_orig ==>
78d77
<     int i;
95c94,95
<           if (strlen(filebuf) <= realm->length + 1) {
---
>           /* +1 to get beyond trailing space */
>           if (strlen(filebuf) < realm->length + 1) {
100,105c100
<
<               /* strip all leading delimeters */
<           for ( i = realm->length + 1; i < strlen(filebuf); i++ )
<               if ( !isspace (filebuf[i]) ) break;
<
<           rethlist[hlindex] = strdup(&filebuf[i]);
---
>           rethlist[hlindex] = strdup(&filebuf[realm->length+1]);

home help back first fref pref prev next nref lref last post