From 918e9c8cff49f2d9b68f1ac66e00568429fa919f Mon Sep 17 00:00:00 2001 From: Junaid Saeed Uppal Date: Tue, 23 Dec 2025 21:08:52 +0500 Subject: [PATCH] Simplify MS-CHAPv2 auth - remove accounts check that requires MaxUsage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed *accounts flag and mandatory MaxUsage field that was causing NOT_FOUND:MaxUsage error. Using fixed Session-Timeout instead. First processor now just fetches attributes (password) for auth. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cgrates.json | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/cgrates.json b/cgrates.json index c148e1e..a3aaf15 100644 --- a/cgrates.json +++ b/cgrates.json @@ -84,19 +84,12 @@ { "id": "MSCHAPv2GetPassword", "filters": ["*string:~*vars.*radReqType:*radAuth"], - "flags": ["*authorize", "*attributes", "*accounts", "*continue", "*log"], + "flags": ["*authorize", "*attributes", "*continue", "*log"], "request_fields": [ - {"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"}, - {"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid", "mandatory": true}, - {"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*composed", "value": "~*req.Acct-Session-Id", "mandatory": true}, - {"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.User-Name", "mandatory": true}, - {"tag": "Subject", "path": "*cgreq.Subject", "type": "*composed", "value": "~*req.User-Name", "mandatory": true}, - {"tag": "Destination", "path": "*cgreq.Destination", "type": "*constant", "value": "pppoe"}, - {"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*constant", "value": "*now", "mandatory": true}, - {"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*constant", "value": "*now", "mandatory": true} + {"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.User-Name", "mandatory": true} ], "reply_fields": [ - {"tag": "MaxUsage", "path": "*rep.Session-Timeout", "type": "*composed", "value": "~*cgrep.MaxUsage{*duration_seconds}", "mandatory": true} + {"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*constant", "value": "3600"} ] }, {