[Zope-PAS] user login and roles

2009-03-08 Thread Dvir Bar-lev
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


Re: [Zope-PAS] user login and roles

2009-03-08 Thread Dvir Bar-lev

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


[Zope-PAS] a question about documentation

2009-03-05 Thread Dvir Bar-lev
Hi all

 

I'm new to zope and this plugin, It was recommended to use this plugin
for log in procedures and custom authorization but I can't seem to find
any documentation on this product.

If anyone can direct me to where I can find such documentation of how to
use this plug in and examples I would really appreciate it.

What I want to do is to define some roles in the zmi and than run a form
that th user will enter in it the role name and the password and than
check that against the roles defined in the ZMI to see which if he
entered the right password.

 

Any help will be appreciated.

Tx in advance

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas