Bug 53392 - Remove UVMM LDAP ACL's from UCS@school
Remove UVMM LDAP ACL's from UCS@school
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: LDAP
UCS@school 5.0
Other Linux
: P5 normal (vote)
: UCS@school 5.0 v1
Assigned To: Florian Best
Felix Botner
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-06-04 11:10 CEST by Florian Best
Modified: 2021-11-29 17:20 CET (History)
1 user (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

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-06-04 11:10:11 CEST
We need to remove the UVMM LDAP ACL's from UCS@school. Since UCS 4.4-8 the UVMM schema is registered dynamically.

With UCS 5.0 the schema might or might not exists.
I think removing only does not work, some have to be registered dynamically if the schema exists.
Comment 1 Florian Best univentionstaff 2021-06-19 02:41:47 CEST
The ACL's cannot be removed, because there still might be UVMM mixed environments and objects.
Therefore it is checked if the schema exists and the ACLs are inserted conditionally.

ucs-school-ldap-acls-master (18.0.1)
89b3f26048ab | Bug #53392: only apply UVMM ACL's if UVMM schema exists
Comment 3 Felix Botner univentionstaff 2021-08-19 16:27:22 CEST
OK - 61ucsschool_presettings

-> touch /var/lib/univention-ldap/local-schema/univention-virtual-machine-manager.schema
-> ucr commit /etc/ldap/slapd.conf 
grep 'univentionVirtualMachineUUID\|CloudConnection' /etc/ldap/slapd.conf
access to dn.regex="^univentionVirtualMachineUUID=([^,]+),cn=Information,cn=Virtual Machine Manager,dc=five,dc=new" filter="(objectClass=univentionVirtualMachine)" attrs=entry,@univentionVirtualMachine,@univentionObject
access to dn.regex="^cn=([^,]+),cn=CloudConnection,cn=Virtual Machine Manager,dc=five,dc=new" filter="(objectClass=univentionVirtualMachineCloudConnection)" attrs=entry,@univentionVirtualMachineCloudConnection,@univentionVirtualMachineHostOC,@univentionObject
access to dn="cn=(Information|CloudConnection),cn=Virtual Machine Manager,dc=five,dc=new" attrs=children,entry

-> rm /var/lib/univention-ldap/local-schema/univention-virtual-machine-manager.schema
-> ucr commit /etc/ldap/slapd.conf
-> grep 'univentionVirtualMachineUUID\|CloudConnection' /etc/ldap/slapd.confgrep 'univentionVirtualMachineUUID\|CloudConnection' /etc/ldap/slapd.conf

OK - new 5-0 installation, no uvmm schema -> no ldap acls
OK - updated systems with uvmm schema, schema exists -> ldap acls present
Comment 4 Jürn Brodersen univentionstaff 2021-11-29 17:20:25 CET
UCS@school 5.0 v1 has been released.

https://docs.software-univention.de/release-notes-ucsschool-5.0v1-de.html

If this error occurs again, please clone this bug.