php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51786 ldap_connect using host like ldaps://... ignores port parameter
Submitted: 2010-05-10 20:09 UTC Modified: 2010-05-11 11:11 UTC
From: andreas at andreaswacker dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.2.13 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andreas at andreaswacker dot com
New email:
PHP Version: OS:

 

 [2010-05-10 20:09 UTC] andreas at andreaswacker dot com
Description:
------------
Actually I am running PHP 5.2.12 
Sorry for the noise if this has been addressed.

ldap_connect can accept a host name and a port number. 

When the host name is specified via ldaps://hostnamehere/ then
the port number given as a parameter will be ignored. 
The workaround is easy:

ldaps://hostnamehere:portnumber

works. Easiest would be to update the documentation I guess.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-11 11:11 UTC] bjori@php.net
-Status: Open +Status: Bogus
 [2010-05-11 11:11 UTC] bjori@php.net
That is already documented:

"port
The port to connect to. Not used when using URLs."

See http://no2.php.net/ldap_connect
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 12:01:31 2024 UTC