directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRSERVER-2145) A BIND request will do 2 lookups of the entry trying to bind
Date Sun, 20 Nov 2016 20:30:58 GMT

     [ https://issues.apache.org/jira/browse/DIRSERVER-2145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stefan Seelmann updated DIRSERVER-2145:
---------------------------------------
    Fix Version/s:     (was: 2.0.0-M23)
                   2.0.0-M24

> A BIND request will do 2 lookups of the entry trying to bind
> ------------------------------------------------------------
>
>                 Key: DIRSERVER-2145
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2145
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M21
>            Reporter: Emmanuel Lecharny
>             Fix For: 2.0.0-M24
>
>
> When we process a {{BindRequest}}, we first fetch the principal :
> {noformat}
>     public void handleSimpleAuth( LdapSession ldapSession, BindRequest bindRequest )
throws Exception
>     {
>     ...
>                 principalEntry = directoryService.getAdminSession().lookup( bindRequest.getDn()
);
>     ...
> {noformat}
> then we do the actual bind :
> {noformat}
>     ...
>             directoryService.getOperationManager().bind( bindContext );
>     ...
> {noformat}
> At this point, we have not kept a trace of the entry we just fetched previously. This
is a waste of CPU...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message