summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius/radius.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-11-09 10:45:19 +0300
committerKozlov Dmitry <dima@server>2010-11-09 10:45:19 +0300
commitea29f31e5b072ea1247a18bbecb9e2f47a36bc72 (patch)
tree6f515df8fb680d2443c2b7efcd9941a1b21e29a8 /accel-pptpd/radius/radius.c
parent1396b7c22bbd319fc22ee420c14cdb69f8d5203c (diff)
downloadaccel-ppp-ea29f31e5b072ea1247a18bbecb9e2f47a36bc72.tar.gz
accel-ppp-ea29f31e5b072ea1247a18bbecb9e2f47a36bc72.zip
radius: send Acct-Session-Id in Access-Request packet if sid_in_auth option is set (for broken billings)
Diffstat (limited to 'accel-pptpd/radius/radius.c')
-rw-r--r--accel-pptpd/radius/radius.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/accel-pptpd/radius/radius.c b/accel-pptpd/radius/radius.c
index bb8e2162..edec82a0 100644
--- a/accel-pptpd/radius/radius.c
+++ b/accel-pptpd/radius/radius.c
@@ -39,6 +39,8 @@ int conf_acct_server_port = 1813;
char *conf_acct_secret;
char *conf_dm_coa_secret;
+int conf_sid_in_auth = 0;
+
static LIST_HEAD(sessions);
static pthread_rwlock_t sessions_lock = PTHREAD_RWLOCK_INITIALIZER;
@@ -411,6 +413,10 @@ static void __init radius_init(void)
if (opt)
dict = opt;
+ opt = conf_get_opt("radius", "sid_in_auth");
+ if (opt && atoi(opt) > 0)
+ conf_sid_in_auth = 1;
+
if (rad_dict_load(dict))
_exit(EXIT_FAILURE);