Hi Alex,
I was wrong. It is not the lack of port that causes it to fail.
On the third line of the output below you can see the ldapsearch request wi=
thout the port has tried to construct a uri by appending "ldap://" to anoth=
er ldap uri.
$ ldapsearch -x -d 255 -h ldap://localhost
ldap_create
ldap_url_parse_ext(ldap://ldap:%2F%2Flocalhost)
ldap_err2string
Could not create LDAP session handle for URI=3Dldap://ldap:
%2F%2Flocalhost (-9): Bad parameter to an ldap routine
If you also specify the port it does not try to append "ldap://" to the fro=
nt of the hostname/uri. From an external point of view the behaviour is cor=
rect in that the command fails but the internal behaviour of the code is no=
t as intended.
Andy
-----Original Message-----
From: Alexandre Rosenberg [mailto:arekkusu@r42.ch]=20
Sent: 04 March 2018 12:30
To: Lawrence, Andy (MO MM R&D UK IXL); openldap-its(a)OpenLDAP.org
Subject: Re: (ITS#8618) ldapsearch - unexpected behavior with
=20