Re: [Zope] Authentication problem when accessing ZSQL method
steve smith writes:
I am experiencing great frustration when trying to implement a drop-down list based upon one of the how-tos I found on the Zope site. Whenever I try to 'view' the DTML method which references the ZSQL method, I am prompted to authenticate by my browser. I can't see anything in the security attributes for the SQL method which requires authentication, and I can 'test' the ZSQL method succesfully without requiring authentication. You must grant the "use database methods" to "Annonymous".
Dieter
Dieter Maurer wrote:
authenticate by my browser. I can't see anything in the security attributes for the SQL method which requires authentication, and I can 'test' the ZSQL method succesfully without requiring authentication. You must grant the "use database methods" to "Annonymous".
I think it's better to criate a special role, give to this role the permission to "use database methods" and to give proxy role to the methods that make authentication and uses the database connection and ZSQL methods. I think it's documented in the "GenericUserFolder with MySQL HOWTO" (or something like it)... []s -- +---------------------------------+---------------------------------+ | César A. K. Grossmann | Capacitação Solidária | | ckant@fazenda.gov.br | http://www.uol.com.br/umminuto/ | | http://members.xoom.com/ckant/ | Clique e doe - é de graça | +---------------------------------+---------------------------------+ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html If you're not careful, you're going to catch something.
participants (2)
-
César A. K. Grossmann -
Dieter Maurer