Commit Graph

27 Commits

Author SHA1 Message Date
armirveliaj
d9a5458a43 Add new trends config option: scheduled_ids 2024-10-01 20:04:22 +02:00
ionutboangiu
28e53cecc9 Add requests_cache_key field to radagent cfg 2024-03-07 17:20:23 +01:00
ionutboangiu
ca6a9440f7 Update client_da_addresses structure
Supports configuring transport (tcp/udp), host, port and
flags (only *log for now).
2024-03-06 16:15:36 +01:00
ionutboangiu
02c8ed11c1 Implement support for RADIUS CoA 2024-02-07 18:28:17 +01:00
ionutboangiu
9991b29cae Implement DisconnectSession API for RADIUS Agent
Updated radigo library to latest version.

Updated RadiusAgent to satisfy the birpc client interface.

Added *radDAdiscMsg OrderedNavigableMap type field within AgentRequest.
This one is similar to *diamreq, as it is used for building RADIUS
server-initiated Disconnect Requests.

radReplyAppendAttributes: refactored to reflect that it can now be
used to also append attributes to request packets, not only reply.

Added bidirectional support for session related RadiusAgent methods.

For Dynamic Authorization to be possible, a new field was added within RadiusAgent
that holds dicts and secrets only for the clients that support it. They are used
to create the DA Client sending Disconnect Requests.

Added a new cache partition to store Access-Request packets with the purpose
of using them to build the Disconnect Requests. They are identified by sessionID.
It defaults to the value of 'Acct-Session-id'.

Added a predefined '*dmr' template as well as a 'dmr_template' config option within
the 'radius_agent' config section. This will map to a custom or to the predefined
template and will be used to build the Disconnect Request. By default, it doesn't
point to any template (this also means that the Access-Request packets will not be
cached).

Another option added to 'radius_agent' is 'client_da_addresses', which lists the
RADIUS clients supporting Dynamic Authorization. The key represents the host of
the client, while the value represents the address to which we will send the
Disconnect Request.

Added integration test.
2024-02-07 18:28:17 +01:00
Varun Dhand
5e513d130d fix: typo in rjreader.go 2023-11-09 09:37:34 +01:00
gezimbll
c2dacc42c1 Removed warnings from go staticcheck 2023-11-08 17:10:13 +01:00
arberkatellari
47e75fab13 Update radigo, add multiple folder functionality 2023-10-11 11:18:32 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
Trial97
0a7446bdad Added Config in agent request as dataprovider 2021-02-09 15:16:20 +01:00
Trial97
f158b191f3 Added Clone functions for all config sections 2020-11-27 08:41:56 +01:00
Trial97
5c48f70260 Added Clone function for some config sections 2020-11-27 08:41:56 +01:00
Trial97
3849dd325c Added reset threshold API. Fixes #1573 2020-11-09 09:47:24 +01:00
porosnicuadrian
7237d692a4 Updated radiuscfg AsMapInterface method 2020-09-25 13:03:28 +02:00
Trial97
84c6a0e498 Updated SIP Agent integration tests 2020-05-18 13:26:06 +02:00
adragusin
7c2555e2c6 Updated AsMapInterface method for RadiusAgent/Added test 2020-04-28 17:09:37 +02:00
adragusin
10833ec312 Added tests for some AsMapInterface methods 2020-04-22 17:10:12 +02:00
adragusin
d5294b2a6f Added AsMapInterface method for some config fields 2020-04-15 10:44:47 +02:00
adragusin
83b377e418 Added AsMapInterface method for RadiusAgentCfg 2020-04-13 18:23:02 +02:00
adragusin
6629dc6bee Reverted RoundingDecimals 2020-04-07 09:32:01 +02:00
adragusin
179067de5d updated rounding method and RowLength 2020-04-02 16:54:03 +02:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
a8858be668 Use only one RequestProcessor for Agents 2019-04-18 12:24:20 +03:00
Tripon Alexandru-Ionut
c4a83afdd2 Renamed config.HAPoolConfig to config.RemoteHost 2019-03-29 13:27:32 +01:00
TeoV
26cea43e4f Send separator for RSRParser as parameter in config 2018-11-25 17:42:42 +01:00
TeoV
d8977ffeba Add option "rsr_separator" in general config 2018-11-25 17:42:42 +01:00
Trial97
e1b8fe2321 Added tests for RARequestProcessor and RadiusAgentCfg loadFromJsonCfg 2018-10-31 11:02:30 +01:00