[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' ]

[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] ___

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. _

Re: [Zope-dev] LoginManager.

2000-08-22 Thread Terje Malmedal
[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: * create a folder name

Re: [Zope-dev] LoginManager.

2000-08-23 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. >

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

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 th

[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):

[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: -

[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 pu

[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 - http://lists.zope.org/mai

[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... The

[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 LoginManager

[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 HTTPR

[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 cros

[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 loc

[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 Non

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 a

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 fou

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 up

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 lo

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 ha

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Ty Sarna
In article <[EMAIL PROTECTED]>, Jonas Juselius <[EMAIL PROTECTED]> wrote: > The problem has to do with the ownership of the acl_users. When the > LoginManager (acl_users) is created it sets the _owner attribute to > UnownableOwner. This is fine, for if the acl_users folder is owned it results ...

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

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Jonas Juselius
Thanks! I actually tried to make _owner a class attrib, but then I tried to add a LM to a sub-folder ;-) It didn't work out... Would it be an ugly solution to check whether the LM _is_ top-level, and if it is, make _owner a class attrib? Would it work? Or is this solution only curing the symptoms

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 L

Re: [Zope-dev] Loginmanager and LDAP

2000-11-30 Thread Phillip J. Eby
At 07:17 AM 11/28/00 +0100, Magnus Heino (Rivermen) wrote: > > >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? Dunno about Active Directory or RH 7, but Ty and I use LDAP logins with LoginManager all the ti

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Michael Bernstein
Jonas Juselius wrote: > > Do you have any clue about the ownership bug in the LoginManager? I find it > quite strange that an unowned object becomes owned whenever Zope is restarted > (or when a method is added...). I suspect that the problem is within the > ZPatterns modules, since it handles th

[Zope-dev] Loginmanager and local roles

2000-12-19 Thread Morten W. Petersen
Using LoginManager, I can't seem to map local roles to users that are stored in LoginManager instances. I.e.: if this acl_users is a LoginManager /a/b/c/acl_users then any object in /a/b/c/d will not show any of the users stored in the nearest acl_users object in the local ro

Re: [Zope-dev] LoginManager patch considered harmful

2000-07-10 Thread Shane Hathaway
"Phillip J. Eby" wrote: > Shane's patch changes manage_addLoginManager to set ob._owner = > UnownableOwner, which is good, because this ensures that > AccessControl.Owned.Owned._deleteOwnershipAfterAdd() can del self._owner. > (I think that Owned shouldn't be doing this this way, but as yet I don'

Re: [Zope-dev] LoginManager patch considered harmful

2000-07-10 Thread Phillip J. Eby
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 the C stack. It would actual

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 >

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: """ self user_ids = self.UserSource.getPersistentItemIDs() user_ids2 = [] for id in user_ids: user_ids2.append(id) return

Re: [Zope-dev] Loginmanager and local roles

2000-12-19 Thread Steve Spicklemire
Hi Morten, > "Morten" == Morten W Petersen <[EMAIL PROTECTED]> writes: Morten> (Can't understand why I had to use an additional list Morten> though). You probably found that Zope doesn't allow you to access the elements of a BTree object (which is what you get from "persistentIte

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 li

[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/ a

[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 fo