Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ auth_ldap_domain_suffix: None
# If you have subdomains with hosts, you might want to add them here
auth_ldap_domain_subdomains: []

# If your LDAP servers are not mutually reachable via their FQDN, set this for
# replication
auth_ldap_use_external_domain: False

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add these to the list in the README?

auth_ldap_external_domain: None

# LDAP admin credentials (you need to change these)
auth_ldap_admin_pwd: None
auth_ldap_sync_pwd: None
Expand Down
4 changes: 4 additions & 0 deletions templates/haproxy-dropin.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ frontend {{ item }}-ldap-front
backend {{ item }}-ldap-back
mode tcp
option ldap-check
{% if auth_ldap_use_external_domain %}
server remote {{ hostvars[item]['auth_ldap_external_domain'] }}:60389 ssl crt /etc/dirsrv/client.pem ca-file /etc/dirsrv/ca.pem verify required check check-ssl
{% else %}
server remote {{ item }}:60389 ssl crt /etc/dirsrv/client.pem ca-file /etc/dirsrv/ca.pem verify required check check-ssl
{% endif %}

{% endif %}
{% endfor %}
Expand Down