Univention Bugzilla – Bug 48111
add section about new listener module API to developer documentation
Last modified: 2021-11-22 13:13:58 CET
+++ This bug was initially created as a clone of Bug #44786 +++ The new listener module API is already in production use and ISVs regularly ask for documentation how to integrate their products with UCS. The new API is much simpler and should be documented in the UCS developer documentation. Two starting points: * https://git.knut.univention.de/univention/ucs/blob/4.3-2/management/univention-directory-listener/README.md * Examples: - https://git.knut.univention.de/univention/ucs/blob/4.3-2/management/univention-directory-listener/examples/listener_module_template.py - https://git.knut.univention.de/univention/ucs/blob/4.3-2/management/univention-directory-listener/examples/complex_handler.py
Is setdata() also covered by the new API?
(In reply to Sönke Schwardt-Krummrich from comment #1) > Is setdata() also covered by the new API? Yes: The 4 values are collected and stored in self._ldap, which can be retrieved via "self._get_ldap_credentials()" and are already used for property "self.lo" to open an LDAP connection.
Draft: https://git.knut.univention.de/univention/ucs/-/merge_requests/188
OK: <http://apt.knut.univention.de/download/docs/developer-reference-5.0.html#listener:handler> OK: <http://univention-repository.knut.univention.de/download/docs/developer-reference-5.0.html#listener:handler> OK: <https://docs.software-univention.de/developer-reference-5.0.html#listener:handler>