in reply to Checking HTTPS and LDAPS thru UNIX

take a look at the perldoc for the modules and try to follow their examples.

my $ldap = Net::LDAPS->new( 'hostname' ) or die "$@";

then you might get an error message that tells you what's wrong with your code.

and it is a bit deep in the docs, but you can try this:

my $ldap = Net::LDAPS->new( 'hostname', verify => 'none' ) or die "$@";

or even

my $ldap = Net::LDAP->new( 'myhost.example.com', version => 3 ); my $mesg = $ldap->start_tls( verify => 'require', clientcert => 'mycert.pem', clientkey => 'mykey.pem', decryptkey => sub { 'secret'; }, capath => '/usr/local/cacerts/' );

the other possibility is that the UNIX system is missing IO::Socket::SSL and/or the openssl libraries that these modules use. getting error messages will help you find out what's happening.

Replies are listed 'Best First'.
Re: Re: Checking HTTPS and LDAPS thru UNIX
by JamesNC (Chaplain) on Dec 13, 2003 at 13:19 UTC
    Zengargoyles last comment was my first idea, so I would look there first as it absolutely will be the problem if you don't have the libs on the Unix box.
    The two libs on win32 are libeay32.dll and ssleay32.dll on Unix I think they are libcrypto.a and libssl.a ( asuming OpenSSL). I would imagine that just looking for the openssl directory would key you into a place to look right away. If they are there... just verify they are in your path.
    JamesNC