Problem:
Reject in AD-Connector for nextcloud attributes
2026-10-15T10:04:27.705184+02:00 PROCESS [ -] sync AD > UCS: [ user] [ add]
uid=meinTest,ou=sunny,ou=test,dc=schein,dc=me | pid=217917 logname=LDAP.univention.connector func=__init__.sync_to_ucs:1550
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1581, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1272, in add_in_ucs
self.__set_values(property_type, object, ucs_object, modtype='add')
File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1261, in __set_values
set_values(post_attributes)
File "/usr/lib/python3/dist-packages/univention/connector/__init__.py", line 1166, in set_values
compare = [ucs_object[ucs_key], value]
~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 575, in __getitem__
elif key not in self.__no_default and self.descriptions[key].editable:
~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'nextcloudQuota'
Investigation:
The ad-connector mapping is present for this attribute otherwise it would not be synced.
So check the extended attributes for nextcloud are installed.
univention-ldapsearch -LLL \
'(&(objectClass=univentionUDMProperty)(|(univentionUDMPropertyCLIName=nextcloudQuota)(univentionUDMPropertyCLIName=nextcloudEnabled)))' \
dn cn univentionUDMPropertyCLIName univentionUDMPropertyModule \
univentionUDMPropertyLdapMapping univentionUDMPropertyObjectClass
Solution
Rerun the nextcloud joinscript, if the extended attributes are missing:
univention-run-sjoin-scripts --run-scripts --force 85univention-nextcloud-schema.inst