Relax restrictions on group membership query
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Mar 2015 17:33:38 +0000 (12:33 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Mar 2015 17:33:38 +0000 (12:33 -0500)
We don't need to have groupcheck / group reply attrs

src/modules/rlm_sql/rlm_sql.c

index 5fa193c..37f6be5 100644 (file)
@@ -895,19 +895,7 @@ do { \
                        WARN("rlm_sql (%s): Ignoring authorize_group_check_query as group_membership_query "
                             "is not configured", inst->name);
                }
-       } else {
-               if (!inst->config->authorize_group_check_query) {
-                       ERROR("rlm_sql (%s): authorize_group_check_query must be configured as group_membership_query "
-                             "is configured", inst->name);
-                       return -1;
-               }
-
-               if (!inst->config->authorize_group_reply_query) {
-                       ERROR("rlm_sql (%s): authorize_group_reply_query must be configured as group_membership_query "
-                             "is configured", inst->name);
-                       return -1;
-               }
-       }
+       } /* allow the group check / reply queries to be NULL */
 
        /*
         *      This will always exist, as cf_section_parse_init()