Skip to content

Commit a8e5b8f

Browse files
author
David Coutadeur
committed
add ca certificate definition in saslauthd configuration
1 parent 8d2c77b commit a8e5b8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

playbook/group_vars/prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ ldaptoolbox_openldap_sasl_suffix: "dc=my-organization,dc=com"
4747
ldaptoolbox_openldap_sasl_servers: "ldap://localhost"
4848
ldaptoolbox_openldap_sasl_binddn: "cn=saslaccount,dc=my-domain,dc=com"
4949
ldaptoolbox_openldap_sasl_bindpw: "{{ ldaptoolbox_openldap_sasl_bindpw_vault }}"
50+
#ldaptoolbox_openldap_sasl_ca: "/usr/local/openldap/etc/openldap/certs/ca.crt"

templates/etc/saslauthd.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ ldap_password: {{ ldaptoolbox_openldap_sasl_bindpw }}
1919

2020
# others
2121
# ----------------------------------
22+
{% if ldaptoolbox_openldap_sasl_ca is defined and ldaptoolbox_openldap_sasl_ca %}
23+
ldap_tls_cacert_file: {{ ldaptoolbox_openldap_sasl_ca }}
24+
{% endif %}
2225
ldap_deref: never
2326
ldap_restart: yes
2427
ldap_scope: sub

0 commit comments

Comments
 (0)