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

Client cert verification #66

Open
wants to merge 3 commits 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
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ openvpn_key_size: 1024

openvpn_clients: [client] # Make clients certificate
openvpn_clients_revoke: [] # Revoke clients certificates
openvpn_client_cert_not_required: [] # Disable client certificate checking

# Use PAM authentication
openvpn_use_pam: yes
Expand Down
6 changes: 5 additions & 1 deletion templates/server.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ group nogroup
client-to-client
{% endif %}

{% if openvpn_use_pam %}
{% if openvpn_client_cert_not_required %}
client-cert-not-required
{% else %}
username-as-common-name
{% endif %}
{% if openvpn_use_pam %}
plugin {{openvpn_use_pam_plugin|default(openvpn_use_pam_plugin_distribution)}} openvpn
{% endif %}

Expand Down
4 changes: 4 additions & 0 deletions vars/Debian.stretch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

openvpn_use_pam_plugin_distribution: /usr/lib/openvpn/openvpn-plugin-auth-pam.so
openvpn_use_ldap_plugin_distribution: /usr/lib/openvpn/openvpn-auth-ldap.so