【问题标题】:OpenNMS RADIUS AuthenticationOpenNMS RADIUS 认证
【发布时间】:2018-09-05 13:29:19
【问题描述】:

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

我们做了什么:

  1. 已安装 opennms-plugin-protocols-radius,
  2. applicationContext-spring-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


    【解决方案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
    

    【讨论】:

    • 嗨,我们真的让它工作了,它是radius.xml文件中的语法错误......但是在某种相关的说明中,有没有办法改变系统时间格式?现在它采用以下格式:2018-09-06T08:37:11+02:00 但我们希望它是这样的:Thu Sep 06 2018 08:37:11
    • 我认为这个问题最好放在一个专门的主题中,因为在 RADIUS 身份验证问题下可能很难发现。很高兴你知道了。
    【解决方案2】:

    在 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多