Univention Bugzilla – Bug 47265
Support Listener integration
Last modified: 2018-08-22 14:26:20 CEST
The App Center should support Listeners. These should enable App Providers to react as soon as certain LDAP objects change.
Added integration in univention-appcenter 7.0.2-6A~4.3.0.201807031151 This writes contents like { "command": "modify", "dn": "uid=Administrator,cn=users,dc=lattjo-4-3,dc=intranet", "entry_uuid": "f386de62-947d-1037-8607-3778186ddbfa", "object_type": "users/user" } in /var/lib/univention-appcenter/listener/$appid/$timestamp.json This relies on a very simple handler file placed in /usr/lib/univention-directory-listener/system/ The actual logic is in python/appcenter/listener.py This was done to make updates of the listener logic simple. No need to replace any listener module (hopefully). We still need a converter service that translates this into a UDM dictionary, puts it in the container and calls a script.
ok works, one thing, please set the listener filter and the dump dir in the actual listener file /usr/lib/univention-directory-listener/system/my-app.py. something like class AppListener(AppListener): class Configuration(AppListener.Configuration): name = 'listener-test-app' ldap_filter = .... dump_dir = .... i think that would be helpful for support in case of an error ...
Good idea univention-appcenter 7.0.2-13A~4.3.0.201807271026
verify this one, qa for the whole thing on Bug #47315
<http://errata.software-univention.de/ucs/4.3/211.html>