在 CentOS 中配置 FreeRADIUS rlm_rest 模块
configure FreeRADIUS rlm_rest module in CentOS
我想构建一个 2 因素身份验证系统,使用 freeRADIUS 作为代理,使用 privacyIDEA 在服务器中进行身份验证。我阅读了一些关于 freeRADIUS 和 privacyIDEA 的文档,发现 rlm_rest 模块可能对此有所帮助。我在 privacyIDEA 网站上找到了这个文档:
http://privacyidea.readthedocs.io/en/master/application_plugins/rlm_rest.html#rlm-rest
它只是展示了如何使用 apt-get 在 Ubuntu 中安装 rlm_rest 模块,但我的服务器是 CentOS 7。所以我的第一个问题是:
如何在CentOS中安装rlm_rest模块所需的包?
之后文档显示配置步骤:
The authentication type needs to be configured in the /etc/freeradius/users file:
DEFAULT Auth-Type := rest
and the site configuration should invoke the module as follows:
authenticate {
Auth-Type rest {
rest
}
digest
unix
}
而且我不知道应该在哪里调用“authenticate {...}”模块?是否应该写成 /etc/freeradius/users ?这是我的第二个问题。
你能给我一些建议或参考吗?任何帮助将不胜感激。
authenticate
部分转到您的 站点 配置。
同样在 CentOS 上,这将位于 /etc/raddb/sites-enabled,它链接到 sites-available.
您应该考虑使用 rlm_perl
模块,因为它更灵活。
http://privacyidea.readthedocs.io/en/master/application_plugins/rlm_perl.html#rlm-perl
我想构建一个 2 因素身份验证系统,使用 freeRADIUS 作为代理,使用 privacyIDEA 在服务器中进行身份验证。我阅读了一些关于 freeRADIUS 和 privacyIDEA 的文档,发现 rlm_rest 模块可能对此有所帮助。我在 privacyIDEA 网站上找到了这个文档: http://privacyidea.readthedocs.io/en/master/application_plugins/rlm_rest.html#rlm-rest
它只是展示了如何使用 apt-get 在 Ubuntu 中安装 rlm_rest 模块,但我的服务器是 CentOS 7。所以我的第一个问题是:
如何在CentOS中安装rlm_rest模块所需的包?
之后文档显示配置步骤:
The authentication type needs to be configured in the /etc/freeradius/users file:
DEFAULT Auth-Type := rest
and the site configuration should invoke the module as follows:
authenticate {
Auth-Type rest {
rest
}
digest
unix
}
而且我不知道应该在哪里调用“authenticate {...}”模块?是否应该写成 /etc/freeradius/users ?这是我的第二个问题。
你能给我一些建议或参考吗?任何帮助将不胜感激。
authenticate
部分转到您的 站点 配置。
同样在 CentOS 上,这将位于 /etc/raddb/sites-enabled,它链接到 sites-available.
您应该考虑使用 rlm_perl
模块,因为它更灵活。
http://privacyidea.readthedocs.io/en/master/application_plugins/rlm_perl.html#rlm-perl