removed main-Module
This commit is contained in:
parent
0cb64e5f7b
commit
f92b77b64f
|
@ -200,8 +200,9 @@ class cache {
|
||||||
$scopes = array_keys($this->attributes);
|
$scopes = array_keys($this->attributes);
|
||||||
foreach ($scopes as $scope) {
|
foreach ($scopes as $scope) {
|
||||||
// Get Scope
|
// Get Scope
|
||||||
$function = '$suffix = $this->config->get_'.ucfirst($scope).'Suffix();';
|
//$function = '$suffix = $this->config->get_'.ucfirst($scope).'Suffix();';
|
||||||
If ($scope != '*') eval($function);
|
If ($scope != '*') //eval($function);
|
||||||
|
$suffix = call_user_func(array($this->config, 'get_'.ucfirst($scope).'Suffix'));
|
||||||
else $suffix = '';
|
else $suffix = '';
|
||||||
// Get Data from ldap
|
// Get Data from ldap
|
||||||
$search = $this->attributes[$scope];
|
$search = $this->attributes[$scope];
|
||||||
|
@ -243,7 +244,8 @@ class cache {
|
||||||
print $function;
|
print $function;
|
||||||
print "<br>";
|
print "<br>";
|
||||||
// *** fixme, where is get_DomainSuffix
|
// *** fixme, where is get_DomainSuffix
|
||||||
If ($scope != '*') eval($function);
|
If ($scope != '*') //eval($function);
|
||||||
|
$suffix = call_user_func(array($$this->config, 'get_'.ucfirst($allowed_types[$i]).'Suffix'));
|
||||||
else $suffix = '';
|
else $suffix = '';
|
||||||
if (substr($suffix, $dn)) $singlescope = $allowed_types[$i];
|
if (substr($suffix, $dn)) $singlescope = $allowed_types[$i];
|
||||||
}
|
}
|
||||||
|
@ -254,7 +256,8 @@ class cache {
|
||||||
// Get Scope
|
// Get Scope
|
||||||
foreach ($allowed_types as $scope) {
|
foreach ($allowed_types as $scope) {
|
||||||
$function = '$suffix = $this->config->get_'.ucfirst($scope).'Suffix();';
|
$function = '$suffix = $this->config->get_'.ucfirst($scope).'Suffix();';
|
||||||
eval($function);
|
//eval($function);
|
||||||
|
$suffix = call_user_func(array($$this->config, 'get_'.ucfirst($scope).'Suffix'));
|
||||||
if (strpos($dn, $suffix)) $singlescope = $scope;
|
if (strpos($dn, $suffix)) $singlescope = $scope;
|
||||||
}
|
}
|
||||||
if (!isset($singlescope)) trigger_error(sprintf(_('Invalid dn: %s. DN not covered by any suffix.'), $dn), E_USER_WARN);
|
if (!isset($singlescope)) trigger_error(sprintf(_('Invalid dn: %s. DN not covered by any suffix.'), $dn), E_USER_WARN);
|
||||||
|
@ -308,10 +311,13 @@ class cache {
|
||||||
*/
|
*/
|
||||||
function findgroups() {
|
function findgroups() {
|
||||||
$dn_groups = $_SESSION['cache']->get_cache('cn', 'posixGroup', 'group');
|
$dn_groups = $_SESSION['cache']->get_cache('cn', 'posixGroup', 'group');
|
||||||
$DNs = array_keys($dn_groups);
|
if (is_array($dn_groups)) {
|
||||||
foreach ($DNs as $DN)
|
$DNs = array_keys($dn_groups);
|
||||||
$return[] = $dn_groups[$DN][0];
|
foreach ($DNs as $DN)
|
||||||
return $return;
|
$return[] = $dn_groups[$DN][0];
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue