Univention Bugzilla – Bug 54021
remove UCS@school code from UDM hook
Last modified: 2023-06-23 13:20:29 CEST
The UDM hook ucs-school-import/udm_hook/ucsschool_role_computers.py uses ucsschool.lib code, when it is installed. (If the the ucsschool.lib is not installed it does nothing.) Loading ucsschool code inside UDM - on which ucsschool is based - is a layer violation. Replace the ucsschool.lib code in the UDM hook with LDAP/UDM calls. IMHO it's OK to duplicate simple code / constants (like "role_linux_computer" or "create_ucsschool_role_string") to not depend on the ucsschool.lib package anymore. If done, add comments in both places (origin and hook) to keep both in sync.