Bug 41014 - Add extended options / attributes for UCS@school user roles
Add extended options / attributes for UCS@school user roles
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.1
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2
Assigned To: Florian Best
Daniel Tröder
:
Depends on: 41017 41290
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-07 07:02 CEST by Florian Best
Modified: 2016-07-05 11:58 CEST (History)
1 user (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 Florian Best univentionstaff 2016-04-07 07:02:24 CEST
Bug #41008 introduced object classes for user roles and an attribute which specifies the OUs the user belongs to.

For each object class an extended option should be added to users/user.
For the attribute ucsschoolSchool a extended attribute should be added.
The attribute needs a dynamic syntax class which contains every UCS@school OU (objectClass=ucsschoolOrganizationalUnit) and present them as a dropdown.
Comment 1 Florian Best univentionstaff 2016-04-26 15:35:34 CEST
The options should be read-only (not modifiable afterwards). Invalid combinations should currently be prevented.
Comment 2 Florian Best univentionstaff 2016-05-25 17:30:18 CEST
The following extended attributes/options have been added:
dn: cn=ucsschoolStudent,cn=UCSschool,cn=custom attributes,cn=univention
dn: cn=ucsschoolTeacher,cn=UCSschool,cn=custom attributes,cn=univention
dn: cn=ucsschoolStaff,cn=UCSschool,cn=custom attributes,cn=univention
dn: cn=ucsschoolAdministrator,cn=UCSschool,cn=custom attributes,cn=univention
dn: cn=UCSschool-Schools,cn=UCSschool,cn=custom attributes,cn=univention
→ the extended attribute uses the abstract object class "ucsschoolType" and requires one of the above options which contain the concrete object class.

(In reply to Florian Best from comment #1)
> The options should be read-only (not modifiable afterwards).
→ has been implemented

> Invalid combinations should currently be prevented.Bug #41351
Comment 3 Daniel Tröder univentionstaff 2016-07-05 11:15:25 CEST
* "Examuser" (ucsschoolExam) was added as an option too.
* Options are now editable (to be able to make a teacher an admin).
OK: join script
OK: ldap schema
OK: manual test:
  * enabling and disabling Option in UMC and
  * running User.from_dn().is_teacher() and User.from_dn().is_staff()
  → results match Options-setting in UMC
Comment 4 Florian Best univentionstaff 2016-07-05 11:58:25 CEST
UCS@school 4.1 R2 has been released:
http://docs.software-univention.de/release-notes-ucsschool-4.1R2v1-de.pdf

If this error occurs again, please use "Clone This Bug".