Re: [Zope] Authentication question.
I don't know if my experience is any use. I'm developing a site with a postgresql backend and I want users to be able to enter data over the web, and I want to know who has entered what data. So only registered users can access the pages which allow data entry. I set up a GUF (Generic User Folder) and used the How-to on using GUF with SQL. This checks the login and password against Postgress and of course I can then look-up the user-id whenever I want to 'stamp' data with that user-id. I had some problems when testing the system using the 'super-user' since it wouldn't do sql-lookups for that user (this was Zope 2.1.4). Unfortunately since installing the latest release of GUF I can't get it to work at all, except as super-user (not even in standard non-sql mode). I'm waiting to see what happens in this area as I would hope that login manager or something coming out of the PTK would be the way to go. Unfortunately Zope, and associated products seems to be in state of rapid change and there are quite a few unknowns at the moment. If you'd like any details of my code just get back to me. Regards Richard At 15:00 23/06/00 -0400, you wrote: >hi folks, > >we are building an application that needs more information >for users than that which is made available via the >acl_users db (which can only contain username, password, >domains, and roles). specifically, we have created an RDBS >database which tracks users via a numeric user id (and >speeds lookups), all tables are related via this integer >variable. > >we are having difficulty, though, in that, zope continues to >want to build a new user entry only via acl_users. has >anyone done something that will allow us to get around >this. i have been searching all the various search engines >and zope list archives looking for something along these >lines, and i find a lot of stuff on how zope authentication >"out of the box" works though nothing on how to get the >authentication to work via another means. > >i suspect it might require some editing of the base python >code, but i am hoping that this can be done from within the >Products directory and not in the preconpiled code. > >any insights would be greatly appreciated. > >thanks. > >ciao! >greg. > >Gregory Haley >venaca.com > >___ >Zope maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) Richard Moon [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Authentication question.
On Fri, 23 Jun 2000, Gregory Haley wrote: > we are building an application that needs more information > for users than that which is made available via the > acl_users db (which can only contain username, password, > domains, and roles). specifically, we have created an RDBS > database which tracks users via a numeric user id (and > speeds lookups), all tables are related via this integer > variable. Nothing yet abstracts out the username from the userid (although this is now documented in the Zope Interfaces wiki so it is comming). You can achieve the functionality you want by writing a plugin for LoginManager, or modifying UserDB or the GenericUserFolder. UserDB might do what you are after out of the box actually - I'm not sure. These products are all available on www.zope.org. LoginManager's GenericUserSource and the GenericUserFolder would both require username->userid lookups in your situation whenever you access a user objects attributes (eg. retrieve a list of roles). However, if you are doing this via a ZSQL method this is a fairly insignificant overhead if you remember to use the ZSQL methods cache settings thus saving RDBMS lookups. -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Authentication question.
hi folks, we are building an application that needs more information for users than that which is made available via the acl_users db (which can only contain username, password, domains, and roles). specifically, we have created an RDBS database which tracks users via a numeric user id (and speeds lookups), all tables are related via this integer variable. we are having difficulty, though, in that, zope continues to want to build a new user entry only via acl_users. has anyone done something that will allow us to get around this. i have been searching all the various search engines and zope list archives looking for something along these lines, and i find a lot of stuff on how zope authentication "out of the box" works though nothing on how to get the authentication to work via another means. i suspect it might require some editing of the base python code, but i am hoping that this can be done from within the Products directory and not in the preconpiled code. any insights would be greatly appreciated. thanks. ciao! greg. Gregory Haley venaca.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )