[Fusionforge-commits] r8674 - branches/Branch_4_8/gforge/plugins/ldapextauth/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Jan 19 22:37:04 CET 2010


Author: aljeux
Date: 2010-01-19 22:37:03 +0100 (Tue, 19 Jan 2010)
New Revision: 8674

Modified:
   branches/Branch_4_8/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
Log:
Backport changes from trunk on LdapExtAuthPlugin.class.php to fix problems with undefined vars like $gfcommon and $gfconfig

Modified: branches/Branch_4_8/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php
===================================================================
--- branches/Branch_4_8/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php	2010-01-15 19:34:23 UTC (rev 8673)
+++ branches/Branch_4_8/gforge/plugins/ldapextauth/include/LdapExtAuthPlugin.class.php	2010-01-19 21:37:03 UTC (rev 8674)
@@ -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