Bug 31063 - ucs-school-lib: school_ou and schoolDN determination code does not allow sub-OUs
ucs-school-lib: school_ou and schoolDN determination code does not allow sub-OUs
Status: RESOLVED DUPLICATE of bug 31407
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 3.0
Other Linux
: P5 enhancement (vote)
: UCS@school 3.x
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-15 20:19 CEST by Arvid Requate
Modified: 2013-05-31 13:36 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2013-04-15 20:19: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
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2013-04-15 21:05:02 CEST
Is this relevant for the exam mode and needs to be fixed?
Comment 2 Alexander Kläser univentionstaff 2013-04-16 10:40:35 CEST
Ideally, this should be solved through Bug 31070.
Comment 3 Arvid Requate univentionstaff 2013-04-16 11:36:34 CEST
For Updates to the more general proposal of Bug 31070 we will have to identify OUs properly, also in district mode.
Comment 4 Alexander Kläser univentionstaff 2013-05-31 13:36:54 CEST

*** This bug has been marked as a duplicate of bug 31407 ***