2.5 KiB
2.5 KiB
| 1 | #Tenant,ID,Contexts,FilterIDs,ActivationInterval,AttributeFilterIDs,Path,Type,Value,Blocker,Weight |
|---|---|
| 2 | # PPPoE User Credentials for RADIUS PAP Authentication |
| 3 | # |
| 4 | # Format: Each user needs an attribute profile that: |
| 5 | # 1. Matches on Account (username) |
| 6 | # 2. Returns PasswordFromAttributes for PAP verification |
| 7 | # 3. Optionally returns session parameters (IP, rate limits, timeout) |
| 8 | # |
| 9 | # The PasswordFromAttributes field will be retrieved by the RADIUS agent |
| 10 | # and compared against the PAP-encoded password in the AccessRequest |
| 11 | # ============================================================ |
| 12 | # User: pppoe_user1 - Basic user with password only |
| 13 | # ============================================================ |
| 14 | cgrates.org,ATTR_PPPOE_USER1,*sessions,*string:~*req.Account:pppoe_user1,,,*req.PasswordFromAttributes,*constant,SecurePass123,false,10 |
| 15 | # ============================================================ |
| 16 | # User: pppoe_user2 - User with static IP assignment |
| 17 | # ============================================================ |
| 18 | cgrates.org,ATTR_PPPOE_USER2,*sessions,*string:~*req.Account:pppoe_user2,,,*req.PasswordFromAttributes,*constant,MyPassword456,false,10 |
| 19 | cgrates.org,ATTR_PPPOE_USER2,,,,,*req.FramedIP,*constant,10.0.0.100,, |
| 20 | # ============================================================ |
| 21 | # User: pppoe_user3 - User with rate limiting (Mikrotik example) |
| 22 | # ============================================================ |
| 23 | cgrates.org,ATTR_PPPOE_USER3,*sessions,*string:~*req.Account:pppoe_user3,,,*req.PasswordFromAttributes,*constant,FastUser789,false,10 |
| 24 | cgrates.org,ATTR_PPPOE_USER3,,,,,*req.FramedIP,*constant,10.0.0.101,, |
| 25 | cgrates.org,ATTR_PPPOE_USER3,,,,,*req.RateLimit,*constant,10M/20M,, |
| 26 | cgrates.org,ATTR_PPPOE_USER3,,,,,*req.SessionTimeout,*constant,86400,, |
| 27 | # ============================================================ |
| 28 | # User: pppoe_user4 - Premium user with higher limits |
| 29 | # ============================================================ |
| 30 | cgrates.org,ATTR_PPPOE_USER4,*sessions,*string:~*req.Account:pppoe_user4,,,*req.PasswordFromAttributes,*constant,PremiumPass!@#,false,10 |
| 31 | cgrates.org,ATTR_PPPOE_USER4,,,,,*req.FramedIP,*constant,10.0.0.102,, |
| 32 | cgrates.org,ATTR_PPPOE_USER4,,,,,*req.RateLimit,*constant,100M/100M,, |
| 33 | cgrates.org,ATTR_PPPOE_USER4,,,,,*req.SessionTimeout,*constant,0,, |
| 34 | # ============================================================ |
| 35 | # User: test - Simple test user for quick verification |
| 36 | # ============================================================ |
| 37 | cgrates.org,ATTR_PPPOE_TEST,*sessions,*string:~*req.Account:test,,,*req.Password,*constant,test123,false,10 |