PM-1060 "Fusionar el plugin LDAP advanced al core del enterprise" SOLVED
Issue:
Fusionar el plugin LDAP advanced al core del enterprise
- No es posible crear un nuevo AuthenticationSource con ----> Provider: ldapAdvanced
Cause:
- Implementacion incompleta en este modulo (AuthenticationSource)
Solution:
- Se ha completado el ldapAdvanced en este modulo (AuthenticationSource), se agrego el hash correcto
This commit is contained in:
@@ -33,6 +33,7 @@ if (!class_exists("RBAC")) {
|
|||||||
require_once PATH_TRUNK . "gulliver/system/class.rbac.php";
|
require_once PATH_TRUNK . "gulliver/system/class.rbac.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
class ldapAdvancedClass
|
class ldapAdvancedClass
|
||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@@ -62,6 +63,7 @@ if (!class_exists("ldapAdvancedPlugin")) {
|
|||||||
if (class_exists("ldapAdvanced")) {
|
if (class_exists("ldapAdvanced")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
class ldapAdvanced
|
class ldapAdvanced
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -158,22 +158,20 @@ try {
|
|||||||
if (($sObject != '.') && ($sObject != '..') && ($sObject != '.svn') && ($sObject != 'ldap')) {
|
if (($sObject != '.') && ($sObject != '..') && ($sObject != '.svn') && ($sObject != 'ldap')) {
|
||||||
if (is_file( PATH_RBAC . 'plugins' . PATH_SEP . $sObject )) {
|
if (is_file( PATH_RBAC . 'plugins' . PATH_SEP . $sObject )) {
|
||||||
$sType = trim(str_replace(array("class.", ".php"), "", $sObject));
|
$sType = trim(str_replace(array("class.", ".php"), "", $sObject));
|
||||||
$flagAdd = false;
|
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
if ($sType != "ldapAdvanced") {
|
||||||
if (PMLicensedFeatures
|
|
||||||
::getSingleton()
|
|
||||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
|
||||||
$flagAdd = true;
|
|
||||||
}
|
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
|
|
||||||
if ($flagAdd) {
|
|
||||||
$arr[] = array("sType" => $sType, "sLabel" => $sType);
|
$arr[] = array("sType" => $sType, "sLabel" => $sType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
if (PMLicensedFeatures::getSingleton()->verifyfeature("sywN09PSzh1MVdOajZBdnhMbFhCSnpNT1lLTEFwVklmOTE=")) {
|
||||||
|
$arr[] = array("sType" => "ldapAdvanced", "sLabel" => "ldapAdvanced");
|
||||||
|
}
|
||||||
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
echo '{sources: ' . G::json_encode( $arr ) . '}';
|
echo '{sources: ' . G::json_encode( $arr ) . '}';
|
||||||
break;
|
break;
|
||||||
case 'loadauthSourceData':
|
case 'loadauthSourceData':
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
G::LoadClass("ldapAdvanced");
|
||||||
|
|
||||||
$function = $_REQUEST['functionAccion'];
|
$function = $_REQUEST['functionAccion'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user