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

Active Directory plugin does not work with scandic usernames

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Ubuntu 16.04
      Git plugin version: 2.8.0
      AD plugin version: 2.6.0
      Jenkins version: 2.107.3
    • Similar Issues:

      Description

      Git plugin with AD does not work correctly with usernames that contain scandic letters such as Ä or Ö.

       

      Please find the following log:

      08:22:59 FATAL: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user Petri Sönkäinen; nested exception is java.util.concurrent.ExecutionException: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1]; remaining name 'DC=company,DC=com'
      08:22:59 javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1]; remaining name 'DC=company,DC=com'
      08:22:59 	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3194)
      08:22:59 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3100)
      08:22:59 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2891)
      08:22:59 	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1846)
      08:22:59 	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1769)
      08:22:59 	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1786)
      08:22:59 	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:418)
      08:22:59 	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:396)
      08:22:59 	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:378)
      08:22:59 	at hudson.plugins.active_directory.LDAPSearchBuilder.search(LDAPSearchBuilder.java:120)
      08:22:59 	at hudson.plugins.active_directory.LDAPSearchBuilder.searchOne(LDAPSearchBuilder.java:85)
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:386)
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:341)
      08:22:59 	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)
      08:22:59 	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
      08:22:59 Caused: java.util.concurrent.ExecutionException
      08:22:59 	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289)
      08:22:59 	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276)
      08:22:59 	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111)
      08:22:59 	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:132)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2381)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2351)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      08:22:59 	at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      08:22:59 	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:341)
      08:22:59 Caused: hudson.plugins.active_directory.CacheAuthenticationException: Authentication failed because there was a problem caching user Petri Sönkäinen; nested exception is java.util.concurrent.ExecutionException: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1]; remaining name 'DC=company,DC=com'
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:496)
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:304)
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:226)
      08:22:59 	at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:55)
      08:22:59 	at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:831)
      08:22:59 	at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:172)
      08:22:59 	at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:161)
      08:22:59 	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)
      08:22:59 	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      08:22:59 	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      08:22:59 Caused: com.google.common.util.concurrent.UncheckedExecutionException
      08:22:59 	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)
      08:22:59 	at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      08:22:59 	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
      08:22:59 	at jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127)
      08:22:59 	at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1253)
      08:22:59 	at hudson.model.User$CanonicalIdResolver.resolve(User.java:1190)
      08:22:59 	at hudson.model.User.get(User.java:464)
      08:22:59 	at hudson.model.User.get(User.java:431)
      08:22:59 	at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:369)
      08:22:59 	at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:463)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:138)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:133)
      08:22:59 	at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)
      08:22:59 	at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)
      08:22:59 	at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)
      08:22:59 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      08:22:59 	at hudson.model.Run.execute(Run.java:1752)
      08:22:59 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      08:22:59 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      08:22:59 	at hudson.model.Executor.run(Executor.java:429)
      

        Attachments

          Activity

          Hide
          drodil Heikki Hellgren added a comment -

          Works properly when changing security to use LDAP instead AD.

          Show
          drodil Heikki Hellgren added a comment - Works properly when changing security to use LDAP instead AD.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It's definitely an AD Plugin issues or the issue with your Active Directory settings. Nothing to do with Git Plugin IMO

          Show
          oleg_nenashev Oleg Nenashev added a comment - It's definitely an AD Plugin issues or the issue with your Active Directory settings. Nothing to do with Git Plugin IMO

            People

            • Assignee:
              fbelzunc Félix Belzunce Arcos
              Reporter:
              drodil Heikki Hellgren
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: