Bug 35154 - ucs-test: check password reset by school admins
ucs-test: check password reset by school admins
Status: RESOLVED FIXED
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Ammar Najjar
:
Depends on:
Blocks: 51817
  Show dependency treegraph
 
Reported: 2014-06-18 10:27 CEST by Sönke Schwardt-Krummrich
Modified: 2021-03-03 20:43 CET (History)
0 users

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 Sönke Schwardt-Krummrich univentionstaff 2014-06-18 10:27:17 CEST
The script 04_ucs-school-reset-password-check checks if the permissions for the password reset for teachers and students are implemented correctly and if the password reset itself works.

It should also be tested if the school admin is able to reset passwords. At least the following tests are missing:
- school admin should not be able to reset passwords of Domain Admins or global 
  users
- school admin should be able to reset passwords of teachers and students
- teacher should not be able to reset passwords of school admins
- student should not be able to reset passwords of school admins

If still missing, a function for creating a school admin should be added to the ucs-test-ucsschool python lib "univention.testing.ucsschool".
Comment 1 Ammar Najjar univentionstaff 2014-07-25 12:34:37 CEST
A new test script is created with the name:
"23_password_reset_by_school_admins" which includes:

- test if school admin is able to reset teacher password (chgPwdNextLogin=True)
- test if school admin is able to reset student password (chgPwdNextLogin=True)
- test if school admin is able to reset teacher password (chgPwdNextLogin=False)
- test if school admin is able to reset student password (chgPwdNextLogin=False)

- Both flavors 'teacher', 'student' are included.
- Testing if the new password works or not is also included.

Other test cases:
- teacher should not be able to reset passwords of school admins.
- student should not be able to reset passwords of school admins.
and the like are included in another test script with the name "24_password_reset_by_all_types_of_users" which is mainly made for Bug #35448 so no need to repeat the same tests again.

New functions in "univention.testing.ucsschool" were added to create: school admin, domain admin, global admin.

Tested on single server and multi server environment.