Modify

Opened 18 years ago

Closed 18 years ago

#454 closed defect (duplicate)

plugin does not work on MS Winzoz XP

Reported by: mmilani@… Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description

I have installed and configured AccountManagerPlugin on my TRAC v0.95 server, but when I try to change my password from "MyAccount" section, I receive the following error message

Oops... Trac detected an internal error: [Errno 2] No such file or directory: '/dev/urandom'


Python traceback

Traceback (most recent call last):
  File "E:\Python23\Lib\site-packages\trac\web\modpython_frontend.py", line 206, in handler
  File "E:\Python23\Lib\site-packages\trac\web\main.py", line 139, in dispatch_request
  File "E:\Python23\Lib\site-packages\trac\web\main.py", line 107, in dispatch
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\web_ui.py", line 51, in process_request
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\web_ui.py", line 67, in _do_change_password
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\api.py", line 88, in set_password
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\htfile.py", line 50, in set_password
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\htfile.py", line 122, in userline
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\htfile.py", line 95, in salt
  File "C:\Python23\lib\site-packages\tracaccountmanager-0.1.2.egg\acct_mgr\htfile.py", line 30, in urandom
IOError: [Errno 2] No such file or directory: '/dev/urandom'

It seems to be the use of '/dev/urandom' that does not exist on Windows sistems...

Is it a known problem? Thanks Mario

Attachments (0)

Change History (1)

comment:1 Changed 18 years ago by Matt Good

Resolution: duplicate
Status: newclosed

Htpasswd is currently unsupported on Windows due to the lack of a secure random number generator in Python 2.3. See #63

For now I'd recommend using htdigest instead.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.