Univention Bugzilla – Bug 45503
typo in ldap filter of staff class
Last modified: 2017-10-16 21:33:08 CEST
Implementing the permission checks for Bug #45044 I found a typo in Teacher.type_filter which has been there since 4.1r2.
It is used in User.lookup(), and although it didn't make problems until today I think it is potentially problematic enough to be fixed in both 4.1r2 and 4.2.
Typo on my part: Staff.type_filter
It would be nice if you say what typo there actually is in this bug report.
There was a ")" too much in the ldap filter.
As univention.admin.filter.parse() is broken this was not really relevant until now.
>>> str(conjunction('&', [parse('(&(!(objectClass=ucsschoolTeacher))(objectClass=ucsschoolStaff)))'), parse('ucsschoolSchool=foo')]))
The reason it was not detected prior was Bug #37170.
UCS@school 4.1 R2 v14 has been released.
If this error occurs again, please clone this bug.