I am running Home Assistant Docker image and I’ve been using the Command Line auth provider to authenticate against my LDAP server. After upgrading to the latest Home Assistant version 0.98.1 which is now based on Alpine. I can no longer authenticate against my LDAP server as the curl version inside the Docker doesn’t support ldaps:
Protocol "ldaps" not supported or disabled in libcurl
For me, it is not currently working. The homeassistant docker image does not have ldap included in curl and it does not seem to have ldapsearch either.
I still had to tweak ldap-auth.sh to support STARTTLS and configure the CA certificate in the OpenLDAP inside the docker image but finally I made it work!
Most probably the next upgrade will ruin the CA certificate configuration… let’s see. Anyway it’s easy to implement again.
I tried this workaround last night in my attempt to get LDAP auth working against my system. No luck openldap-clients seem to be installed in my docker image but still getting the curl error. Is there some other config needed inside the container to make this work?
This was really helpful, but it isn’t good practice to modify running docker instances like this because the changes are lost when updating. I created a custom Dockerfile / docker-compose.yml combo to build a custom image. Works well.