Jo De Troy wrote:

I'm trying to setup a secure LDAP connection and I get the error
IO::Socket:SSL: Timeout

The code is below:
my $ldap = Net::LDAPS->new($server, verify => 'required', capath =>
'somepath') || die $!; $ldap->bind ($BINDDN, password => $pwd, version
=> 3);


Have you tried explicitly setting the port, i.e.

 - Net::LDAPS->new($server, port=>636, ......

Assuming your <$server> is listening for ldaps connections
on 636.

Si

Reply via email to