Actions
Bug #1927
closedmissing require in OpenVPN openvpn.auth-user.php template
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
10/05/2011
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:
All
Description
Hi,
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
Adding:
require_once("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.
Actions