diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2019-08-29 17:37:15 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2019-08-29 17:37:15 +0500 |
commit | b955a5c1b35268afd1f6f7ae6aa28ab8e091e28d (patch) | |
tree | 950aab4d85e132e4d230dffcbc853dacbbce3ad4 /accel-pppd/radius/radius_p.h | |
parent | 7efdbf43b172abe58e703d09fc8f317bf0da0000 (diff) | |
download | accel-ppp-b955a5c1b35268afd1f6f7ae6aa28ab8e091e28d.tar.gz accel-ppp-b955a5c1b35268afd1f6f7ae6aa28ab8e091e28d.zip |
radius: add support for Access-Accept username
once radius server has returned User-Name attribute in Access-Accept
packet, it'll be used for any subsequent Accounting-Request packets
instead of internal username per RFC2865 5.1
other way of just replacing session username is possible, but not
desired at the moment due potential issues with single-session modes
in case of different ppp logins / ipoe macs and same contract number
returned by radius for that accounts.
Diffstat (limited to 'accel-pppd/radius/radius_p.h')
-rw-r--r-- | accel-pppd/radius/radius_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index db8d277f..172504cf 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -67,6 +67,7 @@ struct radius_pd_t { struct ipv6db_prefix_t ipv6_dp; int acct_interim_interval; + char *acct_username; uint8_t *attr_class; int attr_class_len; uint8_t *attr_state; |