char const *name;
xlat_t *xlat;
- inst->cs = conf;
-
inst->config.name = cf_section_name2(conf);
if (!inst->config.name) inst->config.name = cf_section_name1(conf);
rlm_cache_t *inst = instance;
CONF_SECTION *update;
- inst->cs = conf;
-
fr_assert(inst->config.key);
if (!fr_time_delta_ispos(inst->config.ttl)) {
return -1;
}
- update = cf_section_find(inst->cs, "update", CF_IDENT_ANY);
+ update = cf_section_find(conf, "update", CF_IDENT_ANY);
if (!update) {
cf_log_err(conf, "Must have an 'update' section in order to cache anything");
return -1;
}
if (fr_dlist_empty(&inst->maps)) {
- cf_log_err(inst->cs, "Cache config must contain an update section, and "
+ cf_log_err(conf, "Cache config must contain an update section, and "
"that section must not be empty");
return -1;
}
fr_map_list_t maps; //!< Attribute map applied to users.
//!< and profiles.
- CONF_SECTION *cs;
} rlm_cache_t;
typedef struct {
CONF_SECTION *options, *update;
rlm_ldap_t *inst = instance;
- inst->cs = conf;
fr_map_list_init(&inst->user_map);
options = cf_section_find(conf, "options", NULL);
.allow_foreign = true /* Because we don't know where we'll be called */
};
- update = cf_section_find(inst->cs, "update", NULL);
+ update = cf_section_find(conf, "update", NULL);
if (update && (map_afrom_cs(inst, &inst->user_map, update,
&parse_rules, &parse_rules, fr_ldap_map_verify, NULL,
LDAP_MAX_ATTRMAP) < 0)) {
typedef struct {
char const *name; //!< Instance name.
- CONF_SECTION *cs; //!< Main configuration section for this instance.
-
bool expect_password; //!< True if the user_map included a mapping between an LDAP
//!< attribute and one of our password reference attributes.
char const *name; //!< Auth-Type value for this module instance.
fr_dict_enum_value_t *auth_type;
fr_map_list_t header_maps; //!< Attribute map used to process header elements
- CONF_SECTION *cs;
bool set_date;
} rlm_smtp_t;
rlm_smtp_t *inst = instance;
CONF_SECTION *header;
- inst->cs = conf;
-
fr_map_list_init(&inst->header_maps);
- header = cf_section_find(inst->cs, "header", NULL);
+ header = cf_section_find(conf, "header", NULL);
if (!header) {
return 0;
}
xlat_t *xlat;
xlat_arg_parser_t *sql_xlat_arg;
- inst->cs = conf;
-
inst->name = cf_section_name2(conf);
if (!inst->name) inst->name = cf_section_name1(conf);
*/
INFO("Attempting to connect to database \"%s\"", inst->config.sql_db);
- inst->pool = module_connection_pool_init(inst->cs, inst, sql_mod_conn_create, NULL, NULL, NULL, NULL);
+ inst->pool = module_connection_pool_init(conf, inst, sql_mod_conn_create, NULL, NULL, NULL, NULL);
if (!inst->pool) return -1;
return 0;
struct sql_inst {
rlm_sql_config_t config; /* HACK */
fr_pool_t *pool;
- CONF_SECTION *cs;
fr_dict_attr_t const *sql_user; //!< Cached pointer to SQL-User-Name
//!< dictionary attribute.
inst->sql_inst = (rlm_sql_t *) sql_inst->dl_inst->data;
- if (strcmp(cf_section_name1(inst->sql_inst->cs), "sql") != 0) {
+ if (strcmp(talloc_get_name(inst->sql_inst), "rlm_sql_t") != 0) {
cf_log_err(conf, "Module \"%s\" is not an instance of the rlm_sql module",
inst->sql_instance_name);
return -1;