get the default keytab from KRB5_KTNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11100 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -105,8 +105,14 @@ init_context_from_config_file(krb5_context context)
|
|||||||
context->etypes_des = tmptypes;
|
context->etypes_des = tmptypes;
|
||||||
|
|
||||||
/* default keytab name */
|
/* default keytab name */
|
||||||
INIT_FIELD(context, string, default_keytab,
|
tmp = NULL;
|
||||||
KEYTAB_DEFAULT, "default_keytab_name");
|
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");
|
||||||
|
|
||||||
INIT_FIELD(context, string, default_keytab_modify,
|
INIT_FIELD(context, string, default_keytab_modify,
|
||||||
NULL, "default_keytab_modify_name");
|
NULL, "default_keytab_modify_name");
|
||||||
|
Reference in New Issue
Block a user