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 |
Assigned to Michael Slusarz
State ⇒ Resolved
Version ⇒ 4.3.6
Milestone ⇒ 4.3.7
Bug: 8872Submitted by: robin.west@dal.ca
Fix authenticate API call.
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&r1=1.699.2.420&r2=1.699.2.421&ty=u
http://cvs.horde.org/diff.php/imp/lib/api.php?rt=horde&r1=1.94.10.21&r2=1.94.10.22&ty=u
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
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ realm omitted from username when using api
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
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'?