Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
P is for Practical
 
PerlMonks  

Re: Error connecting to LDAP via Net::LDAPS

by Khen1950fx (Canon)
on Mar 05, 2011 at 05:51 UTC ( #891538=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Error connecting to LDAP via Net::LDAPS
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://891538]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2013-05-25 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (516 votes), past polls