Hardware: VPS bought online YunoHost version: 11.2.11.3 I have access to my server : Through SSH | through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes → see below If yes, please explain: Nextcloud version: 28.0.4~ynh2
Description of my issue
I had an error message related to ldap in my nextcloud logs. I didn’t know what it was used for so i made a big mistake : i went to the admin settings and i deleted the Ldap sever :
I don"t remember how it was configured, there was something with my username a yunohost directory. Nextcloud crashed and is now unavailable, i can not open this app to go back in the admin panel.
How can i set it up like it use to be with command lines ? I have used occ commands before.
I don’t want to restore my backup because i am scared to lose my medias.
I don’t know enough about LDAP to help you out. You could install a second Nextcloud to see how it is configured, and install phpLDAPadmin to compare the credentials for the two Nextclouds.
My last complete server backup is one month old.
The last automatic backup of the nextcloud app by yunohost is very recent but it doesn’t contain the medias. I would have to save them somewhere else and paste them back in the folder hopping it doesn’t break anything.
Thanks for your help.
I searched for a config.json file to edit in the /var/www/nextcloud folder but i didn’t find anything like that.
In which file am i supposed to paste those default config parameters ?
I didn’t delete the nextcloud app, i just clicked on the Bin icon on the screenshot i shared. So i just deleted the LDAP server configuration.
Tomorrow i will try to configure it with the occ commands you sent
And if you’re confortable with sql, you can look in the nextcloud database for oc_appconfig table and search for user_ldap. You can try importing a copy of that specific config from a backup or another install