Files
cgrates-radius/tariffplans/pppoe/Attributes.csv
Junaid Saeed Uppal cab4ca64fb Setup PAP auth exactly like CGRateS test configuration
Two-processor approach from radagent_it_test.go:
1. CGRPAPAuth: *authorize, *attributes, *accounts, *continue
   - Fetches PasswordFromAttributes using *attributes marker
2. RadiusPAPAuthProcessor: *radauth, *pap
   - Uses password from ~*cgrep.Attributes.PasswordFromAttributes

Updated Attributes.csv to use *cgrep.PasswordFromAttributes path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 00:26:10 +05:00

1.8 KiB

1#Tenant,ID,Contexts,FilterIDs,ActivationInterval,AttributeFilterIDs,Path,Type,Value,Blocker,Weight
2# PPPoE user credentials and RADIUS reply attributes
3# User: test - Test user for MikroTik PPPoE
4cgrates.org,ATTR_PPPOE_TEST,*any,FLTR_ACCOUNT_TEST,,,,,,false,20
5cgrates.org,ATTR_PPPOE_TEST,,,,,*cgrep.PasswordFromAttributes,*constant,test,,
6cgrates.org,ATTR_PPPOE_TEST,,,,,*req.RequestType,*constant,*prepaid,,
7cgrates.org,ATTR_PPPOE_TEST,,,,,*req.MikrotikRateLimit,*constant,10M/10M,,
8# User: pppoe_user1 - 10Mbps plan with static IP
9cgrates.org,ATTR_PPPOE_USER1,*any,FLTR_ACCOUNT_USER1,,,,,,false,20
10cgrates.org,ATTR_PPPOE_USER1,,,,,*cgrep.PasswordFromAttributes,*constant,SecurePass123,,
11cgrates.org,ATTR_PPPOE_USER1,,,,,*req.RequestType,*constant,*prepaid,,
12cgrates.org,ATTR_PPPOE_USER1,,,,,*req.FramedIPAddress,*constant,10.0.0.101,,
13cgrates.org,ATTR_PPPOE_USER1,,,,,*req.FramedIPNetmask,*constant,255.255.255.0,,
14cgrates.org,ATTR_PPPOE_USER1,,,,,*req.MikrotikRateLimit,*constant,10M/10M,,
15# User: pppoe_user2 - 20Mbps plan with static IP
16cgrates.org,ATTR_PPPOE_USER2,*any,FLTR_ACCOUNT_USER2,,,,,,false,20
17cgrates.org,ATTR_PPPOE_USER2,,,,,*cgrep.PasswordFromAttributes,*constant,SecurePass456,,
18cgrates.org,ATTR_PPPOE_USER2,,,,,*req.RequestType,*constant,*prepaid,,
19cgrates.org,ATTR_PPPOE_USER2,,,,,*req.FramedIPAddress,*constant,10.0.0.102,,
20cgrates.org,ATTR_PPPOE_USER2,,,,,*req.FramedIPNetmask,*constant,255.255.255.0,,
21cgrates.org,ATTR_PPPOE_USER2,,,,,*req.MikrotikRateLimit,*constant,20M/20M,,
22# User: pppoe_user3 - 50Mbps plan with dynamic IP
23cgrates.org,ATTR_PPPOE_USER3,*any,FLTR_ACCOUNT_USER3,,,,,,false,20
24cgrates.org,ATTR_PPPOE_USER3,,,,,*cgrep.PasswordFromAttributes,*constant,SecurePass789,,
25cgrates.org,ATTR_PPPOE_USER3,,,,,*req.RequestType,*constant,*prepaid,,
26cgrates.org,ATTR_PPPOE_USER3,,,,,*req.MikrotikRateLimit,*constant,50M/50M,,