From: Dan G. L. <dan...@ta...> - 2001-04-08 10:30:33
|
On Friday 06 April 2001 09:17, you wrote: | I'm still having trouble trying to get output from my LDAP MS Exchange | script. | I'm getting error 11 and error 87 when I do searches and no data. | How do I translate the error code to a description? It might help me make | more progress: I had a similar problem Ian. Grahams docs explain them very well. Here is an example of a compare. use Net::LDAP::Util qw(ldap_error_text ldap_error_name); use Net::LDAP::Constant qw(LDAP_COMPARE_TRUE LDAP_COMPARE_FALSE); . . . # Query the LDAP-server $mesg = $ldap->compare( $dn, attr => $attr, value => $value, ); if ($mesg->code == LDAP_COMPARE_TRUE){ print "$thissubr: compare ok\n"; } elsif ($mesg->code == LDAP_COMPARE_FALSE) { print "$thissubr: compare notok\n"; } else { print "$thissubr compare error: " . ldap_error_text($mesg->code) . "\n"; } Dan -- Dan G. Lunde - dan...@c2... http://home.world-online.no/~danglund/pgp/pgp...@c2...c |