AIX 5.3: kinit(v5): Cannot resolve network address for KDC in requested realm while getting initial credentials

Donn Cave donn at u.washington.edu
Tue Nov 8 15:23:31 EST 2005


In article <dkqtao$ur0$05$1 at news.t-online.com>,
 Christoph Weizen <cwei at gmx.net> wrote:

> kinit (krb5 1.4.2) on an AIX 5.3 gives me
> # /usr/local/bin/kinit -k -t foobar.keytab 
> foobar/foo.example.net at EXAMPLE.NET
> kinit(v5): Cannot resolve network address for KDC in requested realm 
> while getting initial credentials
> 
>  From a working Linux krb5 1.4.2 installation I copied /etc/krb5.conf 
> and foobar.keytab to AIX 5.3. The following steps don't defer to the 
> steps I did under Linux.
> 
> # ./configure --without-krb4 --enable-shared
> # make && make install
> 
> Using gcc 3.3.2.
> I found a patch for krb5 1.4.1 for AIX 5.2 from Ken Raeburn, but as far 
> as I see it is fixed in 1.4.2.

I don't know what's in that patch.  Does it look like you
already have applied something like this?

   Donn Cave, donn at u.washington.edu
-----------------------------------
*** include/fake-addrinfo.h.dist        Wed Jun  1 12:24:32 2005
--- include/fake-addrinfo.h     Fri Aug 12 09:10:48 2005
***************
*** 1193,1199 ****
         a known service name for tcp or udp (as appropriate), an error
         code (for "host not found") is returned.  If the port maps to a
         known service for both udp and tcp, all is well.  */
!     if (serv && serv[0] && isdigit(serv[0])) {
        unsigned long lport;
        char *end;
        lport = strtoul(serv, &end, 10);
--- 1193,1208 ----
         a known service name for tcp or udp (as appropriate), an error
         code (for "host not found") is returned.  If the port maps to a
         known service for both udp and tcp, all is well.  */
!     /*
!     **
!     **  However, where AI_NUNERICSERV is defined (AIX 5) and was 
specified,
!     **  this is unneeded and and broken - "discard" is not numeric.
!     */
!     if (serv && serv[0]
! #ifdef AI_NUMERICSERV
!              && !(hint->ai_flags & AI_NUMERICSERV)
! #endif
!              && isdigit(serv[0])) {
        unsigned long lport;
        char *end;
        lport = strtoul(serv, &end, 10);


More information about the Kerberos mailing list