LDAP UserDN cache should contain negative results

Description

When LDAP lookups for a user RDNs are performed, these results are (optionally) cached in the UserDN cache. However, currently, only successful results are cached. When a lookup fails (if the user doesn't exist), nothing is cached.

To prevent costly lookups for non-existing users, this negative outcome should also be cached. This can dramatically improve performance in systems that have references to non-existing (deleted?) users.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created December 22, 2020 at 2:00 PM
Updated December 23, 2020 at 12:35 PM
Resolved December 23, 2020 at 12:35 PM