#
# read_groups = yes
+ #
+ # read_profiles:: Read the user profile attributes from the database.
+ #
+ # Following `check` and `reply` item handling and, depending on the `read_groups` option
+ # and `Fall-Through` value, groups processing, the SQL module will treat values of the
+ # `User-Profile` attributes in the control list as additional groups that the user belongs
+ # to and repeat the group `check` and `reply` processing.
+ #
+ # If set to `yes`, we process the user profiles unless `Fall-Through = no` in the reply list.
+ # If set to `no`, we do not process the user profiles unless `Fall-Through = yes` in the reply list.
+ #
+ # Default is `yes`.
+# read_profile = yes
+
#
# logfile:: Write SQL queries to a logfile.
#
{ FR_CONF_OFFSET("read_groups", rlm_sql_config_t, read_groups), .dflt = "yes" },
{ FR_CONF_OFFSET("group_attribute", rlm_sql_config_t, group_attribute) },
{ FR_CONF_OFFSET("cache_groups", rlm_sql_config_t, cache_groups) },
+ { FR_CONF_OFFSET("read_profiles", rlm_sql_config_t, read_profiles), .dflt = "yes" },
{ FR_CONF_OFFSET_FLAGS("logfile", CONF_FLAG_XLAT, rlm_sql_config_t, logfile) },
{ FR_CONF_OFFSET("open_query", rlm_sql_config_t, connect_query) },
//!< If false, Fall-Through = yes is required
//!< in the previous reply list to process
//!< groups.
+ bool read_profiles; //!< Read user profiles by default.
+ //!< If false, Fall-Through = yes is required
+ //!< in the previous reply list to process
+ //!< profiles.
char const *logfile; //!< Keep a log of all SQL queries executed
//!< Useful for batch insertion with the
//!< NULL drivers.