[Kolab-devel] [issue977] Kolab suppresses ldap error messages

Bernhard Herzog kolab-issues at intevation.de
Tue Nov 8 18:25:58 CET 2005


New submission from Bernhard Herzog <bh at intevation.de>:

In perl-kolab, ldap connections are created with the parameter onerror => 'undef'. 

This onerror parameter means that the a $ldap->search in Kolab/Conf.pm 
returns undef on failure, not a message object with an error code as expected by
the code, so the if ($mesg->code) in e.g. Conf.pm line 262 fails with the error
message:

 Can't call method "code" on an undefined value

No information about the ldap error is printed or logged.

A way to get a better message is to use 'warn' as the onerror parameter which at
least prints a message about the real error to stderr.  Even better might be to
use a callback that uses kolab's log mechanism.

----------
assignedto: steffen
messages: 5803
nosy: bh, steffen
priority: bug
status: unread
title: Kolab suppresses ldap error messages
topic: server
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue977>
________________________________________________




More information about the devel mailing list