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:
2025-12-23 23:32:11 +05:00
parent d2068924c9
commit 8e7894cd30

View File

@@ -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"},