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