Author Topic: Windows LDAP broken in RC2  (Read 1896 times)

Offline Carey

  • Newbie
  • *
  • Posts: 6
Windows LDAP broken in RC2
« 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 main.inc.php. I made the changes accordingly.

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

Thanks.


My patch for RC1 was:

Windows 2003 Active Directory LDAP fix:
In rcube_ldap.inc Change:

    ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, $this->prop['port']);
    $this->prop['host'] = $host;
    $this->conn = $lc;
 to
    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;