Realmname missing in SPN

Arpit Srivastava arpit.orb at gmail.com
Wed Mar 26 14:57:55 EDT 2014


Hi All,

I am using krb5_sname_to_principal() api to generate HTTP/
home.example.com at EXAMPLE.COM format SPN from HTTP at home.example.com format.
krb5_sname_to_principal() returns a principal which when I parsed, I got
something like HTTP/home.example.com at . Realname EXAMPLE.COM is missing here.
I guess krb5_get_host_realm is failing to fetch the default realm that
could be appended.
Can anybody suggest some solution for getting the realm name at the end if
SPN ?

Arpit


More information about the Kerberos mailing list