Need to change ldapHost ip shown in my ldap test-config, but how?

My AD server and my Nextcloud server been moved to a new subnet. All seemed to work until I tried to login . The logs told me that the LDAP server could not be reached. So I did a occ ldap test-config and this showed me the ldaphost still has its old ip configured. So I like to change this ip to the new one. But how can i do this?

I have no access to the gui since i cannot login. But can login with putty using ssh cli. Beside that I have also webmin running locally so I can manage some features from there also.

What is the best way of changing the ldaphost ip shown in the test-config results?

I cannot find anywhere a clear answer to this issue.

Thanks in advance!!

Well I found out the sollution to this. The command below run this from cli is the answer:
sudo -u www-data php /var/www/nextcloud/occ ldap:set-config ‘s01’ ldapHost 192.168.1.200

I tried this before but without the quotes ‘s01’ on config id. The quotes are the trick. Thought this could be helpfull for any others who will have to do this :slight_smile:

1 Like