Active directory failure?

434 views
Skip to first unread message

Josh Santangelo

unread,
Jul 13, 2017, 4:28:27 PM7/13/17
to Jenkins Users
I'm running Jenkins 2.69 as a service on Windows with Active Directory plugin 2.6. Active Directory authentication works fine for logging in, but one job keeps dying with this error:

FATAL: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user ; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: com4j.ComException: 8007203e The search filter cannot be recognized. : The search filter cannot be recognized. : .\invoke.cpp:517

If I turn off security altogether, do a build, and turn security back on again, the job builds correctly for a while, but then begins failing again.

The error occurs after my build script has completed and returned a zero exit code.


Full stack below:
FATAL: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user ; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: com4j.ComException: 8007203e The search filter cannot be recognized. : The search filter cannot be recognized. : .\invoke.cpp:517
com4j.ComException: 8007203e The search filter cannot be recognized. : The search filter cannot be recognized. : .\invoke.cpp:517 at com4j.Native.invoke(Native Method) at com4j.StandardComMethod.invoke(StandardComMethod.java:35) at com4j.Wrapper$InvocationThunk.call(Wrapper.java:356) at com4j.Task.invoke(Task.java:50) at com4j.ComThread.run0(ComThread.java:172) at com4j.ComThread.run(ComThread.java:153) Caused: com4j.ComException: 8007203e The search filter cannot be recognized. : The search filter cannot be recognized. : .\invoke.cpp:517 at com4j.Wrapper.invoke(Wrapper.java:187) at com.sun.proxy.$Proxy64.eof(Unknown Source) at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.getDnOfUserOrGroup(ActiveDirectoryAuthenticationProvider.java:275) at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.access$000(ActiveDirectoryAuthenticationProvider.java:68) at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider$1.call(ActiveDirectoryAuthenticationProvider.java:150) at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider$1.call(ActiveDirectoryAuthenticationProvider.java:143) at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) Caused: com.google.common.util.concurrent.UncheckedExecutionException at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764) at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.retrieveUser(ActiveDirectoryAuthenticationProvider.java:143) Caused: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user ; nested exception is com.google.common.util.concurrent.UncheckedExecutionException: com4j.ComException: 8007203e The search filter cannot be recognized. : The search filter cannot be recognized. : .\invoke.cpp:517 at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.retrieveUser(ActiveDirectoryAuthenticationProvider.java:210) at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:55) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:831) at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:172) at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:161) at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) Caused: com.google.common.util.concurrent.UncheckedExecutionException at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764) at jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127) at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1094) at hudson.model.User.get(User.java:405) at hudson.model.User.get(User.java:374) at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:386) at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:448) at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134) at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335) at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93) at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129) at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335) at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93) at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:129) at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:335) at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:93) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:625) at hudson.model.Run.execute(Run.java:1760) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:415)

Kian Fatt Ting

unread,
Mar 14, 2019, 10:21:19 PM3/14/19
to Jenkins Users
Hi Josh I have had a similar issue , have you found a solution to it ?

I am trying to search for a solution for it.

Kian Fatt Ting

unread,
Mar 14, 2019, 10:21:19 PM3/14/19
to Jenkins Users
Iam on active directory plugin 2.12 and the issue still exists.


On Friday, 14 July 2017 08:28:27 UTC+12, Josh Santangelo wrote:

Ben P

unread,
Feb 13, 2020, 11:14:01 AM2/13/20
to Jenkins Users
Almost a year later, I see this error too.  I have a Bitbucket webhook triggering a job on commit using a token.
Reply all
Reply to author
Forward
0 new messages