<?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>Login screen reappears in right frame after successful IMAP login</title> 
  <pubDate>Thu, 09 Apr 2026 22:37:19 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7340</link> 
  <atom:link rel="self" type="application/rss+xml" title="Login screen reappears in right frame after successful IMAP login" href="https://bugs.horde.org/ticket/7340/rss" /> 
  <description>Login screen reappears in right frame after successful IMAP login</description> 
 
   
   
  <item> 
   <title>I&#039;m using Horde 3.1.6 with IMP 4.1.6 and am using composite </title> 
   <description>I&#039;m using Horde 3.1.6 with IMP 4.1.6 and am using composite authentication to sidestep the MIMP (1.0.2) double login issue as recommended on this Horde Wiki page:



http://wiki.horde.org/MIMPHowTo



The only difference is that I&#039;m authenticating Horde with a secure LDAP server, and IMP with an IMAP server, like this:



/* composite configuration for horde and mimp */

$conf[&#039;auth&#039;][&#039;params&#039;][&#039;drivers&#039;] = array(

    &#039;horde&#039; =&gt; array(&#039;driver&#039; =&gt; &#039;ldap&#039;,

                     &#039;params&#039; =&gt; array(&#039;hostspec&#039; =&gt; &#039;ldaps://[hidden]&#039;,

                                       &#039;basedn&#039; =&gt; &#039;ou=[hidden],dc=[hidden],dc=[hidden]&#039;,

                                       &#039;version&#039; =&gt; &#039;3&#039;,

                                       &#039;ad&#039; =&gt; true,

                                       &#039;uid&#039; =&gt; &#039;uid&#039;,

                                       &#039;encryption&#039; =&gt; &#039;[hidden]&#039;,

                                       &#039;newuser_objectclass&#039; =&gt; array(&#039;shadowAccount&#039;, &#039;inetOrgPerson&#039;),

                                       &#039;objectclass&#039; =&gt; array(&#039;uid&#039;),

                                       &#039;filter_type&#039; =&gt; &#039;objectclass&#039;,

                                       &#039;password_expiration&#039; =&gt; &#039;no&#039;

                         )),

    &#039;mimp&#039; =&gt; array(&#039;driver&#039; =&gt; &#039;application&#039;,

                    &#039;params&#039; =&gt; array(&#039;app&#039; =&gt; &#039;mimp&#039;)));



$conf[&#039;auth&#039;][&#039;params&#039;][&#039;loginscreen_switch&#039;] = &#039;_horde_select_loginscreen&#039;;



if (!function_exists(&#039;_horde_select_loginscreen&#039;)) {

    function _horde_select_loginscreen()

    {

        require_once &#039;Horde/Browser.php&#039;;

        $browser = new Browser();

        if ($browser-&gt;isMobile()) {

            return &#039;mimp&#039;;

        }

        return &#039;horde&#039;;

    }

}



/* IMP servers.php configuration */

$servers[&#039;imap&#039;] = array(

    &#039;name&#039; =&gt; &#039;IMAP Server&#039;,

    &#039;server&#039; =&gt; &#039;[hidden]&#039;,

    &#039;hordeauth&#039; =&gt; true,

    &#039;protocol&#039; =&gt; &#039;imap/ssl/novalidate-cert&#039;,

    &#039;port&#039; =&gt; 993,

    &#039;maildomain&#039; =&gt; &#039;[hidden]&#039;,

    &#039;smtphost&#039; =&gt; &#039;[hidden]&#039;,

    &#039;smtpport&#039; =&gt; 25,

    &#039;realm&#039; =&gt; &#039;&#039;,

    &#039;preferred&#039; =&gt; &#039;&#039;,

);





The LDAP (AD v. 3) and IMAP servers contain the same usernames and passwords, because we&#039;re in the process of converting the mail server to LDAP authentication, so I have IMP configured to use Horde authentication (see &#039;hordeauth&#039; line above).



All of this works fine most of the time, but occasionally users who access /imp directly get presented with the Horde left sidebar frame, indicating a successful LDAP login, and a login screen in the right frame, indicating an unsuccessful IMAP login. If they click on &quot;Mail&quot; in the left sidebar without logging in again, however, they are able to access their IMAP Inbox. It appears that either a) the login process isn&#039;t waiting for a successful login message from the IMAP server before reporting a login failure (i.e. a timeout is occurring), or b) the first IMAP login attempt actually does fail, for whatever reason, and Horde retries the IMAP login when a second attempt is made to access the user&#039;s IMAP mail, which subsequently succeeds.</description> 
   <pubDate>Mon, 15 Sep 2008 14:17:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7340#t48945</link> 
  </item> 
   
  <item> 
   <title>This seems to happen from time to time with other people wit</title> 
   <description>This seems to happen from time to time with other people with exactly the same setup. Please check the mailing list archive.

This doesn&#039;t seem to be a Horde problem, and Horde 3.1.x is only supported for security fixes anymore anyway.</description> 
   <pubDate>Thu, 18 Sep 2008 10:49:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7340#t48994</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
