csingle = mod_singletocallable(single);
csingle->parent = parent;
csingle->next = NULL;
- if (!parent || (component != RLM_COMPONENT_AUTH)) {
+ if (!parent) {
memcpy(csingle->actions, defaultactions[component][grouptype],
sizeof csingle->actions);
- } else { /* inside Auth-Type has different rules */
- memcpy(csingle->actions, defaultactions[RLM_COMPONENT_AUTZ][grouptype],
- sizeof csingle->actions);
}
rad_assert(modrefname != NULL);
csingle->name = modrefname;
* set.
*/
for (i = 0; i < RLM_MODULE_NUMCODES; i++) {
- if (!c->actions[i]) {
- if (!parent || (component != RLM_COMPONENT_AUTH)) {
- c->actions[i] = defaultactions[component][parentgrouptype][i];
- } else { /* inside Auth-Type has different rules */
- c->actions[i] = defaultactions[RLM_COMPONENT_AUTZ][parentgrouptype][i];
- }
+ if (!c->actions[i] && !parent) {
+ c->actions[i] = defaultactions[component][parentgrouptype][i];
}
}
/*
* Compile the group.
*/
- ml = compile_modgroup(parent, comp, cs);
+ if (comp != RLM_COMPONENT_AUTH) {
+ ml = compile_modgroup(parent, comp, cs);
+ } else {
+ ml = compile_modgroup(parent, RLM_COMPONENT_AUTZ, cs);
+ DEBUG("COMPILE Auth-Type %s", cf_section_name2(cs));
+ }
if (!ml) {
return 0;
}