Cache the result of a rule for a LDAP/AD Source to reduce server load.

Description
-----------
Cache the result of a rule for a LDAP/AD Source to reduce server load.

Impacts
-------
Since the match is cached time based rules will not work properly.
Rules changes can take up to the expire time of the cache to take affect for all users/lookup

Delete branch after merge
-------------------------
NO