Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-750

LDAP login not resolving DN correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.3, 2.2.0
    • Security
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              taylor David Sean Taylor
              shim shim manning
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: