cyrus and gssapi

Jukka Salmi j+asg at 2004.salmi.ch
Mon Aug 16 14:39:13 EDT 2004


Andreas --> cyrus-sasl (2004-08-16 10:17:54 -0300):
> On Sat, Aug 14, 2004 at 05:57:55PM +0200, Jukka Salmi wrote:
> > On gssapi.html[4] it tells about environment variables used by the
> > kerberos libraries to determine the keytab file, i.e. KRB5_KTNAME for
> > Heimdal (which I can confirm to be correct).
> 
> That variable only works for MIT as far as I know.

Quoting heimdal-0.6.2/lib/krb5/context.c:

static krb5_error_code
init_context_from_config_file(krb5_context context)
{
[...]
    /* default keytab name */
    tmp = NULL;
    if(!issuid())
	tmp = getenv("KRB5_KTNAME");
    if(tmp != NULL)
	context->default_keytab = tmp;
    else
	INIT_FIELD(context, string, default_keytab, 
		   KEYTAB_DEFAULT, "default_keytab_name");

Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~




More information about the Info-cyrus mailing list