[Tickets #3279] NEW: Sub application permission problems

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Jan 16 13:42:41 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3279
-----------------------------------------------------------------------
 Ticket             | 3279
 Created By         | bidulock at finearts.uvic.ca
 Summary            | Sub application permission problems
 Queue              | Horde Base
 Version            | 3.0.9
 State              | New
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | 
+New Attachment     | lowercase.patch
-----------------------------------------------------------------------


bidulock at finearts.uvic.ca (2006-01-16 13:42) wrote:

We were having problems with sub applications like Turba and Nag when a user
authenticated with uppercase characters in their username. We are using Imp
with Imap for authentication, and so this works, but when a user submitted
data in an application like Turba, the owner in the database table (ie.
turba_objects and owner_id) would contain the uppercase characters. This
prevented them from viewing the data if they later logged in with all
lowercase, or any other combination of upper and lowercase characters in
their username, which differed from what they used when they entered the
data.

To fix this problem, I modified horde's Auth::getAuth() method adding a
check for the configuration variable $GLOBALS['conf']['auth']['lowercase'],
and if that was set, to run the return result through strtolower(). This
seems to have fixed all the problems.

I have included my patch, and believe it would be a nice option added for
any other imp and imap authentication users.

Run patch from the horde install directory with -p0




More information about the bugs mailing list