Re: [Zope-dev] getPassword() from PythonScript

2004-12-27 Thread Andreas Jung

--On Montag, 27. Dezember 2004 14:30 Uhr +0100 Krzysztof Kubacki 
<[EMAIL PROTECTED]> wrote:

Hi,
Zope 2-7-0
Linux
Is possible to get user's password by getPassword() method using Python
Script? Any proxes don't work.
the code below:
user = context.getMemberById(context,'koperski')
return user.getPassword()
Use an external method or look at Dieter Maurer's TrustedExecutables.
-aj
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] getPassword() from PythonScript

2004-12-27 Thread Tino Wildenhain
Am Montag, den 27.12.2004, 14:30 +0100 schrieb Krzysztof Kubacki:
> ï 
> Hi,
>  
> Zope 2-7-0
> Linux
> 
> Is possible to get user's password by getPassword() method using
> Python Script?
> Any proxes don't work.
> 
> the code below:
> user = context.getMemberById(context,'koperski')
> return user.getPassword()
> 
> returns:
> The object is marked as private. Access to 'getPassword' of
> (MemberData at
> 0x2353aea0) denied.

Well, you dont want anybody read your password. In fact
modern userfolder implementations only save crypted (hashed)
password so the function would be of no use anyway.

If you want to help users who forgot passwords, offer a
function to generate a new password.

Regards
Tino

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


[Zope-dev] getPassword() from PythonScript

2004-12-27 Thread Krzysztof Kubacki
ï


Hi,
 
Zope 2-7-0
Linux
Is possible to get user's 
password by getPassword() method using Python Script?Any proxes 
don't work.
the code below:user = 
context.getMemberById(context,'koperski')return 
user.getPassword()returns:The object is marked as private. Access to 
'getPassword' of (MemberData at0x2353aea0) denied.
Thanks in advanceKK
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )