This commit is contained in:
2025-12-23 20:37:06 +05:00
parent f1f09bda53
commit ce3ae559a2

View File

@@ -6,14 +6,14 @@
"filters": [ "filters": [
"*string:~*vars.*radReqType:*radAuth" "*string:~*vars.*radReqType:*radAuth"
], ],
"flags": ["*log", "*authorize", "*attributes", "*accounts", "*continue"], "flags": ["*log", "*auth", "*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"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", {"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
"value": "*prepaid", "mandatory": true}, "value": "*prepaid", "mandatory": true},
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable", {"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed",
"value": "~*req.Acct-Session-Id", "mandatory": true}, "value": "~*req.User-Name;~*req.NAS-IP-Address", "mandatory": true},
{"tag": "OriginHost", "path": "*cgreq.OriginHost", "type": "*variable", {"tag": "OriginHost", "path": "*cgreq.OriginHost", "type": "*variable",
"value": "~*req.NAS-IP-Address", "mandatory": true}, "value": "~*req.NAS-IP-Address", "mandatory": true},
{"tag": "Account", "path": "*cgreq.Account", "type": "*variable", {"tag": "Account", "path": "*cgreq.Account", "type": "*variable",
@@ -27,9 +27,7 @@
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*variable", {"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*variable",
"value": "~*req.Event-Timestamp"}, "value": "~*req.Event-Timestamp"},
{"tag": "CallingStationId", "path": "*cgreq.CallingStationId", "type": "*variable", {"tag": "CallingStationId", "path": "*cgreq.CallingStationId", "type": "*variable",
"value": "~*req.Calling-Station-Id"}, "value": "~*req.Calling-Station-Id"}
{"tag": "PasswordFromAttributes", "path": "*cgreq.PasswordFromAttributes",
"type": "*constant", "value": "*attributes"}
], ],
"reply_fields": [ "reply_fields": [
{"tag": "RejectMessage", "path": "*rep.Reply-Message", {"tag": "RejectMessage", "path": "*rep.Reply-Message",
@@ -60,7 +58,7 @@
"flags": ["*radauth", "*pap", "*log"], "flags": ["*radauth", "*pap", "*log"],
"request_fields": [ "request_fields": [
{"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable", {"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable",
"value": "~*cgrep.Attributes.PasswordFromAttributes"} "value": "~*cgrep.Attributes.Password"}
], ],
"reply_fields": [ "reply_fields": [
{"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"],
@@ -80,7 +78,7 @@
"flags": ["*radauth", "*chap", "*log"], "flags": ["*radauth", "*chap", "*log"],
"request_fields": [ "request_fields": [
{"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable", {"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable",
"value": "~*cgrep.Attributes.PasswordFromAttributes"} "value": "~*cgrep.Attributes.Password"}
], ],
"reply_fields": [ "reply_fields": [
{"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"],
@@ -100,7 +98,7 @@
"flags": ["*radauth", "*mschapv2", "*log"], "flags": ["*radauth", "*mschapv2", "*log"],
"request_fields": [ "request_fields": [
{"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable", {"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable",
"value": "~*cgrep.Attributes.PasswordFromAttributes"} "value": "~*cgrep.Attributes.Password"}
], ],
"reply_fields": [ "reply_fields": [
{"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"],