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

Chuck Hagenbuch chuck at horde.org
Tue Jul 14 05:19:34 UTC 2009


Quoting "Rashid N. Achilov" <achilov-rn at askd.ru>:

> 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']);
> --

Thanks! Can you please upload this patch to a ticket on bugs.horde.org  
so it doesn't get lost?


-chuck


More information about the turba mailing list