[Tickets #5151] CustomSQL Auth - function exists

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Mar 22 16:36:52 UTC 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=5151
-----------------------------------------------------------------------
 Ticket             | 5151
 Created By         | x3n at molinier.eu
 Summary            | CustomSQL Auth - function exists
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


x3n at molinier.eu (2007-03-22 09:36) wrote:

There is no definition for the function "exists " in the customSQL Auth
Backend. By default, the function of the SQL backend is used but
unfortunatly it doesn't work.

Parameters for SQL and CustomSQL are different. I propuse using the
following function in the class customSQL :

    function exists($userId)
    {
        return in_array($userId, $this->listUsers());
    }

Otherwise, we can ask the user a query handling the existance of an user.
This could be more efficient than listing all users and then searching him
in the array...

Best regards,

x3n
http://www.molinier.eu



More information about the bugs mailing list