6.0.0-beta1
8/29/25

[#13858] Horde/Ldap.php gives connection error with ldaps:// server.
Summary Horde/Ldap.php gives connection error with ldaps:// server.
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester pouyan.azari (at) uni-wuerzburg (dot) de
Created 02/11/2015 (3852 days ago)
Due
Updated 02/12/2015 (3851 days ago)
Assigned 02/12/2015 (3851 days ago)
Resolved 02/12/2015 (3851 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/12/2015 03:42:21 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
02/12/2015 03:23:50 PM pouyan (dot) azari (at) uni-wuerzburg (dot) de Comment #4 Reply to this comment
Try this?
Yes, It is working now. :)
02/12/2015 11:42:49 AM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
Try this?
02/12/2015 11:42:41 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 08018cb1b078c3e7576dbb4bee4477484cd7745e
Author: Jan Schneider <jan@horde.org>
Date:   Thu Feb 12 12:42:43 2015 +0100

     [jan] Fix connection if using ldaps:// scheme (Bug #13858).

  framework/Ldap/lib/Horde/Ldap.php |    4 +++-
  framework/Ldap/package.xml        |    4 ++--
  2 files changed, 5 insertions(+), 3 deletions(-)

http://github.com/horde/horde/commit/08018cb1b078c3e7576dbb4bee4477484cd7745e
02/12/2015 11:16:17 AM Jan Schneider Queue ⇒ Horde Framework Packages
Version ⇒
 
02/11/2015 04:45:37 PM pouyan (dot) azari (at) uni-wuerzburg (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Horde/Ldap.php gives connection error with ldaps:// server.
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

After updating to version  5.2.5 from the previous one, Ldap.php gives 
connection error. I checked a little bit and I think it could be the 
line:

@fsockopen($host, $this->_config['port'], $errno, $errstr, 
$this->_config['timeout']))

when you set $host=ldaps://auth.host.com it dosen't work. with 
ldap_connect it has no problem to connect.

*http://php.net/manual/en/function.fsockopen.php
*http://php.net/manual/en/function.ldap-connect.php

Saved Queries