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.
Updated by Jim Pingle about 13 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset 007e59d2bf7d5be02e5cd34d3c1f5d2723ce5149.
Updated by Jim Pingle about 13 years ago
Applied in changeset 099e764a797146c0dc9810e8f99cd18789a8608e.
Updated by Chris Buechler over 12 years ago
- Status changed from Feedback to Resolved
Actions