Hi,

On 7/8/06, Chris Ridd <[EMAIL PROTECTED]> wrote:
On 7/7/06 6:07, Cai Qian <[EMAIL PROTECTED]> wrote:

> Hi,
>
> For Perl-LDAP 0.33, I try to $ldap->compare ($entry=>dn,
> attr=>'attribute', value=''), and it give me OPERATION_ERROR. However,
> if I use OpenLDAP's ldapcompare with "attribute:", it give me
> LDAP_COMPARE_TRUE. It seems to me Perl-LDAP sends an incorrect message
> to LDPA server.

It is working for me here, as is ldapcompare. In fact turning up debug in
Net::LDAP and ldapcompare reveals the exact same bytes are sent for the
compare operation so you'd expect it to work the same.

Can you do the same ($ld->debug(15) with Net::LDAP and pass -d 255 to
ldapcompare) and see if you can spot any differences?

Cheers,

Chris

In fact, it is a bug in the testing server, which is unable to handle
comparing with NULL value with a control parameter (even empty).
Thanks for the help.

Qian

Reply via email to