<?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>Preauth hook and authusername hook are not used</title> 
  <pubDate>Fri, 10 Apr 2026 19:28:21 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10448</link> 
  <atom:link rel="self" type="application/rss+xml" title="Preauth hook and authusername hook are not used" href="https://bugs.horde.org/ticket/10448/rss" /> 
  <description>Preauth hook and authusername hook are not used</description> 
 
   
   
  <item> 
   <title>I want to use ingo to manage my sieve filter through dovecot</title> 
   <description>I want to use ingo to manage my sieve filter through dovecot/managesieved. 

The problem is that i use logins without a domain part for horde. I want to use a preauth hook with ingo to append the domain to the username.

In IMP it is working and i see my mails. In INGO the preauth hook is also executed but when i want to see the actual sieve script or save one to the server i get an &quot;Authentication failed.&quot;.

In the dovecot log i can see that the horde username is used without the domain appended. I also tried to use the authusername hook but it also does not work because it seems that it is not used (No log message is seen in the log).

After digging into the code it looks like only the horde login is used in ingo/lib/Ingo.php, function getTransport().
</description> 
   <pubDate>Mon, 22 Aug 2011 11:21:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67068</link> 
  </item> 
   
  <item> 
   <title>As Jan mentioned on the list, this is the correct behavior. </title> 
   <description>As Jan mentioned on the list, this is the correct behavior.  Ingo is currently written to only use Horde authentication values (e.g. Ingo_Application::_auth() is empty).  Thus, there is no need to call auth alteration methods during initial authentication into Ingo.

Two solutions for you:
1. Store this information in a separate variable.
2. Rewrite Ingo to use the application auth capability (e.g. similar to IMP), in which case these hooks become available.</description> 
   <pubDate>Mon, 22 Aug 2011 17:55:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67078</link> 
  </item> 
   
  <item> 
   <title>I added the ability in Ingo to use the imp user data. The pa</title> 
   <description>I added the ability in Ingo to use the imp user data. The patch is attached. has only been quickly tested.

Perhabs you guys can have a look at it.

with regards 

Jonathan</description> 
   <pubDate>Wed, 24 Aug 2011 00:25:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67087</link> 
  </item> 
   
  <item> 
   <title>&gt; I added the ability in Ingo to use the imp user data. The </title> 
   <description>&gt; I added the ability in Ingo to use the imp user data. The patch is 
&gt; attached. has only been quickly tested.

That will probably work locally.  But that will not be added to Ingo since 1) it improperly accesses IMP directly and 2) is not the correct way to add authentication to an application.

Even if 1 and 2 weren&#039;t issues, it still won&#039;t be added to Ingo since Ingo does not need full authentication.  Your particular use case is a fringe case, and I am not convinced that it couldn&#039;t be handled a different way (e.g. using the appinitialized hook).</description> 
   <pubDate>Wed, 24 Aug 2011 04:50:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67088</link> 
  </item> 
   
  <item> 
   <title>&gt; Even if 1 and 2 weren&#039;t issues, it still won&#039;t be added to</title> 
   <description>&gt; Even if 1 and 2 weren&#039;t issues, it still won&#039;t be added to Ingo since 
&gt; Ingo does not need full authentication.  Your particular use case is 
&gt; a fringe case, and I am not convinced that it couldn&#039;t be handled a 
&gt; different way (e.g. using the appinitialized hook).

Ok i get your point. As far as i understood it, ingo always uses the horde login and does not save an own login. So how can the appinitialized hook help me? If there is a &quot;horde&quot; way to do it i would use it. 

My problem is that i only need an email address for applications which use the mailserver (like imp and ingo at the moment). All other authentication is done against the ldap server. So if i rewrite the username in the horde hooks all applications use the mail address which is not what i want. 

I also tried to implement the authentication for ingo but that is a really hard thing for me.
</description> 
   <pubDate>Wed, 24 Aug 2011 11:25:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67104</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Even if 1 and 2 weren&#039;t issues, it still won&#039;t be added t</title> 
   <description>&gt;&gt; Even if 1 and 2 weren&#039;t issues, it still won&#039;t be added to Ingo since
&gt;&gt; Ingo does not need full authentication.  Your particular use case is
&gt;&gt; a fringe case, and I am not convinced that it couldn&#039;t be handled a
&gt;&gt; different way (e.g. using the appinitialized hook).
&gt;
&gt; Ok i get your point. As far as i understood it, ingo always uses the 
&gt; horde login and does not save an own login. So how can the 
&gt; appinitialized hook help me? If there is a &quot;horde&quot; way to do it i 
&gt; would use it.

Appinitialized is called when an application is first initialized.  In that app, you could do something like storing the value you want to use in ingo in a session variable.  You will still have to alter other code in ingo to use this value, however.

The issue for you is that you are trying to use ingo in a non-standard way.  The correct way to fix would be to add authentication to Ingo.  But this is not-insignificant overhead, and I personally don&#039;t see the advantage to adding this feature (at the expense of performance) when its usage would be extremely limited.</description> 
   <pubDate>Tue, 30 Aug 2011 19:22:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67159</link> 
  </item> 
   
  <item> 
   <title>&gt; Appinitialized is called when an application is first init</title> 
   <description>&gt; Appinitialized is called when an application is first initialized.  
&gt; In that app, you could do something like storing the value you want 
&gt; to use in ingo in a session variable.  You will still have to alter 
&gt; other code in ingo to use this value, however.
&gt;
&gt; The issue for you is that you are trying to use ingo in a 
&gt; non-standard way.  The correct way to fix would be to add 
&gt; authentication to Ingo.  But this is not-insignificant overhead, and 
&gt; I personally don&#039;t see the advantage to adding this feature (at the 
&gt; expense of performance) when its usage would be extremely limited.

I agree that it is a lot of overhead to add extra auth for Ingo.

Just for my own knowledge:  Is there a &quot;horde&quot; way to access the Imp auth data? Because for me it does make sense to couple the auth of Ingo to Imp as its settings are also under the Imp menu and sieve rules are set on the mail server.

If i should ask this on the mailing list just say it. I am using this ticket only because it may be interesting for other people. 

Thanks for your help

Jonathan

</description> 
   <pubDate>Tue, 30 Aug 2011 21:22:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67168</link> 
  </item> 
   
  <item> 
   <title>&gt; Just for my own knowledge:  Is there a &quot;horde&quot; way to acce</title> 
   <description>&gt; Just for my own knowledge:  Is there a &quot;horde&quot; way to access the Imp 
&gt; auth data? Because for me it does make sense to couple the auth of 
&gt; Ingo to Imp as its settings are also under the Imp menu and sieve 
&gt; rules are set on the mail server.

$ob = $GLOBALS[&#039;registry&#039;]-&gt;call(&#039;mail/imapOb&#039;);
$username = $ob-&gt;getParam(&#039;username&#039;);</description> 
   <pubDate>Tue, 30 Aug 2011 21:29:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t67169</link> 
  </item> 
   
  <item> 
   <title>Hello

With the introduction of the Factory folder the pat</title> 
   <description>Hello

With the introduction of the Factory folder the patch does not work anymore. When i want to get the imap object i have a infinit loop as imp is not initialized at this moment and the password is not already set

Do you have any ideas how i can get the credentials from imp in ingo?

With regards

Jonathan
</description> 
   <pubDate>Wed, 05 Sep 2012 22:02:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t72806</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Just for my own knowledge:  Is there a &quot;horde&quot; way to acc</title> 
   <description>&gt;&gt; Just for my own knowledge:  Is there a &quot;horde&quot; way to access the Imp
&gt;&gt; auth data? Because for me it does make sense to couple the auth of
&gt;&gt; Ingo to Imp as its settings are also under the Imp menu and sieve
&gt;&gt; rules are set on the mail server.
&gt;
&gt; $ob = $GLOBALS[&#039;registry&#039;]-&gt;call(&#039;mail/imapOb&#039;);
&gt; $username = $ob-&gt;getParam(&#039;username&#039;);

Hi, 
I tried to use hooks to authenticate against dovecot managesieve in ingo 3.0.1 with no success. I&#039;m using exactly same way how to get username and password from imap login, both values &#039;username&#039; and &#039;password&#039; are filled correctly, but I stil receiving:
dovecot: managesieve-login: Disconnected (auth failed, 1 attempts): user=&lt;neco@nekde.cz&gt;, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured


Thanks

Petr
this is my hooks.php

class Ingo_Hooks
{
    public function transport_auth($driver)
    {
            $ob = $GLOBALS[&#039;registry&#039;]-&gt;call(&#039;mail/imapOb&#039;);
            return array(
                &#039;username&#039; =&gt; $ob-&gt;getParam(&#039;username&#039;),
                &#039;password&#039; =&gt; $ob-&gt;getParam(&#039;password&#039;)
            );

    }
}

What could be wrong?

Thanks

Petr</description> 
   <pubDate>Thu, 13 Dec 2012 16:46:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t75669</link> 
  </item> 
   
  <item> 
   <title>&gt; this is my hooks.php
&gt;
&gt; class Ingo_Hooks
&gt; {
&gt;     pu</title> 
   <description>&gt; this is my hooks.php
&gt;
&gt; class Ingo_Hooks
&gt; {
&gt;     public function transport_auth($driver)
&gt;     {
&gt;             $ob = $GLOBALS[&#039;registry&#039;]-&gt;call(&#039;mail/imapOb&#039;);
&gt;             return array(
&gt;                 &#039;username&#039; =&gt; $ob-&gt;getParam(&#039;username&#039;),
&gt;                 &#039;password&#039; =&gt; $ob-&gt;getParam(&#039;password&#039;)
&gt;             );
&gt;
&gt;     }
&gt; }

Try to add:

&#039;euser&#039; =&gt; $ob-&gt;getParam(&#039;username&#039;)

to the array.

with regards 

Jonathan</description> 
   <pubDate>Thu, 13 Dec 2012 22:59:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t75690</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; this is my hooks.php
&gt;&gt;
&gt;&gt; class Ingo_Hooks
&gt;&gt; {
&gt;&gt;  </title> 
   <description>&gt;&gt; this is my hooks.php
&gt;&gt;
&gt;&gt; class Ingo_Hooks
&gt;&gt; {
&gt;&gt;     public function transport_auth($driver)
&gt;&gt;     {
&gt;&gt;             $ob = $GLOBALS[&#039;registry&#039;]-&gt;call(&#039;mail/imapOb&#039;);
&gt;&gt;             return array(
&gt;&gt;                 &#039;username&#039; =&gt; $ob-&gt;getParam(&#039;username&#039;),
&gt;&gt;                 &#039;password&#039; =&gt; $ob-&gt;getParam(&#039;password&#039;)
&gt;&gt;             );
&gt;&gt;
&gt;&gt;     }
&gt;&gt; }
&gt;
&gt; Try to add:
&gt;
&gt; &#039;euser&#039; =&gt; $ob-&gt;getParam(&#039;username&#039;)
&gt;
&gt; to the array.
&gt;
&gt; with regards
&gt;
&gt; Jonathan


thank you Jonathan, next time I must read more carefully, euser for sieve is mentioned in this file

Petr</description> 
   <pubDate>Fri, 14 Dec 2012 22:00:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10448#t75706</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
