in reply to Error connecting to LDAP via Net::LDAPS
Here's how I used your code:
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.#!/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 $@;
|
|---|