Modify

Opened 8 years ago

Closed 8 years ago

#454 closed defect (duplicate)

plugin does not work on MS Winzoz XP

Reported by: mmilani@… Owned by: mgood
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 8 years ago by mgood

  • Resolution set to duplicate
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from mgood. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.