You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "shim manning (JIRA)" <je...@portals.apache.org> on 2007/07/18 15:17:04 UTC

[jira] Created: (JS2-750) LDAP login not resolving DN correctly

LDAP login not resolving DN correctly
-------------------------------------

                 Key: JS2-750
                 URL: https://issues.apache.org/jira/browse/JS2-750
             Project: Jetspeed 2
          Issue Type: Bug
          Components: Security
         Environment: XP, jBoss, ApacheDS
            Reporter: shim manning


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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Assigned: (JS2-750) LDAP login not resolving DN correctly

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Sean Taylor reassigned JS2-750:
-------------------------------------

    Assignee: David Sean Taylor

> LDAP login not resolving DN correctly
> -------------------------------------
>
>                 Key: JS2-750
>                 URL: https://issues.apache.org/jira/browse/JS2-750
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Security
>         Environment: XP, jBoss, ApacheDS
>            Reporter: shim manning
>            Assignee: David Sean Taylor
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Resolved: (JS2-750) LDAP login not resolving DN correctly

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Sean Taylor resolved JS2-750.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2
                   2.1.3

patch applied, new documentation and ldif examples added for ApacheDS


> LDAP login not resolving DN correctly
> -------------------------------------
>
>                 Key: JS2-750
>                 URL: https://issues.apache.org/jira/browse/JS2-750
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Security
>         Environment: XP, jBoss, ApacheDS
>            Reporter: shim manning
>            Assignee: David Sean Taylor
>             Fix For: 2.1.3, 2.2
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org