RE: [PEAR] Auth and permissions

From: Date: Fri, 16 May 2003 09:28:37 +0000
Subject: RE: [PEAR] Auth and permissions
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5399@lists.php.net to get a copy of this message
Am Don, 2003-05-15 um 08.32 schrieb LIMBOURG Arnaud: > First, this was already discussed before, PEAR::Auth is authentication > package. Adding permissions to it does not make much sense. > > Second, liveuser might be more what you are looking for. It is not *that* > complicated. Doc is being written but is still in early stages. 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. 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?) 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). 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. Thanks very much -- Cheers Marco > > Arnaud. > > > Yeah, I do the same think, if yo want to do patch, lets do it.. > > > > -az > > > > Marco Schuler(marco.schuler@scopein.ch)@Tue, May 13, 2003 at > > 09:24:52PM +0200: > > > Hi all > > > > > > I am quite new in using PEAR packages and OO-programming. I > > am delighted > > > how "easy" development is by using PEAR classes. > > > > > > Right now I am implementing a website where I need some kind of > > > authentication. Not hard to do with help of the > > auth-package. My problem > > > that came up during the last hours is that I need > > permissions to access > > > cetain pages. Lets say I want to have five different levels of > > > permissions like "user", "author", "editor", > > > "supervisor" > > and "admin". A > > > nice to have feature would be inclusive permissions. > > > > > > As I figured out, PEAR Auth does not provide this > > functionality. I also > > > read about LiveUser. Seems to satisfy my wishes and a lot > > more, but I > > > think it is to complicated for just implementing my > > "simple" permission > > > scheme, and the documentation is not such an advanced state > > for a newbie > > > to get started. > > > > > > I'd like to ask if somebody ever has extended PEAR Auth to > > satisfy my > > > requirements. I would be glad to just get some tips of you > > out there how > > > you would face my "problem". If somebody would be so kind > > to provide me > > > an extended class, that would allow me to go out tonight to > > have a beer > > > maybe ;-) > > > > > > Thanks anyway > > > > > > -- > > > Cheers > > > Marco > > > > -- > > PEAR General Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.general (#5399) next »