Project

General

Profile

Actions

Bug #1927

closed

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

Added by Colin Petrie over 12 years ago. Updated about 12 years ago.

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 #1

Updated by Jim Pingle over 12 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #2

Updated by Jim Pingle over 12 years ago

Actions #3

Updated by Chris Buechler about 12 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF