},
.bindings = (module_method_binding_t[]){
{ .section = SECTION_NAME("authenticate", CF_IDENT_ANY), .method = mod_authenticate, .method_env = &chap_auth_method_env },
- { .section = SECTION_NAME("recv", "access-request"), .method = mod_authorize, .method_env = &chap_autz_method_env },
+ { .section = SECTION_NAME("recv", "Access-Request"), .method = mod_authorize, .method_env = &chap_autz_method_env },
MODULE_BINDING_TERMINATOR
}
};
},
.bindings = (module_method_binding_t[]){
{ .section = SECTION_NAME("authenticate", CF_IDENT_ANY), .method = mod_authenticate },
- { .section = SECTION_NAME("recv", "access-request"), .method = mod_authorize },
+ { .section = SECTION_NAME("recv", "Access-Request"), .method = mod_authorize },
MODULE_BINDING_TERMINATOR
},
};
},
.bindings = (module_method_binding_t[]){
{ .section = SECTION_NAME("authenticate", CF_IDENT_ANY), .method = mod_authenticate },
- { .section = SECTION_NAME("recv", "access-request"), .method = mod_authorize },
+ { .section = SECTION_NAME("recv", "Access-Request"), .method = mod_authorize },
{ .section = SECTION_NAME("send", CF_IDENT_ANY), .method = mod_post_auth },
MODULE_BINDING_TERMINATOR
}
* are dependent on the driver used by a given module instance.
*/
static int call_env_parse(TALLOC_CTX *ctx, void *out, tmpl_rules_t const *t_rules, CONF_ITEM *ci,
- UNUSED char const *section_name1, UNUSED char const *section_name2,
- void const *data, UNUSED call_env_parser_t const *rule)
+ call_env_ctx_t const *cec, UNUSED call_env_parser_t const *rule)
{
- rlm_sqlippool_t const *inst = talloc_get_type_abort_const(data, rlm_sqlippool_t);
+ rlm_sqlippool_t const *inst = talloc_get_type_abort_const(cec->mi->data, rlm_sqlippool_t);
module_instance_t const *sql_inst;
rlm_sql_t const *sql;
tmpl_t *parsed_tmpl;
/*
* RADIUS specific
*/
- { .section = SECTION_NAME("recv", "access-request"), .method = mod_alloc, .method_env = &sqlippool_alloc_method_env },
- { .section = SECTION_NAME("accounting", "start"), .method = mod_common, .method_env = &sqlippool_update_method_env },
- { .section = SECTION_NAME("accounting", "alive"), .method = mod_common, .method_env = &sqlippool_update_method_env },
- { .section = SECTION_NAME("accounting", "stop"), .method = mod_common, .method_env = &sqlippool_release_method_env },
- { .section = SECTION_NAME("accounting", "accounting-on"), .method = mod_common, .method_env = &sqlippool_bulk_release_method_env },
- { .section = SECTION_NAME("accounting", "accounting-off"), .method = mod_common, .method_env = &sqlippool_bulk_release_method_env },
+ { .section = SECTION_NAME("recv", "Access-Request"), .method = mod_alloc, .method_env = &sqlippool_alloc_method_env },
+ { .section = SECTION_NAME("accounting", "Start"), .method = mod_common, .method_env = &sqlippool_update_method_env },
+ { .section = SECTION_NAME("accounting", "Alive"), .method = mod_common, .method_env = &sqlippool_update_method_env },
+ { .section = SECTION_NAME("accounting", "Stop"), .method = mod_common, .method_env = &sqlippool_release_method_env },
+ { .section = SECTION_NAME("accounting", "Accounting-On"), .method = mod_common, .method_env = &sqlippool_bulk_release_method_env },
+ { .section = SECTION_NAME("accounting", "Accounting-Off"), .method = mod_common, .method_env = &sqlippool_bulk_release_method_env },
/*
* DHCPv4
},
.bindings = (module_method_binding_t[]){
{ .section = SECTION_NAME("accounting", CF_IDENT_ANY), .method = mod_accounting },
- { .section = SECTION_NAME("recv", "access-request"), .method = mod_authorize },
- { .section = SECTION_NAME("send", "accounting-response"), .method = mod_accounting }, /* Backwards compatibility */
+ { .section = SECTION_NAME("recv", "Access-Request"), .method = mod_authorize },
+ { .section = SECTION_NAME("send", "Accounting-Response"), .method = mod_accounting }, /* Backwards compatibility */
MODULE_BINDING_TERMINATOR
}
};
},
.bindings = (module_method_binding_t[]){
{ .section = SECTION_NAME("authenticate", CF_IDENT_ANY), .method = mod_authenticate },
- { .section = SECTION_NAME("recv", "access-request"), .method = mod_authorize },
+ { .section = SECTION_NAME("recv", "Access-Request"), .method = mod_authorize },
MODULE_BINDING_TERMINATOR
}
};