【问题标题】:Shibboleth protected Gerrit installationShibboleth 保护 Gerrit 安装
【发布时间】:2013-11-22 20:21:03
【问题描述】:

我正在尝试使用 auth.type HTTP 设置新​​的 Gerrit 安装。 Gerrit 使用 apache 前端部署到 Tomcat6 实例,并可通过 ajp 访问。我成功使用了 HTTP 基础身份验证

AuthType 基本 AuthName "Gerrit 代码审查" AuthBasicProvider 文件 AuthUserFile /var/www/gerritpw 需要有效用户

我想用 Shibboleth 保护 Gerrit:

AuthType shibboleth ShibRequestSetting 要求会话 1 需要有效用户

使用 Shibboleth 时遇到的错误:

HTTP 服务器在将请求转发给 Gerrit Code Review 时未在 Authorization 标头中提供用户名。

这种情况下可以设置Authorization头吗?

谢谢

【问题讨论】:

    标签: gerrit shibboleth


    【解决方案1】:

    我使用 LDAP 身份验证,并且 Gerrit 能够检索我在 Require valid-user 之后添加的用户:

    Require valid-user
    RequestHeader set REMOTE_USER %{REMOTE_USER}s
    

    希望对你也有用。

    【讨论】:

      猜你喜欢
      • 2015-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-22
      相关资源
      最近更新 更多