cisagov / ansible-role-openvpn

Ansible role to install an OpenVPN server and configure it to authenticate users certificates against FreeIPA.
Creative Commons Zero v1.0 Universal
8 stars 2 forks source link

Escape DN when searching LDAP with a filter #7

Closed felddy closed 4 years ago

felddy commented 4 years ago

๐Ÿ—ฃ Description

Closes #6

๐Ÿ’ญ Motivation and Context

Contractors are people too.

๐Ÿงช Testing

Tested in production (where it was debugged)

๐Ÿ“ท Screenshots (if appropriate)

๐Ÿšฅ Types of Changes

โœ… Checklist

felddy commented 4 years ago

Looks like fedora31 and fedora29 don't have c_rehash installed. (Part of OpenSSL) https://www.openssl.org/docs/man1.0.2/man1/c_rehash.html

Thoughts?

    TASK [ansible-role-openvpn : Fetch DHS CA certificates using fetch_user_ca_certs.sh] ***
    fatal: [fedora31]: FAILED! => {"changed": true, "cmd": ["/etc/openvpn/server/fetch_user_ca_certs.sh"], "delta": "0:00:00.786731", "end": "2020-03-19 21:58:41.495663", "msg": "non-zero return code", "rc": 127, "start": "2020-03-19 21:58:40.708932", "stderr": "/etc/openvpn/server/fetch_user_ca_certs.sh: line 40: c_rehash: command not found", "stderr_lines": ["/etc/openvpn/server/fetch_user_ca_certs.sh: line 40: c_rehash: command not found"], "stdout": "", "stdout_lines": []}
    changed: [kali]
    changed: [debian11]
    changed: [debian10]
    fatal: [fedora29]: FAILED! => {"changed": true, "cmd": ["/etc/openvpn/server/fetch_user_ca_certs.sh"], "delta": "0:00:01.597671", "end": "2020-03-19 21:58:42.144962", "msg": "non-zero return code", "rc": 127, "start": "2020-03-19 21:58:40.547291", "stderr": "/etc/openvpn/server/fetch_user_ca_certs.sh: line 40: c_rehash: command not found", "stderr_lines": ["/etc/openvpn/server/fetch_user_ca_certs.sh: line 40: c_rehash: command not found"], "stdout": "", "stdout_lines": []}
jsf9k commented 4 years ago

@felddy, I made some changes to get rid of most of the failures. The Debian 11 build is still failing, but that is because I don't have a systemd-enabled Debian 11 image. I can create one tomorrow, and then everything should pass.

felddy commented 4 years ago

Thanks @jsf9k, no rush.

felddy commented 4 years ago

Just reviewed additions. Thanks for modernizing it... This is the wayโ„ข.