<?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>FTP auth fail if you have configured a realm</title> 
  <pubDate>Fri, 10 Apr 2026 13:36:24 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8245</link> 
  <atom:link rel="self" type="application/rss+xml" title="FTP auth fail if you have configured a realm" href="https://bugs.horde.org/ticket/8245/rss" /> 
  <description>FTP auth fail if you have configured a realm</description> 
 
   
   
  <item> 
   <title>We have a FRAMEWORK_3 installation of horde, imp, forwards, </title> 
   <description>We have a FRAMEWORK_3 installation of horde, imp, forwards, etc.



The horde auth is set as &quot;let a Horde app...&quot; and IMP is doing the user auth with a local imap service:



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

//    &#039;name&#039; =&gt; &#039;alcazaba&#039;,

//    &#039;server&#039; =&gt; &#039;localhost&#039;,

//    &#039;hordeauth&#039; =&gt; false,

//    &#039;protocol&#039; =&gt; &#039;imap/notls&#039;,

//    &#039;port&#039; =&gt; 143,

//    &#039;maildomain&#039; =&gt; &#039;alcazaba.unex.es&#039;,

//    &#039;smtphost&#039; =&gt; &#039;localhost&#039;,

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

//    &#039;realm&#039; =&gt; &#039;alcazaba.unex.es&#039;,

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

//);



We have defined a realm to allow many others users of other servers to auth and not mix the users accounts.



This is our forwards config:



// $conf[&#039;server&#039;][&#039;params&#039;][&#039;default&#039;][&#039;host&#039;] = &#039;localhost&#039;;

// $conf[&#039;server&#039;][&#039;params&#039;][&#039;default&#039;][&#039;port&#039;] = 8051;

// $conf[&#039;server&#039;][&#039;params&#039;][&#039;default&#039;][&#039;pasv&#039;] = false;

// $conf[&#039;server&#039;][&#039;params&#039;][&#039;default&#039;][&#039;ssl&#039;] = false;

// $conf[&#039;server&#039;][&#039;driver&#039;] = &#039;forwards&#039;;

// $conf[&#039;enabled&#039;][&#039;keeplocal&#039;] = true;

// $conf[&#039;enabled&#039;][&#039;authenticate&#039;] = false;

// $conf[&#039;enabled&#039;][&#039;fullemail&#039;] = false;

// $conf[&#039;user&#039;][&#039;refused&#039;] = array(&#039;root&#039;, &#039;bin&#039;, &#039;daemon&#039;, &#039;adm&#039;, &#039;lp&#039;, &#039;shutdown&#039;, &#039;halt&#039;, &#039;uucp&#039;, &#039;ftp&#039;, &#039;anonymous&#039;, &#039;nobody&#039;, &#039;httpd&#039;, &#039;operator&#039;, &#039;guest&#039;, &#039;diginext&#039;, &#039;bind&#039;, &#039;cyrus&#039;, &#039;courier&#039;, &#039;games&#039;, &#039;kmem&#039;, &#039;mailnull&#039;, &#039;man&#039;, &#039;mysql&#039;, &#039;news&#039;, &#039;postfix&#039;, &#039;sshd&#039;, &#039;tty&#039;, &#039;www&#039;);

// $conf[&#039;menu&#039;][&#039;apps&#039;] = array();



This way, the app don&#039;t work. Always the user who try to auth is &lt;user&gt;@&lt;realm&gt; and the ftp driver can&#039;t auth it because it espects only &lt;user&gt;.



On the Vacation module this is solved on config setting the parameter:



// $conf[&#039;server&#039;][&#039;params&#039;][&#039;default&#039;][&#039;norealm&#039;] = true



and checking this on the code.



As a workaround we have copied some code from vacation and added it to forwards for made the things to work:



on Driver.php at the Forwards_Driver() construct function you have coded:



//        $this-&gt;_params = $params;

//        $this-&gt;_user = $user;



and we have added:



//        $this-&gt;_params = $params;

//&gt;       if (explode(&#039;@&#039;, $user, 2)) {

//&gt;           @list($user,) = explode(&#039;@&#039;, $user, 2);

//&gt;       }

//        $this-&gt;_user = $user;



This way the module works on our installation with the indicated configuration.



May be you can add some parameter on configuration like the vacation one and check it to allow this kind of environmente to work.



Thanks!



Manuel P. Ayala

mayala@unes.es



F. Biblioteconomía y Documentación

Universidad de Extremadura

Badajoz (Spain)

</description> 
   <pubDate>Wed, 06 May 2009 10:38:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8245#t54020</link> 
  </item> 
   
  <item> 
   <title>Horde has long stopped support for &quot;realm&quot; configuration.  A</title> 
   <description>Horde has long stopped support for &quot;realm&quot; configuration.  And forwards doesn&#039;t exist anymore.</description> 
   <pubDate>Wed, 13 Nov 2013 05:19:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8245#t81453</link> 
  </item> 
   
  <item> 
   <title>Yes, I know, thanks.

This was a ticket I sent to you four</title> 
   <description>Yes, I know, thanks.

This was a ticket I sent to you four years ago. Now we have lates horde/imp/ingo with mail filters working without problems.</description> 
   <pubDate>Wed, 13 Nov 2013 06:02:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8245#t81458</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
