In handlers/__init__.py the hook "hook_ldap_pre_modify" is called after self._ldap_pre_modify(). In the case of the users/user module this has the consequence, that a user rename happens before the "hook_ldap_pre_modify" has a chance to intervene in any way.
Sounds like a regression from Bug #53102. Maybe we should add a new hook `hook_ldap_pre_rename()` ?!
A hook_ldap_pre_move would be nice, yes. But I'm not facing a regression from Bug #53102 here, because the CI system currently has root@sandbox-200:~# univention-app info UCS: 4.4-7 errata829
Created attachment 10806 [details] patch (git:fbest/53674-udm-rename-hook)
Please reopen if necessary