OpenNMS RADIUS身份验证

问题描述 投票:0回答:2

我们使用RADIUS(Microsoft NPS)服务器在使用OpenNMS 22.0.3进行身份验证时遇到问题。问题是我们有一个旧的OpenNMS服务器成功地使用RADIUS身份验证进行网络登录,但即使我们从旧的工作机器复制conf文件,我们仍然无法让它在22.0.3上运行。

我们所做的:

  1. 安装opennms-plugin-protocols-radius,
  2. 的applicationContext-弹簧security.xml文件:

将其更改为使用spring-security.d /中的文件radius.xml

<!-- use our custom authentication provider; to use RADIUS instead, change this to "radiusAuthenticationProvider" an
d uncomment below -->
  <authentication-manager alias="authenticationManager">
    <!-- If a user is pre-authenticated, make sure their user details are populated correctly. -->
    <authentication-provider ref="preauthAuthProvider" />
    <!-- Use our custom authentication provider -->
    <authentication-provider ref="hybridAuthenticationProvider" />
    <!-- To enable external (e.g. LDAP, RADIUS) authentication, uncomment the following.
         You must also rename and customize exactly ONE of the example files in the
         spring-security.d subdirectory. -->
    <authentication-provider ref="externalAuthenticationProvider" /> 
  </authentication-manager>

3.在radius.xml中:

<beans:bean id="externalAuthenticationProvider" class="org.opennms.protocols.radius.springsecurity.RadiusAuthenticationProvider">
    <beans:constructor-arg value="ip.ip.ip.ip"/>
    <beans:constructor-arg value="SECRET"/>
    <beans:property name="port" value="1812"/>
    <beans:property name="timeout" value="5"/>
    <beans:property name="retries" value="3"/>
    <beans:property name="authTypeClass" value="net.jradius.client.auth.MSCHAPv2Authenticator"/>
    <beans:property name="defaultRoles" value="ROLE_USER"/>
    <beans:property name="rolesAttribute" value="Unknown-VSAttribute(5813:1)"/>
  </beans:bean>

当我们重新启动opennms(它重启没有错误)并转到网页时,我们只会被一个空白页面打动。

日志没有说什么。

linux radius opennms
2个回答
1
投票

空白页面的症状表示安装RADIUS协议时出现问题。你能验证它是否安装正确吗?

cd ${OPENNMS_HOME}/lib
find . -iname "*radius*"

您应该有以下文件:

./jradius-core-1.1.5.jar
./org.opennms.dependencies.jradius-extended-22.0.3.jar
./jradius-dictionary-1.1.5.jar
./org.opennms.protocols.radius-22.0.3.jar

0
投票

在22.0.2中,我们介绍了一种规范时间表示方式的方法,并且可以在opennms.properties中进行配置,请参见:

# Choose the format how the date is displayed in the UI. It needs to follow the pattern in DateTimeFormatter:
# see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
# org.opennms.ui.datettimeformat=yyyy-MM-dd'T'HH:mm:ssxxx

这是引入此增强功能的问题:https://issues.opennms.org/browse/NMS-10231

还有其他几个地方,它将在即将发布的22.0.4版本中完成。以下是与Web UI中的时间问题相关的部分以及每个版本中的内容:https://issues.opennms.org/browse/NMS-10072

© www.soinside.com 2019 - 2024. All rights reserved.