On 3/10/03 6:50 pm, Dan Swanson <[EMAIL PROTECTED]> wrote:
> I am on Unix (Solaris 2.8). When I add the "-w" and the "use strict" I get one
> additional error message.
> 
> IO::Socket::SSL:  at /usr/perl5/site_perl/5.005/Net/LDAPS.pm line 20
> IO::Socket::SSL:  at ./ldaps.pl line 6.
> 
> Line 20 of LDAPS.pm is the   $ldap->{'net_ldap_socket'} = IO::Socket::SSL->new
> command.
> 
> I can connect if I use "new Net::LDAP" instead of "new Net::LDAPS", but I am
> assuming that wouldn't use SSL and it won't let me perform a password change
> on the Active Directory server. I will test it and see.

You missed a subtle bit of my suggestion: the argument to Net::LDAP->new
should be an ldaps URL. It makes Net::LDAP->new use an IO::Socket::SSL
socket instead. I suspect it won't make a difference, but it is worth a try.

What version of Net::LDAP are you using?

Does IO::Socket::SSL actually work on your box? Did 'make test' in the
IO-Socket-SSL distribution work?

Is your server (AD?) listening on the LDAPS port? Just try making a
connection to port 636 (I think) using telnet. If you get a 'connected' the
server's listening.

Cheers,

Chris

Reply via email to