Univention Bugzilla – Bug 54368
remove_from_groups_of_school() doesn't remove school admins from admins-OU group
Last modified: 2023-04-19 10:17:07 CEST
When I invoke `remove_from_groups_of_school` on a school admin user object, then the group admins-<old school> is not deleted from the object. This works as expected for teachers & students. Example code: ``` from ucsschool.lib.models.user import User import univention.admin.uldap lo = univention.admin.uldap.getAdminConnection()[0] dn="uid=olitestadmin1,cn=admins,cn=users,ou=OlisTestschule,${ldap_base}" user_object = User.from_dn(dn, None, lo) user_object.get_specific_groups(lo) ['cn=Domain Users OlisTestschule,cn=groups,ou=OlisTestschule,dc=schulportal-sh,dc=intranet', 'cn=admins-olistestschule,cn=ouadmins,cn=groups,${ldap_base}'] user_object.remove_from_groups_of_school(user_object.school, lo) ``` → the user is still member of the group 'cn=admins-olistestschule,cn=ouadmins,cn=groups,${ldap_base}'
cc2c9f7dd Bug #54368: advisory and changelog 5e83209b7 Bug #54368: add test for remove_from_groups_of_school ddf225a44 Bug #54368: fix remove_from_groups_of_school
Package: ucs-school-lib Version: 13.0.21A~5.0.0.202207281220 Branch: ucs_5.0-0 Scope: ucs-school-5.0
UCS@school 5.0 v3 has been released. https://docs.software-univention.de/changelog-ucsschool-5.0v3-de.html If this error occurs again, please clone this bug.