apache virtual hosts and keytabs

Vlad vladistan at gmail.com
Mon Sep 27 15:29:05 EDT 2010


On Sep 27, 9:58 am, Nikolay Shopik <sho... at inblock.ru> wrote:
> Hi,
>
> I wounder how correctly generate keytabs for virtual hosts in Apache?
>  From what I read, most cases suggest create keytab for HTTP/hostname
> where is hostname is actual hostname of machine not virtual hostname.
> Error logs show these messages:
> gss_accept_sec_context() failed: Unspecified GSS failure.  Minor code
> may provide more information (, )
>
> I've tried to generate keytab for virtual hostname only, this is of
> course not work.
> gss_acquire_cred() failed: Unspecified GSS failure.  Minor code may
> provide more information (, Key table entry not found)
> if I change hostname to match virtualhost everything start working just
> fine.
>
> So what configuration I need to make virtual hosts to work with Kerberos?

You should always use the hostname that is typed in the browser.
Browsers always use the hostname from the URL to request the ticket
from KDC.   If you use your actual server name, which will cause the
principal mismatch.   And you will get exactly the error you getting.



More information about the Kerberos mailing list