Univention Bugzilla – Bug 31063
ucs-school-lib: school_ou and schoolDN determination code does not allow sub-OUs
Last modified: 2013-05-31 13:36:54 CEST
Currently the school OU and the school base DN are determined by searching for the left-most occurance of "OU=" in a DN. This may cause problems when schools decide to create sub-OUs (e.g. for GPO-assignment purposes). If ucsschool/ldap/district/enable is true, then the school OU should be determined from the second occurance of "OU=" from the right in a DN, neglecting the ldap/base. If ucsschool/ldap/district/enable is false then for consistency the school OU should probably simply be determined from the right most occurance of "OU=" in a DN, neglecting the ldap/base. At least two places need to be checked: * The Python function ucsschool.lib.schoolldap._init_search_base * The school_ou function in /usr/share/ucs-school-lib/base.sh
Is this relevant for the exam mode and needs to be fixed?
Ideally, this should be solved through Bug 31070.
For Updates to the more general proposal of Bug 31070 we will have to identify OUs properly, also in district mode.
*** This bug has been marked as a duplicate of bug 31407 ***