Univention Bugzilla – Bug 56669
[ox-connector] incompatible OX settings preventing expected bahaviour
Last modified: 2023-09-27 10:39:51 CEST
Various OX properties must be set, to ensure an expected behavior. Failing to do so (using the default settings), for example leads to the test test_cache::test_rename_user always failing. In the ox-connector.log: --------------------------------------------------------------------------------------- https://jenkins2022.knut.univention.de/job/UCS-5.0/job/UCS-5.0-5/view/all/job/product-test-component-ox-connector/3/testReport/tests/test_cache/test_rename_user/ --------------------------------------------------------------------------------------- 2023-09-26 17:25:29 WARNING Traceback (most recent call last): 2023-09-26 17:25:29 WARNING File "/tmp/univention-ox-connector.listener_trigger", line 341, in run_on_files 2023-09-26 17:25:29 WARNING function(obj) 2023-09-26 17:25:29 WARNING File "/usr/lib/python3.9/site-packages/univention/ox/provisioning/__init__.py", line 86, in run 2023-09-26 17:25:29 WARNING modify_user(obj) [..] 2023-09-26 17:25:29 WARNING File "/usr/lib/python3.9/site-packages/zeep/wsdl/bindings/soap.py", line 329, in process_error 2023-09-26 17:25:29 WARNING raise Fault( 2023-09-26 17:25:29 WARNING zeep.exceptions.Fault: Changing username is disabled!; exceptionId -1480253657-6 --------------------------------------------------------------------------------------- The reason is, that by default the username is not allowed to change. * Default file: /opt/open-xchange/etc/AdminUser.properties:USERNAME_CHANGEABLE=false * OX Docs: https://documentation.open-xchange.com/components/middleware/config/7.10.6/#USERNAME_CHANGEABLE --------------------------------------------------------------------------------------- Actually there are a few more settings that are missing. See https://git.knut.univention.de/univention/open-xchange/appsuite/-/blob/5.0/univention-ox/sbin/ox-server-install#L207 Add the following settings to the documentation (https://docs.software-univention.de/ox-connector-app/latest/installation.html): ox/cfg/AdminUser.properties/CHECK_USER_UID_FOR_NOT_ALLOWED_CHARS=false ox/cfg/AdminUser.properties/PRIMARY_MAIL_UNCHANGEABLE=false ox/cfg/AdminUser.properties/USERNAME_CHANGEABLE=true ox/cfg/Group.properties/CHECK_GROUP_UID_FOR_NOT_ALLOWED_CHARS=false --------------------------------------------------------------------------------------- When you're at it, also change the documentation to not add ------- com.openexchange.folderstorage.database.preferDisplayName=false ------- to "user.properties". It belongs in the file "foldercache.properties".
(In reply to Daniel Tröder from comment #0) > When you're at it, also change the documentation to not add > ------- > com.openexchange.folderstorage.database.preferDisplayName=false > ------- > to "user.properties". It belongs in the file "foldercache.properties". 'false' is the default. It is not necessary to set this: https://documentation.open-xchange.com/components/middleware/config/7.10.6/#com.openexchange.folderstorage.database.preferDisplayName It can be removed from the documentation.