Hello,

I'm fairly new to using SSL, so please don't be too harsh.  I've looked in
different places, but couldn't find anything useful about the error I'm
getting...  Here's a simple sample script:

use Net::LDAP;

$ldap = Net::LDAP->new('server', onerror => 'warn', debug=>'8');

$ldap->start_tls(verify => 'require',
                capath => '/usr/local/ssl/CA/',
                clientcert => '/usr/local/ssl/certs/mine.pem',
                clientkey => '/usr/local/ssl/private/mine.pem',
                onerror => 'warn',
                version => '3'
                ) or die $ldap->error;

$ldap->bind();
...

I'm getting a "Protocol error at ./ldapAuthenticate.pl line 7" (which is the
start_tls line), does that say anything obvious that I should be catching?
The server I'm trying to connect to is running LDAP v3, and I've been able
to bind, search, etc. without the start_tls().

Martin


Reply via email to