Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Net::LDAPS SSL timeout

2 views
Skip to first unread message

Jo De Troy

unread,
May 30, 2007, 5:28:37 AM5/30/07
to perl...@perl.org
Hello,

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);

Can somebody tell me what I'm doing wrong?

I'm running perl 5.8.8-10 on CentOs5, perl-ldap-0.33, perl-IO-Socket-SSL 1.01
The LDAP server is a Fedora DirectoryServer 1.0.4
Plain ldapsearches work with SSL

Thanks for helping,
Jo

Si Smith

unread,
May 31, 2007, 8:48:29 AM5/31/07
to perl...@perl.org
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

0 new messages