Any distribution, LDAP identity plugin enabled.
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
The checkPassword method leaves an orphaned LDAP context. If the resource is not closed properly, it can lead to memory leaks.
- Enable the LDAP identity plugin in any distribution.
- Stress test user login (the checkPassword method), e.g.:
- Enable authentication for the REST API.
- Repeatedly call any method that requires authentication from a stress test tool.
A memory leak.
No memory leak.
Close the context in a finally block, see this PR