LDAP authentication via command_line auth

Has anyone managed to get command_line authentication working?

I’ve written a little bash script (based off the ldap-auth.sh) supplied in the documentation that exits 1 or 0, and returns name = {{name}} for the meta data. From terminal, everything works fine when the username and password environment variables are set.

It appears that no warnings are generated in the HA logs, however errors are given in the browser (Safari) console:

The 500 error makes me question if there something from with my proxied setup, but haven’t had issues with HA thus far.

Thoughts?

i got it working with ldap based off of the examples linked in the docs. my suggestion would be to try with those scripts first to make sure you can get it working and go from there. it also has an option to set debug logging which helped me find some errors with my setup. there was a small conversation here about updating the examples, Add support for LDAP now that Auth is required. otherwise im afraid i cant be much help with the scripting portion.