From: Jan Schneider Date: Mon, 5 Jul 2010 22:16:49 +0000 (+0200) Subject: Add option to disable LDAP configuration. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=65eb2e97b7b5da9a5d102519f3bb442a96fb8937;p=horde.git Add option to disable LDAP configuration. --- diff --git a/framework/Core/lib/Horde/Config.php b/framework/Core/lib/Horde/Config.php index ecd3a1c55..b2df8a015 100644 --- a/framework/Core/lib/Horde/Config.php +++ b/framework/Core/lib/Horde/Config.php @@ -731,7 +731,20 @@ class Horde_Config ); if (isset($node) && $node->getAttribute('baseconfig') == 'true') { - return $fields; + return array( + 'desc' => 'Use LDAP?', + 'default' => $this->_default($ctx . '|' . $node->getAttribute('switchname'), false), + 'switch' => array( + 'false' => array( + 'desc' => 'No', + 'fields' => array() + ), + 'true' => array( + 'desc' => 'Yes', + 'fields' => $fields + ), + ) + ); } list($default, $isDefault) = $this->__default($ctx . '|' . (isset($node) ? $node->getAttribute('switchname') : $switchname), 'horde');