Re: [Zope-dev] LoginManager question

2001-03-28 Thread Bertrand Croq
Phillip J. Eby wrote : Get rid of the "id_user" DTML method and add the following to a SkinScript method inside your UserSource: WITH QUERY SQL_id_user(username=self.id) COMPUTE id_user You should then be able to do "AUTHENTICATED_USER.id_user" to retrieve the attribute. I had to update

[Zope-dev] LoginManager question

2001-03-27 Thread Bertrand Croq
Hi, I am currently using LoginManager to authenticate users from a MySQL database. I followed the tutorials and it works quite well; but there are other data associated with users in the database that I would like to use in Zope. I have found a solution but I think it is quite complicated:

Re: [Zope-dev] LoginManager question

2001-03-27 Thread Phillip J. Eby
At 12:19 PM 3/27/01 +0200, Bertrand Croq wrote: Hi, I am currently using LoginManager to authenticate users from a MySQL database. I followed the tutorials and it works quite well; but there are other data associated with users in the database that I would like to use in Zope. I have found a

[Zope-dev] LoginManager

2001-03-26 Thread Srinath Mantripragada
Hi, I want to know howto use multiple usersSource in Login Manager, if it's possible. I have added 2 usersSoucers and created diferent methods for each usersSource, but it authenticates only within the first userSource Listed. -- Srinath Mantripragada [EMAIL PROTECTED]

[Zope-dev] LoginManager error

2001-02-07 Thread Bertrand CROQ
Hi, I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. When I try to use LoginManager (following the tutorial about LoginManager and SQL), here is the error I get in the browser: Type: TypeError Value: not enough arguments; expected 3, got 2 Traceback (innermost last):

Re: [Zope-dev] LoginManager error

2001-02-07 Thread Jochen Knuth
Hi, Bertrand CROQ schrieb: Hi, I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. When I try to use LoginManager (following the tutorial about LoginManager and SQL), here is the error I get in the browser: ... The error seams to be in LoginMethods.py:149 as it

[Zope-dev] LoginManager and ZPatterns

2001-01-29 Thread Morten W. Petersen
Hi fellow zopers, I don't know if it's a bug or feature, but whenever I try to access parental objects from a user object in python code, I can't seem to find anything. That is, whenever I call acl_users.getItem('user123').getParentNode() (the acl_users is a LoginManager instance) it returns

[Zope-dev] LoginManager and Control_Panel - The Never Ending Story

2001-01-29 Thread Itai Tavor
Hi, I posted several questions about this problem, but got no replies. I thought I'd try again with a bit more information. The problem is accessing Control_Panel from a folder that contains a LoginManager. I tested the same setup using a plain acl_users and found one difference. Zope/

[Zope-dev] LoginManager and PTK

2000-12-21 Thread Morten W. Petersen
Hi guys, I previously posted a couple of functions that enables users to login at a lower level in the tree-structre than where the actual user folder is. I.e., a user could enter username and password at /a and get redirected to /a/a/a/a/b (the acl_users folder would be

Re: [Zope-dev] Loginmanager and local roles

2000-12-20 Thread Michael Bernstein
"Morten W. Petersen" wrote: [Morten W. Petersen] | Any suggestions? Found the problem. There needs to be a method called user_names in the acl_users folder, which returns all the user ids: [snip solution] Sorry I didn't see your question earlier. Here was what I posted to the list

Re: [Zope-dev] Loginmanager and local roles

2000-12-19 Thread Morten W. Petersen
[Morten W. Petersen] | Any suggestions? Found the problem. There needs to be a method called user_names in the acl_users folder, which returns all the user ids: """ paramsself/params user_ids = self.UserSource.getPersistentItemIDs() user_ids2 = [] for id in user_ids:

[Zope-dev] Loginmanager and LDAP

2000-11-27 Thread Magnus Heino (Rivermen)
Hi. I'd like to authenticate users using LDAP and Active Directory. Zope is running on a RH7.0 box. Has anyone done this, is it possible? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No

[Zope-dev] LoginManager Acquisition Problem

2000-11-05 Thread Charlie Wilkinson
Greetings Fellow ZoPeople, I'm having some difficulty with Acquisition of security settings within LoginManager protected folders. I'm using the latest CVS of Zope and LM 0.8.8b1 with the included ZPatterns and Plugins. It was necessary to apply a patch (from Luca Mearelli on this list) on

[Zope-dev] LoginManager and ZPatterns

2000-10-15 Thread Morten W. Petersen
I've been fiddling a bit with the LoginManager; but can't seem to make it work. The product versions are ZPatterns 0.3.0 and LoginManager 0.8.6. (Downgraded the ZPatterns product because the LoginManager couldn't find a class named .. SheetProviderContainer, I think). When adding a

Re: [Zope-dev] LoginManager and ZPatterns

2000-10-15 Thread Phillip J. Eby
At 05:11 PM 10/15/00 +0200, Morten W. Petersen wrote: I've been fiddling a bit with the LoginManager; but can't seem to make it work. The product versions are ZPatterns 0.3.0 and LoginManager 0.8.6. (Downgraded the ZPatterns product because the LoginManager couldn't find a class named ..

Re: [Zope-dev] LoginManager and ZPatterns

2000-10-15 Thread Morten W. Petersen
[Phillip J. Eby] | 0.8.6 won't work with 0.3.0 ZPatterns, IIRC. I'm pretty positive it | requires one of the 0.4.x releases, but I'm not positive which one. You | might be better off with the latest (current) releases of both. Okay, I tried different ZPattern versions against the most recent

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Jonas Juselius
Cheers! I actually tried to implement support for local roles in almost exactly the same way as you did, but for some reason I didn't get it to work. Perhaps I should look into the matter again... I just threw in the user_names(), and getUserNames() into the LoginManager, added some dtml to

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Phillip J. Eby
At 04:01 PM 10/6/00 +, Ty Sarna wrote: I think this is due to Shane's fix for allowing LM's as non-top-level acl_users. I had it originally so that _owner was a class attribute, which works fine. With the change, it was added as an instance attribute. Now, UnownableOwner is just an empty

[Zope-dev] LoginManager ownership bug!

2000-10-05 Thread Jonas Juselius
Hola, There seems to be a problem with the ownership model in Zope (or ZPatterns). The problem is the following: I have implemented a nice login system based on the LoginManager and SQL methods. I would like to make this acl_users the top level user folder, but... then hell brakes lose...

Re: [Zope-dev] LoginManager ownership bug!

2000-10-05 Thread Michael Bernstein
Jonas Juselius wrote: Another thing which I have tried to do, is to add support for local roles to the LoginManager. At first it looked rather simple, but then I realized that it wasn't really _that_ simple, and dropped it because I don't have time... It would however be nice to have local

[Zope-dev] LoginManager NT plugins?

2000-09-05 Thread Robin Becker
anyone doing user authentification with NT + Loginmanager? -- Robin Becker ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] LoginManager.

2000-08-27 Thread Terje Malmedal
[Phillip J Eby] def retreiveItem(self, name): self.f.write('Creating object for %s\n' % name) return USER(name) Your retrieveItem isn't checking to see if the user exists. Also, you spelled it "retreive" when the correct spelling is "retrieve". Yep, as soon as I noticed the

Re: [Zope-dev] LoginManager.

2000-08-26 Thread Phillip J. Eby
At 11:53 PM 8/20/00 +0200, Terje Malmedal wrote: I've written this, but it just does not work, all that happens is that it writes opened to /tmp/source.log class USER: "Just a little test" name= None roles = [ 'Anonymous' , 'member' ] domains = [] def __init__(self,

Re: [Zope-dev] LoginManager.

2000-08-24 Thread Bill Anderson
Terje Malmedal wrote: [Bill Anderson] Terje Malmedal wrote: Can anybody please provide a simple example of a working usersource written in python? Look at the UserSource source for LoginManager and Membership. I did that. I feel I am missing something obvious. What I do is:

Re: [Zope-dev] LoginManager.

2000-08-21 Thread Bill Anderson
Terje Malmedal wrote: Can anybody please provide a simple example of a working usersource written in python? Look at the UserSource source for LoginManager and Membership. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password.

[Zope-dev] LoginManager.

2000-08-20 Thread Terje Malmedal
Can anybody please provide a simple example of a working usersource written in python? I've written this, but it just does not work, all that happens is that it writes opened to /tmp/source.log class USER: "Just a little test" name= None roles = [ 'Anonymous' , 'member' ]

Re: [Zope-dev] LoginManager patch considered harmful

2000-07-10 Thread Shane Hathaway
"Phillip J. Eby" wrote: At 09:22 AM 7/10/00 -0400, Shane Hathaway wrote: The new security machinery actually provides a different way to solve this problem. Since we now have an execution stack, we can limit that stack, causing an exception to be thrown rather than letting it overflow

[Zope-dev] LoginManager patch considered harmful (was Re: can't addloginmanager below root) loginmanager below root)

2000-07-08 Thread Phillip J. Eby
At 09:21 PM 6/28/00 +, Ty Sarna wrote: In article [EMAIL PROTECTED], Shane Hathaway [EMAIL PROTECTED] wrote: Ok folks, I thought I had made it clear that this problem has been solved. I have sent a patch to Ty (about two weeks ago) as well as made the change in Sorry for the delay.

[Zope-dev] LoginManager add trouble

2000-06-20 Thread Scott Parish
Using: Zope2 (cvs) ZPatterns 0.3.0 LoginManger 0.8.6 When I try to add a LoginManager, I get the following error and traceback. Any ideas? sRp - Error Type: KeyError Error Value: _owner Traceback (innermost last): File /a4/srp/Zope2/lib/python/ZPublisher/Publish.py, line 222, in