[horde] EMERG: HORDE-BETA Missing required state object [pid 15927 on line 122 of "/usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php"]

Simon B simon.buongiorno at gmail.com
Mon Jan 6 09:55:58 UTC 2014


On 4 January 2014 21:51, Michael J Rubinsky <mrubinsk at horde.org> wrote:
>
> Quoting Simon B <simon.buongiorno at gmail.com>:
>
>> On 4 Jan 2014 20:45, "Michael J Rubinsky" <mrubinsk at horde.org> wrote:
>>>
>>>
>>>
>>> Quoting Simon B <simon.buongiorno at gmail.com>:
>>>
>>> <snip>
>>>
>>>
>>>>> What do you have configured as the authentication method for
>>>>> ActiveSync?
>>>>
>>>>
>>>> Is it correct for your situation?
>>>>
>>>> Eventually I'd like to move to http basic with certificates, but for now
>>>> I'm just using http-basic.
>>>
>>>
>>>
>>>
>>> I really have no idea, then. You are going to need to trace this
>>
>> yourself. Start in Horde_Core_ActiveSync_Driver::authenticate() and see
>> where the login is failing.
>>
>> I understood all the words...
>>
>> Trace this myself, got it.
>> Start in Horde_Core_ActiveSync_Driver::authenticate(), sounds logical.
>>
>> But, er.... help!?
>>
>> Do you have a debug call or something I can put in there?
>
>
> Yeah, sorry.
>
> Horde::debug($variable_name);
>
> Will output the contents of said variable to horde_debug.txt in your tmp
> directory. The call on line 216 is probably the one that you are most
> interested in.


Hi Michael

Introducing Horde::debug($username); and Horde::debug($password);
after line 216 of
"/usr/share/git-horde5/framework/Core/lib/Horde/Core/ActiveSync/Driver.php"
yields:

==> /tmp/horde_debug.txt <==
2014-01-06T08:59:32+00:00 DEBUG: Variable information:
string(17) "simon at example.net"

Backtrace:
1. Horde_Rpc_ActiveSync->getResponse() /usr/share/git-horde5/horde/rpc.php:156
2. Horde_ActiveSync->handleRequest()
/usr/share/git-horde5/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:122
3. Horde_ActiveSync->authenticate()
/usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync.php:723
4. Horde_Core_ActiveSync_Driver->authenticate()
/usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync.php:561
5. Horde::debug()
/usr/share/git-horde5/framework/Core/lib/Horde/Core/ActiveSync/Driver.php:217

2014-01-06T08:59:32+00:00 DEBUG: Variable information:
string(18) "CorrectPassword"

Backtrace:
1. Horde_Rpc_ActiveSync->getResponse() /usr/share/git-horde5/horde/rpc.php:156
2. Horde_ActiveSync->handleRequest()
/usr/share/git-horde5/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:122
3. Horde_ActiveSync->authenticate()
/usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync.php:723
4. Horde_Core_ActiveSync_Driver->authenticate()
/usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync.php:561
5. Horde::debug()
/usr/share/git-horde5/framework/Core/lib/Horde/Core/ActiveSync/Driver.php:218

This tells me nothing other than than the variables being entered are
actually correct (well, at least this wasn't all my fat fingers).  I
still see no authentication attempt in the IMAP server logs (but then
should I expect to - I mean I don't see authentication attempts for
every activesync attempt, so probably not).


In an effort to attempt to look competent, I added
Horde::debug($result); to
/usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync.php:561
and /usr/share/git-horde5/framework/ActiveSync/lib/Horde/ActiveSync.php:723
but neither of these resulted in extra output in horde_debug.txt

Neither did adding  Horde::debug($this); to
/usr/share/git-horde5/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:122

Then I did something wrong.  Adding debugs for for the variables on
/usr/share/git-horde5/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:122
and /usr/share/git-horde5/horde/rpc.php:156 resulted in 24k lines out
output :)  Including details about my entire installation and all
related configs.

Could it be that ActiveSync is somehow trying to sync against the
horde DB and not against the IMAP server?  Should I turn on logging in
mysql to see if the database is actually being asked for the
information?  The device is still returning the information that the
credentials are incorrect.

Thanks.

Simon


More information about the horde mailing list