I’m currently looking to automatically configure ERPNext as much as possible, and I was wondering if it’s possible configure LDAP settings from command line / bench.
My objective is to take a Docker image of ERPNext and set all the technical stuff like mail servers or LDAP through command line, even before the first run wizard has been completed.
Would be easy enough, you would just have to write a sql script that sets all the database values that you want. run the sql script from the command line and your done.
PS, there is quite a few changes going through with ldap for 11/12, I haven’t rewritten the documentation yet, but just so that you are aware. - Should be up in a week or so.
You could just execute that from the command line then… or curl + rest - but probably just a simple setup python script would suffice, - you would still need to deal with changes, but usually things are only added, they are not removed.
This is especially useful in docker containers where we use a docker-compose to configure containers.
The application is also tested, using docker containers, with Travis-CI on several ERPNext versions.