rodbass63 has asked for the wisdom of the Perl Monks concerning the following question:

I’m having an issue with Net::LDAP when I enable it with TLS. Below is the code. If you look at the verify option, its set to ‘none’. I don’t have an issue with it set to ‘none’, however; when I set verify to ‘require’, I’m getting: ‘Bad File Descriptor’.

my $ldap = Net::LDAP->new( $host, version => 3 ); if( !$ldap ) { return new Core::ErrorValue("LDAPError", $@ ); } my $mesg = $ldap->start_tls( verify => 'none', sslversion => 'sslv3', capath => '/etc/openldap/cacerts' ); my $mesg = $ldap->bind( $bindstring, password => $password);

Any help will be greatly appreciated.

Replies are listed 'Best First'.
Re: Net::LDAP 'Bad file descriptor'
by Anonymous Monk on Jul 29, 2013 at 22:39 UTC

    Are your certificates in PEM formats? Please, check Net::LDAP