Project

General

Profile

Bug #1927

missing require in OpenVPN openvpn.auth-user.php template

Added by Colin Petrie about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
10/05/2011
Due date:
% Done:

100%

Estimated time:
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.

Associated revisions

Revision 099e764a (diff)
Added by Jim Pingle about 8 years ago

Include certs.inc before calling lookup_ca in auth.inc. Fixes #1927

Revision 007e59d2 (diff)
Added by Jim Pingle about 8 years ago

Include certs.inc before calling lookup_ca in auth.inc. Fixes #1927

History

#1 Updated by Jim Pingle about 8 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#3 Updated by Chris Buechler over 7 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF