6.0.0-beta1
7/8/25

[#8872] realm omitted from username when using api
Summary realm omitted from username when using api
Queue IMP
Queue Version 4.3.6
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester robin.west (at) dal (dot) ca
Created 02/12/2010 (5625 days ago)
Due
Updated 02/16/2010 (5621 days ago)
Assigned
Resolved 02/16/2010 (5621 days ago)
Github Issue Link
Github Pull Request
Milestone 4.3.7
Patch No

History
02/16/2010 05:52:19 AM Michael Slusarz Comment #4
Assigned to Michael Slusarz
State ⇒ Resolved
Version ⇒ 4.3.6
Milestone ⇒ 4.3.7
Reply to this comment
Fixed in IMP 4.3.7.
02/15/2010 02:10:27 PM robin (dot) west (at) dal (dot) ca Comment #2 Reply to this comment
Just an update ... I noticed that when the imp_authenticate api calls 
createSession() it makes reference to $result[$server_key]. I'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
02/12/2010 07:55:40 PM robin (dot) west (at) dal (dot) ca Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ realm omitted from username when using api
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi - using Horde 3.3.4/IMP4.3.4/Ingo1.2.1. I have IMP configured with 
realm='dal.ca', so normally when I log in, Auth::getAuth() would 
return 'rwest@dal.ca' and all my prefs are saved in the backend with 
pref_uid='rwest@dal.ca'.

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 
'rwest'). This is a problem if my custom script wants to retrieve 
prefs from the backend, which are all stored with the 
pref_uid='rwest@dal.ca'.

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 'rwest@dal.ca' instead of just 'rwest'?

Saved Queries