Jetspeed 2
  1. Jetspeed 2
  2. JS2-750

LDAP login not resolving DN correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.3, 2.2.0
    • Component/s: Security
    • Labels:
      None
    • Environment:
      XP, jBoss, ApacheDS

      Description

      Useing ApacheDS with the supplied src\components\security\src\test\JETSPEED-INF\directory\config\apacheds\setup5\company1.ldif tree, I am unable to login to the portal. Jetspeed finds the user name correctly. But trying to login gives 'invalid password'.

      I tracked the issue down to AbstractLDapDao.java in getFirstDnForUid, the userDn that is returned is relative to the search path. ie "uid=admin" is returned instead of the full DN of "uid=admin,ou=People,ou=OrgUnit1"

      Because of the relative DN, the uid is not correct later when it is used. (ie "uid=admin,o=sevenSeas" instead of "uid=admin,ou=People,ou=OrgUnit1,o=sevenSeas" )

      Checking searchResult.isRelative() returns true. Attaching StringUtils.replace(getSearchDomain(), "," + getRootContext(), "") (the base search path) onto the end of userDn seems to fix this.

        Issue Links

          Activity

          shim manning created issue -
          David Sean Taylor made changes -
          Field Original Value New Value
          Assignee David Sean Taylor [ taylor ]
          David Sean Taylor made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          David Sean Taylor made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Hide
          David Sean Taylor added a comment -

          patch applied, new documentation and ldif examples added for ApacheDS

          Show
          David Sean Taylor added a comment - patch applied, new documentation and ldif examples added for ApacheDS
          David Sean Taylor made changes -
          Fix Version/s 2.2 [ 12312318 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 2.1.3 [ 12312573 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Dennis Dam made changes -
          Link This issue relates to JS2-814 [ JS2-814 ]
          Ate Douma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          30d 9h 58m 1 David Sean Taylor 18/Aug/07 00:13
          In Progress In Progress Open Open
          3d 22h 12m 1 David Sean Taylor 21/Aug/07 22:26
          Open Open Resolved Resolved
          25s 1 David Sean Taylor 21/Aug/07 22:26
          Resolved Resolved Closed Closed
          1504d 23h 41m 1 Ate Douma 04/Oct/11 22:08

            People

            • Assignee:
              David Sean Taylor
              Reporter:
              shim manning
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development