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

Some users doesn't work in Active Directory

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Windows 2008 Server x86

    Description

      When I add some users to set permissions, Active Directory plugin works. But with other users, I get an ERROR with the next stack trace (more details in attachment):

      Status Code: 500
      Exception:
      Stacktrace:
      
      com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460
      	at com4j.Wrapper.invoke(Wrapper.java:122)
      	at $Proxy35.accountDisabled(Unknown Source)
      	at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.retrieveUser(ActiveDirectoryAuthenticationProvider.java:104)
      	at hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.loadUserByUsername(ActiveDirectoryAuthenticationProvider.java:64)
      	at hudson.security.SecurityRealm.loadUserByUsername(SecurityRealm.java:305)
      	at hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl.doCheckName_(GlobalMatrixAuthorizationStrategy.java:302)
      	at hudson.security.GlobalMatrixAuthorizationStrategy$DescriptorImpl.doCheckName(GlobalMatrixAuthorizationStrategy.java:287)
      	at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:103)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:233)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      	at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	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 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(Unknown Source)
      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

            hdeadman Hal Deadman added a comment -

            I just found JENKINS-11660 which appears to resolve my issue. If this is happening to other people then it's probably not my domain controller changes. Maybe the windows update is the culprit. I can try to update the AD plugin manually.

            hdeadman Hal Deadman added a comment - I just found JENKINS-11660 which appears to resolve my issue. If this is happening to other people then it's probably not my domain controller changes. Maybe the windows update is the culprit. I can try to update the AD plugin manually.
            hdeadman Hal Deadman added a comment - - edited

            Windows 2003

            Using Jenkins 1.438 (and plugins updated about a week ago) I am getting this similar error message as of this morning. Jenkins was working fine yesterday. I did do some reconfiguring of the domain controllers yesterday (related to ip addresses on a second network card) but jenkins was working after I made the changes and the rest of the domain appears OK. I believe the jenkins server also rebooted overnight due to an automatic windows update for http://support.microsoft.com/kb/2544893. I only mention that because the error appears to happening in some native code. Now I need to figure out how to login and switch to ldap authentication.

             
            type Exception report
            message 
            description The server encountered an internal error () that prevented it from fulfilling this request.
            exception 
            com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460
            	com4j.Wrapper.invoke(Wrapper.java:122)
            	$Proxy38.emailAddress(Unknown Source)
            	hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.retrieveUser(ActiveDirectoryAuthenticationProvider.java:97)
            	org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119)
            	org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)
            	org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
            	org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
            	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
            	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            	org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
            	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            	jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
            	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
            	hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
            	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
            	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
            	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            root cause 
            com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460
            	com4j.Native.invoke(Native Method)
            	com4j.StandardComMethod.invoke(StandardComMethod.java:95)
            	com4j.Wrapper$InvocationThunk.call(Wrapper.java:258)
            	com4j.Task.invoke(Task.java:44)
            	com4j.ComThread.run0(ComThread.java:149)
            	com4j.ComThread.run(ComThread.java:125)
            
            hdeadman Hal Deadman added a comment - - edited Windows 2003 Using Jenkins 1.438 (and plugins updated about a week ago) I am getting this similar error message as of this morning. Jenkins was working fine yesterday. I did do some reconfiguring of the domain controllers yesterday (related to ip addresses on a second network card) but jenkins was working after I made the changes and the rest of the domain appears OK. I believe the jenkins server also rebooted overnight due to an automatic windows update for http://support.microsoft.com/kb/2544893 . I only mention that because the error appears to happening in some native code. Now I need to figure out how to login and switch to ldap authentication. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460 com4j.Wrapper.invoke(Wrapper.java:122) $Proxy38.emailAddress(Unknown Source) hudson.plugins.active_directory.ActiveDirectoryAuthenticationProvider.retrieveUser(ActiveDirectoryAuthenticationProvider.java:97) org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119) org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195) org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45) org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61) hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) root cause com4j.ComException: 8000500d (Unknown error) : .\invoke.cpp:460 com4j.Native.invoke(Native Method) com4j.StandardComMethod.invoke(StandardComMethod.java:95) com4j.Wrapper$InvocationThunk.call(Wrapper.java:258) com4j.Task.invoke(Task.java:44) com4j.ComThread.run0(ComThread.java:149) com4j.ComThread.run(ComThread.java:125)

            People

              Unassigned Unassigned
              giorgy Giorgy S
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: