+++ This bug was initially created as a clone of Bug #49193 +++ The current LDAP cache implemented for httpd's mod_ldap only does exact matches based on LDAP URL and filter expression. An intelligent caching mechanism would respect basedn and scope of a given LDAP search. Essentially we need the caching to implement the behavior of an RFC-compliant "mini-LDAP server." Please enhance mod_ldap's cache implementation to the extent necessary to support "scope-aware" caching, specifically: 1) the current implementation works for exact matches of both search expression and basedn, this is equivalent to "basedn scoped" searches. 2) onelevel cache searches would include case 1 and also any cache entries with no more than one additional DN entry. 3) subtree-scoped cache searches; would include both case 1, case 2, and any deeper matches. Based on Mr. Covener's comment on #49193, I've created this independent enhancement request directly against httpd, without noting dependency on #49193.