Re: [Zope3-Users] possible bug in zope\app\authentication\principalfolder.py

2007-08-09 Thread Shailesh Kumar
I have Zope 3.3.1 the official release.

With regards,
-Shailesh


On 8/9/07, Adam Groszer <[EMAIL PROTECTED]> wrote:
> Hello Shailesh,
>
> Which version of Z3 re you using?
> As I remember that was fixed, but I can't dig the info from SVN.
>
> Tuesday, August 7, 2007, 5:28:02 PM, you wrote:
>
> > Hi,
>
> > I was using InternalPrincipal object and specified a password with
> > non-ascii characters.  Since Password is derived from TextLine, hence
> > its supposed to be acceptable. But I found that if I use MD5 or SHA1
> > password managers, it leads to problems. The following exception is
> > thrown.
>
> > I guess the password needs to be encoded in UTF8 before being hashed
> > by md5 or sha1.
>
> > File
> > "C:\Python24\Lib\site-packages\zope\app\authentication\principalfolder.py",
> > line 124, in __init__ self.password = password
> > File
> > "C:\Python24\Lib\site-packages\zope\app\authentication\principalfolder.py",
> > line 144, in setPassword self._password =
> > passwordManager.encodePassword(password)
> > File
> > "C:\Python24\Lib\site-packages\zope\app\authentication\password.py",
> > line 76, in encodePassword return md5.new(password).hexdigest()
>
> > With regards,
> > -Shailesh
> > ___
> > Zope3-users mailing list
> > Zope3-users@zope.org
> > http://mail.zope.org/mailman/listinfo/zope3-users
>
>
>
> --
> Best regards,
>  Adammailto:[EMAIL PROTECTED]
>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] possible bug in zope\app\authentication\principalfolder.py

2007-08-09 Thread Adam Groszer
Hello Shailesh,

Which version of Z3 re you using?
As I remember that was fixed, but I can't dig the info from SVN.

Tuesday, August 7, 2007, 5:28:02 PM, you wrote:

> Hi,

> I was using InternalPrincipal object and specified a password with
> non-ascii characters.  Since Password is derived from TextLine, hence
> its supposed to be acceptable. But I found that if I use MD5 or SHA1
> password managers, it leads to problems. The following exception is
> thrown.

> I guess the password needs to be encoded in UTF8 before being hashed
> by md5 or sha1.

> File
> "C:\Python24\Lib\site-packages\zope\app\authentication\principalfolder.py",
> line 124, in __init__ self.password = password
> File
> "C:\Python24\Lib\site-packages\zope\app\authentication\principalfolder.py",
> line 144, in setPassword self._password =
> passwordManager.encodePassword(password)
> File
> "C:\Python24\Lib\site-packages\zope\app\authentication\password.py",
> line 76, in encodePassword return md5.new(password).hexdigest()

> With regards,
> -Shailesh
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users



-- 
Best regards,
 Adammailto:[EMAIL PROTECTED]

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users