diff options
author | Kozlov Dmitry <dima@server> | 2011-08-16 17:46:25 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-16 17:46:25 +0400 |
commit | dc7cbe120d8794d8520e6d9d35c121474453d807 (patch) | |
tree | a6eb87b3dca80e110b6390278b63c782a3e8a56c /accel-pppd/radius/radius.c | |
parent | 852f842d6521c5c260d24cf23a0e5a317cf25a0b (diff) | |
download | accel-ppp-dc7cbe120d8794d8520e6d9d35c121474453d807.tar.gz accel-ppp-dc7cbe120d8794d8520e6d9d35c121474453d807.zip |
multi-radius support
Diffstat (limited to 'accel-pppd/radius/radius.c')
-rw-r--r-- | accel-pppd/radius/radius.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index a6c5b93d..0fc42cd1 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -42,6 +42,9 @@ int conf_sid_in_auth; int conf_require_nas_ident; int conf_acct_interim_interval; +int conf_accounting; +int conf_fail_time = 60; + unsigned long stat_auth_sent; unsigned long stat_auth_lost; unsigned long stat_acct_sent; @@ -486,27 +489,6 @@ static int load_config(void) else if (conf_nas_ip_address) conf_bind = conf_nas_ip_address; - opt = conf_get_opt("radius", "auth-server"); - if (!opt) - opt = conf_get_opt("radius", "auth_server"); - if (!opt) { - log_emerg("radius: auth-server not specified\n"); - return -1; - } else if (parse_server(opt, &conf_auth_server, &conf_auth_server_port, &conf_auth_secret)) { - log_emerg("radius: failed to parse auth_server\n"); - return -1; - } - - opt = conf_get_opt("radius", "acct-server"); - if (!opt) - opt = conf_get_opt("radius", "acct_server"); - if (!opt) - log_emerg("radius: acct-server not specified\n"); - if (opt && parse_server(opt, &conf_acct_server, &conf_acct_server_port, &conf_acct_secret)) { - log_emerg("radius: failed to parse acct_server\n"); - return -1; - } - opt = conf_get_opt("radius", "dae-server"); if (opt && parse_server(opt, &conf_dm_coa_server, &conf_dm_coa_port, &conf_dm_coa_secret)) { log_emerg("radius: failed to parse dae-server\n"); @@ -529,6 +511,10 @@ static int load_config(void) if (opt) conf_acct_delay_time = atoi(opt); + opt = conf_get_opt("radius", "fail-time"); + if (opt) + conf_fail_time = atoi(opt); + return 0; } |