aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2015-06-23 10:38:19 -0400
committerTom Yu <tlyu@mit.edu>2015-06-24 17:41:30 -0400
commit9f4c5ddf62717c3be2499214d5fc61bcb6e8d7ff (patch)
tree27a3687315026699f75ee44927b132b54185e089 /src
parent486d556036d1f66753724cfd70eecc217520a01e (diff)
downloadkrb5-9f4c5ddf62717c3be2499214d5fc61bcb6e8d7ff.zip
krb5-9f4c5ddf62717c3be2499214d5fc61bcb6e8d7ff.tar.gz
krb5-9f4c5ddf62717c3be2499214d5fc61bcb6e8d7ff.tar.bz2
Make registry hostrealm module highest precedence
Testing reveals that there are a number of machines in the wild which retain old krb5.ini files across domain configuration changes, and it is difficult to determine which machines are potentially affected by incorrect stale configuration data. To enable domain administrators to easily ensure that the correct default realm is set, allow the registry hostrealm module to take precedence over the profile. Note that the registry hostrealm module can still be disabled in the hostrealm interface configuration statment in the [plugins] section of the profile. (cherry picked from commit 287b8eae295a3ab496b04b327840e92c235efd1a) ticket: 8209 version_fixed: 1.13.3 status: resolved
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/os/hostrealm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/krb5/os/hostrealm.c b/src/lib/krb5/os/hostrealm.c
index 9c84749..78d6c5d 100644
--- a/src/lib/krb5/os/hostrealm.c
+++ b/src/lib/krb5/os/hostrealm.c
@@ -75,14 +75,14 @@ get_modules(krb5_context context, krb5_plugin_initvt_fn **modules_out)
*modules_out = NULL;
/* Register built-in modules. */
- ret = k5_plugin_register(context, intf, "profile",
- hostrealm_profile_initvt);
- if (ret)
- return ret;
ret = k5_plugin_register(context, intf, "registry",
hostrealm_registry_initvt);
if (ret)
return ret;
+ ret = k5_plugin_register(context, intf, "profile",
+ hostrealm_profile_initvt);
+ if (ret)
+ return ret;
ret = k5_plugin_register(context, intf, "dns", hostrealm_dns_initvt);
if (ret)
return ret;