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. Dan Swanson Programmer / Analyst / System Admin George Fox University 503.554.2576 -----Original Message----- From: Peter Marschall [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 10:13 AM To: Dan Swanson; [EMAIL PROTECTED] Subject: Re: Using Net::LDAPS Hi, On Friday 03 October 2003 18:54, Dan Swanson wrote: > I am attempting to use Net::LDAPS so I can change Active Directory > passwords (from an earlier posting), but when I use "new" constructor, > nothing is returned to my $ldaps variable. When I run the script using > "Net::LDAP" instead of "Net::LDAPS", the LDAP hash is printed. Shouldn't > "new Net::LDAPS" return a hash? > > use Net::LDAPS; > > $ldaps = new Net::LDAPS('myserver.example.com'); > print "LDAPS:$ldaps\n"; Try it with error checking: $ldaps = new Net::LDAPS('myserver.example.com') or die "$@"; It won't make it work but it will give hints about the error. Calling the constructor with a debug argument might give even more clues. (see the Net::LDAP man mage for more information) 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 Peter -- Peter Marschall eMail: [EMAIL PROTECTED]