我们在使用RADIUS (Microsoft )服务器使用OpenNMS 22.0.3进行身份验证时遇到了问题。问题是,我们有一个旧的OpenNMS服务器,它成功地将RADIUS身份验证用于web登录,但是即使我们从旧的工作机器复制conf文件,我们仍然无法让它在22.0.3上工作。
我们所做的:
将其更改为使用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 (它在没有错误的情况下重新启动)并转到网页时,我们只会看到一个空白页面。
日志上什么都没说。
发布于 2018-09-06 02:14:38
空白页的症状表示安装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发布于 2018-09-07 10:21:04
在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中表示时间问题相关的部分,以及每个版本中的内容:https://issues.opennms.org/browse/NMS-10072
https://stackoverflow.com/questions/52186374
复制相似问题