diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index f94b784d6..ced8f1bd6 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -1821,9 +1821,17 @@ class LDAPCache(LDAPClient): entry=None, exception=None): # idnsname - caching prevents delete when mod value to None # cospriority - in a Class of Service object, uncacheable - # TODO - usercertificate was banned at one point and I don't remember - # why... - BANNED_ATTRS = {'idnsname', 'cospriority'} + # usercertificate* - caching subtypes is tricky, trade less + # complexity for performance + # + # TODO: teach the cache about subtypes + + BANNED_ATTRS = { + 'idnsname', + 'cospriority', + 'usercertificate', + 'usercertificate;binary' + } if not self._enable_cache: return