6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5864] LDAP SessionHandler dosn't respect the version parameter
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ .___..__.. . [__)| \ | | || | [__)|__/ | |__\|__|
Comment
> we recognised that horde 3.1.5 is not able to authenticate users > against a openldap 2.3.39 directory serve. This is the error message: > > > > res_errno: 2, res_error: <historical protocol version requested, use > LDAPv3 instead>, res_matched: <> > > > > in the apache log when we set the ldap debug level 7. > > > > we found at last that ldap_connect always is preceeded by the > ldap_set_option call for parameter LDAP_OPT_PROTOCOL_VERSION except > in procedure open of the ldap SessionHandler. We fixed it by copying > the appropriate if clause out of the Auth/ldap.php : Patch is > > > > *************** > > *** 38,45 **** > > --- 38,57 ---- > > */ > > function open($save_path, $session_name) > > { > > $this->_conn = @ldap_connect($this->_params['hostspec'], > $this->_params['port']); > > + > > + if (isset($this->_params['version'])) { > > + if (!ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, > > + $this->_params['version'])) { > > + Horde::logMessage(sprintf('Set LDAP protocol > version to %d failed: [%d] %s', > > + $this->_params['version'], > > + ldap_errno($conn), > > + ldap_error($conn)), > > + __FILE__, __LINE__, PEAR_LOG_ERR); > > + } > > + } > > + > > return @ldap_bind($this->_conn, $this->_params['dn'], > $this->_params['password']); > > } > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers