# calculated based on the remaining time. See "doc/README".
#
logintime {
- #
- # The Reply-Message which will be sent back in case
- # the account is calling outside of the allowed
- # timespan. Dynamic substitution is supported.
- #
- reply-message = "You are calling outside your allowed timespan\r\n"
- #reply-message = "Outside allowed timespan (%{control:Login-Time}), %{User-Name}\r\n"
-
# The minimum timeout (in seconds) a user is allowed
# to have. If the calculated timeout is lower we don't
# allow the logon. Some NASes do not handle values
# lower than 60 seconds well.
- minimum-timeout = 60
+ minimum_timeout = 60
}
* buffer over-flows.
*/
static const CONF_PARSER module_config[] = {
- { "minimum-timeout", PW_TYPE_INTEGER, offsetof(rlm_logintime_t,min_time), NULL, "60" },
+ { "minimum-timeout", PW_TYPE_INTEGER | PW_TYPE_DEPRECATED, offsetof(rlm_logintime_t,min_time), NULL, "60" },
+ { "minimum_timeout", PW_TYPE_INTEGER, offsetof(rlm_logintime_t,min_time), NULL, "60" },
{ NULL, -1, 0, NULL, NULL }
};
rlm_logintime_t *inst = instance;
if (inst->min_time == 0) {
- cf_log_err_cs(conf, "Invalid value '0' for minimum-timeout");
+ cf_log_err_cs(conf, "Invalid value '0' for minimum_timeout");
return -1;
}