71 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01:00
armirveliaj
fedacded6e Add new unit tests on agents 2024-07-01 20:37:09 +02:00
armirveliaj
e20200c30a Revise and Add new unit tests on agents 2024-06-06 13:17:59 +02: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
Trial97
d53b6175d5 Updated flatsore ers 2021-05-17 18:00:31 +02:00
Trial97
ba090352ec Updated agents tests 2021-03-26 13:46:25 +01:00
andronache
36da1a6309 Consts in utils 2021-01-11 10:57:44 +01:00
TeoV
5775d09c7b Add infrastructure for AccountS in DataManager 2020-12-21 10:19:59 +01:00
Trial97
5da4cf6d1c Updated account action plans integration tests for cache 2020-10-31 20:52:09 +01:00
Trial97
192048235b Removed RSRFilters from RSRParsers 2020-07-09 12:17:37 +03:00
Trial97
9184eb2f74 Renamed NewPathToItem to NewPathItems 2020-05-18 13:26:06 +02:00
Trial97
13e813f848 Fixed agents unit tests 2020-05-07 11:17:41 +02:00
Trial97
41e35bc571 Added Opts to APIs 2020-04-26 13:08:34 +02:00
TeoV
45ff034a48 Implement logic from diameter template in Radius Agent 2020-03-25 17:45:44 +01:00
TeoV
aa6d5a5450 Update integration test for RadiuAgent 2020-02-05 15:57:58 +01:00
Trial97
ab3fb01e7d Starting adding absolute path to cdre 2020-01-30 10:21:48 +01:00
TeoV
52f0e0a86c Merge ContentFields,HeaderFields,TrailerFields into one Files 2020-01-29 14:40:57 +01:00
DanB
e3055c8d9f EventReader with CSV in alpha 2019-09-04 12:24:25 +02:00
TeoV
60df42cbc7 Update tests for AgentRequest (add test for setCGRReply) 2019-06-12 22:12:51 +02:00
DanB
134ffc7a0a AgentRequest.setCGRReply implementation, DNSAgent with one supplier 2019-06-06 14:32:59 +02:00
Tripon Alexandru-Ionut
8366cbc9d4 Removed unused CfgCdrField 2019-06-03 10:02:10 +02:00
TeoV
a11c96c6fa Simplify the code for newRadAgent 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
DanB
4d94021a1d NavigableMap.Set with append for []*NMItem 2018-11-14 19:34:13 +01:00
DanB
96960f28ee AgentRequest constructor updated 2018-10-05 14:04:29 +02:00
TeoV
9c7aeb78d6 Add timezone in agentRequest 2018-09-27 14:59:13 +02:00
DanB
5d40409848 Diameter writing reply items on connection 2018-09-26 19:49:23 +02:00
DanB
9e66656e92 Config FCTemplates with InflateTemplates method 2018-09-25 18:10:39 +02:00
DanB
821b78de60 Diameter AgentRequest with support for config field of type=*template 2018-09-25 16:22:29 +02:00
DanB
648904e1e4 DiameterAgent - writing app.Name and cmd.Short inside *vars for filtering 2018-09-24 14:16:20 +02:00
TeoV
6e93a9489c Replace ID with Tag for FCTemplate 2018-09-10 16:31:16 +02:00
TeoV
6d1a3f07fd Move DataProvider,NavigableMap,RsrParser into config package 2018-08-30 11:40:06 +02:00
TeoV
595866cf75 *cgr_request and *cgr_reply to *cgreq and *cgrep in agent 2018-08-22 12:47:43 +02:00
TeoV
dbc058ecbf Add test for methods from RadiusDP 2018-07-20 10:41:20 +02:00
TeoV
a386f98990 Update Radius 2018-07-19 17:55:45 +02:00
DanB
40c7699ee4 NavigableMap should not analyze values internally to keep flexibility and speed 2018-07-03 17:01:38 +02:00
DanB
44dedd7875 NMItem with support for Config attached, NavigableMap.Set with NMItem 2018-06-29 19:41:58 +02:00
DanB
28411f4825 SessionSv1 argumets ProcessStatQueues->ProcessStats, boolPointer->bool, NavigableMap.Add->NavigableMap.Set, flags based methods in HTTPAgent 2018-06-19 17:32:37 +02:00
DanB
73552ef89c NavigableMap with ordered items 2018-06-13 18:34:46 +02:00
DanB
95e38104bb NavigableMap moved to engine, DataProvider interface with AsNavigableMap method 2018-06-12 15:28:10 +02:00
DanB
dde4991d4e DiameterAgent forcing usage 0 when debit not possible, replacing CGRReply with NavigableMap 2018-06-08 16:44:19 +02:00
DanB
2bfbdc2c8e Diameter processing request flags 2018-05-30 15:26:32 +02:00
DanB
d9f0e43a33 CDR.Rated -> CDR.PreRated, CDR exporter using better RSR parsing 2018-05-28 13:43:06 +02:00
DanB
63cb392b98 RadiusAgent procVars.AsV1APIArgs 2018-05-07 18:50:28 +02:00
DanB
b11da1dc23 Radius integration test with data converters and *cgrReply 2018-04-17 19:38:43 +02:00
DanB
eabacead26 CGRReply with data converters within radius agent 2018-04-17 19:28:16 +02:00
DanB
02c93a248c Radius - use > as separator within Vendor attribute selection, so we can be consistent 2018-04-17 13:49:35 +02:00
TeoV
e1508a0a29 Add more test for agents/librad.go 2018-02-09 12:33:28 +01:00
DanB
a230f032d8 Radius processorVars with *cgrReply support to retrieve values in templates 2018-02-05 10:00:35 +01:00
DanB
a3e14effc3 RadiusAgent with CGRReply in templates 2018-02-05 10:00:35 +01:00