如何将 teamcity.users 限制为 Active Directory (LDAP) 组的成员?

发布于 2024-12-15 12:40:05 字数 452 浏览 2 评论 0原文

我试图将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太阳公公是暖光 2024-12-22 12:40:05

限制可以登录 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文