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 |
State ⇒ Resolved
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ CustomSQL Auth - function exists
Queue ⇒ Horde Framework Packages
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