Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67981

Build failure due to ldap disabled account

XMLWordPrintable

    • 4.12.1

      We are seeing the following error at the end of a select few builds, which is causing it to fail:

      FATAL: org.springframework.security.authentication.DisabledException: The user "st123456" is administratively disabled.
      org.springframework.security.authentication.DisabledException: The user "st123456" is administratively disabled.
      	at hudson.security.UserAttributesHelper.checkIfUserEnabled(UserAttributesHelper.java:92)
      	at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1315)
      	at hudson.security.LDAPSecurityRealm$DelegateLDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1228)
      	at hudson.security.LDAPSecurityRealm.loadUserByUsername2(LDAPSecurityRealm.java:763)
      	at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:165)
      	at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:154)
      	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:122)
      	at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1251)
      	at hudson.model.User$CanonicalIdResolver.resolve(User.java:1192)
      	at hudson.model.User.get(User.java:523)
      	at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:450)
      	at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:546)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:139)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:134)
      	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:342)
      	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:94)
      	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:331)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:703)
      	at hudson.model.Run.execute(Run.java:1913)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:99)
      	at hudson.model.Executor.run(Executor.java:432)
      Email was triggered for: Failure - Any
      Sending email for trigger: Failure - Any
      An attempt to send an e-mail to empty list of recipients, ignored.
      Finished: FAILURE
      

      We are using:

      • Jenkins 2.315
      • Email Extention 2.87
      • Mailer Plugin 408
      • LDAP Plugin 2.8
      • git plugin 4.10.3

      An ldapsearch reveals the account is indeed disabled within AD.

      Similar issues:

      https://issues.jenkins.io/browse/JENKINS-64629

      https://issues.jenkins.io/browse/JENKINS-67491

            jvz Matt Sicker
            potentialingenuity Blake Mammen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: