[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7169) When using protocol address, port parameter is ignored on connect

Full_Name: Marcel Esser
Version: 2.4
OS: Ubuntu Lucid
URL: http://pastebin.com/TzNGmUCL
Submission from: (NULL) (

When passing a protocol address (i.e. "ldap://"; instead of a plain
hostname/IP address, i.e. "" to libldap, connect seems to ignore the
port number parameter and always use 389/636 instead.

Issue with libldap 2.4 on Ubuntu Lucid. Note that in the example below, the PHP
wrapper for libldap passes the strings on to the library unmodified. Detail
system information is at the bottom. Linked against /usr/lib/libldap-2.4.so.2

Use case illustrated in attached URL.