首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenNMS RADIUS认证

OpenNMS RADIUS认证
EN

Stack Overflow用户
提问于 2018-09-05 13:29:19
回答 2查看 289关注 0票数 0

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

我们所做的:

  1. 安装opennms-插件-协议-radius
  2. applicationContext-spring-security.xml:

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

代码语言:javascript
复制
<!-- 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中:

代码语言:javascript
复制
<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 (它在没有错误的情况下重新启动)并转到网页时,我们只会看到一个空白页面。

日志上什么都没说。

EN

回答 2

Stack Overflow用户

发布于 2018-09-06 02:14:38

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

代码语言:javascript
复制
cd ${OPENNMS_HOME}/lib
find . -iname "*radius*"

您应该有以下文件:

代码语言:javascript
复制
./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
票数 1
EN

Stack Overflow用户

发布于 2018-09-07 10:21:04

在22.0.2中,我们引入了一种方法来规范时间的表示方式,它在opennms.properties中是可配置的,请参见这里:

代码语言:javascript
复制
# 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52186374

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档