Support » Plugin: authLdap » Load config from environment variables

  • Hi, I have WP behind a kubernetes infrastructure, I’m looking for use secrets to store the credentials.

    Have a way to do this? Or need develop for it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author heiglandreas

    (@heiglandreas)

    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.

    Plugin Author heiglandreas

    (@heiglandreas)

    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?

    Great! Yes!

    Plugin Author heiglandreas

    (@heiglandreas)

    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 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.