Skip to content

Commit

Permalink
allow setting an alternative password for auth sources
Browse files Browse the repository at this point in the history
this is required for recording/live in setups where the password is not
"changeme"
  • Loading branch information
evgeni committed Dec 4, 2024
1 parent 501f491 commit 1aa1be0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_playbooks/auth_source_ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
- include_tasks: tasks/auth_source_ldap.yml
vars:
auth_source_ldap_state: present
auth_source_ldap_account_password: changeme
# we only set this once at creation, as otherwise idempotency tests would fail
auth_source_ldap_account_password: "{{ default_auth_source_ldap_account_password }}"
expected_change: true
- include_tasks: tasks/auth_source_ldap.yml
vars:
Expand Down
1 change: 1 addition & 0 deletions tests/test_playbooks/vars/server.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ auth_source_ldap_base_dn: dc=example,dc=com
auth_source_ldap_attr_login: uid
auth_source_ldap_groups_base: cn=groups,cn=accounts,dc=example,dc=com
external_usergroup_name: "admins"
default_auth_source_ldap_account_password: changeme

# Satellite branded params
satellite_username: "{{ foreman_username }}"
Expand Down

0 comments on commit 1aa1be0

Please sign in to comment.