[Freeipa-devel] Adding client on RHEL 6 fails to get DNS entry

Simo Sorce ssorce at redhat.com
Fri Feb 25 22:04:10 UTC 2011


On Fri, 25 Feb 2011 15:19:25 -0500
Simo Sorce <ssorce at redhat.com> wrote:

> On Fri, 25 Feb 2011 14:49:27 -0500
> Adam Young <ayoung at redhat.com> wrote:
> 
> > 2011-02-24 20:46:06,851 DEBUG stderr=
> > 2011-02-24 20:46:06,878 DEBUG args=/usr/bin/kinit -k
> > -t /etc/krb5.keytab 2011-02-24 20:46:06,879 DEBUG stdout=
> > 2011-02-24 20:46:06,879 DEBUG stderr=kinit: Hostname cannot be
> > canonicalized when creating default server principal name
> 
> ah no sorry this is the error, kinit failing ...
> now on why this happens ...
> 
> Simo.
> 
> 

Ok this happens becaue /etc/hosts doesn't have an entry for the
hostname and DNS doesn't still resolve it (chicken/egg)

Please open a ticket, the fix is to pass the principal name as argument
of the kinit command so that it doesn't have to go thorugh name
resolution to understand what name to use.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list