6.0.0-git
2021-01-19

[#5151] CustomSQL Auth - function exists
Summary CustomSQL Auth - function exists
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester x3n (at) molinier (dot) eu
Created 2007-03-22 (5052 days ago)
Due
Updated 2007-03-23 (5051 days ago)
Assigned
Resolved 2007-03-23 (5051 days ago)
Milestone
Patch No

History
2007-03-23 20:04:56 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Implemented by adding query_exists to the driver configuration in HEAD.
2007-03-22 16:36:52 x3n (at) molinier (dot) eu Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ CustomSQL Auth - function exists
Queue ⇒ Horde Framework Packages
Reply to this comment
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

Saved Queries