<?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>realm omitted from username when using api</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:52 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8872</link> 
  <atom:link rel="self" type="application/rss+xml" title="realm omitted from username when using api" href="https://bugs.horde.org/ticket/8872/rss" /> 
  <description>realm omitted from username when using api</description> 
 
   
   
  <item> 
   <title>Hi - using Horde 3.3.4/IMP4.3.4/Ingo1.2.1. I have IMP config</title> 
   <description>Hi - using Horde 3.3.4/IMP4.3.4/Ingo1.2.1. I have IMP configured with realm=&#039;dal.ca&#039;, so normally when I log in, Auth::getAuth() would return &#039;rwest@dal.ca&#039; and all my prefs are saved in the backend with pref_uid=&#039;rwest@dal.ca&#039;. 

I have a custom script which connects to IMP using the imp_authenticate() api function ... but when I connect this way, there is no realm in my username (i.e. Auth::getAuth() returns just &#039;rwest&#039;). This is a problem if my custom script wants to retrieve prefs from the backend, which are all stored with the pref_uid=&#039;rwest@dal.ca&#039;.

Is this expected behaviour for using the imp_authenticate() api? Or is it a bug? Is there anything I can do so that my custom script ends up logging in as &#039;rwest@dal.ca&#039; instead of just &#039;rwest&#039;?</description> 
   <pubDate>Fri, 12 Feb 2010 19:55:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8872#t57976</link> 
  </item> 
   
  <item> 
   <title>Just an update ... I noticed that when the imp_authenticate </title> 
   <description>Just an update ... I noticed that when the imp_authenticate api calls createSession() it makes reference to $result[$server_key]. I&#039;m not sure where this $result array is supposed to come from, but if I change it to $servers[$server_key], then it picks up the correct IMAP server info from servers.php and everything works fine.

Also verified that this code is still the same in your latest version (4.3.6).

-Robin</description> 
   <pubDate>Mon, 15 Feb 2010 14:10:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8872#t57992</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Bug: 8872
Su</title> 
   <description>Changes have been made in CVS for this ticket:

Bug: 8872
Submitted by: robin.west@dal.ca
Fix authenticate API call.
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&amp;r1=1.699.2.420&amp;r2=1.699.2.421&amp;ty=u
http://cvs.horde.org/diff.php/imp/lib/api.php?rt=horde&amp;r1=1.94.10.21&amp;r2=1.94.10.22&amp;ty=u</description> 
   <pubDate>Tue, 16 Feb 2010 05:51:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8872#t57994</link> 
  </item> 
   
  <item> 
   <title>Fixed in IMP 4.3.7.</title> 
   <description>Fixed in IMP 4.3.7.</description> 
   <pubDate>Tue, 16 Feb 2010 05:52:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8872#t57996</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
