On 3/10/03 6:19 pm, Dan Swanson <[EMAIL PROTECTED]> wrote:

> OK. I tried it with error checking and got the following message when it died:
> 
> IO::Socket::SSL:  at ./ldaps.pl line 7.
> 
> So the error seems to be occurring in the IO::Socket::SSL when calling "new
> LDAPS", but not much detail into why.

Are you running your script with the '-w' flag and with 'use strict' and
'use Carp'? It may not make a difference here, but every little bit of
diagnostics helps :-)

The other thing to try is to use the normal Net::LDAP constructor directly.
Net::LDAPS::new is now just a compatibility method; the actual work goes on
in Net::LDAP::new instead. Maybe the compatibility code's busted.

    $ldaps = Net::LDAP->new("ldaps://foo.example.com") or die;


Peter Marschall writes:
> If you try to do this on windows you might be out of luck.
> AFAIK the SSL support relies pretty much un Un*x-like OS'ses

I'm not really sure that's true, but I've never tried it on Windows. I don't
see any reason why IO::Socket::SSL and Net::SSLeay wouldn't work on Windows,
though I understand that Windows folk might not be able to easily build
binary modules, and since the ActiveState^H^H^H^H^H^H^H^H^H^HSophos perl
distro doesn't include them...

So it ought to only be harder on Windows, not impossible. But that's the way
it should be ;-))

Cheers,

Chris

Reply via email to