(init_context_from_config_file): simplify initialisation of srv_lookup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11328 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -173,14 +173,9 @@ init_context_from_config_file(krb5_context context)
|
|||||||
|
|
||||||
INIT_FIELD(context, bool, scan_interfaces, TRUE, "scan_interfaces");
|
INIT_FIELD(context, bool, scan_interfaces, TRUE, "scan_interfaces");
|
||||||
INIT_FIELD(context, int, fcache_vno, 0, "fcache_version");
|
INIT_FIELD(context, int, fcache_vno, 0, "fcache_version");
|
||||||
INIT_FIELD(context, bool, srv_lookup, TRUE, "dns_lookup_kdc");
|
/* prefer dns_lookup_kdc over srv_lookup. */
|
||||||
/* srv_lookup backwards compatibility. */
|
INIT_FIELD(context, bool, srv_lookup, TRUE, "srv_lookup");
|
||||||
{
|
INIT_FIELD(context, bool, srv_lookup, context->srv_lookup, "dns_lookup_kdc");
|
||||||
const char **p;
|
|
||||||
p = krb5_config_get_strings(context, NULL, "libdefaults", "srv_lookup", NULL);
|
|
||||||
if (p != NULL)
|
|
||||||
INIT_FIELD(context, bool, srv_lookup, TRUE, "srv_lookup");
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user