Re: [Zope-PAS] user login and roles
On Sun, Mar 8, 2009 at 09:33, Dvir Bar-lev dvi...@puresight.com wrote: Hi all. I need help please, I downloaded the pas plugin for zope but I can’t find any documentation on how to use it. What I want to do is the following: I want to define 2 roles – ISP and Parent. I want my site visitors to arrive to a log in page that has 2 fileds – user name and password. What I want to do is to assign one of the roles above to each user based on the user name and the password en entered in the above form and direct him to the appropriate page, I tried to look in the internet but I can’t find any way of doing this. If there is a way to do it without using the pas plugin I would be happy with that too. Please help me, I’m utterly stuck and I don’t have a clue what to do. Tx in advance ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas As mentioned elsewhere, PAS is overkill for this. You can assign roles to uses with the normal user folder. -- Lennart Regebro: Pythonista, Barista, Notsotrista. http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
Re: [Zope-PAS] user login and roles
This is what I would like to happen: A user goes to the site, he see the log in screen that has 2 entry fields - user name and password. The user enteres the data and presses the submit button. Now I want to take what the user entered and see if I have the same user and password defined in acl_users folder, if so I want to give him the role that that user in the acl_users folder have. And than based on that role direct him to the appropriate page What I don't want is that the zope will pop up his login window, in essence I want to do my own authentication, validation and role assigning. I hope this clears up what I want, I was told that I need the PAS plugin but I have no idea how to use it, if there is a way to do it without PAS I would very much like to hear it. -Original Message- From: Lennart Regebro [mailto:rege...@gmail.com] Sent: Sunday, March 08, 2009 10:44 AM To: Dvir Bar-lev Cc: zope-pas@zope.org Subject: Re: [Zope-PAS] user login and roles On Sun, Mar 8, 2009 at 09:33, Dvir Bar-lev dvi...@puresight.com wrote: Hi all. I need help please, I downloaded the pas plugin for zope but I can't find any documentation on how to use it. What I want to do is the following: I want to define 2 roles - ISP and Parent. I want my site visitors to arrive to a log in page that has 2 fileds - user name and password. What I want to do is to assign one of the roles above to each user based on the user name and the password en entered in the above form and direct him to the appropriate page, I tried to look in the internet but I can't find any way of doing this. If there is a way to do it without using the pas plugin I would be happy with that too. Please help me, I'm utterly stuck and I don't have a clue what to do. Tx in advance ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas As mentioned elsewhere, PAS is overkill for this. You can assign roles to uses with the normal user folder. -- Lennart Regebro: Pythonista, Barista, Notsotrista. http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas
Re: [Zope-PAS] user login and roles
On Sun, Mar 8, 2009 at 10:35, Dvir Bar-lev dvi...@puresight.com wrote: A user goes to the site, he see the log in screen that has 2 entry fields - user name and password. The user enteres the data and presses the submit button. Now I want to take what the user entered and see if I have the same user and password defined in acl_users folder, if so I want to give him the role that that user in the acl_users folder have. Yup, this is all automatic. And than based on that role direct him to the appropriate page Aha. So your questions are two: How can I have a HTML login page, and how can I redirect the user to different pages after login, based on the roles. PAS certainly helps you with this, as it has support for having HTML forms for login. Also, as Andreas mentioned, there is a product called CookieCrumbler that can help you with this without using PAS. So how do you use PAS? You start using PAS by replacing your current acl_user folder with the Pluggable Auth Service. In this you add plugins. The plugins do different things. The User Manager will store users and passwords. The ZODB Role Manager will store role assigments to users. The Cookie Auth Helper will enable you to have a login form. Create all these, enable them, fiddle around a bit. Then you probably need to ask more questions, and I won't know enough about PAS to answer, but somebody else probably will. -- Lennart Regebro: Pythonista, Barista, Notsotrista. http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-PAS mailing list Zope-PAS@zope.org http://mail.zope.org/mailman/listinfo/zope-pas