diff --git a/workflow/engine/classes/class.ldapAdvanced.php b/workflow/engine/classes/class.ldapAdvanced.php index 7902e1101..a6cbf0604 100755 --- a/workflow/engine/classes/class.ldapAdvanced.php +++ b/workflow/engine/classes/class.ldapAdvanced.php @@ -33,6 +33,7 @@ if (!class_exists("RBAC")) { require_once PATH_TRUNK . "gulliver/system/class.rbac.php"; } +/* class ldapAdvancedClass { public function __construct() @@ -62,6 +63,7 @@ if (!class_exists("ldapAdvancedPlugin")) { if (class_exists("ldapAdvanced")) { return; } +*/ class ldapAdvanced { diff --git a/workflow/engine/methods/authSources/authSources_Ajax.php b/workflow/engine/methods/authSources/authSources_Ajax.php index 0a08f510e..4ad8f7763 100755 --- a/workflow/engine/methods/authSources/authSources_Ajax.php +++ b/workflow/engine/methods/authSources/authSources_Ajax.php @@ -158,22 +158,20 @@ try { if (($sObject != '.') && ($sObject != '..') && ($sObject != '.svn') && ($sObject != 'ldap')) { if (is_file( PATH_RBAC . 'plugins' . PATH_SEP . $sObject )) { $sType = trim(str_replace(array("class.", ".php"), "", $sObject)); - $flagAdd = false; - /*----------------------------------********---------------------------------*/ - if (PMLicensedFeatures - ::getSingleton() - ->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) { - $flagAdd = true; - } - /*----------------------------------********---------------------------------*/ - - if ($flagAdd) { + if ($sType != "ldapAdvanced") { $arr[] = array("sType" => $sType, "sLabel" => $sType); } } } } + + /*----------------------------------********---------------------------------*/ + if (PMLicensedFeatures::getSingleton()->verifyfeature("sywN09PSzh1MVdOajZBdnhMbFhCSnpNT1lLTEFwVklmOTE=")) { + $arr[] = array("sType" => "ldapAdvanced", "sLabel" => "ldapAdvanced"); + } + /*----------------------------------********---------------------------------*/ + echo '{sources: ' . G::json_encode( $arr ) . '}'; break; case 'loadauthSourceData': diff --git a/workflow/engine/methods/authSources/ldapAdvancedProxy.php b/workflow/engine/methods/authSources/ldapAdvancedProxy.php index ed8f9d255..d347a486d 100755 --- a/workflow/engine/methods/authSources/ldapAdvancedProxy.php +++ b/workflow/engine/methods/authSources/ldapAdvancedProxy.php @@ -1,4 +1,5 @@