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
--On 2. Oktober 2006 11:02:28 +0800 "Sinang, Danny" <D.Sinang@spi-bpo.com> 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
From: "Sinang, Danny" <D.Sinang@spi-bpo.com> 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
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
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
participants (5)
-
Andreas Jung -
Dieter Maurer -
Olavo Santos -
Sinang, Danny -
Tino Wildenhain