Nextcloud update with ldap IP changed

I started the updating process from nextcloud 16 to 16.0.6. However, the update process fails with the following message:

Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore
OC\ServerNotAvailableException: Lost connection to LDAP server.
Update failed
Maintenance mode is kept active
Reset log level

Now, I remember that the IP of the LDAP server has changed and the installation therefore cannot reach the server. However, changing the LDAP IP is not possible any more since nextcloud is in update mode:

sudo -u www-data php occ ldap:show-config
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade


  There are no commands defined in the "ldap" namespace.

Now, I am stuck in a loop. Without reaching the ldap server, no update can be performed, and the ldap server cannot be changed while updating. How can this be resolved?

I am quite hesitant to changing the LDAP ip back, if possible I would very much prefer an option to change the IP manually or redirect temporarily.

Thank you for your help!