My problem was, that I have to set the LDAP password. The LDAP password has to be stored encrypted, but I can't do this before the cipher is generated.
My workaround looks like this: - before starting gocd, start a script in the background, which sets the ldap configuration over the REST API - the script waits in a loop until the REST API is reachable - when the REST API is reachable, the configuration is done and the script ends On Wednesday, 31 January 2018 23:42:04 UTC+1, Aravind SV wrote: > > Hello Florian, > > You should be able to provide it a config directory, as a volume, as > mentioned here > <https://github.com/gocd/docker-gocd-server/#under-the-hood>. The config > inside that will be used and the LDAP settings in it will be used. > > Cheers, > Aravind > > > On Wed, Jan 31, 2018 at 9:02 AM, Florian Kammermann <[email protected] > <javascript:>> wrote: > >> We would like to create docker images, where gocd is already >> preconfigured with the ldap usermanagement. >> >> The only way to configure the ldap usermanagement automatically I've seen >> is over the REST api >> https://api.gocd.org/current/#create-an-authorization-configuration. >> Here I have the problem, that I have to detect when when gocd is up and >> running before I execute the REST call, this is not so nice when go is the >> process started in a docker container. >> >> Is there another way to hock up in the start process of gocd and >> configure the usermanagement? >> For example jenkins has the groovy init scripts >> https://github.com/Accenture/adop-jenkins/blob/master/resources/init.groovy.d/adop_ldap.groovy >> >> -- >> You received this message because you are subscribed to the Google Groups >> "go-cd" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
