From 8e7894cd30e7d2a176ea46f381f8399541fd491e Mon Sep 17 00:00:00 2001 From: Junaid Saeed Uppal Date: Tue, 23 Dec 2025 23:32:11 +0500 Subject: [PATCH] Simplify: Single PAP auth processor with hardcoded password MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cgrates.json | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/cgrates.json b/cgrates.json index 6cd6242..ce5d5b1 100644 --- a/cgrates.json +++ b/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"},