Enabled hiding base DNs that users dont have access to
This commit is contained in:
@@ -103,7 +103,7 @@ abstract class Tree {
|
||||
$return = array();
|
||||
|
||||
foreach ($this->entries as $details)
|
||||
if ($details->isBaseDN())
|
||||
if ($details->isBaseDN() AND ((! $this->getServer()->getValue('server','hide_noaccess_base')) OR $details->isInLdap()))
|
||||
array_push($return,$details);
|
||||
|
||||
return $return;
|
||||
|
@@ -542,6 +542,10 @@ class Datastore {
|
||||
'desc'=>'Whether this server is visible',
|
||||
'default'=>true);
|
||||
|
||||
$this->default->server['hide_noaccess_base'] = array(
|
||||
'desc'=>'If base DNs are not accessible, hide them instead of showing create',
|
||||
'default'=>false);
|
||||
|
||||
# Authentication Information
|
||||
$this->default->login['auth_type'] = array(
|
||||
'desc'=>'Authentication Type',
|
||||
|
Reference in New Issue
Block a user