From 366d0323a932d58db0dda927544dc675d77927eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 2 Mar 2010 00:12:06 +0000 Subject: [PATCH] Allow the authentication scripts to detect configuration changes. Allow multiple OUs to be specified on basedn. --- etc/inc/openvpn.auth-ldap.php | 88 +++++++++++++++++++++++++++++++-- etc/inc/openvpn.auth-radius.php | 11 ++++- etc/inc/openvpn.inc | 22 +-------- 3 files changed, 93 insertions(+), 28 deletions(-) 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). */ //