[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"]
Michael J Rubinsky
mrubinsk at horde.org
Mon Jan 6 16:47:41 UTC 2014
Quoting Michael J Rubinsky <mrubinsk at horde.org>:
> Quoting Simon B <simon.buongiorno at gmail.com>:
>
>>> 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).
>
> You *should* see IMAP login for each discreet ActiveSync connection.
>
>
>> 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
>
> It's not clear from your comment exactly where you placed the debug
> call in relation to the authenticate calls, but this is probably
> expected since it seems that authentication fails in the Core driver.
>
>
>> Neither did adding Horde::debug($this); to
>> /usr/share/git-horde5/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:122
>
> Again, without knowing exactly where the line was in relation to the
> other code (since 122 currently has code on it), not sure. Though
> it's worth mentioning the conditional on that line deals only with
> OPTIONS requests.
>
>> Then I did something wrong. Adding debugs for for the variables on
>> /usr/share/git-horde5/framework/Rpc/lib/Horde/Rpc/ActiveSync.php:122
>
> *What* variables?
>
>
>> 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?
>
> ActiveSync uses the authentication driver configured for Horde. If
> this is IMAP (or Application/IMP) then it will use the IMAP server.
Also, make sure that you have 'hordeauth' set appropriately in
imp/config/backends.local.php
--
mike
The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5849 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20140106/761f124f/attachment-0001.bin>
More information about the horde
mailing list