Thinking about the future upgrade to 5.2 I’ve looked at an old system diagnostic that has hung around for a long time. It is “LDAP schema files are not properly registered”.
Old packages and Apps registered schema files by copying the files locally into a certain directory.
The preferred way now is to register them in LDAP; this is less error prone in situations like backup2master.
The following files seem to be registered in the old way:
* /var/lib/univention-ldap/local-schema/univention-corporate-client.schema
There is a button to register the single missing schema file however, given its an old UCC schema from when we had that installed back around the v3-v4 transition I don’t actually want to keep it.
I can find the following wiki around removing schema extensions that look to already be registered in LDAP.
I can’t find any UCC attributes in the LDAP. Should be safe to remove the .schema file given it was never ‘properly registered’ (taking backups/snapshots of course).
Nothing in UCS references UCC, so you can probably just delete the file after checking that no objectClass and attribute from that schema file is still used by running this command as user root:
As suggested near the end is it because there are still references in the MDB file? Would a full dump/reload therefore be the only way to remove the schema attributes?
Given my original issue was the diagnostic error, its suggested solution was to “register the schema files” (see screenshot below) I’m now wondering if its easier to register that to clear the error and carry the schema forward.
With the future 5.2 upgrade I don’t suppose there should be an issue bringing the schemas along for the ride? AD/S4 won’t let you remove schemas for example.
Just a final update on the thread so it isn’t left dangling, I registered the schema files as per the diagnostic as I didn’t feel like messing with the MDB and will see how the upgrade goes.