radius auth fix

This commit is contained in:
2025-12-23 19:56:17 +05:00
parent dad5a4ca01
commit 751723ee48
3 changed files with 7 additions and 7 deletions

View File

@@ -78,7 +78,7 @@
"*default": "CGRateS.org" "*default": "CGRateS.org"
}, },
"client_dictionaries": { "client_dictionaries": {
"*default": ["/usr/share/cgrates/radius/dict/", "/etc/cgrates/dictionary.mikrotik"] "*default": ["/usr/share/cgrates/radius/dict/"]
} }
}, },

View File

@@ -4,21 +4,21 @@
{ {
"id": "MikrotikPPPoEAcctOn", "id": "MikrotikPPPoEAcctOn",
"filters": ["*string:~*req.Acct-Status-Type:Accounting-On"], "filters": ["*string:~*req.Acct-Status-Type:Accounting-On"],
"flags": ["*none", "*log"], "flags": ["*log", "*none"],
"request_fields": [], "request_fields": [],
"reply_fields": [] "reply_fields": []
}, },
{ {
"id": "MikrotikPPPoEAcctOff", "id": "MikrotikPPPoEAcctOff",
"filters": ["*string:~*req.Acct-Status-Type:Accounting-Off"], "filters": ["*string:~*req.Acct-Status-Type:Accounting-Off"],
"flags": ["*none", "*log"], "flags": ["*log", "*none"],
"request_fields": [], "request_fields": [],
"reply_fields": [] "reply_fields": []
}, },
{ {
"id": "MikrotikPPPoEAcctStart", "id": "MikrotikPPPoEAcctStart",
"filters": ["*string:~*req.Acct-Status-Type:Start"], "filters": ["*string:~*req.Acct-Status-Type:Start"],
"flags": ["*initiate", "*attributes", "*resources", "*accounts"], "flags": ["*log", "*initiate", "*attributes", "*resources", "*accounts"],
"request_fields": [ "request_fields": [
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"}, {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"}, {"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"},
@@ -50,7 +50,7 @@
{ {
"id": "MikrotikPPPoEAcctInterim", "id": "MikrotikPPPoEAcctInterim",
"filters": ["*string:~*req.Acct-Status-Type:Interim-Update"], "filters": ["*string:~*req.Acct-Status-Type:Interim-Update"],
"flags": ["*update", "*accounts"], "flags": ["*log", "*update", "*accounts"],
"request_fields": [ "request_fields": [
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"}, {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"}, {"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"},
@@ -80,7 +80,7 @@
{ {
"id": "MikrotikPPPoEAcctStop", "id": "MikrotikPPPoEAcctStop",
"filters": ["*string:~*req.Acct-Status-Type:Stop"], "filters": ["*string:~*req.Acct-Status-Type:Stop"],
"flags": ["*terminate", "*resources", "*accounts", "*cdrs"], "flags": ["*log", "*terminate", "*resources", "*accounts", "*cdrs"],
"request_fields": [ "request_fields": [
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"}, {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"}, {"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"},

View File

@@ -6,7 +6,7 @@
"filters": [ "filters": [
"*string:~*vars.*radReqType:*radAuth" "*string:~*vars.*radReqType:*radAuth"
], ],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"], "flags": ["*log", "*authorize", "*attributes", "*accounts", "*continue"],
"request_fields": [ "request_fields": [
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"}, {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*data"},
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"}, {"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "generic"},