<?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>gollem ftp login performed while not needed</title> 
  <pubDate>Fri, 10 Apr 2026 07:03:42 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12271</link> 
  <atom:link rel="self" type="application/rss+xml" title="gollem ftp login performed while not needed" href="https://bugs.horde.org/ticket/12271/rss" /> 
  <description>gollem ftp login performed while not needed</description> 
 
   
   
  <item> 
   <title>Namely, while gollem application has &#039;active&#039; registry statu</title> 
   <description>Namely, while gollem application has &#039;active&#039; registry status, horde tries to do ftp_login and user authorization even for those users who don&#039;t have gollem disk (and permission to use gollem). This leads to very long wait for horde screen display. ftp_login is called 8 times for one login (yes) and it makes some 30 seconds extra to wait for login.

Horde registry initialization should only be performed for these applications which user has permission to use.

Generally speaking, the reason is as follows:

- for every active application, Horde_Registry-&gt;hasPermission is called in listApps()
- hasPermission() makes isAuthenticated() check
- isAuthenticated() tries transparent authentication
- then callAppMethod() is called with &#039;noperms&#039; =&gt; true
- and finally Gollem_Auth performs ftp_login

Until now application permissions, although defined, are not checked. </description> 
   <pubDate>Thu, 23 May 2013 13:03:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12271#t78193</link> 
  </item> 
   
  <item> 
   <title>&gt; Until now application permissions, although defined, are n</title> 
   <description>&gt; Until now application permissions, although defined, are not checked.

This doesn&#039;t sound right.

transparent authentication shouldn&#039;t require any application permission checks, since transparent auth does not require a user and, therefore, permission checks may be impossible.

Example: gollem might have no permissions for guest users.  But transparent authentication is setup so that, if connecting from a certain IP address, the user is automatically logged in.  Obviously, we can&#039;t check for application permissions here or else transparent authentication would never occur.

Seems to me that if you are seeing multiple failing transparent authentication requests to gollem, either 1) your config is wrong or 2) gollem&#039;s transparent authentication is incorrect.  But I don&#039;t see any issue here with the registry&#039;s handling of authentication (maybe an optimization - failing authentication requests in a session can be cached - but that&#039;s not a bug).</description> 
   <pubDate>Fri, 24 May 2013 04:56:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12271#t78198</link> 
  </item> 
   
  <item> 
   <title>&gt; Seems to me that if you are seeing multiple failing transp</title> 
   <description>&gt; Seems to me that if you are seeing multiple failing transparent 
&gt; authentication requests to gollem, either 1) your config is wrong or 

This is of course possible although I can&#039;t see my fault. From my point of view the problem is as follows: user doesn&#039;t have permission to run gollem (i.e. there are individual users who have the read permission for gollem so I assume my test user doesn&#039;t have one). Nevertheless horde attempts to make ftp login using this user credentials (hordeauth = full) and it fails after several seconds. Ftp login attempt is tried several times and test user has to wait a minute or so for login which is not acceptable. 

In my opinion horde shouldn&#039;t attempt to ftp login while it is not needed because of lack of permission to do it.

May I send you offline cachegrind.out trace of the case?
</description> 
   <pubDate>Fri, 24 May 2013 05:43:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12271#t78199</link> 
  </item> 
   
  <item> 
   <title>&gt; In my opinion horde shouldn&#039;t attempt to ftp login while i</title> 
   <description>&gt; In my opinion horde shouldn&#039;t attempt to ftp login while it is not 
&gt; needed because of lack of permission to do it.

Maybe the solution is to check for application permissions when attempting transparent authentication *if* the user is already authenticated to Horde.

Not sure if this is too broad or prevents a valid use case though.  If so, this check can be done in an application that handles transparent authentication instead (imp, gollem).</description> 
   <pubDate>Fri, 24 May 2013 13:31:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12271#t78205</link> 
  </item> 
   
  <item> 
   <title>&gt; your config is wrong 

Actually Michael was right. I did</title> 
   <description>&gt; your config is wrong 

Actually Michael was right. I didn&#039;t define all levels of permissions to gollem ftp disk (gollem:backends:ftp). Now it works correctly.

You can close this issue. Thank you.</description> 
   <pubDate>Sat, 25 May 2013 12:19:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12271#t78220</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
