[turba] Using Active Directory (Windows 2003) as LDAP source

Rashid N. Achilov achilov-rn at askd.ru
Mon Jul 13 09:04:21 UTC 2009


Horde Groupware Edition, latest version

When I have tried to setup turba to use Active Directory server as source for 
readonly LDAP addressbook, I had constantly error "Operation error".  I had 
have looked about in Google and found an answer, that Windows 2003 server 
required setting one parameter before binding to LDAP server. Here is a patch 
to fix this problem (I have added one parameter 'referrals' to sources.php)

--- ldap.php.old        2009-05-01 17:12:37.000000000 +0700
+++ ldap.php    2009-07-12 04:04:38.000000000 +0700
@@ -73,6 +73,11 @@
             @ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, 
$this->_params['version']);
         }
 
+        /* Set the LDAP referrals. */
+        if (array_key_exists("referrals", $this->_params)) {
+            @ldap_set_option($this->_ds, LDAP_OPT_REFERRALS, 
$this->_params['referrals']);
+        }
+
         /* Set the LDAP deref option for dereferencing aliases. */
         if (!empty($this->_params['deref'])) {
             @ldap_set_option($this->_ds, LDAP_OPT_DEREF, 
$this->_params['deref']);
-- 
   With Best Regards.
   Rashid N. Achilov (RNA1-RIPE), JID: citycat4 at jabber.org
   OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru
   PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A


More information about the turba mailing list