SMARTZONE UPS USER MANUAL
Appendix I: RADIUS Server Configuration
To allow users to login as the admin User-Role
This example demonstrates how to configure freeradius with users that can login as the
admin User-Role. It assumes a clean installation of freeradius on Ubuntu or and
equivalent installation.
1. Install freeradius or start with a pre-existing installation.
2. Create authorized client configuration statements in
/etc/freeradius/3.0/clients.conf that are configured for your security
requirements.
3. Create a dictionary at /usr/share/freeradius/dictionary.Panduit containing:
# -*- text -*-
VENDOR Panduit 19536
BEGIN-VENDOR Panduit
ATTRIBUTE User-Role 1 integer
VALUE User-Role User 1
VALUE User-Role Admin 2
END-VENDOR Panduit
4. Load dictionary.Panduit by appending the following line to
/etc/freeradius/3.0/dictionary:
$INCLUDE /usr/share/freeradius/dictionary.Panduit
5. Add authorized users to
/etc/freeradius/3.0/mods-config/files/authorize with the
desired role. (Note: the ‘users’ file location may vary based on unique
customizations or different package managers.) When specified, the User-Role
MUST be the first attribute of the user. Use passwords that are configured for
your security requirements.
a. User-Role is not specified: (This user logs in as the default “user” Role)
raduser Cleartext-Password := "23456789"
Service-Type = 1
b. User-Role is set to Admin: (This user logs in as the “admin” Role)
radroleadmin Cleartext-Password := "34567890"
User-Role = Admin,
Service-Type = 1
c. User-Role is set to User: (This user logs in as the “user” Role)
radroleuser Cleartext-Password := "45678901"
User-Role = User,
Service-Type = 1
6. If you started with a clean install of freeradius, you may need to configure these