我们正在尝试设置 Jenkins 以自动化构建。我们已经使用 Hudson 很长时间了,但现在由于 Active Directory 身份验证支持,我们正在迁移到 Jenkins。AD-plugin 已安装: https ://wiki.jenkins-ci.org/display/JENKINS/Active+Directory+plugin 据我所知,Jenkins 正在尝试连接到 AD 服务器,但“套接字已关闭”错误。这是堆栈跟踪的一部分:
Failed to test the validity of the user name <SOMEUSER>
org.acegisecurity.BadCredentialsException: Failed to retrieve user information for <SOMEUSER>; nested exception is javax.naming.ServiceUnavailableException: <SOMENAME>.<SOMENAME>:636; socket closed; remaining name 'DC=<SOMENAME>,DC=<SOMENAME>'
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:306)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:190)
at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:134)
at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:30)
我 100% 确定凭据是正确的。运行 Jenkins 的服务器在域中,所以从这里开始一切正常。我想詹金斯隐藏了一些错误消息,因此我无法准确地指定问题......