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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-M21
    • 2.0.0.AM26
    • ldap
    • 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

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: