LDAP 组和 Git 源代码托管
我们希望在我们公司托管我们自己的存储库。我们需要 LDAP 支持,尤其是组。所以我希望 A 组的用户无法访问 B 组的项目。如果不允许,甚至不能阅读它。
我也不想使用https。最好是用户登录网页(LDAP 登录)并上传他的 SSH 密钥。之后,他应该只能看到他的 LDAP 组或他所在的所有组的项目/存储库。
感谢您的帮助! 约尔格
We want to host our own repositories in our Company. We need LDAP support especially with Groups. So I want that User from Group A can't access Projects of Group B. Not even Read it, if it is not allowed.
I also don't want to use https. So best is, if the user logs into the webpage (LDAP login) and uploads his SSH key. After that he should be able to see only projects/repositories for his LDAP group or for all Groups he is in.
Thank you for Your Help!
Joerg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了一个有用的解决方案。我使用 Gitolite 并编写了自己的脚本。 Gitolite 允许您使用脚本向 LDAP/AD 询问组。通过这个网站,您可以创建自己的 SSH 密钥表单。要浏览存储库,您可以使用 gitweb 和 gitolite!除了 SSH-Key-Form 之外,我得到了一切都已启动并且;跑步。
Found a helpful solution. I used Gitolite and wrote my own script. Gitolite allows you to use a script to ask the LDAP/AD for the groups. With this Website you can create your own SSH-Key form. For browsing the repos, you can use gitweb with gitolite! Besides the SSH-Key-Form I got everything is up & running.
您可以使用像 Gitolite 这样的授权层,然后它就能够获取组信息通过LDAP 脚本。
访问 Gitolite 管理的存储库的本机方式仍然是 SSH。
You could use an authorization layer like Gitolite, which would then be able to get group information through LDAP scripts.
The native way of accessing the repo managed by Gitolite would remain SSH.