[horde] Problem with ICal / CalDav; RPC in Horde

Torsten Krah tkrah at fachschaft.imn.htwk-leipzig.de
Mon May 9 15:33:55 UTC 2011


Am Montag, 9. Mai 2011, 16:51:32 schrieb Torsten Krah:
> Horde_Imap_Client requires a username and password.

Did some bugfix to the code.
The error seems to me that the Horde_Imap_Client does need username and 
password - but the object is going to be created too, if none is set - so to 
me the solution seems to be, not to call _getOb if either one of them is 
undefined.

So i did this fix:

--- /tmp/Imap.php	2011-05-09 15:32:35.000000000 +0000
+++ /usr/share/php/Horde/Auth/Imap.php	2011-05-09 15:29:28.000000000 +0000
@@ -82,6 +82,9 @@
      */
     protected function _authenticate($userId, $credentials)
     {
+	if(empty($userId) || empty($credentials)) {
+            throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN);
+	}
         try {
             $ob = $this->_getOb($userId, $credentials['password']);
             $ob->login();


Now it works - i am asked via basic auth for credentials and can download the 
file.

regards

Torsten



-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
	-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1996 bytes
Desc: not available
URL: <http://lists.horde.org/archives/horde/attachments/20110509/056a516e/attachment.bin>


More information about the horde mailing list