将用户从 LDAP 导入 Jira 时限制导入组
我不想将组从 LDAP 导入到 Jira 中,同时从 LDAP 中导入用户到 Jira 中。
我对 LDAP 不熟悉,但我只想导入 Jira 中的用户。
是否可以在 Jira 级别执行任何操作来限制导入组?
I don't want to import the groups from LDAP into Jira, while importing the users from LDAP in Jira.
I am not familiar to LDAP, but I want to import only users in Jira.
Is there anything that can be done at Jira level to restrict importing groups?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您正确填写目录设置,但将“组对象过滤器”设置为不匹配任何内容的 LDAP 过滤器,则您将不会导入任何组。
全局不匹配的 LDAP 过滤器的示例为
(1=2)
如果您使用此技术,其他组 LDAP 设置将变得多余,因此您可以根据需要进行设置。
If you fill out your directory settings with the correct, but set the 'Group Object Filter" to an LDAP filter that will match nothing, you will not import any groups.
An example of a globally non-matching LDAP filter would be
(1=2)
If you are using this technique, the other group LDAP settings become redundant, so you can set them as you please.
我不知道有没有办法告诉 LDAP 不要返回组(在 JIRA 或其他方式中),但您可以告诉 JIRA 不要使用组来创建 JIRA 组。根据我的经验,如果您使用“只读,包含本地组”设置,JIRA 将不会自动创建 JIRA 组来匹配 LDAP 组。
我现在无法测试,我的测试服务器没有运行。但我认为这就是它的运作方式。因此,如果这就是您想要实现的目标,那么它应该对您有用。
I don't know that there is a way to tell LDAP not to return the groups (in JIRA or otherwise), but you can tell JIRA not to use the groups to create JIRA groups. In my experience, JIRA will not automatically create JIRA groups to match LDAP groups if you use the setting "Read Only, with Local Groups".
I can't test that right now, I don't have my test server running. But I think that is the way it works. So if that is what you are trying to accomplish, then that should work for you.
您可以极其精确地指定您想要从 LDAP 中获得什么,当然包括是否获取用户、组、组织等。查找 LDAP 搜索过滤器语法。您还需要知道服务器正在使用哪种 LDAP 模式,至少对于用户来说是这样。
You can specify what you want out of LDAP with extreme precision, certainly including whether you get users, groups, organizations, etc. Look up the LDAP search filter syntax. You will also need to know which LDAP schema is in use at the server, at least for users.