Mailing List Archive

User Authentication
Hello Everyone,

I need help in configuring user authentication for a folder in Zope using MySQL database. I spent many hours reading and searching for the answer but I con not reach a successful outcome. Here is what I did so far:

- the folder that needs to be protected is "Root Folder\domains\mydomain"
- I added a "MySQL_database_connection (Z MySQL Database Connection). The "Status" tab says the connection is open.
- I added an "acl_users" (Extensible User Folder).
- the "parameters" tab is set to "cookie-based authentication"
- the "Authentication Source" tab shows
Database Connection set to "MySQL_database_connection
Table Name set to "webusers"
Username Column set to "user_login"
Password Column set to "user_pass"
Roles Column set to "user_roles"
- the "Properties Source" tab shows Database Connection set to "MySQL_database_connection"
- the "Membership Source" tab shows (I list only some of the entries here):
Mail Host set to "MialHost"
Site Base set to "http://my.ip.address:8080/domains/mydomain"
Relative Path (from base) of Login Page set to "LoginForm"
Relative Path (from base) of Signup Page set to "SignupForm"
Relative Path (from base) of Change Password Page set to "ChangPasswordForm"
After login.... set to "Go to intended destination"
Default Roles has nothing selected

- the "Groups Source" is blank
- the "Security" tab shows all set to "Aquire"
- the "Contents" tab has a list of DTML and folders (too long to enter them here)
- I added an "index_html" DTML method
- I inserted a row in the database with the following data "user_login=admin" "user_pass=schi" "user_roles=administrator" (I used phpMyAdmin for this since I did not know how to do it in Zope)

When I call in a browser http://my.ip.address:8080/domains/mydomain the above "index_html" is displayed

When I change on the "Security" tab of the "index_html" method, the "View" permission from "Acquire" to "Authenticated" I do receive the "Login Required" page from domains/mydomain/acl_users and the "Contents" tab, DTML method called "docLogin (Login Page)".

If I enter the user name as "caladmin" and its password "schi" and click the OK button ... the login page comes back over and over again. No error messages are displayed.

What am I doing wrong and how can I make it work? Please help.

Thank you.
Laurentiu
Re: User Authentication [ In reply to ]
Laurentiu Traineanu [larry@neisweb.com] wrote:
> Hello Everyone,
>
> I need help in configuring user authentication for a folder in Zope
> using MySQL database. I spent many hours reading and searching for the
> answer but I con not reach a successful outcome. Here is what I did so
> far:

What you try to do will not work. There's no relationship between
zope security system and you tables.

You should learn more about it. There're numerous UserFolder products
and I'm sure you will find the one that suits you best.

For MySQL tables based authentication data storage there's MySql
UserFolder.

Best of luck.

--
Michal Kurowski
perl -e '$_=q#: 13_2: 12/o{>: 8_4) (_4: 6/2^-2; 3;-2^\2: 5/7\_/\7: 12m m::#;
y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db
Re: User Authentication [ In reply to ]
On 2006-01-07 at 03:21:06 [+0100], Laurentiu Traineanu <larry@neisweb.com>
wrote:
> When I change on the "Security" tab of the "index_html" method, the "View"
> permission from "Acquire" to "Authenticated" I do receive the "Login
> Required" page from domains/mydomain/acl_users and the "Contents" tab, DTML
> method called "docLogin (Login Page)".
>
> If I enter the user name as "caladmin" and its password "schi" and click
> the OK button ... the login page comes back over and over again. No error
> messages are displayed.
>
> What am I doing wrong and how can I make it work? Please help.

It sounds like you are using XUF so you might want to direct your question
there. XUF is configured to present you with the login page if you give the
wrong details. You should check the error log for full details.

Charlie
--
Charlie Clark
eGenix.com

Professional Python Services directly from the Source
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db
Re: User Authentication [ In reply to ]
Thank you all for your answers. I will follow Charlie's advice and post the question to the XUF list (http://sourceforge.net/mailarchive/forum.php?forum_id=190)
Laurentiu
----- Original Message -----
From: Charlie Clark
To: zope-db@zope.org
Sent: Monday, January 09, 2006 8:48 AM
Subject: Re: [Zope-DB] User Authentication



It sounds like you are using XUF so you might want to direct your question
there. XUF is configured to present you with the login page if you give the
wrong details. You should check the error log for full details.

Charlie
--
Charlie Clark
eGenix.com