diff --git a/cgrates.json b/cgrates.json index 6254984..332a4e9 100644 --- a/cgrates.json +++ b/cgrates.json @@ -82,9 +82,9 @@ }, "request_processors": [ { - "id": "PPPoEAuth", + "id": "AuthGetPassword", "filters": ["*string:~*vars.*radReqType:*radAuth"], - "flags": ["*event", "*attributes", "*log"], + "flags": ["*dry_run", "*attributes", "*continue", "*log"], "request_fields": [ {"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.User-Name", "mandatory": true} ], @@ -92,6 +92,18 @@ {"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*constant", "value": "3600"}, {"tag": "AcctInterimInterval", "path": "*rep.Acct-Interim-Interval", "type": "*constant", "value": "60"} ] + }, + { + "id": "AuthPAP", + "filters": ["*string:~*vars.*radReqType:*radAuth"], + "flags": ["*radauth", "*pap", "*log"], + "request_fields": [ + {"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable", "value": "~*cgrep.Attributes.Password"} + ], + "reply_fields": [ + {"tag": "ReplyOnError", "filters": ["*notempty:~*cgrep.Error:"], "path": "*rep.*radReplyCode", "type": "*constant", "value": "AccessReject"}, + {"tag": "ReplyMessage", "filters": ["*notempty:~*cgrep.Error:"], "path": "*rep.Reply-Message", "type": "*variable", "value": "~*cgrep.Error"} + ] } ] },