Commit 6bfa7884 authored by Russ Allbery's avatar Russ Allbery

Allow propagation of base instances

We weren't allowing ad_base_instance instances through far enough
into the password change logic to determine that they should be
propagated to the base account.
parent 079b0c89
......@@ -102,7 +102,12 @@ instance_allowed(kadm5_hook_modinfo *config, const char *instance)
size_t i;
if (config->ad_instances == NULL || instance == NULL)
if (instance == NULL)
return false;
if (config->ad_base_instance)
if (strcmp(config->ad_base_instance, instance) == 0)
return true;
if (config->ad_instances == NULL)
return false;
for (i = 0; i < config->ad_instances->count; i++)
if (strcmp(config->ad_instances->strings[i], instance) == 0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment