<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Password lost during hordeauth authentication via API</title> 
  <pubDate>Fri, 10 Apr 2026 01:39:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9733</link> 
  <atom:link rel="self" type="application/rss+xml" title="Password lost during hordeauth authentication via API" href="https://bugs.horde.org/ticket/9733/rss" /> 
  <description>Password lost during hordeauth authentication via API</description> 
 
   
   
  <item> 
   <title>This is very vaguely because I wasn&#039;t able to track this dow</title> 
   <description>This is very vaguely because I wasn&#039;t able to track this down yet. It&#039;s not a showstopper either, because everything still works fine.

My horde log is full of:

2011-03-28T15:57:42+02:00 ERR: HEADHORDE [imp] IMAP error: Login failed: authentication failure [pid 2042 on line 212 of &quot;/home/jan/horde-git/framework/Imap_Client/lib/Horde/Imap/Client/Base.php&quot;]
2011-03-28T15:57:42+02:00 ERR: HEADHORDE [imp] IMAP server denied authentication. [pid 2042 on line 212 of &quot;/home/jan/horde-git/framework/Imap_Client/lib/Horde/Imap/Client/Base.php&quot;]
2011-03-28T15:57:42+02:00 INFO: HEADHORDE [imp] FAILED LOGIN for jan (Horde user jan) [109.250.42.72] to {localhost:143} [pid 2042 on line 200 of &quot;/home/jan/horde-git/imp/lib/Auth.php&quot;]

Coming from ActiveSync requests. I&#039;m using LDAP authentication in Horde and hordeauth in IMP. Transparent authentication to IMP using the web interface works flawlessly.
I tracked it down as far as the password not being passed to the auth driver.</description> 
   <pubDate>Mon, 28 Mar 2011 14:02:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t62713</link> 
  </item> 
   
  <item> 
   <title>Duplicate of Bug #9718?</title> 
   <description>Duplicate of Bug #9718?</description> 
   <pubDate>Mon, 28 Mar 2011 20:09:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t62728</link> 
  </item> 
   
  <item> 
   <title>&gt; Duplicate of Bug #9718?

I&#039;ll answer my own question: No</title> 
   <description>&gt; Duplicate of Bug #9718?

I&#039;ll answer my own question: No.  #9718 dealt with trying to do IMAP actions on a server that had not yet been authenticated to.  This ticket is about the password not being passed around.</description> 
   <pubDate>Mon, 28 Mar 2011 20:55:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t62738</link> 
  </item> 
   
  <item> 
   <title>Bumping, because this might cause users to get locked out du</title> 
   <description>Bumping, because this might cause users to get locked out due to too many failed logins.</description> 
   <pubDate>Tue, 12 Apr 2011 14:27:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63543</link> 
  </item> 
   
  <item> 
   <title>Are you 100% sure these are coming from AS requests? I ask b</title> 
   <description>Are you 100% sure these are coming from AS requests? I ask because you said that you are using LDAP auth.  Since you are not using application/imp auth, IMP should only be polling the IMAP server when IMP is being accessed directly, right?

There *should* be nothing in an ActiveSync request that attempts to access IMP, so IMP should not be attempting to authenticate to the IMAP server.

The only thing I&#039;m able to come up with is that since we set authentication =&gt; none when we initialize Horde in rpc.php, something in the Horde application initialization process (maybe checking permissions on each installed app when listing apps?) is hitting IMP.
</description> 
   <pubDate>Thu, 14 Apr 2011 04:54:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63703</link> 
  </item> 
   
  <item> 
   <title>I&#039;m 95% sure, because this always coincides with an AS reque</title> 
   <description>I&#039;m 95% sure, because this always coincides with an AS request. BUT it doesn&#039;t happen with *all* requests (anymore). The question is not why IMP is being called though, I&#039;m pretty sure that this is coming from the new mail notification decorator.
The question is, what happens to the password, and why is it not passed to IMP?</description> 
   <pubDate>Thu, 14 Apr 2011 08:00:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63712</link> 
  </item> 
   
  <item> 
   <title>We always geht the same error messages when trieing to coone</title> 
   <description>We always geht the same error messages when trieing to coonect with active sync. 

horde with imp auth
</description> 
   <pubDate>Thu, 14 Apr 2011 10:28:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63722</link> 
  </item> 
   
  <item> 
   <title>Maybe related to the fact that there is no session created f</title> 
   <description>Maybe related to the fact that there is no session created for AS requests?

A separate issue thuough is why the new mail notifications are even chcecked when calling code that would never be able to do anything with them. Seems like a waste of resources to me.</description> 
   <pubDate>Thu, 14 Apr 2011 13:32:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63726</link> 
  </item> 
   
  <item> 
   <title>&gt; Maybe related to the fact that there is no session created</title> 
   <description>&gt; Maybe related to the fact that there is no session created for AS requests?

This is a somewhat big issue for those of us that use imp authentication (not really the point of this bug, but going to mention anyway).  Every AS request causes IMP to initialize and create its session information.

An alternative would be to use imap authentication in horde and hordeauth in IMP.  But this is not optimal at the moment because two separate IMAP connections will be made - one in IMAP auth and one in IMP.
</description> 
   <pubDate>Thu, 14 Apr 2011 17:14:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63740</link> 
  </item> 
   
  <item> 
   <title>&gt; A separate issue thuough is why the new mail notifications</title> 
   <description>&gt; A separate issue thuough is why the new mail notifications are even 
&gt; chcecked when calling code that would never be able to do anything 
&gt; with them. Seems like a waste of resources to me.

The logic on whether to display is fully contained within the new mail notification decorator, however.  Not sure how else this could work.

Disabling notifications altogether for the AS request might be an option.  But on the flip side, ignoring all notifications might not be a good idea either since when you push a notification on the stack in the code, you have an expectation that it will eventually be processed somehow.</description> 
   <pubDate>Thu, 14 Apr 2011 17:18:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63741</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Maybe related to the fact that there is no session create</title> 
   <description>&gt;&gt; Maybe related to the fact that there is no session created for AS requests?
&gt;
&gt; This is a somewhat big issue for those of us that use imp 
&gt; authentication (not really the point of this bug, but going to 
&gt; mention anyway).  Every AS request causes IMP to initialize and 
&gt; create its session information.

Enabling sessions shouldn&#039;t break AS, but introduces all that overhead for something that is not required for anything related to the AS request.

&gt;
&gt; An alternative would be to use imap authentication in horde and 
&gt; hordeauth in IMP.  But this is not optimal at the moment because two 
&gt; separate IMAP connections will be made - one in IMAP auth and one in 
&gt; IMP.

 I guess I&#039;m still unclear as to why IMP needs to be involved here at all if not using IMP auth.
&gt;
</description> 
   <pubDate>Thu, 14 Apr 2011 17:25:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63744</link> 
  </item> 
   
  <item> 
   <title>&gt;  I guess I&#039;m still unclear as to why IMP needs to be invol</title> 
   <description>&gt;  I guess I&#039;m still unclear as to why IMP needs to be involved here at 
&gt; all if not using IMP auth.

Because setupNotification() exists in IMP.  And this needs to be called during Horde initialization.

...Although I&#039;m not sure why we are calling setupNotification() in ALL applications vs. only applications that are currently authenticated.  Jan&#039;s the one who implemented this, so he would probably be the one to best answer this question.</description> 
   <pubDate>Thu, 14 Apr 2011 17:31:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63745</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; A separate issue thuough is why the new mail notification</title> 
   <description>&gt;&gt; A separate issue thuough is why the new mail notifications are even
&gt;&gt; chcecked when calling code that would never be able to do anything
&gt;&gt; with them. Seems like a waste of resources to me.
&gt;
&gt; The logic on whether to display is fully contained within the new 
&gt; mail notification decorator, however.  Not sure how else this could 
&gt; work.

But there is no display context when we are talking about non-horde client requests for rpc.php
 
&gt; Disabling notifications altogether for the AS request might be an 
&gt; option.  But on the flip side, ignoring all notifications might not 
&gt; be a good idea either since when you push a notification on the stack 
&gt; in the code, you have an expectation that it will eventually be 
&gt; processed somehow.

There is no mechanism in place to display any notifications for AS requests, or for some other rpc requests for that matter, so disabling notifications in these cases makes sense to me</description> 
   <pubDate>Thu, 14 Apr 2011 17:31:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63746</link> 
  </item> 
   
  <item> 
   <title>
&gt; Because setupNotification() exists in IMP.  And this nee</title> 
   <description>
&gt; Because setupNotification() exists in IMP.  And this needs to be 
&gt; called during Horde initialization.
&gt;
&gt; ...Although I&#039;m not sure why we are calling setupNotification() in 
&gt; ALL applications vs. only applications that are currently 
&gt; authenticated.
Exactly. That&#039;s the basic question I&#039;m getting at here.


  Jan&#039;s the one who implemented this, so he would 
&gt; probably be the one to best answer this question.
</description> 
   <pubDate>Thu, 14 Apr 2011 17:33:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63747</link> 
  </item> 
   
  <item> 
   <title>&gt; There is no mechanism in place to display any notification</title> 
   <description>&gt; There is no mechanism in place to display any notifications for AS 
&gt; requests, or for some other rpc requests for that matter, so 
&gt; disabling notifications in these cases makes sense to me

But you are making the assumption that notifications need to be displayed.  There is no such requirement.  Notifications can be anything.  Theoretically, we could convert Horde::logMessage() to a log notification handler.  Which we WOULD want to be processed during an AS request.

Anyway, I answered my own question - we can&#039;t disable notifications entirely.</description> 
   <pubDate>Thu, 14 Apr 2011 17:34:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63748</link> 
  </item> 
   
  <item> 
   <title>That&#039;s a good point. 

I&#039;ll look at adding a config to use</title> 
   <description>That&#039;s a good point. 

I&#039;ll look at adding a config to use sessions or not with AS requests, but wouldn&#039;t this affect ANY script that uses session =&gt; none then?</description> 
   <pubDate>Thu, 14 Apr 2011 17:43:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63749</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;ll look at adding a config to use sessions or not with A</title> 
   <description>&gt; I&#039;ll look at adding a config to use sessions or not with AS requests, 
&gt; but wouldn&#039;t this affect ANY script that uses session =&gt; none then?

Yes... at least until the setupNotification() problem is fixed.  But most scripts with session = &#039;none&#039; are things like command-line scripts that will only be run once.  The difference with AS is that these requests will be happening on a regular &amp; repeating basis (e.g. my android device used to send requests every 10 seconds).</description> 
   <pubDate>Fri, 15 Apr 2011 05:45:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63786</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9733:  </title> 
   <description>Changes have been made in Git for this ticket:

Bug #9733:  Don&#039;t setup notification handlers in applications that are not yet authenticated

 2 files changed, 8 insertions(+), 5 deletions(-)
http://git.horde.org/horde-git/-/commit/dcdd9f52eabc7cd8df5b2ea661097effe039833e</description> 
   <pubDate>Fri, 15 Apr 2011 05:49:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63787</link> 
  </item> 
   
  <item> 
   <title>&gt;  2 files changed, 8 insertions(+), 5 deletions(-)
&gt; http:</title> 
   <description>&gt;  2 files changed, 8 insertions(+), 5 deletions(-)
&gt; http://git.horde.org/horde-git/-/commit/dcdd9f52eabc7cd8df5b2ea661097effe039833e

with this commit, I get lots of 
NOTICE: HORDE PHP ERROR: Undefined property: Horde_Core_Factory_Notification::$_app [pid 17422 on line 21 of &quot;/var/www/html/hordetest/libs/Horde/Core/Factory/Notification.php&quot;]

</description> 
   <pubDate>Fri, 15 Apr 2011 14:27:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63797</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9733: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9733: Fix copy/paste error

 1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/21c42f5538f5185b6e010e6c95e294802f21c67c</description> 
   <pubDate>Fri, 15 Apr 2011 15:38:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63800</link> 
  </item> 
   
  <item> 
   <title>&gt; The difference with AS is that 
&gt; these requests will be </title> 
   <description>&gt; The difference with AS is that 
&gt; these requests will be happening on a regular &amp; repeating basis (e.g. 
&gt; my android device used to send requests every 10 seconds)
.
FWIW this can be somewhat controlled via horde&#039;s AS settings. It is a tradeoff between keeping a single request open longer vs making more frequent requests. </description> 
   <pubDate>Tue, 19 Apr 2011 16:00:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t63913</link> 
  </item> 
   
  <item> 
   <title>Target this for 4.1. 

This is caused by the authenticatio</title> 
   <description>Target this for 4.1. 

This is caused by the authentication credentials being stored in the horde session, and since horde&#039;s session storage is backed by $_SESSION, this information is lost, even during the same request.

In AS, this is caused by Kronolith checking for APIs such as Tasks and listTimeObjects - which causes a need for those apps to be authenticated.

After discussion with other devs, this is going to be fixed by implementing a new session storage backend to be used when sessioncontrol == none, that will simply store the session values in private members so that session data set during the request will still be available during the request.</description> 
   <pubDate>Wed, 20 Apr 2011 18:35:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t64001</link> 
  </item> 
   
  <item> 
   <title>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Bug #</title> 
   <description>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Bug #9733:  Don&#039;t setup notification handlers in applications that 
&gt; are not yet authenticated
&gt;
&gt;  2 files changed, 8 insertions(+), 5 deletions(-)
&gt; http://git.horde.org/horde-git/-/commit/dcdd9f52eabc7cd8df5b2ea661097effe039833e

From Ticket #9979 - reports that this breaks AJAX timeout request.  So refactoring/fixing this can not wait until 4.1.</description> 
   <pubDate>Tue, 26 Apr 2011 19:50:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t64187</link> 
  </item> 
   
  <item> 
   <title>Agreed. This needs to be dealt with asap, kronolith API acce</title> 
   <description>Agreed. This needs to be dealt with asap, kronolith API access is also broken as a result of this. See Bug: 9837</description> 
   <pubDate>Mon, 02 May 2011 02:31:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t64338</link> 
  </item> 
   
  <item> 
   <title>For 4.0.x, this will have to be fixed by enabling sessions a</title> 
   <description>For 4.0.x, this will have to be fixed by enabling sessions again for AS (or any other RPC request that has it currently set to &#039;none&#039;.

For 4.1, should be fixed as described below.</description> 
   <pubDate>Mon, 02 May 2011 02:33:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t64339</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug: 9733 - </title> 
   <description>Changes have been made in Git for this ticket:

Bug: 9733 - Don&#039;t disable sessions for ActiveSync requests.
This is not the ideal fix for this, since creating a new session
for each activesync request is a complete waste of resources. However,
this is the only viable solution for this until Horde 4.1.

 1 files changed, 2 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/a65072badbcb509690ca009bb0770ca1c641e393</description> 
   <pubDate>Tue, 03 May 2011 22:01:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t64422</link> 
  </item> 
   
  <item> 
   <title>Now that hotfix is in place for 4.0.x series, downgrade prio</title> 
   <description>Now that hotfix is in place for 4.0.x series, downgrade priority and target the proper fix for 4.1</description> 
   <pubDate>Tue, 03 May 2011 22:03:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t64424</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit b009bbc6c3f</title> 
   <description>Changes have been made in Git (develop):

commit b009bbc6c3f8ade37c64179157a385b660f25c47
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Thu Feb 23 15:41:08 2012 -0500

    Use local storage when no session is available.
    
    Bug: 9733

 framework/Core/lib/Horde/Registry.php     |    5 +-
 framework/Core/lib/Horde/Session/Null.php |  320 +++++++++++++++++++++++++++++
 framework/Core/package.xml                |    7 +-
 horde/rpc.php                             |    1 +
 4 files changed, 330 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/b009bbc6c3f8ade37c64179157a385b660f25c47</description> 
   <pubDate>Sun, 26 Feb 2012 01:36:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t70474</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit b009bbc6c3f8</title> 
   <description>Changes have been made in Git (master):

commit b009bbc6c3f8ade37c64179157a385b660f25c47
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Thu Feb 23 15:41:08 2012 -0500

    Use local storage when no session is available.
    
    Bug: 9733

 framework/Core/lib/Horde/Registry.php     |    5 +-
 framework/Core/lib/Horde/Session/Null.php |  320 +++++++++++++++++++++++++++++
 framework/Core/package.xml                |    7 +-
 horde/rpc.php                             |    1 +
 4 files changed, 330 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/b009bbc6c3f8ade37c64179157a385b660f25c47</description> 
   <pubDate>Wed, 29 Aug 2012 12:31:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t72491</link> 
  </item> 
   
  <item> 
   <title>Any chance that this will be made available in FRAMEWORK_4 a</title> 
   <description>Any chance that this will be made available in FRAMEWORK_4 as well? A handful of ActiveSync clients (Android 2.3.6) currently leave hundreds of abandoned sessions behind every hour, which probably would be fixed by not creating sessions in the first place.</description> 
   <pubDate>Thu, 27 Sep 2012 09:25:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73007</link> 
  </item> 
   
  <item> 
   <title>It doesn&#039;t look like there would be any obvious problems wit</title> 
   <description>It doesn&#039;t look like there would be any obvious problems with back porting it, I&#039;ll look into it.</description> 
   <pubDate>Fri, 28 Sep 2012 13:37:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73024</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_4):

commit 3d82ef5</title> 
   <description>Changes have been made in Git (FRAMEWORK_4):

commit 3d82ef5ca93558b1afeb6b07879565bb645c8e10
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Thu Feb 23 15:41:08 2012 -0500

    Use local storage when no session is available.
    
    Bug: 9733
    
    Conflicts:
    	framework/Core/package.xml

 framework/Core/lib/Horde/Registry.php     |    5 +-
 framework/Core/lib/Horde/Session/Null.php |  320 +++++++++++++++++++++++++++++
 framework/Core/package.xml                |    6 +
 horde/rpc.php                             |    1 +
 4 files changed, 330 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/3d82ef5ca93558b1afeb6b07879565bb645c8e10</description> 
   <pubDate>Fri, 28 Sep 2012 14:24:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73025</link> 
  </item> 
   
  <item> 
   <title>This should be good now. Includes the following commits:

</title> 
   <description>This should be good now. Includes the following commits:

http://lists.horde.org/archives/commits/2012-September/016282.html


If you could test these on your setup before they are released, that would be a big help.</description> 
   <pubDate>Fri, 28 Sep 2012 14:30:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73026</link> 
  </item> 
   
  <item> 
   <title>&gt; This should be good now. Includes the following commits:
</title> 
   <description>&gt; This should be good now. Includes the following commits:
&gt;
&gt; http://lists.horde.org/archives/commits/2012-September/016282.html
&gt;
&gt;
&gt; If you could test these on your setup before they are released, that 
&gt; would be a big help.

Looks good, except that &#039;horde-active-sessions&#039; now doesn&#039;t work anymore:

PHP Fatal error:  Call to a member function getSessionsInfo() on a non-object in /usr/bin/horde-active-sessions on line 35                                                          

It looks like it doesn&#039;t really like the Horde_Session_Null storage handler. Attached patch works around this, by only using Horde_Session_Null when the SESSION_NONE flag is explicitly set. In all other cases, the behavior is as was previously the case.</description> 
   <pubDate>Fri, 28 Sep 2012 15:07:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73027</link> 
  </item> 
   
  <item> 
   <title>I can also confirm that the changes to

framework/Core/lib</title> 
   <description>I can also confirm that the changes to

framework/Core/lib/Horde/Core/ActiveSync/Connector.php
framework/Core/lib/Horde/Core/ActiveSync/Driver.php

will clean up the sessions that are created due to ActiveSync traffic from my Android phones. Commenting out line 42 ($session_control = &#039;none&#039;;), at least the sessions that are created are cleaned up after the sync.
</description> 
   <pubDate>Fri, 28 Sep 2012 15:24:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73028</link> 
  </item> 
   
  <item> 
   <title>&gt; Looks good, except that &#039;horde-active-sessions&#039; now doesn&#039;</title> 
   <description>&gt; Looks good, except that &#039;horde-active-sessions&#039; now doesn&#039;t work anymore:

Great, thanks for testing.

&gt; PHP Fatal error:  Call to a member function getSessionsInfo() on a 
&gt; non-object in /usr/bin/horde-active-sessions on line 35
&gt;
&gt; It looks like it doesn&#039;t really like the Horde_Session_Null storage 
&gt; handler. Attached patch works around this, by only using 
&gt; Horde_Session_Null when the SESSION_NONE flag is explicitly set. In 
&gt; all other cases, the behavior is as was previously the case.

This is actually fixed by another commit to the horde-active-sessions script that needed to be cherry-picked:

http://lists.horde.org/archives/commits/2012-September/016286.html</description> 
   <pubDate>Fri, 28 Sep 2012 15:30:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73029</link> 
  </item> 
   
  <item> 
   <title>&gt; I can also confirm that the changes to
&gt;
&gt; framework/Cor</title> 
   <description>&gt; I can also confirm that the changes to
&gt;
&gt; framework/Core/lib/Horde/Core/ActiveSync/Connector.php
&gt; framework/Core/lib/Horde/Core/ActiveSync/Driver.php
&gt;
&gt; will clean up the sessions that are created due to ActiveSync traffic 
&gt; from my Android phones. Commenting out line 42 ($session_control = 
&gt; &#039;none&#039;;), at least the sessions that are created are cleaned up after 
&gt; the sync.

Great, thanks again for the testing. 
&gt;
</description> 
   <pubDate>Fri, 28 Sep 2012 15:31:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73030</link> 
  </item> 
   
  <item> 
   <title>&gt; This should be good now. Includes the following commits:
</title> 
   <description>&gt; This should be good now. Includes the following commits:
&gt;
&gt; http://lists.horde.org/archives/commits/2012-September/016282.html
&gt;
&gt;
&gt; If you could test these on your setup before they are released, that 
&gt; would be a big help.

With all these patches applied, there is one thing left. I use memcache as a session handler (config/conf.php):

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;track_lifetime&#039;] = 43200;
$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;track&#039;] = true;
$conf[&#039;sessionhandler&#039;][&#039;type&#039;] = &#039;Memcache&#039;;
$conf[&#039;sessionhandler&#039;][&#039;memcache&#039;] = false;

ActiveSync now no longer creates (or leaves behind abandoned) sessions, however I see zero length sessions popping up under the &#039;session.path&#039; as defined in &#039;php.ini&#039;:

session.save_handler = files
session.save_path = &quot;/var/lib/php5&quot;

These empty sessions are created when ActiveSync is run. I never noticed these empty sessions before, so I tried if adding 

$session-&gt;setup(false, $args[&#039;session_cache_limiter&#039;]);

that was commented out for a while (and now removed) in Registry.php made a difference. It did, no more zero length sessions are created. Could it be that above line is actually doing something useful?</description> 
   <pubDate>Sat, 29 Sep 2012 09:58:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73036</link> 
  </item> 
   
  <item> 
   <title>&gt; These empty sessions are created when ActiveSync is run. I</title> 
   <description>&gt; These empty sessions are created when ActiveSync is run. I never 
&gt; noticed these empty sessions before, so I tried if adding
&gt;
&gt; $session-&gt;setup(false, $args[&#039;session_cache_limiter&#039;]);
&gt;
&gt; that was commented out for a while (and now removed) in Registry.php 
&gt; made a difference. It did, no more zero length sessions are created. 
&gt; Could it be that above line is actually doing something useful?

Forget about the above remark, the zero length sessions are created regardless of the presence of the above line. So somehow when using the Horde_Session_Null handler, the Horde configuring settings for the session handler are ignored and the session handler as configured in &#039;php.ini&#039; is used.</description> 
   <pubDate>Sat, 29 Sep 2012 10:32:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73037</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Looks good, except that &#039;horde-active-sessions&#039; now doesn</title> 
   <description>&gt;&gt; Looks good, except that &#039;horde-active-sessions&#039; now doesn&#039;t work anymore:
&gt;
&gt; Great, thanks for testing.
&gt;
&gt;&gt; PHP Fatal error:  Call to a member function getSessionsInfo() on a
&gt;&gt; non-object in /usr/bin/horde-active-sessions on line 35
&gt;&gt;
&gt;&gt; It looks like it doesn&#039;t really like the Horde_Session_Null storage
&gt;&gt; handler. Attached patch works around this, by only using
&gt;&gt; Horde_Session_Null when the SESSION_NONE flag is explicitly set. In
&gt;&gt; all other cases, the behavior is as was previously the case.
&gt;
&gt; This is actually fixed by another commit to the horde-active-sessions 
&gt; script that needed to be cherry-picked:
&gt;
&gt; http://lists.horde.org/archives/commits/2012-September/016286.html

No more errors are shown, but now I consistently get &#039;0&#039; as number of active sessions, despite the fact that &#039;admin/sessions.php&#039; returns that there are active sessions.</description> 
   <pubDate>Sat, 29 Sep 2012 18:02:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73038</link> 
  </item> 
   
  <item> 
   <title>&gt; Forget about the above remark, the zero length sessions ar</title> 
   <description>&gt; Forget about the above remark, the zero length sessions are created 
&gt; regardless of the presence of the above line. So somehow when using 
&gt; the Horde_Session_Null handler, the Horde configuring settings for 
&gt; the session handler are ignored and the session handler as configured 
&gt; in &#039;php.ini&#039; is used.

This is a side effect of the Null handler calling session_start(). Even though we don&#039;t store any data in the session, we still must tell PHP to create one, otherwise certain data that is required to be available will not be. E.g., session_id() is used by Horde_Secret as an encryption key. The absence of this value breaks authentication in certain places.</description> 
   <pubDate>Sun, 30 Sep 2012 19:17:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73042</link> 
  </item> 
   
  <item> 
   <title>&gt; Forget about the above remark, the zero length sessions ar</title> 
   <description>&gt; Forget about the above remark, the zero length sessions are created 
&gt; regardless of the presence of the above line. So somehow when using 
&gt; the Horde_Session_Null handler, the Horde configuring settings for 
&gt; the session handler are ignored and the session handler as configured 
&gt; in &#039;php.ini&#039; is used.

Some more information for the above. In the &#039;php.ini&#039; file, I have

session.save_handler = files

while Horde is configured to use memcache as session handler (see comment #38).

It looks like for each ActiveSync request, a zero-length session file is created. Most of them are removed almost immediately (when the connection is closed), but for some reason sometimes the connection stalls in the ESTABLISHED or CLOSE_WAIT state. In that case, the zero-length session file is finally removed when the lingering connection times out.

No session file is created if I comment out line 42 in rpc.php 

    $session_control = &#039;none&#039;;

in which case ActiveSync request will create a memcache session, but which seems to be removed before the connection stalls.

What causes the Horde_Session_Null handler to create an empty session in the first place and why isn&#039;t it using memcache for storing the session, but instead falls back to the session handler defined in php.ini?</description> 
   <pubDate>Sun, 30 Sep 2012 19:24:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73043</link> 
  </item> 
   
  <item> 
   <title>&gt; What causes the Horde_Session_Null handler to create an em</title> 
   <description>&gt; What causes the Horde_Session_Null handler to create an empty session 
&gt; in the first place and why isn&#039;t it using memcache for storing the 
&gt; session, but instead falls back to the session handler defined in 
&gt; php.ini?

Never mind, our messages crossed. It&#039;s clear to me now what&#039;s happening.</description> 
   <pubDate>Sun, 30 Sep 2012 19:30:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73044</link> 
  </item> 
   
  <item> 
   <title>&gt; No more errors are shown, but now I consistently get &#039;0&#039; a</title> 
   <description>&gt; No more errors are shown, but now I consistently get &#039;0&#039; as number of 
&gt; active sessions, despite the fact that &#039;admin/sessions.php&#039; returns 
&gt; that there are active sessions.

I&#039;m seeing this too, both in FW_4 and master. The problem, at least for me, is caused by a different value of sys_get_temp_dir() being returned for cli requests vs fastcgi requests. Still investigating why this is happening.</description> 
   <pubDate>Sun, 30 Sep 2012 19:38:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73045</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; No more errors are shown, but now I consistently get &#039;0&#039; </title> 
   <description>&gt;&gt; No more errors are shown, but now I consistently get &#039;0&#039; as number of
&gt;&gt; active sessions, despite the fact that &#039;admin/sessions.php&#039; returns
&gt;&gt; that there are active sessions.
&gt;
&gt; I&#039;m seeing this too, both in FW_4 and master. The problem, at least 
&gt; for me, is caused by a different value of sys_get_temp_dir() being 
&gt; returned for cli requests vs fastcgi requests. Still investigating 
&gt; why this is happening.

...I should also mention that I see this even if I remove the check for disabling sessions. I.e., this happens even if creating a &quot;normal&quot; session for CLI.</description> 
   <pubDate>Sun, 30 Sep 2012 19:40:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73046</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; No more errors are shown, but now I consistently get &#039;0&#039;</title> 
   <description>&gt;&gt;&gt; No more errors are shown, but now I consistently get &#039;0&#039; as number of
&gt;&gt;&gt; active sessions, despite the fact that &#039;admin/sessions.php&#039; returns
&gt;&gt;&gt; that there are active sessions.
&gt;&gt;
&gt;&gt; I&#039;m seeing this too, both in FW_4 and master. The problem, at least
&gt;&gt; for me, is caused by a different value of sys_get_temp_dir() being
&gt;&gt; returned for cli requests vs fastcgi requests. Still investigating
&gt;&gt; why this is happening.
&gt;
&gt; ...I should also mention that I see this even if I remove the check 
&gt; for disabling sessions. I.e., this happens even if creating a 
&gt; &quot;normal&quot; session for CLI.

If I replace

            $GLOBALS[&#039;session&#039;] = $session = new Horde_Session_Null();
by
            $GLOBALS[&#039;session&#039;] = $session = new Horde_Session();    
            $session-&gt;setup(false, $args[&#039;session_cache_limiter&#039;]);

which was used before (somewhere around line 423 in Horde/Registry.php), &#039;horde-active-sessions -ll&#039; reports the same sessions as &#039;admin/sessions.php&#039;.</description> 
   <pubDate>Sun, 30 Sep 2012 19:47:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73047</link> 
  </item> 
   
  <item> 
   <title>Ok. I see what&#039;s happening now. The session data is being de</title> 
   <description>Ok. I see what&#039;s happening now. The session data is being decoded into $_SESSION to parse the sessions for horde-active-sessions, but the Null handler doesn&#039;t use $_SESSION for storage.  The issue with my session save path was getting in the way of me seeing this. Not sure what that is about, but using the &quot;File&quot; session driver instead allows me to see this.

I&#039;ve committed your earlier patch, which now fixes it locally for me too.

Thanks!
</description> 
   <pubDate>Sun, 30 Sep 2012 20:41:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9733#t73048</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
