[Fusionforge-commits] r7509 - trunk/gforge/plugins/ldapextauth/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Apr 28 22:50:57 CEST 2009


Author: aljeux
Date: 2009-04-28 22:50:57 +0200 (Tue, 28 Apr 2009)
New Revision: 7509

Modified:
   trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
Log:
Applied patch [#24] LdapExtAuth Plugin Variables Fix by Chris Dalzell (megaburn)

Modified: trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
===================================================================
--- trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php	2009-04-28 20:19:40 UTC (rev 7508)
+++ trunk/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php	2009-04-28 20:50:57 UTC (rev 7509)
@@ -24,8 +24,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  US
  */
 
-require_once $gfcommon.'include/User.class.php';
-require_once $gfconfig.'plugins/ldapextauth/mapping.php' ;
+require_once $GLOBALS['gfcommon'].'include/User.class.php';
+require_once $GLOBALS['gfconfig'].'plugins/ldapextauth/mapping.php' ;
 
 class LdapextauthPlugin extends Plugin {
 	function LdapextauthPlugin () {
@@ -37,15 +37,15 @@
 		$this->ldap_conn = false ;
 		$this->base_dn = '';
 		$this->user_dn = '';
-		$this->ldap_server = $sys_ldap_server ;
-		$this->ldap_port = $sys_ldap_port ;
+		$this->ldap_server = $GLOBALS['sys_ldap_host'] ;
+		$this->ldap_port = $GLOBALS['sys_ldap_port'] ;
 		$this->ldap_altserver = '';
 		$this->ldap_altport = '';
 		$this->ldap_start_tls = false;
 		$this->ldap_bind_dn = '';
 		$this->ldap_bind_pwd = '';
 		$this->ldap_skip_users = '';
-		require_once $gfconfig.'plugins/ldapextauth/config.php' ;
+		require_once $GLOBALS['gfconfig'].'plugins/ldapextauth/config.php' ;
 		if (isset($base_dn)) {
 			$this->base_dn = $base_dn ;
 		}




More information about the Fusionforge-commits mailing list