Using Net::LDAPS

2003-10-03 Thread Dan Swanson
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::LDAP

Re: Using Net::LDAPS

2003-10-03 Thread Peter Marschall
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 "N

RE: Using Net::LDAPS

2003-10-03 Thread Dan Swanson
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 Uni

Re: Using Net::LDAPS

2003-10-03 Thread Chris Ridd
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 in

Re: Using Net::LDAPS

2003-10-03 Thread Peter Marschall
On Friday 03 October 2003 19:19, Dan Swanson 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.

RE: Using Net::LDAPS

2003-10-03 Thread Dan Swanson
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 com

Re: Using Net::LDAPS

2003-10-03 Thread Christopher A Bongaarts
In the immortal words of Dan Swanson: > 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. It won't; you should get a WILL_NOT_PERFO

Re: Using Net::LDAPS

2003-10-03 Thread Chris Ridd
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

RE: Using Net::LDAPS

2003-10-03 Thread Dan Swanson
I'm pretty sure our AD server is set up with SSL. When I try to use the Net::LDAPS with the wrong port number I get a "connection refused". Dan Swanson Programmer / Analyst / System Admin George Fox University 503.554.2576 -Original Message- From: Christopher A Bongaarts [mailto:[EMAIL

RE: Using Net::LDAPS

2003-10-03 Thread Dan Swanson
I found out that only one of our AD server pool is listening (and responding!) on the SSL port. I changed my Perl script to connect to that specific AD server and am getting better results. I am still getting an error (see below) trying to change the unicodePWD, but I think this is now an AD con