如何将 teamcity.users 限制为 Active Directory (LDAP) 组的成员?
我试图将 TeamCity 用户限制为特定 AD 组 (FNC_TEAMCITY_USERS) 的成员。 LDAP 用户同步已经开始工作。在我的 ldap-config.properties 中,我将以下内容更改
teamcity.users.filter=(objectClass=user)
为:
teamcity.users.filter=(&(objectClass=user)(memberOf=CN=FNC_TEAMCITY_USERS,OU=Groups,DC=group,DC=ourdomain,DC=com))
我重新启动了 TeamCity 服务,但此更改没有效果。所有 AD 用户仍然可以登录 TeamCity。我在 6.5 实例和 7.0 (EAP) 实例上尝试了此操作。
我错过了什么还是这是一个错误?
I'm trying to restrict TeamCity users to members of a specific AD group (FNC_TEAMCITY_USERS). LDAP user synchronisation was already working. In my ldap-config.properties I changed this:
teamcity.users.filter=(objectClass=user)
to this:
teamcity.users.filter=(&(objectClass=user)(memberOf=CN=FNC_TEAMCITY_USERS,OU=Groups,DC=group,DC=ourdomain,DC=com))
I restarted the TeamCity service and this change had no effect. All AD users can still log in to TeamCity. I tried this on both our 6.5 instance and our 7.0 (EAP) instance.
Is there something I've missed or is this a bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
限制可以登录 TeamCity 的用户的属性是“teamcity.users.login.filter”。尝试设置它而不是“teamcity.users.filter”。
“teamcity.users.filter”是影响用户同步的因素(特别是在 TeamCity 中为 LDAP 中的用户创建用户)。
确保正确指定“java.naming.security.principal”和“java.naming.security.credentials”,因为它们是“teamcity.users.login.filter”使用所必需的。
The property limiting users who can login into TeamCity is "teamcity.users.login.filter". Try setting it instead of "teamcity.users.filter".
"teamcity.users.filter" is the one affecting users synchronization (particularly creating users in TeamCity for users in LDAP).
Be sure to have "java.naming.security.principal" and "java.naming.security.credentials" correctly specified as they are required for "teamcity.users.login.filter" use.