krb5_get_in_tkt_with_password with KRB5_REALM_CANT_RESOLVE error

Stephen Ince since at
Thu Sep 25 01:57:49 EDT 2008

I am getting a KRB5_REALM_CANT_RESOLVE error with the 
krb5_get_in_tkt_with_password call.  I am
trying to programmatically get a ticket from KDC server. I am using
kfw 3.3.3 Mit kerberos toolkit.

The userid is matt at FOOBAR.LOCAL.

The host FOOBAR.LOCAL just has an entry in my C:\WINDOWS
\SYSTEM32\DRIVERS\ETC\HOSTS.      apache.foobar.local apache      kdc.foobar.local kdc

I have tried the following userids.

matt at kdc.foobar.local
matt at apache.foobar.local
matt at

The code is
    err = krb5_get_in_tkt_with_password(
       kdcFlags, NULL, NULL, NULL, password, krb5->ccache, &krb5-
>credentials, 0);

Is it failing because the kerberos package can't use a host file but
an actual dns entry? Any help would be greatly appreciated.


More information about the krbdev mailing list