>perl
use Net::LDAP;
use Net::LDAP::Bind;
$ldap = Net::LDAP->new ('server1.example.com' ) or die "$@";
print $ldap;
print "\n";
$mesg = $ldap->bind("cn=Users,Dc=example,dc=com");
print "$mesg\n";
die "Bind failed: ", $mesg->error_name,"\n", if $mesg->code;
foreach $entry ($mesg->entries) { $entry->dump; }
^D
Net::LDAP=HASH(0x1c37684)
Net::LDAP::Bind=HASH(0x3a5fc20)
Can't locate object method "entries" via package "Net::LDAP::Bind" (perhaps you forgot to load "Net::LDAP::Bind"?) at - line 8, <DATA> line 283.
>
I am getting this error while running this script, can anybody please help me and tell me where I am going wrong ?
thanks, Nikhil