krb5_get_in_tkt_with_password with KRB5_REALM_CANT_RESOLVE error
I am getting a error with the krb5_get_in_tkt_with_password. I am
trying to programmatically get a ticket from KDC server. I am using
kfw 3.3.3 Mit kerberos toolkit.
The userid is [email]matt@FOOBAR.LOCA[/email]L.
The host FOOBAR.LOCAL just has an entry in my C:\WINDOWS
\SYSTEM32\DRIVERS\ETC\HOSTS.
69.127.38.76 apache.foobar.local apache
69.127.38.76 kdc.foobar.local kdc
---------------------------------------------------------------
i have tried the following userids.
[email]matt@FOOBAR.LOCA[/email]L
[email]matt@kdc.foobar.loca[/email]l
[email]matt@apache.foobar.loca[/email]l
matt@69.127.38.76
The code is
------------------------------------------------------------------------------
err = krb5_get_in_tkt_with_password(
krb5->context,
kdcFlags, NULL, NULL, NULL, password, krb5->ccache, &krb5-[color=blue]
>credentials, 0);[/color]
Is it failing because the kerberos package can't use a host file but
an actual dns entry? Any help would be greatly appreciated.
Steve
[email]stephenpince@gmail.com[/email]