From: Viktor L. <le...@lu...> - 2001-07-05 22:17:54
|
Well, what it does is set the result code of the operation, you should compare them with the constants LDAP_COMPARE_TRUE and LDAP_COMPARE_FALSE, something like this works for me: if ( $result->code == LDAP_COMPARE_TRUE ) { print "'$value' matched\n"; } else { print "'$value' did not match, or something went wrong.\"; } > ----- Forwarded message from mic...@ko... ----- > > Date: Thu, 5 Jul 2001 17:23:43 -0400 > To: gb...@po... > From: mic...@ko... > Subject: Perl-LDAP compare > > > > From: Mike J Kozakiewicz > > Graham, I am trying to determine if I can use "compare" to do a simple > authentication against a password field in my LDAP compliant directory. I > cannot figure out what "compare" returns. My search of the documentation did > not help. Can you suggest where I can find this information? > > > > ----- End forwarded message ----- > > > -- Viktor Leijon (le...@lu...) |