【问题标题】:Sonar CAS Integration - Getting error as "java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty"声纳 CAS 集成 - 出现“java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须为非空”错误
【发布时间】:2013-12-10 06:01:03
【问题描述】:

在使用 Sonar 3.7 配置 CAS 时,出现如下错误:

java.security.InvalidAlgorithmParameterException:trustAnchors 参数必须为非空

我已经安装了 CAS 插件并在 sonar.prperties 文件中添加了以下内容:

sonar.authenticator.createUsers=true sonar.security.realm=cas sonar.cas.protocol=cas2 sonar.cas.casServerLoginUrl=http://www.xxx.com:8443/cas/login sonar.cas.sonarServerUrl=http://www.xxx.com:9000

请帮我解决这个问题。我无法将 CAS 与声纳 3.7 集成。 使用 CAS 进行 SSO 声纳的解决方案是什么?

【问题讨论】:

    标签: sonarqube cas


    【解决方案1】:

    这通常发生在 CAS 服务器的 SSL 证书不受 CAS 客户端服务器信任的情况下,在本例中为 Sonar。假设 Sonar 在 Tomcat 上运行,您需要将 CAS 服务器的证书添加到 Tomcat 服务器的 java install cacerts 文件 ({JAVA_HOME}\lib\security\cacerts)。

    【讨论】:

    • 如果我使用的是普通的码头服务器呢?
    • 我无法确切回答,但它很可能使用 Java cacerts 文件。根据我的经验,J2EE 服务器使用自己的信任库。
    【解决方案2】:

    如果你说的是 CAS 插件:http://docs.codehaus.org/display/SONAR/CAS+Plugin,它很久以前就被弃用了,并且与 SonarQube 3.7 不兼容。

    【讨论】:

    • 其他 CAS 集成方式??
    【解决方案3】:

    有关将 cas 与 SonarQube 3.7+ 集成,请参阅此帖子:https://stackoverflow.com/a/20420688

    或者你可以试试我的 fork,它也支持 LDAP 用户名、电子邮件和组导入。

    https://github.com/kzhang7/sonar-cas

    【讨论】:

      猜你喜欢
      • 2014-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-01
      • 2013-07-28
      • 2017-12-26
      • 1970-01-01
      • 2012-07-08
      相关资源
      最近更新 更多