[dev] Fwd: LDAPv3 Support Broken Again...

Chuck Hagenbuch chuck at horde.org
Sat Feb 14 05:42:13 PST 2004


not sure what he's talking about...

----- Forwarded message from mjpelletier at mjpelletier.com -----
    Date: Fri, 13 Feb 2004 22:30:22 -0800
    From: "Michael J. Pelletier" <mjpelletier at mjpelletier.com>
Reply-To: "Michael J. Pelletier" <mjpelletier at mjpelletier.com>
 Subject: Fwd: LDAPv3 Support Broken Again...
      To: chuck at horde.org

Hello Chuck, I notice you did some work on this, the ldap.php file, could you
have accidently broken what I did below?

----- Forwarded message from mjpelletier at localhost -----
    Date: Fri, 13 Feb 2004 22:27:05 -0800
    From: mjpelletier at localhost
Reply-To: mjpelletier at localhost
 Subject: LDAPv3 Support Broken Again...
      To: horde at lists.horde.org

Hello,

I made a hack, thanks to Michael Dunston, to fix the broken LDAP support for
version three (LDAPv3) by adding the following to
Horde/framework/Auth/Auth/ldap.php

$ldap = @ldap_connect($this->_params['hostspec']);

/* This was added to support different LDAP versions. */
	if (isset($this->_params['version'])) {
            if (!ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION,
                                 $this->_params['version'])) {
                Horde::logMessage(
                    sprintf('Set LDAP protocol version to %d failed: [%d] %s',
                            $this->_params['version'],
                            ldap_errno($this->_connection),
                            ldap_error($this->_connection)),
                            __FILE__, __LINE__);
            }
        }

This change was added before every ldap_connect() in Auth/ldap.php. It worked
great. Today when I upgraded, via cvs, all-of-a-sudden things are broken again
as my ldap logs say "historical protocol version requested, use LDAPv3
instead". In other words, even though the code I added is still there, Horde is
still trying to use the old LDAPv2. Can someone please take a peak at this.

Thanks inadvance,
Michael Pelletier

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

----- End forwarded message -----


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

----- End forwarded message -----


-chuck

--
"Here, I brought some cole slaw. It's made from peeeooople! Just kidding."


More information about the dev mailing list