in reply to Error connecting to LDAP via Net::LDAPS

Use Net::LDAP::Server::Test. Specifically, in the test directory, use 01-ldap.t.

Here's how I used your code:

#!/usr/bin/perl use strict; use warnings; use Net::LDAPS; my $ldap = Net::LDAPS->new( server => 'ldaps://127.0.0.1', verify => 'require', capath => '/etc/openssl/cacerts/' ) or die $@;
At first, I tried 'localhost', but it kept coming back at me with a 'badname' exception. Also, I used 'ldaps://' for the server. It worked.