Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to check certificates with pam also #127

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
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