From 47f3b906c5c8e31ac539cdacefbb90b17c246131 Mon Sep 17 00:00:00 2001 From: Peter Marschall Date: Sat, 1 Oct 2011 17:13:45 +0200 Subject: [PATCH] make sure to call the correct as_string() As $f is not an object, calling $f->as_string fails. Tell Perl where to find the as_string we want. While I'm at it, make some minor changes to the documentation. --- lib/Net/LDAP/Control/Assertion.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Net/LDAP/Control/Assertion.pm b/lib/Net/LDAP/Control/Assertion.pm index 39b1ab6..e7a0b54 100644 --- a/lib/Net/LDAP/Control/Assertion.pm +++ b/lib/Net/LDAP/Control/Assertion.pm @@ -35,7 +35,7 @@ sub assertion { } elsif (exists $self->{value}) { my $f = $Filter->decode($self->{value}); - $self->{asn} ||= $f->as_string + $self->{asn} ||= Net::LDAP::Filter::as_string($f) if (ref $f); } @@ -84,7 +84,7 @@ manipulation of objects that represent the C as described by RFC 4528. The C allows the client to specify a condition, an assertion, -that must be true for the operation to be processed normally. +that must be TRUE for the operation to be processed normally. Otherwise, the operation is not performed. For instance, the control can be used with the Modify operation to perform atomic "test and set" and "test and clear" operations. @@ -102,7 +102,7 @@ L the following are provided. =item assertion => FILTER -A filter specifying the assertion that must valuate to true in order to make the +A filter specifying the assertion that must evaluate to TRUE in order to make the operation process normally. =back