Hello, I'am trying the sample code in the documentation, and I get this error message : Can't locate object method "entry" via package "Net::LDAP::Bind" at ./ldap_test.pl line 7, <DATA> line 225. Here the code :
use Net::LDAP;
my $ldap = Net::LDAP->new ( 'myldapserver' ) or die $!;
my $mesg = $ldap->bind ( 'o=CERA,o=directoryRoot');
if ( $error = $mesg->code ) {
print "ERROR ", $mesg->code, "\n";
}
$entry = $mesg->entry;
$ldap->unbind;
