Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-2145

A BIND request will do 2 lookups of the entry trying to bind

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M21
    • Fix Version/s: 2.0.0.AM26
    • Component/s: ldap
    • Labels:
      None

      Description

      When we process a BindRequest, we first fetch the principal :

          public void handleSimpleAuth( LdapSession ldapSession, BindRequest bindRequest ) throws Exception
          {
          ...
                      principalEntry = directoryService.getAdminSession().lookup( bindRequest.getDn() );
          ...
      

      then we do the actual bind :

          ...
                  directoryService.getOperationManager().bind( bindContext );
          ...
      

      At this point, we have not kept a trace of the entry we just fetched previously. This is a waste of CPU...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: