Simplify: Single PAP auth processor with hardcoded password
Testing if *radauth + *pap works with hardcoded password "test" before adding attributes complexity. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
15
cgrates.json
15
cgrates.json
@@ -81,24 +81,13 @@
|
||||
"*default": ["/usr/share/cgrates/radius/dict/"]
|
||||
},
|
||||
"request_processors": [
|
||||
{
|
||||
"id": "AuthGetPassword",
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*none", "*attributes", "*continue", "*log"],
|
||||
"request_fields": [
|
||||
{"tag": "Account", "path": "*cgreq.Account", "type": "*variable", "value": "~*req.User-Name"}
|
||||
],
|
||||
"reply_fields": []
|
||||
},
|
||||
{
|
||||
"id": "AuthPAP",
|
||||
"filters": ["*string:~*vars.*radReqType:*radAuth"],
|
||||
"flags": ["*radauth", "*pap", "*log"],
|
||||
"request_fields": [
|
||||
{"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable",
|
||||
"value": "~*req.Password"},
|
||||
{"tag": "StrippedPassword", "path": "*cgreq.Password", "type": "*variable",
|
||||
"value": "~*req.User-Password{*strip:*suffix:*nil}"}
|
||||
{"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*constant",
|
||||
"value": "test"}
|
||||
],
|
||||
"reply_fields": [
|
||||
{"tag": "RemoveOnError", "filters": ["*notempty:~*cgrep.Error:"], "type": "*removeall", "path": "*rep"},
|
||||
|
||||
Reference in New Issue
Block a user