missing require in OpenVPN openvpn.auth-user.php template
I was unable to authenticate against LDAP using OpenVPN, and found that the openvpn.auth-user.php template appears to be missing a require_once of 'certs.inc'.
If I manually run the generated 'server1.php' (called from directive auth-user-pass-verify in server1.conf), having set a username and password in my environment first, it errors with:
Fatal error: Call to undefined function lookup_ca() in /etc/inc/auth.inc on line 650
lookup_ca() appears to come from certs.inc
to the start of the openvpn.auth-user.php template, and regenerating the server configuration seems to work and I can then authenticate against LDAP successfully.