[imp] mimp: double authentication

Matthew Wells Sanders msanders at integts.com
Sun Apr 26 15:27:38 UTC 2009


Greetings,

Sorry that no one has answered this yet.  I am not a GURU, but I resolved
this problem for myself and figure others are in the same boat, so I will
make this public.

I did everything you did and still had the same issue with Composite
Authentication.  

I am connecting with a Windows Mobile device, and that particular agent
string was not being recognized by the Horde/Browser.php script located in
[wwwroot]/horde/lib/Horde/Browser.php.  In my case, I changed some lines in
this file...  an excerpt is pasted below.  To find it in the file, search
for the first part of the comment block.
-------  Begin Browser.php ---------
                 /* Some Handhelds have their screen resolution in the
                 * user agent string, which we can use to look for
                 * mobile agents.   

                 *This has been atered from the following
		 * to fix a bug in correctly identifying mobil browsers...  MWS 20090425
 
                if (preg_match('/; (120x160|240x280|240x320|320x320)\)/',
$this->_agent)) {
                    $this->_mobile = true;
                }

                Replaced with code from below   */

		if ((preg_match('/; (120x160|240x280|240x320|320x320)\)/', $this->_agent))
||
		   (preg_match('/(120x160|240x280|240x320|320x320)\)/', $this->_agent)) ||
			(preg_match('/Window Mobile/', $this->_agent))) {
                    $this->_mobile = true;
-------------------  End -------------------------
The reason that this worked for me is that when I looked in the log file, I
had the following...
------------ access.log ------------------
208.98.140.18 - - [25/Apr/2009:21:43:49 -0600] "GET /horde/imp/login.php
HTTP/1.1" 200 2735 "http://www.integts.com/" "Mozilla/4.0 (compatible; MSIE
6.0; Windows CE; IEMobile 6.12) 320x320; VZW; UTStar-XV6800; Window Mobile
6.0 Professional;"
------------ End --------------------
I left the original reg expression because it won't hurt to do so, but added
two others that appeared to be true for my particular phone.  The first one
didn't seem to work, but the second one did.  Note that it was reporting as
'Window Mobile' in the singular...  Hope this helps.  I have a feeling that
hacks such as this one are going to be necessary in the future, as the
technology changes faster than I am willing to do updates on this beast. 
Now I will have to worry about the other employees wanting all of their
phones to work too.  At least now I know how to hack this problem.

Respectfully,
Matthew Wells Sanders


drrrl wrote:
> 
> Hi Gurus,
> 
> I have just added Mimp H3 (1.0.1) to my Horde (3.1.4) installation.  
> After successful configuration I have a problem with double  
> authentication.
> 
> 

-- 
View this message in context: http://www.nabble.com/mimp%3A-double-authentication-tp10601773p23239338.html
Sent from the Horde - IMP mailing list archive at Nabble.com.



More information about the imp mailing list