- or download this
my $ldap = Net::LDAPS->new( 'hostname' ) or die "$@";
- or download this
my $ldap = Net::LDAPS->new( 'hostname', verify => 'none' )
or die "$@";
- or download this
my $ldap = Net::LDAP->new( 'myhost.example.com', version => 3 );
my $mesg = $ldap->start_tls(
...
decryptkey => sub { 'secret'; },
capath => '/usr/local/cacerts/'
);