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

Active Directory Retreive User email address 500 error

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Labels:
    • Environment:
      Windows Server 2003 x64 Edition
      Jenkins 1.437
      Active Directory Plugin 1.21
    • Similar Issues:

      Description

      When attempting to login to Jenkins with a valid user, the following exception is displayed, and the user is unable to login. Upon looking through the stacktrace, it seems to possibly involve the emailAddress. The domain in question is a development domain, so email addresses may not be a part of the user's AD record, but I cannot confirm at this time (don't know how, will update issue if I can find out). Confirmed with multiple users.

      Exception
      Status Code: 500
      Exception:
      Stacktrace:
      
      com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460
      	at com4j.Wrapper.invoke(Wrapper.java:122)
      	at $Proxy43.emailAddress(Unknown Source)
      	at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.retrieveUser(ActiveDirectoryAuthenticationProvider.java:97)
      	at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119)
      	at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)
      	at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
      	at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460
      	at com4j.Native.invoke(Native Method)
      	at com4j.StandardComMethod.invoke(StandardComMethod.java:95)
      	at com4j.Wrapper$InvocationThunk.call(Wrapper.java:258)
      	at com4j.Task.invoke(Task.java:44)
      	at com4j.ComThread.run0(ComThread.java:149)
      	at com4j.ComThread.run(ComThread.java:125)
      

        Attachments

          Issue Links

            Activity

            Hide
            ezeltmann Eric Zeltmann added a comment -

            Added active directory plugin.

            Show
            ezeltmann Eric Zeltmann added a comment - Added active directory plugin.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
            http://jenkins-ci.org/commit/active-directory-plugin/e3f419e80e5e775e26e6a1ed359a82e87b5ea510
            Log:
            [FIXED JENKINS-11660] safe-guard against missing (or lack of access to) attributes

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java http://jenkins-ci.org/commit/active-directory-plugin/e3f419e80e5e775e26e6a1ed359a82e87b5ea510 Log: [FIXED JENKINS-11660] safe-guard against missing (or lack of access to) attributes
            Hide
            dogfood dogfood added a comment -

            Integrated in plugins_active-directory #44
            [FIXED JENKINS-11660] safe-guard against missing (or lack of access to) attributes

            Kohsuke Kawaguchi :
            Files :

            • src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
            Show
            dogfood dogfood added a comment - Integrated in plugins_active-directory #44 [FIXED JENKINS-11660] safe-guard against missing (or lack of access to) attributes Kohsuke Kawaguchi : Files : src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java

              People

              • Assignee:
                Unassigned
                Reporter:
                ezeltmann Eric Zeltmann
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: