From: Jim H. <ha...@us...> - 2000-07-28 21:15:17
|
Use $results->code && die Net::LDAP::Util::ldap_error_text($results->code) instead of $results->code && die $results->error; to get the correct error text --Jim Harle On Fri, 28 Jul 2000, Graham Barr wrote: > ----- Forwarded message from Alex Kilimnik <sac...@ya...> ----- > > I have come to another roadblock and have not found > any documentation on the error I am receiving from > Perl during the execution of the script. The error I > am receiving from perl is "Died at ldap.pl line 9". > > Below is a copy of my code which I modeled after > your example in the perldoc. I apologize for > bothering > you, I am new to LDAP. > > use Net::LDAP; > > $ldap = Net::LDAP->new('x.x.x.x') or die "$@"; > $ldap->bind; > $results = $ldap->search( base => "o=xxxxxx.com", > filter => ="(&(sn=Jones))" > ); > $results->code && die $results->error; > foreach $entry ($results->entries) { > print "$entry->dump\n"; > } > $ldap->unbind; > > > Thanks in advance for any assistance. > > Regards, > Alex > > __________________________________________________ > Do You Yahoo!? > Kick off your party with Yahoo! Invites. > http://invites.yahoo.com/ > > > ----- End forwarded message ----- > > |