radius auth fix

This commit is contained in:
2025-12-23 19:59:49 +05:00
parent 751723ee48
commit 5be08977bc

View File

@@ -37,7 +37,7 @@
"type": "*constant", "value": "AccessReject", "blocker": true}, "type": "*constant", "value": "AccessReject", "blocker": true},
{"tag": "RejectMessage", "path": "*rep.Reply-Message", {"tag": "RejectMessage", "path": "*rep.Reply-Message",
"filters": ["*notempty:~*cgrep.Error:"], "filters": ["*notempty:~*cgrep.Error:"],
"type": "*variable", "value": "~*cgrep.Error"}, "type": "*constant", "value": "Authentication failed: User not found or account disabled"},
{"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*variable", {"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*variable",
"value": "~*cgrep.MaxUsage{*duration_seconds}", "value": "~*cgrep.MaxUsage{*duration_seconds}",
"filters": ["*notempty:~*cgrep.MaxUsage:"]}, "filters": ["*notempty:~*cgrep.MaxUsage:"]},
@@ -68,7 +68,7 @@
{"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*constant", "value": "AccessReject"}, "type": "*constant", "value": "AccessReject"},
{"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*variable", "value": "~*cgrep.Error"} "type": "*constant", "value": "Authentication failed: Invalid username or password"}
] ]
}, },
{ {
@@ -88,7 +88,7 @@
{"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*constant", "value": "AccessReject"}, "type": "*constant", "value": "AccessReject"},
{"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*variable", "value": "~*cgrep.Error"} "type": "*constant", "value": "Authentication failed: Invalid username or password"}
] ]
}, },
{ {
@@ -108,7 +108,7 @@
{"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*constant", "value": "AccessReject"}, "type": "*constant", "value": "AccessReject"},
{"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"], {"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*variable", "value": "~*cgrep.Error"} "type": "*constant", "value": "Authentication failed: Invalid username or password"}
] ]
} }
] ]