[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) (98.169.136.204)


When passing a protocol address (i.e. "ldap://127.0.0.1"; instead of a plain
hostname/IP address, i.e. "127.0.0.1" 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.