Groups
Sign in
Groups
Git中文用户组
Conversations
About
Send feedback
Help
gerrit使用LDAP协议认证登录的问题
64 views
Skip to first unread message
黄zeal
unread,
Feb 8, 2021, 10:02:11 PM
2/8/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Git中文用户组
各位好:
gerrit使用LDAP协议做认证登录。碰到一个情况,假设一个账号没有登录过gerrit,那是无法给这个账号配到gerrit的权限里,必须要让他登录一次之后,才能配置。
这个有啥子方法可以解决必须要登录之后,才能配置权限不?不如,无论他是否登录过,都可以给账号配置权限。
谢谢。
Chunlin Zhang
unread,
Feb 10, 2021, 2:07:30 AM
2/10/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git...@googlegroups.com
我个人理解,一般来说支持ldap的web应用是在ldap用户第一次登入的时候在自己的数据库里创建对应用户记录的,所以没登入导致问题的关键是没有对应的本地用户记录,但是ldap用户可能是非常多的,全部同步一般来说是不合适的。
我们自己开发的内部web应用也有这个烦恼,解决办法是写一个管理模块可以搜索ldap用户,然后选择想要的用户同步到数据库中,或者像需要上级签批但是上级没登入过的情况可以直接做自动同步。
所以如果你有资源,建议自行开发一个gerrit plugin做这种帐号的同步,刚随便搜了一下没看到这样的plugin。
> --
> 您收到此邮件是因为您订阅了Google网上论坛上的“Git中文用户组”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到
git123+un...@googlegroups.com
。
> 要在网络上查看此讨论,请访问
https://groups.google.com/d/msgid/git123/89fd860a-ba52-453e-ab83-6a42e04cbd11n%40googlegroups.com
。
黄zeal
unread,
Feb 17, 2021, 9:35:00 PM
2/17/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Git中文用户组
多谢大佬,先找找其他方法。
zhangc...@gmail.com
在 2021年2月10日 星期三下午3:07:30 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages