<?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>Allow preauthenticate hook to modify parameters</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:24 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4456</link> 
  <atom:link rel="self" type="application/rss+xml" title="Allow preauthenticate hook to modify parameters" href="https://bugs.horde.org/ticket/4456/rss" /> 
  <description>Allow preauthenticate hook to modify parameters</description> 
 
   
   
  <item> 
   <title>Recently I found a need to rewrite the username sent to Hord</title> 
   <description>Recently I found a need to rewrite the username sent to Horde on authentication.  While the tobackend and frombackend hooks looked appealing at first, they are not called in the appropriate locations to be useable for this goal.



After discussing alternatives with Chuck, I settled on this approach:  Pass the values by reference to the preauthenticate hook.  This will allow rewriting of the parameters if required.  The defualt case does not do that so this should not impact BC.  It does however let me rewrite the username to include the domain name of the HTTP Vhost when the user authenticates.</description> 
   <pubDate>Sat, 23 Sep 2006 03:53:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4456#t24189</link> 
  </item> 
   
  <item> 
   <title>This is not against the latest HEAD, the hook call has been </title> 
   <description>This is not against the latest HEAD, the hook call has been replaced with callHook().</description> 
   <pubDate>Wed, 27 Sep 2006 11:50:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4456#t24353</link> 
  </item> 
   
  <item> 
   <title>You&#039;re right, sorry about that.



I looked into trying to d</title> 
   <description>You&#039;re right, sorry about that.



I looked into trying to do the same modification to Horde::callHook() but it is not possible with PHP4.  callHook() sets $args to a default value of array().  If the function signature is changed to specify $args as a pass-by-reference, a parse error is thrown.  According to the PHP documentation this is valid in PHP5 but not PHP4.  Unless I&#039;m missing something, this change isn&#039;t going to be possible (at least, not while maintaining backward compatibility).</description> 
   <pubDate>Mon, 13 Nov 2006 17:13:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4456#t26015</link> 
  </item> 
   
  <item> 
   <title>Stalling with a Horde 4.0 milestone for now.</title> 
   <description>Stalling with a Horde 4.0 milestone for now.</description> 
   <pubDate>Tue, 14 Nov 2006 05:11:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4456#t26025</link> 
  </item> 
   
  <item> 
   <title>Ben, you can go ahead and do this in HEAD now.</title> 
   <description>Ben, you can go ahead and do this in HEAD now.</description> 
   <pubDate>Sun, 09 Nov 2008 01:35:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4456#t50491</link> 
  </item> 
   
  <item> 
   <title>Credentials can be modified in Horde 4 via the preauthentica</title> 
   <description>Credentials can be modified in Horde 4 via the preauthenticate hook.</description> 
   <pubDate>Wed, 09 Dec 2009 23:11:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4456#t57091</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
