LDAP configuration tool fails to test correctly connection to repository

XMLWordPrintable

    • 3.12
    • 4

      If one tries to configure JIRA with the LDAP configuration tool (JIRA ent) and a user supplied in Sample user to authenticate doesn't have the search permission on the LDAP repository, JIRA will report the following error in the UI:

      Initial connect and search successful, but second phase connection to LDAP as 'CN=Test,CN=Users,dc=test,dc=local' failed (error: javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03151EFD, problem 2001 (NO_OBJECT), data 0, best match of: 'CN=Users,DC=test,DC=local' �]; remaining name 'CN=Test,CN=Users,dc=test,dc=local'. More in logs)
      

      and in the log file is recoded:

      2008-05-02 12:53:12,922 http-8080-Processor23 INFO [web.action.util.LDAPConfigurer] javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03151EFD, problem 2001 (NO_OBJECT), data 0, best match of:
              'CN=Users,DC=test,DC=local'
      ]; remaining name 'CN=Test,CN=Users,dc=test,dc=local'
      javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03151EFD, problem 2001 (NO_OBJECT), data 0, best match of:
              'CN=Users,DC=test,DC=local'
      ]; remaining name 'CN=Test,CN=Users,dc=test,dc=local'
              at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3030)
              at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
              at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
              at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1807)
              at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1735)
              at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
              at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
              at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
              at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
              at com.atlassian.jira.web.action.util.LDAPConfigurer.ldapAuthenticate(LDAPConfigurer.java:211)
              at com.atlassian.jira.web.action.util.LDAPConfigurer.doValidation(LDAPConfigurer.java:124)
              at webwork.action.ActionSupport.validate(ActionSupport.java:373)
              at webwork.action.ActionSupport.execute(ActionSupport.java:150)
              at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54)
              at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
              at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:211)
      

      Although, if one manually creates osuser.xml the same user as used in the test as Sample user to authenticate is authenticated correctly against the LDAP repository.

      In other words, issue is experienced only if LDAPConfigurer is used and opensymphony seems to be OK.

              Assignee:
              Trevor Campbell (Inactive)
              Reporter:
              Bogdan Dziedzic [Atlassian]
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: