Last updated on August 21, 2024
Note
Overview
Configuration
This section briefly describes the configuration process for FreeRADIUS.
Add Rublon vendor to the dictionary
VENDOR Rublon 56247
BEGIN-VENDOR Rublon
ATTRIBUTE Rublon-Email 1 string
END-VENDOR Rublon
Edit the default file
post-auth {
…
if (Response-Packet-Type == Access-Accept) {
update reply {
Rublon-Email = "%{sql:SELECT email FROM userinfo WHERE username='%{User-Name}';}"
}
}
…
}
This causes the RADIUS server to return the user’s email in the Access-Accept response packet within the Rublon-Email attribute.
Test
After you have updated the preceding files, perform a test to make sure RADIUS returns a valid response.
To test the response, use the radtest command:
radtest user1 testpwd localhost 18128 testing123
where:
user1 is the username
testpwd is the password
localhost is the IP address to send request to
18128 is the NAS-Port
testing123 is the RADIUS secret
The result should look similar to this:
Sending Access-Request of id X to 127.0.0.1 port 1812
User-Name = "user1"
User-Password = "testpwd"
NAS-IP-Address = 10.0.2.15
NAS-Port = 18128
Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=199, length=41
Rublon-Email = "user1@example.com"
Make sure the Rublon-Email attribute is returned. It must be the user’s email only.
Troubleshooting
If you encounter any issues with your Rublon integration, please contact Rublon Support.