Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

username and password #158

Open
andysmagana opened this issue Sep 10, 2024 · 1 comment
Open

username and password #158

andysmagana opened this issue Sep 10, 2024 · 1 comment

Comments

@andysmagana
Copy link

How can I hide the username and password in the microsoft.ad.ldap.yaml file ? Can you show an example?

@jborean93
Copy link
Collaborator

The simplest example is to retrieve the value using a lookup template for that field which was added in the PR #101.

username: '{{ lookup("env", "SOME_ENV_VAR") }}'
password: '{{ lookup("env", "OTHER_ENV_VAR") }}

You can use Kerberos auth and rely on the existing Kerberos cache (as retrieved by kinit). You may also be able to use a template to reference a var set by the extra vars in the command line but keep in mind the inventory runs before an inventory is fully available so some inventory vars might now be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants