univention.ldap_cache package#
Subpackages#
- univention.ldap_cache.cache package
Submodules#
univention.ldap_cache.frontend module#
- univention.ldap_cache.frontend.groups_for_user(user_dn: str, consider_nested_groups: bool = True, cache: dict[str, set[str]] | None = None) list[str][source]#
univention.ldap_cache.listener_module module#
- class univention.ldap_cache.listener_module.LdapCacheHandler(*args: Any, **kwargs: Any)[source]#
Bases:
ListenerModuleHandlerWhen subclassing, in
__init__()first call must be:super(.., self).__init__(*args, **kwargs)
self.config will be set by the metaclass.
- create(dn: str, new: Mapping[str, Sequence[bytes]]) None[source]#
Called when a new object was created.
- modify(dn: str, old: Mapping[str, Sequence[bytes]], new: Mapping[str, Sequence[bytes]], old_dn: str | None) None[source]#
Called when an existing object was modified or moved.
A move can be be detected by looking at old_dn. Attributes can be modified during a move.
- remove(dn: str, old: Mapping[str, Sequence[bytes]]) None[source]#
Called when an object was deleted.