RE: [PEAR] Auth and permissions
| From: | LIMBOURG Arnaud | Date: | Fri, 16 May 2003 09:38:50 +0000 |
| Subject: | RE: [PEAR] Auth and permissions | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5400@lists.php.net to get a copy of this message | ||
> Yes, you are right. LiveUser would actually provide me the
> functionality
> that I need. I tried to figure out how it works the last two days (by
> the way, I am a PEAR newbie). It seems to me that there is some useful
> methodes that do not exist so far (maybe they are planed to be
> implemented one day) such as inserting a new user.
Actually there is. Have a look at DB_Complex_Admin, inderting a new user is
considered administration work and should not be found in the main class, it
would clutter the API for something you don't use quite often.
> For my needs a permisson container DB_Simple would be sufficient. But
> there is no consistent tutorial on this topic (or couldn't I find it?)
There is one being written. Join the liveuser list
liveuser@lists.21st-hq.de. Some docs can be found at
projects.21st-hq.de/liveuser/
> So, I would be glad I someone who uses LiveUser could provide
> me a code
> snippet taht shows me how to protect my site with authentication and
> check if the user has rights to access a certain page. Also I
> would like
> to have an example of how to insert a new member into the
> database. If I
> am right, there should be an interface within the container to do so
> (Could not find it too).
Have alook at the draft tutorial. A sample application will be put online in
the next weeks to show what it does and the code that does it.
> If nobody is using LiveUser yet, I would be glad to get some
> advices on
> other classes that you use to provide the desired functionality.
For permissions there was a talk on Enterprise A&A, i don't know where it
stands though. There is also phpacl or something like that.
HTH
Arnaud.