On Fri, Oct 07, 2005 at 07:17:53PM -0400, SR, ESC wrote:
> Le ven 2005-10-07 a 18:57:54 -0400, Simon Law <[EMAIL PROTECTED]> a dit:
> > Man, that's too bizarre.  Like, Net::LDAP::new _knows_ how to get
> > https:// and use SSL.  If you fire up the Perl debugger, does it at
> > least try to use SSL?
> 
> AFAIK, doesn't seem to: i see lookjups in */ASN1/*/*.pm 
> (Convert/ASN1/_encode.pm) 
> but no Net::LDAPS look ups, and it still looks up on port 389:
> 
> Net::LDAP::_connect(/usr/lib/perl5/Net/LDAP.pm:119):
> 119:      $ldap->{net_ldap_socket} = IO::Socket::INET->new(
> 120:        PeerAddr => $host,
> 121:        PeerPort => $arg->{port} || '389',
> 122:        Proto    => 'tcp',
> 123:        Timeout  => defined $arg->{timeout}
> 124:                     ? $arg->{timeout}
> 125:                     : 120
> 126:      );
>   DB<1> 

Poking around on your machine, I figured out the problem.

You have an old installation of Net::LDAP in /usr/lib/perl5, but the
correct Debian version is /usr/share/perl5.  Unfortunately, @INC prefers
/usr/lib/perl5 because that's for locally installed packages.

I suggest removing the old Net::LDAP from /usr/lib/perl5, because you
don't need it.

When I forced finger-ldap to use Debian's version of the library,
everything worked just peachy.

-- 
Simon Law                                 http://www.law.yi.org/~sfllaw/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to