Bug 41116 - test adjusted UCS@school LDAP ACL's
test adjusted UCS@school LDAP ACL's
Status: RESOLVED WONTFIX
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 4.1
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Sönke Schwardt-Krummrich
:
Depends on: 41115
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-25 17:08 CEST by Florian Best
Modified: 2019-02-05 21:14 CET (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
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
Dump of LDAP access rights (495.35 KB, application/octet-stream)
2016-07-03 23:28 CEST, Sönke Schwardt-Krummrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-04-25 17:08:26 CEST
We need ucs-test scripts which check the new behavior.

They should at least test if (1) all containers for all OU's exists at every replicated DC server and (2) if the user objects only get replicated to the server where they belong to via the attribute "ucsschoolSchool".

+++ This bug was initially created as a clone of Bug #41115 +++

The LDAP ACL's have to be adjusted for UCS@school to include the new attributes/options for the specific user roles.

1. All user containers should be replicated to all school DC's.
cn=(admins|lehrer|schueler|lehrer und mitarbeiter|mitarbeiter),cn=users,ou=…

2. All school DC's must be able to read all user objects which have ucsschoolSchool=$OU.

3. All current rules have to be adjusted to work with the new uscschoolSchool attribute.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2016-07-03 23:27:25 CEST
ucs-test-ucsschool (3.0.13-1):
r70780 | Bug #41115: added 78_ldap_acls_dump

Added ucs-test script 78_ldap_acls_dump that dumps LDAP access rights of several users/machine accounts to /var/log/univention/78_ldap_acls_dump* for the old LDAP ACLs from UCS@school 4.1 and for the new LDAP ACLs from UCS@school 4.1 R2.

See attachment for a run on my test machine.

# cd /var/log/univention/
# for i in $(seq 0 21); do \
     echo "Comparing $i"; sleep 1; \
     compareldif -a 78_ldap_acls_dump.*.oldconfig/dn${i}.ldif \
              78_ldap_acls_dump.*.newconfig/dn${i}.ldif | less ; done
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2016-07-03 23:28:43 CEST
Created attachment 7783 [details]
Dump of LDAP access rights

Test results for UCS@school 4.1R2 v1
Comment 3 Florian Best univentionstaff 2016-07-04 12:53:22 CEST
FYI: subprocess.check_call() raises subprocess.CalledProcessError.
Comment 4 Florian Best univentionstaff 2016-07-14 12:06:27 CEST
Execute: . utils.sh; run_apptests  --prohibit=SKIP-UCSSCHOOL
2016-07-08 03:33:22,842 CRITICAL:test:Failed to load test "/usr/share/ucs-test/90_ucsschool/78_ldap_acls_dump.oldconfig.61ucsschool_presettings": Missing hash-bang
2016-07-08 03:33:22,842 CRITICAL:test:Failed to load test "/usr/share/ucs-test/90_ucsschool/78_ldap_acls_dump.oldconfig.65ucsschool": Missing hash-bang

In http://jenkins.knut.univention.de:8080/job/UCSschool%204.1/job/UCSschool%204.0%20to%204.1%20Multiserver/SambaVersion=s4/129/artifact/autotest-208-ucsschool-multiserver-s4.log
Comment 5 Florian Best univentionstaff 2016-07-18 17:03:29 CEST
The following line seems bogus:
> school.schoolserver_dn = lo.searchDn(base=school.dn, filter='univentionObjectType=computers/domaincontroller_slave')[0]
Comment 6 Florian Best univentionstaff 2016-07-18 19:23:01 CEST
Please add a administration-server.

(In reply to Florian Best from comment #5)
> The following line seems bogus:
> > school.schoolserver_dn = lo.searchDn(base=school.dn, filter='univentionObjectType=computers/domaincontroller_slave')[0]
This will not work if two slaves (e.g. an administrational) exists in the same OU.
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2019-02-05 21:14:39 CET
This issue has been filled against UCS@school 4.1 (R2). The maintenance with bug 
and security fixes for UCS@school 4.1 (R2) has ended on 5th of April 2018.

Customers still on UCS 4.1 are encouraged to update to UCS 4.3 (or later). 
Please contact your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug"
or simply reopen the issue. In this case please provide detailed information on
how this issue is affecting you.