Univention Bugzilla – Bug 33681
School wizard ignores license
Last modified: 2014-05-05 08:43:18 CEST
On a Master School DC the license check is not working. I am able to e.g. create objects via the schoolwizards-module. >>> from ucsschool.lib.schoolldap import check_license >>> check_license() 23.11.13 22:45:18.337 MODULE ( WARN ) : LDAP_Connection: unable to identify ou of this account - showing all OUs! 23.11.13 22:45:18.692 MODULE ( INFO ) : LDAP_Connection: availableSchools=['realschule', 'gymnasium', 'hauptschule'] 23.11.13 22:45:18.692 DEBUG_INIT >>>
The wizards rely on the school-import-scripts where no license check is being done.
(In reply to Alexander Kläser from comment #1) > The wizards rely on the school-import-scripts where no license check is > being done. The school import scripts doesn't do a license check because they are CLI tools. But there is an explicit license check in the module itself: schoolwizards/__init__.py: 56 » » if not self._check_license(request): 57 » » » return
The code to check the license checked the returncodes of the license status manually but ignored unknown returncodes. Since License Version 2 there are new returncodes. The new returncodes are now handled. Package: ucs-school-lib Version: 4.0.1-1.81.201401200842
(In reply to Florian Best from comment #0) > >>> from ucsschool.lib.schoolldap import check_license > >>> check_license() > 23.11.13 22:45:18.337 MODULE ( WARN ) : LDAP_Connection: unable to > identify ou of this account - showing all OUs! > 23.11.13 22:45:18.692 MODULE ( INFO ) : LDAP_Connection: > availableSchools=['realschule', 'gymnasium', 'hauptschule'] > 23.11.13 22:45:18.692 DEBUG_INIT > >>> The debug messages are ok. The warning is always printed if the library cannot determine automatically the school of the account that is used to establish the LDAP connection (e.g. by members of Domain Admins or other global users). (In reply to Florian Best from comment #3) > The code to check the license checked the returncodes of the license status > manually but ignored unknown returncodes. Since License Version 2 there are > new returncodes. OK: code change OK: behaviour (as usual the license limit only become effective after relogin to UMC) REOPEN: changelog entry is missing
(In reply to Sönke Schwardt-Krummrich from comment #4) > (In reply to Florian Best from comment #0) > > >>> from ucsschool.lib.schoolldap import check_license > > >>> check_license() > > 23.11.13 22:45:18.337 MODULE ( WARN ) : LDAP_Connection: unable to > > identify ou of this account - showing all OUs! > > 23.11.13 22:45:18.692 MODULE ( INFO ) : LDAP_Connection: > > availableSchools=['realschule', 'gymnasium', 'hauptschule'] > > 23.11.13 22:45:18.692 DEBUG_INIT > > >>> > > The debug messages are ok. The warning is always printed if the library > cannot determine automatically the school of the account that is used to > establish the LDAP connection (e.g. by members of Domain Admins or other > global users). Yes, that was only there to make clear that no exception is raised!
Changelog added.
OK: changelog
UCS@school 3.2v2 has been released: http://docs.univention.de/release-notes-ucsschool-3.2v2-de.pdf If this error occurs again, please use "Clone This Bug".