It was not intentional, just an oversight.
Net::LDAP::Message::is_error returns true for any value that is not LDAP_SUCESS,
each sub-class needs to override if they need something different, for example
However, my original thought was that acceptable codes should be passed
to the method. Some people may not want referral others do. So those that do
would need add
$ldap->search( ..., allow => [ LDAP_REFERRAL ]);
which would prevent LDAP_REFERRAL from being treated as an error.
I just never got that far :)
On Wed, Jul 18, 2001 at 10:22:39AM +0100, Chris Ridd wrote:
> It appears as though if a search receives a referral (and maybe a
> continuation reference, but I haven't checked this), this is considered by
> Net::LDAP::Message::is_error to be an error and therefore the 'onerror'
> handler gets called.
> Is this intentional? It is bad news if onerror is set to 'die' and the
> server returns a referral :-(