[Kolab-devel] php failure undefined method Horde_Kolab_Server_ldap::uidForIdOrMail (openSUSE native)

Richard Bos ml at radoeka.nl
Tue Feb 17 22:59:58 CET 2009


Op zondag 15 februari 2009 21:32:46 schreef Richard Bos:
> 203             $dn = $server->uidForIdOrMail($recipient);
> 204             if (is_a($dn, 'PEAR_Error')) {
> 205                 return $dn;
> 206             }

if I replace line 203 above with an straight assignment, the email is 
delivered succesfully!:

202         foreach ($this->_recipients as $recipient) {
203             # $dn = $server->uidForIdOrMail($recipient);
204             $dn = "cn=Rich Boss,dc=radoeka,dc=nl";
205             if (is_a($dn, 'PEAR_Error')) {
206                 return $dn;
207             }
208             if (!$dn) {
209                 Horde::logMessage(sprintf('User %s does not exist!', 
$recipient),
210                                   __FILE__, __LINE__, PEAR_LOG_DEBUG);
211             }
212             $user = $server->fetch($dn, KOLAB_OBJECT_USER);
213             if (is_a($user, 'PEAR_Error')) {
214                 $user->code = OUT_LOG | EX_NOUSER;
215                 return $user;
216             }

I find this weird as the rest of code uses $server-> too, like e.g. the fetch 
method on line 212.  The fetch and the uidForIdOrMail or both defined in the 
same source file...

Any idea why the uidForIdOrMail is not found?  Is the include path perhaps 
incorrect, where one uidForIdOrMail overwrites the other?

-- 
Richard




More information about the devel mailing list