[Zope] Failed to reset inituser

Chris McDonough chrism@zope.com
22 Jul 2003 15:32:14 -0400


Use "python2" instead of "python" (you've got it installed somewhere ;-)

On Tue, 2003-07-22 at 14:56, Wouter Vanden Hove wrote:
> 
> Silly me, I lost my password to the zope-management interface.
> I try to set a new one via the shell, but I receive following error:
> 
> 
> [root@*** zope]# python zpasswd.py inituser
> Username: admin
> Password: ***
> Verify password: ***
>  
> Please choose a format from:
>  
> SHA - SHA-1 hashed password (default)
> CRYPT - UNIX-style crypt password
> CLEARTEXT - no protection
>  
> Encoding: SHA
> Traceback (innermost last):
>   File "zpasswd.py", line 200, in ?
>     if __name__=='__main__': main(sys.argv)
>   File "zpasswd.py", line 184, in main
>     if encoding.upper() in ['SHA', 'CRYPT', 'CLEARTEXT']:
> AttributeError: 'string' object has no attribute 'upper'
> 
> 
> Anyone know a solution? Since execution halts, the 
> new inituser-account is not active, so I can't login.
> 
> 
> 
> Wouter Vanden Hove
> 
> 
> 
> 
> _______________________________________________
> 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 )