Is it possible to restart the app to reload a customized config.json without getting the config.json beeing regenerated?
I´ve added some changes to the config.json but when trying to restart the service with runagent -m meshcentral-light1 systemctl restart --user meshcentral-light the config.json get´s regenerated with the default values. Any ways to prevent resetting the config.json?
Yes, with the update the config.json doesn´t get overwritten by an restart.
This is a win, but it seem´s i made some mistakes in the night and wrongly got to the assumtion, you could reach the LDAP server from the container for authentication…
With ldap server require strong auth = no configured, you can use the LDAP server from an another (not neth-)server for meshcentral auth. I just can´t get my head to understand the module-concept of nethserver…
configured the module in the nethserver webgui (FQDN, letsencrypt, https-redirect) and went to the meshcentral webgui, created the first (admin) account, logged in and logged out
edited the config.json located at /home/meshcentral-light<instance-nr>/.local/share/containers/storage/volumes/meshcentral-data/_data/config.json to make the domain section look like this (values in <> and the “search filter” are to be customized):
logged into the meshcentral webgui with ldap account, logged out, removed the ldap part from the config.json, restarted the container, logged in with the first admin account, made the ldap-user admin, logged out, added the ldap-part again to the config.json and restarted the container again
finally it worked
Since you guys are much more clever as i am, you may find a lot of improvements to be made to this “thing”, i would be very excited to see what i did wrong.
Thanks for the great howto.
IIRC it’s also possible to switch to LDAP before creating the internal admin. As the first registered user gets admin permissions, the LDAP admin should work without needing to set permissions.
On the other hand it’s nice to have the internal admin as fallback in case LDAP doesn’t work.