部署 有没有使用 gitlab+ 自建 openid 认证的经验

scuwolf · November 29, 2013 · Last by scuwolf replied at November 29, 2013 · 3535 hits

最近公司上了 gitlab, 使用公司自建的 openid 认证也可以正常登录,建立 repo

但是在使用 git clone https://.../.git时, 无法通过认证,提示:

"fatal: Authentication failed"

其中使用 openid 认证参考的这篇文章:http://eric.van-der-vlist.com/blog/2013/11/23/how-to-customize-gitlab-to-support-openid-authentication/

@Saito 同学有遇到过这种问题否

== UPDATE

谢谢 1 楼同学的回复,不过忘说了

  1. 除了 openid 认证之外,ldap 也有在用,而通过 ldap 登录的用户就可以正常的使用 git clone https://...

  2. 不论 ldap 用户还是 openid 用户,ssh 协议都是没问题的

是不是由于采用 https 协议的问题?因为 https 是需要用户名和密码的,可是,通过 OpenID 的话,gitlab 应该是获取不到 openid 的帐号和密码的吧。改成使用 ssh 协议,并且加入 sshkey,应该可以解决这个问题。

#1 楼 @chunlea

补充在主贴了

You need to Sign in before reply, if you don't have an account, please Sign up first.