Currently that is not possible but it is actually a good idea.
Would you just want to store the password in an env-variable or also the username? Or rather the complete LDAP-URI?
Currently for me, just the LDAP-URI will solve this. Thanks for the quick reply.
I have deployed the a project in different envs (develop, staging, production) with different users.
I won’t be able to do it right now, but will see how far I get over the weekend.
Currently I’m thinking of 2 things:
* using a special schema env:MY_ENV_VARIALBE_NAME
in the ldap-URI field that will then use the value of the environment-variable MY_ENV_VARIALBE_NAME
as LDAP-URI
* Replacing %ENV:MY_ENV_VARIABLE_NAME%
inside the LDAP-URI with the value of the environment-variable MY_ENV_VARIABLE_NAME
SO you could then use one of the two approaches as flexible as you’d like.
Would that be helpful?
Hey there. I’ve just tagged a new release that allows to use environment variables. Feel free to give it a try and report any issues either here or via https://github.com/heiglandreas/authLdap/issues
If everything works I’d be happpy if you could mark this thread as resolved 😉