Extra field necessary for LDAP
authorBen Klang <ben@alkaloid.net>
Wed, 30 Dec 2009 16:09:55 +0000 (11:09 -0500)
committerBen Klang <ben@alkaloid.net>
Thu, 31 Dec 2009 18:16:44 +0000 (13:16 -0500)
framework/Core/lib/Horde/Config.php

index 57e741c..f93babf 100644 (file)
@@ -656,6 +656,14 @@ class Horde_Config
             'default' => $this->_default($ctx . '|basedn', '')
         );
 
+        $version = array(
+            '_type' => 'int',
+            'required' => true,
+            'desc' => 'LDAP protocol version',
+            'switch' => array('2' => array('desc' => '2 (deprecated)'), '3' => array('desc' => '3')),
+            'default' => $this->_default($ctx . '|version', 3)
+        );
+
         $port = array(
             '_type' => 'int',
             'required' => false,
@@ -710,6 +718,7 @@ class Horde_Config
         $custom_fields = array(
             'hostspec' => $hostspec,
             'port' => $port,
+            'version' => $version,
             'tls' => $tls,
             'searchdn' => $searchdn,
             'searchpw' => $searchpw,