Set referrals (Request #8432).
authorJan Schneider <jan@horde.org>
Tue, 18 Aug 2009 13:45:09 +0000 (15:45 +0200)
committerJan Schneider <jan@horde.org>
Tue, 18 Aug 2009 13:47:20 +0000 (15:47 +0200)
turba/lib/Driver/Ldap.php

index 2a07d42..df15e1e 100644 (file)
@@ -76,6 +76,11 @@ class Turba_Driver_Ldap extends Turba_Driver
             @ldap_set_option($this->_ds, LDAP_OPT_DEREF, $this->_params['deref']);
         }
 
+        /* Set the LDAP referrals. */
+        if (!empty($this->_params['referrals'])) {
+            @ldap_set_option($this->_ds, LDAP_OPT_REFERRALS, $this->_params['referrals']);
+        }
+
         /* Start TLS if we're using it. */
         if (!empty($this->_params['tls'])) {
             if (!@ldap_start_tls($this->_ds)) {