如何配置 Jenkins/Hudson 在 Snow Leopard 服务器上使用 LDAP
我们在 mac mini 服务器上运行 jenkins,并需要让它使用 OpenDirectory。 (在让 Nexus 与 OD 配合使用后,我再次讨论了这个问题。)
我进入“管理 Jenkins”选项卡,打开 LDAP 配置面板,它尝试连接,但收到一条无法连接的错误。我试图只提供用户名和密码。
We run jenkins on a mac mini server and need to have it use OpenDirectory. (I took this up again after getting Nexus to work with OD.)
I went into the Manage Jenkins tab, opened up the LDAP config panel and it attempts to connect, but I am getting an error that it can't connect. I am trying to just supply a username and password.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我无法连接的原因是 Manager DN 必须是完整的 FQ 名称,例如 uid=root,cn=users,dc=ontometrics,dc=com。
一旦我开始工作,我就收到了 LDAP 错误 49:错误的凭据。为了解决这个问题,我找到了一个很棒的 LDAP 浏览器,几分钟后就安装在迷你服务器上: LDAP 管理器。这帮助我查看了 root 帐户的 FQN。
最后一件事:一旦我有了正确的帐户,它就进行了身份验证,但在保存设置时,我得到了错误 500。结果是,那是因为我在 FQN 中有一些空格,所以不要执行 dc=本体计量学,dc=com。然后就成功了,我登录了!
顺便说一句,具有 8 GB RAM 的迷你服务器可以完美地运行 Jenkins。
So the reason I couldn't connect was the Manager DN has to be the complete FQ name, e.g. uid=root,cn=users,dc=ontometrics,dc=com.
Once I got that working, I was getting LDAP Error 49: bad credentials. To solve this, I found a great LDAP browser that installed in a few minutes on the mini server: LDAP Manager. That helped me see the FQN for the root account.
One last thing: once I had the right account, it auth'ed, but then on saving the settings, I got an ERROR 500. Turned out, that was because I had a few spaces in the FQN, so do not do dc=ontometrics, dc=com. Then it worked and I logged in!
BTW, the mini server with 8 GBs of RAM runs Jenkins beautifully.