Re: Liveruser with extended PEAR::Auth classes
| From: | Lukas Smith | Date: | Tue, 30 Aug 2005 09:12:29 +0000 |
| Subject: | Re: Liveruser with extended PEAR::Auth classes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20658@lists.php.net to get a copy of this message | ||
Jeroen Houben wrote:
Hi, I've been playing with LU and a DB container for storing my users. This seems to work well. Now I want to change my setup to use PEAR::Auth to authenticate my users. Permissions will still be stored in a database. Is it possible to use an instance of an extended PEAR::Auth class (I don't think it is judging from the source code) and if so, what would my configuration array look like?You can pass in an existing instance. Just specify a "pearAuth" key with the instance inside your configuration array. That should work.
Regarding permissions, would I have to create entries in both the perm_users table and the users table, or only in the perm_users table?Only the perm_users table. The users table is used by the database auth container, which you obviously dont need if you are using a different auth source (note: of course you can use the pear auth container and database auth container at the same time if you put both in your config array). regards, Lukas