Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: ldapsearch in perl

by jose_m (Acolyte)
on Jan 08, 2013 at 15:04 UTC ( #1012256=note: print w/ replies, xml ) Need Help??


in reply to Re: ldapsearch in perl
in thread ldapsearch in perl

thanks Ravi. that seemed to help, but the error has changed, i am not getting connection refused.

Connection refused at ldap_process.pl line 15, <DATA> line 225


Comment on Re^2: ldapsearch in perl
Download Code
Replies are listed 'Best First'.
Re^3: ldapsearch in perl
by jose_m (Acolyte) on Jan 09, 2013 at 15:28 UTC

    ok folks so i decided to dump the module. all i needed was to make sure that i can bind so i settled for this: hope it helps someone:

    use IO::Socket; use Socket; my $port='3000'; $socket = new IO::Socket::INET->new(PeerAddr => $ip, PeerPort => $port, Proto => 'tcp', Timeout => 2, ) or print "could not create bind to $_. port $port: $@\n" and $e +xit_status=2 ; close($socket);

    you have to use gethostbyname to resolve the ip address for the given array of hosts. any questions, just ask.. thanks -jose.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2015-07-31 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls