OPENDJ-3077: Http Basic authorization must use the LDAPContext to get a
connection
The HttpBasicAuthenticationMechanism allocated a connection to the
directory server from the ConnectionFactory while it should get it from
the LDAPContext to be able to perform multiple concurrent asynchronous
LDAP requests and for tracking.
| | |
| | | { |
| | | final Entry userEntry = getMappedIdentity(username); |
| | | doBind(userEntry.getName().toString(), password); |
| | | final Connection connection = |
| | | parentContext.asContext(LDAPContext.class) |
| | | final Connection connection = parentContext.asContext(LDAPContext.class) |
| | | .getInternalConnectionFactory() |
| | | .getAuthenticatedConnection(userEntry); |
| | | final Context authcContext = new AuthenticatedConnectionContext(parentContext, connection); |