inst->cs = conf;
inst->name = cf_section_name2(conf);
- if (!inst->name) {
- inst->name = cf_section_name1(conf);
- }
+ if (!inst->name) inst->name = cf_section_name1(conf);
/*
* Load the appropriate driver for our database.
return -1;
}
+ INFO("rlm_sql (%s): Driver %s (module %s) loaded and linked", inst->name,
+ inst->config->sql_driver_name, inst->module->name);
+
if (inst->config->groupmemb_query) {
if (!cf_section_name2(conf)) {
char buffer[256];
return -1;
}
- INFO("rlm_sql (%s): Driver %s (module %s) loaded and linked", inst->name,
- inst->config->sql_driver_name, inst->module->name);
-
/*
* Initialise the connection pool for this instance
*/
extern module_t rlm_sql;
module_t rlm_sql = {
.magic = RLM_MODULE_INIT,
- .name = "SQL",
+ .name = "sql",
.type = RLM_TYPE_THREAD_SAFE,
.inst_size = sizeof(rlm_sql_t),
.config = module_config,