6.0.0-beta1
7/4/25

[#7013] userlist incorrect when using realm
Summary userlist incorrect when using realm
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester adrieder (at) sbox (dot) tugraz (dot) at
Created 07/02/2008 (6211 days ago)
Due 07/03/2008 (6210 days ago)
Updated 06/19/2009 (5859 days ago)
Assigned 10/23/2008 (6098 days ago)
Resolved 06/19/2009 (5859 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
06/19/2009 02:00:40 PM Chuck Hagenbuch State ⇒ Resolved
 
06/19/2009 07:06:39 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #11 Reply to this comment
If you can get the realm in servers.php, then you can get it in
hooks.php. This is a question for the mailing list now though.
I think you can close this ticket right now. The hooks are working....
11/06/2008 08:51:26 AM Jan Schneider Comment #10 Reply to this comment
If you can get the realm in servers.php, then you can get it in 
hooks.php. This is a question for the mailing list now though.
11/06/2008 08:47:54 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #9 Reply to this comment
The realms rewrites the user name used for authentication to a user
name used in Horde internally. The username hooks do the same, but
unlike the realm feature they are properly integrated in the user
interfaces.
Well using these hooks didn't work quite well, I could not find a way to

get the users realm at login time.

I'm using imp as auth backend.
11/06/2008 02:52:00 AM Chuck Hagenbuch State ⇒ No Feedback
 
10/24/2008 05:05:14 PM Jan Schneider Comment #8 Reply to this comment
The realms rewrites the user name used for authentication to a user 
name used in Horde internally. The username hooks do the same, but 
unlike the realm feature they are properly integrated in the user 
interfaces.
10/24/2008 03:29:57 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #7 Reply to this comment
I'm not sure how the from/tobackend hook would help in the case of 
generating a "realmed" userlist fetched from the imap server. Can you 
explain that for slow thinkers like me?



On a system were you are in the situation which demands realms 
(multiple institution e-mail servers and same usernames on two or more 
of them) people need to know about the realm anyway if they use the 
syncing features via rpc.php, in order to get to their owned calendar, 
tasks and so on.

A sync url for webdav access to kronolith looks like the following then

https:/server.domain/horde/rpc.php/kronolith/username@realm/username@realm.ics/?server=server_key


10/23/2008 10:52:46 PM Jan Schneider Comment #6
State ⇒ Feedback
Reply to this comment
This won't work, unless you want the full user names, including realm, 
to show up in the user name listings. This is usually not desired, 
since the realm is only used internally and should not be displayed to 
the user.

For such a setup, you should rather use from/to_backend hooks.
09/26/2008 08:52:31 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #5 Reply to this comment
after the realm and syncing problem #6749 #6746 seems to be fixed now, 
this is still a problem. Is there any chance that this get fixed for 
4.3?
07/08/2008 07:22:26 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #4 Reply to this comment
I noticed that for folder sharing within IMP the realm should not be 
added since the imapusers on the mailserver do not have a realm. So my 
patch "fixes" sharing in other places but  breaks folder sharing.
07/03/2008 03:06:54 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #3 Reply to this comment
This is definitely not the correct fix.
I'm sorry, I just couldn't and still can't find a better one, I'm sure 
someone eventually will proivde the "correct fix". For now it works 
that way for me.



Thanks anyway


07/03/2008 09:02:14 AM Jan Schneider Comment #2
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
This is definitely not the correct fix.
07/02/2008 11:30:45 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #1
State ⇒ Unconfirmed
New Attachment: api.php.patch Download
Patch ⇒ Yes
Milestone ⇒
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ userlist incorrect when using realm
Due ⇒ 07/03/2008
Queue ⇒ IMP
Reply to this comment
I'm not sure if this (IMP) is the right place for this bug, if not 
please put it to where it belongs.



When using realms and application IMP as auth driver, then 
$auth->listUsers() returns just the mailboxname/username without 
realm, this prevents sharing of calendars or tasklists (maybe others 
too), because users get not correctly entered in the shares tables.



The attached patch fixes the problem for me, but I'm not sure if this 
is the right place for fixing the issue.

Saved Queries