Bug 58585 - UCS@school 5.2v4 - 70ucs-school-ldap-acls-master.inst fails - overlay "refint" not found
Summary: UCS@school 5.2v4 - 70ucs-school-ldap-acls-master.inst fails - overlay "refint...
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: General
Version: UCS@school 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS@school 5.2 v4-errata
Assignee: Sönke Schwardt-Krummrich
QA Contact: Jürn Brodersen
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-04 17:40 CEST by Mirac Erdemiroglu
Modified: 2025-09-05 15:08 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.206
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2025090421000088
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mirac Erdemiroglu univentionstaff 2025-09-04 17:40:32 CEST
1. Summary
   Join script 70ucs-school-ldap-acls-master.inst fails during the update to UCS\@school 5.2 v4 due to the activation issue of the LDAP extension object 61ucsschool\_presettings.

2. Product and Version
   Product: UCS\@school
   Version: 5.2 v4

3. Component
   Join script: 70ucs-school-ldap-acls-master.inst

4. Description
   After updating to UCS\@school 5.2 v4, the join script 70ucs-school-ldap-acls-master.inst fails when trying to activate the LDAP extension object 61ucsschool\_presettings.

5. Steps to Reproduce and Root Cause
   ucr set ldap/refint=false
   univention-app update
   univention-app upgrade ucsschool=5.2v4

6. Logs and Evidence
   Relevant excerpts from /var/log/univention/join.log and /var/log/univention/listener.log show the error and slapd.conf validation failure.

   The join process fails with the following error message:
   ERROR: Primary Directory Node did not mark the extension object active within 180 seconds.
   ucs\_registerLDAPExtension: registration of /usr/share/ucs-school-ldap-acls-master/61ucsschool\_presettings failed.

   The listener log indicates slapd.conf validation failure due to a missing refint overlay:
   overlay "refint" not found
   slaptest: bad configuration file

   On systems originally installed with UCS 4 or earlier, the UCR variable ldap/refint may still be set to false. The default value true for this variable was introduced with UCS 5.0. This prevents the required refint overlay from being enabled during the join process.

/var/log/univention/join.log

RUNNING 70ucs-school-ldap-acls-master.inst
2025-09-04 10:22:10.024614571+02:00 (in joinscript_init)
Object exists: cn=ucsschool,cn=groups,dc=univention-linux,dc=lokal
Object exists: (group) The groupname is already in use as groupname or as username: DC-Verwaltungsnetz.
Object exists: (group) The groupname is already in use as groupname or as username: Member-Verwaltungsnetz.
Object exists: (group) The groupname is already in use as groupname or as username: DC-Edukativnetz.
Object exists: (group) The groupname is already in use as groupname or as username: Member-Edukativnetz.
Object exists: cn=ldapacl,cn=univention,dc=univention-linux,dc=lokal
INFO: No change of core data of object 61ucsschool_presettings.
No modification: cn=61ucsschool_presettings,cn=ldapacl,cn=univention,dc=univention-linux,dc=lokal

Waiting for activation of the extension object 61ucsschool_presettings: ......................................................ERROR: Primary Directory Node did not mark the extension object active within 180 seconds.
ERROR
ucs_registerLDAPExtension: registraton of /usr/share/ucs-school-ldap-acls-master/61ucsschool_presettings failed.


/var/log/univention/listener.log

04.09.25 10:22:14.227  LDAP        ( PROCESS ) : connecting to ldap://server.univention-linux.lokal:7389
04.09.25 10:22:14.231  LISTENER    ( PROCESS ) : updating 'cn=61ucsschool_presettings,cn=ldapacl,cn=univention,dc=univention-linux,dc=lokal' command m
04.09.25 10:22:14.232  LISTENER    ( PROCESS ) : ldap_extension: cn=61ucsschool_presettings,cn=ldapacl,cn=univention,dc=univention-linux,dc=lokal active? [b'FALSE']
Multifile: /etc/ldap/slapd.conf
04.09.25 10:22:21.556  LISTENER    ( ERROR   ) : ldap_extension: slapd.conf validation failed:
overlay "refint" not found
slaptest: bad configuration file!
.
04.09.25 10:22:21.655  LISTENER    ( ERROR   ) : ldap_extension: Removing new file /etc/univention/templates/files/etc/ldap/slapd.conf.d/61ucsschool_presettings.
04.09.25 10:22:21.655  LISTENER    ( ERROR   ) : ldap_extension: Restoring previous file /etc/univention/templates/files/etc/ldap/slapd.conf.d/61ucsschool_presettings.
04.09.25 10:22:21.655  LISTENER    ( ERROR   ) : ldap_extension: Restoring previous backlink file /etc/univention/templates/files/etc/ldap/slapd.conf.d/61ucsschool_presettings.info.
04.09.25 10:22:21.655  LISTENER    ( ERROR   ) : ldap_extension: Restoring previous UCR info file /etc/univention/templates/info/ldapacl_61ucsschool_presettings.info.
Multifile: /etc/ldap/slapd.conf


7. Solution or Workaround
   Set the UCR variable ldap/refint to true on the DC Master:
   ucr set ldap/refint=true

   Then, re-run the join script:
   univention-run-join-scripts --run-scripts 70ucs-school-ldap-acls-master.inst
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2025-09-04 18:21:05 CEST
Fix is implemented in ucs-school-metapackage (16.0.0) and will run in our test env this night.
Comment 3 Jürn Brodersen univentionstaff 2025-09-05 10:53:38 CEST
Looks good to me

- A broken env is repaired by the update -> OK
- Update is not broken for envs with ldap/refint=false anymore -> OK
- yaml -> OK
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2025-09-05 15:08:17 CEST
Errata updates for UCS@school 5.2v4 have been released.

https://docs.software-univention.de/ucsschool-changelog/5.2v4/en/changelog.html
https://docs.software-univention.de/ucsschool-changelog/5.2v4/de/changelog.html

If this error occurs again, please clone this bug.