PrivacyIDEA Radius 外掛安裝筆記
安裝所需軟體與安裝說明的參考連結
github url
https://github.com/privacyidea/FreeRADIUS
https://github.com/privacyidea/FreeRADIUS/tree/master
https://github.com/privacyidea/FreeRADIUS/tree/master/config/freeradius3
Install url
https://privacyidea.readthedocs.io/en/latest/application_plugins/rlm_perl.html
OS Oracle Linux 9.6 + freeradius 3.0.21-44.el9_6
dnf install freeradius freeradius-utils freeradius-perl* -y
dnf install perl-LWP* perl-Config* perl-Data* perl-Try* perl-URI* perl-Encode* perl-JSON* -y
rm /etc/raddb/sites-enabled/*
rm: remove symbolic link '/etc/raddb/sites-enabled/default'? y
rm: remove symbolic link '/etc/raddb/sites-enabled/inner-tunnel'? y
rm /etc/raddb/mods-enabled/eap
rm: remove symbolic link '/etc/raddb/mods-enabled/eap'? y
git clone https://github.com/privacyidea/FreeRADIUS.git
cp ./FreeRADIUS/config/freeradius3/privacyidea /etc/raddb/sites-enabled/
cp ./FreeRADIUS/config/freeradius3/mods-perl-privacyidea /etc/raddb/mods-enabled/
cp ./FreeRADIUS/privacyidea_radius.pm /etc/privacyidea/
cp ./FreeRADIUS/rlm_perl.ini /etc/privacyidea/
chmod 755 /etc/privacyidea/privacyidea_radius.pm
chown root.radiusd /etc/raddb/mods-enabled/mods-perl-privacyidea
chown root.radiusd /etc/raddb/sites-enabled/privacyidea
chmod 755 /etc/raddb/mods-enabled/mods-perl-privacyidea
chmod 755 /etc/raddb/sites-enabled/privacyidea
vi /etc/raddb/mods-enabled/mods-perl-privacyidea
==================================
perl perl-privacyidea {
filename = /etc/privacyidea/privacyidea_radius.pm
}
================================
vi /etc/privacyidea/rlm_perl.ini
=========================
[Default]
URL = https://localhost/validate/check
REALM = localhost
RESCONF = Linux
SSL_CHECK = false
#SSL_CA_PATH =
#DEBUG = true
[Mapping]
serial = privacyIDEA-Serial
[Mapping user]
# The Mapping is used to add attributes to the RADIUS response.
# The value is read from the privacyIDEA response.
# In this case the content of the privacyIDEA response
# detail->user->group
# will be written to the RADIUS response attribute "Class".
#
group = Class
===============================
vi /etc/raddb/clients.conf
===============================
client hostip {
ipaddr = 192.168.100.200
proto = udp
secret = Passw0rd
shortname = radius
nas_type = other
require_message_authenticator = no
}
=================================
systemctl start radiusd.service
systemctl enable radiusd.service
WEB UI 操作
沒有留言:
張貼留言