Roundcube Community Forum

Release Support => Pending Issues => Topic started by: Carey on October 25, 2007, 03:15:29 PM

Title: Windows LDAP broken in RC2
Post by: Carey on October 25, 2007, 03:15:29 PM
I just upgraded to RC2. I was using a patch to get RC to work with LDAP on a Windows server. And it worked fine. After upgrading to RC2, I am unable to get RC to connect to LDAP on my Windows server with or without the patch I was using. I've now given up experimenting with the issue and going back to RC1 for now.

I did see the notes in the upgrade file for changes to ldap settings in I made the changes accordingly.

Has anyone else gotten LDAP to work with a Windows server on RC2? If so, please share your solution.


My patch for RC1 was:

Windows 2003 Active Directory LDAP fix:
In Change:

    ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['port']);
    $this->prop['host'] = $host;
    $this->conn = $lc;
    ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['port']);
  // Immediatly after a connect...
  // Fix for Windows 2003 AD
  ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, 3);
  ldap_set_option($lc, LDAP_OPT_REFERRALS, 0);
    $this->prop['host'] = $host;
    $this->conn = $lc;