diff --git a/etc/inc/openvpn.auth-ldap.php b/etc/inc/openvpn.auth-ldap.php index 71559726b1..e84bfdcc84 100755 --- a/etc/inc/openvpn.auth-ldap.php +++ b/etc/inc/openvpn.auth-ldap.php @@ -32,6 +32,8 @@ pfSense_BUILDER_BINARIES: pfSense_MODULE: openvpn */ +require_once("config.inc"); +require_once("system.inc"); /* setup syslog logging */ openlog("openvpn", LOG_ODELAY, LOG_AUTH); @@ -48,9 +50,39 @@ if (empty($username) || empty($password)) { /* Replaced by a sed with propper variables used below(ldap parameters). */ //