Skip to content

Commit

Permalink
Fix LDAP module path on Rocky 8 and RHEL 8 (#191)
Browse files Browse the repository at this point in the history
Closes #190

Co-authored-by: Kyle Lexmond <[email protected]>
  • Loading branch information
Sispheor and kyl191 authored Dec 22, 2024
1 parent a1ca87f commit 826ce0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/server.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ management-client-user {{ openvpn_management_client_user }}
{% if ansible_os_family == 'Debian' %}
plugin /usr/lib/openvpn/openvpn-auth-ldap.so "{{ openvpn_base_dir }}/auth/ldap.conf"
{% elif ansible_machine == "x86_64" %}
{% if ansible_distribution in ['RedHat','Rocky'] and (ansible_distribution_major_version | int >= 8) %}
plugin /usr/lib64/openvpn/plugins/openvpn-auth-ldap.so "{{ openvpn_base_dir }}/auth/ldap.conf"
{% else %}
plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-ldap.so "{{ openvpn_base_dir }}/auth/ldap.conf"
{% endif %}
{% else %}
plugin /usr/lib/openvpn/plugin/lib/openvpn-auth-ldap.so "{{ openvpn_base_dir }}/auth/ldap.conf"
{% endif %}
Expand Down

0 comments on commit 826ce0b

Please sign in to comment.