Univention Bugzilla – Bug 33949
unify license check for UCS and UCS@school
Last modified: 2015-10-14 18:03:24 CEST
UCS and UCS@school have the same duplicated code to check for validity of the license and displaying appropriate error messages. The code evaluates returncodes and detect therefore the license status. This is error prone if the underlying license implementation changes. E.g.: It caused Bug #33681. The code should be moved from ucs-school-lib/python/schoolldap.py and univention-management-console-module-udm/umc/python/udm/__init__.py and udm_ldap.py into e.g. univention-lib.
We don't check the license in UCS@school anymore. The unused code has been removed from schooldap.py in Bug #39230. If we ever need it again we should use the cleaned up code from UDM and put it into univention-lib.