Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ openvpn_clients:
# Revoke clients certificates
openvpn_clients_revoke: []

# Set to true to enable checking client certificates even with pam authentication (disabled for pan authentication by default by default)
openvpn_client_cert_required: false

# Use PAM authentication
openvpn_use_pam: true
openvpn_use_pam_users: []
Expand Down
5 changes: 4 additions & 1 deletion templates/server.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ group nogroup
client-to-client
{% endif %}

{% if openvpn_use_pam %}
{% if openvpn_use_pam and not openvpn_client_cert_required %}
client-cert-not-required
{% endif %}

{% if openvpn_use_pam %}
plugin {{openvpn_use_pam_plugin|default(openvpn_use_pam_plugin_distribution)}} openvpn
{% endif %}

Expand Down