Subject: | 'sub error' reports LDAP_RES_INTERMEDIATE as error |
Due to the changes from 3.0.2 to 3.0.3 errorize gets called for all
possible return values of ldap_search which is wrong since those are not
standard ldap error numbers, thus reporting return values like
LDAP_RES_INTERMEDIATE and LDAP_RES_SEARCH_ENTRY as UNKNOWN_ERROR and
LDAP_CANNOT_CANCEL when DEBUG is set.
The attached patch reverts the change.
Subject: | 3.0.3-ldap_result-no_error.patch |
diff --git a/LDAPapi.pm b/LDAPapi.pm
index 113d922..cba3b61 100644
--- a/LDAPapi.pm
+++ b/LDAPapi.pm
@@ -1355,8 +1355,8 @@ sub result
$self->{"result"} = $result;
$self->{"status"} = $status;
- $self->errorize($status);
if( $status == -1 || $status == 0 ) {
+ $self->errorize($status);
return undef;
}