附加身份插件 - 如何配置?

发布于 2025-01-14 07:44:44 字数 1224 浏览 3 评论 0原文

我正在努力解决 Jenkins 中的重复用户和 不向未注册用户发送邮件... 问题。

我按照这个答案安装了该插件,但无法通过阅读插件文档

我的詹金斯从Active Directory收集数据,一些用户有重复的条目,例如:

john.doe, [email protected] -> duplicated user which is detected by Jenkins
doej, [email protected] -> correct user which is used when logging in

詹金斯从git收集负责人后,工作变化以
结束 不向未注册用户发送邮件[电子邮件受保护]

我尝试为用户添加额外的身份doej 通过设置:

Identity:  [email protected]
Realm: <empty>

但它不起作用。

我应该如何正确配置附加身份插件?

I'm struggling with duplicated users in my Jenkins and Not sending mail to unregistered user ... problem.

I installed the plugin as per this answer but cannot configure it properly by reading the plugin documentation.

My jenkins collects data from Active Directory and some users have duplicated entry, e.g.:

john.doe, [email protected] -> duplicated user which is detected by Jenkins
doej, [email protected] -> correct user which is used when logging in

Jenkins after collecting responsible people from git changes in job ends with
Not sending mail to unregistered user [email protected]

I tried adding additional identity to user doej by setting:

Identity:  [email protected]
Realm: <empty>

but it doesn't work.

How should I configure correctly the Additional Identities Plugin?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

与君绝 2025-01-21 07:44:44

似乎不可能在 Jenkins 中配置额外的身份插件来合并重复的用户,

因为 Jenkins 缺少一种确保用户唯一性(唯一)的方法,因为它们是从各种来源创建的:身份验证方法(在我的情况下是 LDAP)、代码提交( Subversion、Mercurial、Git,...)。

根据 Jenkins 检索用户的方式(来自给定 SCM 上的提交或其身份验证),将为同一真实用户创建多个身份。

因此,某些功能无法完全或无法正常工作(登录、通知、用户构建、持续集成游戏等),并且用户配置非常痛苦,因为必须为每个真实用户进行多次配置。

所需的功能仍然是:

  • 合并功能。允许将多个 Jenkins 用户合并到一个帐户中。
  • 每个 SCM 一个用户模式。允许选择如何从每个 SCM 的提交中提取用户名,以及如何有选择地匹配现有用户而不是创建新用户。
  • 每个通知类型的 id 模式。允许定义如何从用户数据(从他的 jenkins id、他的名字、他的 scm id,...)生成用于通知的默认 id:例如,他的邮件或他的 jabber id,...

参考:< a href="https://issues.jenkins.io/browse/JENKINS-10258" rel="nofollow noreferrer">[JENKINS-10258] 允许用户唯一性 - Jenkins Jira

解决方案是 Jenkins 1.480,但这仍然位于 漏洞状态并具有错误 也是如此。

Jenkins 1.480 引入了一个扩展点,用于在按 ID 或全名在数据库中搜索用户时解析 jenkins 用户“规范”ID。该插件使用此扩展点让用户将外部身份配置为用户属性。

您可以联系Jenkins 社区 或支持团队了解状态或最终发布时间

Seems it's not possible to configure the additional identity plugin in Jenkins for merge the duplicate user

As Jenkins is missing a way to ensure users unicity(unique) since they are created from various sources: authentication method (LDAP in my case), code commits (Subversion, Mercurial, Git, ...).

Depending on the way the user is retrieved by Jenkins (from a commit on a given SCM or its authentication), multiple identities are created for the same real user.

As a consequence, some features are not fully or badly working (login, notifications, user's builds, continuous integration game, ...) and configuration of users is a pain as it must be done multiple times for each real user.

Still the required features are:

  • a merging features. Allow to merge multiple Jenkins users into a single account.
  • a user pattern per SCM. Allow to choose how to extract a username from a commit for each SCM and how to optionally match existing one instead of creating a new user.
  • an id pattern per notification type. Allow to define how to generate the default id used for notification from the user data (from his jenkins id, his name, his scm id, ...): for instance, his mail or his jabber id, ...

Reference: [JENKINS-10258] Allow users unicity - Jenkins Jira

Solution is Jenkins 1.480 but this is still in Vulnerabilities state and have bug as well.

Jenkins 1.480 introduces an extension point to resolve jenkins user "canonical" ID when searching for user in Database by id or full name. This plugin uses this extension point to let user configure external identities as user properties.

You can reach out to Jenkins community or Support team to know the status or when they will final release

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