Re: [Zope] Log in as another user

2006-10-02 Thread Tino Wildenhain

Sinang, Danny schrieb:

Hello,
 
In Unix, there's the su command which admins can use to log in as 
another user.
 
Is there a similar facility in Zope ?


not as login but there are the proxy roles you can assign to
an object (script) to do something with raised privs.
 
If not, is there a way for admins to view the passwords of their users ?


Usually no. (most sane userfolders hash the passwords and dont store
them clear text)

Regards
Tino
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Log in as another user

2006-10-02 Thread Dieter Maurer
Sinang, Danny wrote at 2006-10-2 11:02 +0800:
In Unix, there's the su command which admins can use to log in as
another user.
 
Is there a similar facility in Zope ?

Yes.

It is AccessControl.SecurityManagement.newSecurityManager.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Log in as another user

2006-10-01 Thread Sinang, Danny



Hello,

In Unix, there's the 
"su" command which admins can use to log in as another user.

Is there a similar 
facility in Zope ?

If not, is there a 
way for admins to view the passwords of their users ?

Regards,Danny


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Log in as another user

2006-10-01 Thread Andreas Jung



--On 2. Oktober 2006 11:02:28 +0800 Sinang, Danny [EMAIL PROTECTED] 
wrote:



Hello,

In Unix, there's the su command which admins can use to log in as
another user.


You can create a new security context using the newSecurityManager() API.
Google for details.



If not, is there a way for admins to view the passwords of their users ?



Passwords in newer Zope versions are stored as a hash. Older Zope versions 
used to store the password as '__' attribute of the user object.


-aj

pgp5LTpU0Pzgv.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Log in as another user

2006-10-01 Thread Olavo Santos
From: Sinang, Danny [EMAIL PROTECTED]
Sent: Monday, 2 de October de 2006 4:02

Hello.

 In Unix, there's the su command which admins can use to log in as
 another user.

 Is there a similar facility in Zope ?

 If not, is there a way for admins to view the passwords of their
 users ?

Depending of your Zope version, if you don't encrypt the user passwords
( check properties tab of your User Folder ) you can retrieve the user
password.

External method example:

def getPasswordByName(self, username):
user = self.acl_users.getUser(username)
password = user._getPassword()
return password

Best regards,

@228, Nbk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )