next:
pairstrcpy(sql_group, entry->name);
- if (inst->config->authorize_group_check_query && *inst->config->authorize_group_check_query) {
+ if (inst->config->authorize_group_check_query) {
vp_cursor_t cursor;
VALUE_PAIR *vp;
check_tmp = NULL;
}
- if (inst->config->authorize_group_reply_query && *inst->config->authorize_group_reply_query) {
+ if (inst->config->authorize_group_reply_query) {
/*
* Now get the reply pairs since the paircompare matched
*/
return -1;
}
- if (inst->config->groupmemb_query &&
- inst->config->groupmemb_query[0]) {
+ if (inst->config->groupmemb_query) {
DEBUG("rlm_sql (%s): Registering sql_groupcmp for %s",
inst->config->xlat_name, group_name);
paircompare_register(da, dict_attrbyvalue(PW_USER_NAME, 0),
CHECK_STRING(authorize_reply_query);
CHECK_STRING(authorize_group_check_query);
CHECK_STRING(authorize_group_reply_query);
+ CHECK_STRING(simul_count_query);
+ CHECK_STRING(simul_verify_query);
+ CHECK_STRING(open_query);
+ CHECK_STRING(client_query);
/*
* Sanity check for crazy people.
inst->pool = fr_connection_pool_module_init(inst->cs, inst, mod_conn_create, NULL, NULL);
if (!inst->pool) return -1;
- if (inst->config->groupmemb_query &&
- inst->config->groupmemb_query[0]) {
+ if (inst->config->groupmemb_query) {
paircompare_register(dict_attrbyvalue(PW_SQL_GROUP, 0),
dict_attrbyvalue(PW_USER_NAME, 0), false, sql_groupcmp, inst);
}
/*
* Query the check table to find any conditions associated with this user/realm/whatever...
*/
- if (inst->config->authorize_check_query && *inst->config->authorize_check_query) {
+ if (inst->config->authorize_check_query) {
vp_cursor_t cursor;
VALUE_PAIR *vp;
check_tmp = NULL;
}
- if (inst->config->authorize_reply_query && *inst->config->authorize_reply_query) {
+ if (inst->config->authorize_reply_query) {
/*
* Now get the reply pairs since the paircompare matched
*/
char *expanded = NULL;
/* If simul_count_query is not defined, we don't do any checking */
- if (!inst->config->simul_count_query || (inst->config->simul_count_query[0] == '\0')) {
+ if (!inst->config->simul_count_query) {
return RLM_MODULE_NOOP;
}
* Looks like too many sessions, so let's start verifying
* them, unless told to rely on count query only.
*/
- if (!inst->config->simul_verify_query || (inst->config->simul_verify_query[0] == '\0')) {
+ if (!inst->config->simul_verify_query) {
rcode = RLM_MODULE_OK;
goto finish;