Modify

Opened 17 years ago

Closed 17 years ago

Last modified 14 years ago

#1437 closed defect (worksforme)

After making some changes, I am getting exceptions

Reported by: anonymous Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: major Keywords: HtDigestHashMethod
Cc: Trac Release: 0.10

Description

I changed from htdigest (which did not work at all for me) to htpasswd, which works, but when I hit the Admin button, an exception is thrown at me:

Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.macosx-10.4-fat/egg/webadmin/web_ui.py", line 109, in process_request
  File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 46, in process_admin_request
  File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 64, in _do_config
  File "/var/lib/python-support/python2.4/trac/config.py", line 379, in __get__
    raise AttributeError('Cannot find an implementation of the "%s" '
AttributeError: Cannot find an implementation of the "IPasswordHashMethod" interface named "HtDigestHashMethod".  Please update the option account-manager.hash_method in trac.ini.

I am told to change a value in trac.ini, but I would not know which one, and to change it to what? I am attaching the trac.ini file I am using.

Thanks for your help, Willi

Attachments (1)

trac.ini (2.7 KB) - added by willi.kraml@… 17 years ago.
trac.ini

Download all attachments as: .zip

Change History (6)

Changed 17 years ago by willi.kraml@…

Attachment: trac.ini added

trac.ini

comment:1 Changed 17 years ago by thomas.eitzenberger@…

Trac Release: 0.100.11

Hi same problem here within siemens, any clue or any reaction from the trac team on this ?

comment:2 Changed 17 years ago by Noah Kantrowitz

Resolution: worksforme
Status: newclosed

You do not have acct_mgr.pwhash enabled. In general its just easier to enabled acct_mgr.*, prevents these kinds of things.

comment:3 Changed 17 years ago by anonymous

Keywords: HtDigestHashMethod added; htpasswd htdigest removed
Trac Release: 0.110.10

I had the same problem. inside webadmin I left HtDigestStore, HttpAuthStore, HtDigestHashMethod unchecked because I didn't think I needed them. acct_mgr.pwhash.htpasswdhashmethod was defined and enabled. When I changed components section to acct_mgr.*=enabled, it all worked. I suggest there is a problem here and this should be reopened. Its either an issue with code or Docs

comment:4 Changed 17 years ago by Joe Kiniry

Indeed, setting all individual components to enabled does not seem to be equivalent to acct_mgr.*. We had this same problem and doing the full-glob was the only solution that worked.

comment:5 Changed 14 years ago by danomatika@…

I'm using an htpasswd file for authentication and had this problem when I had set individial settinsg for the plugin components in the trac.ini. Removing them and placing the glob fixed the issue.

I then turned off individual components in the Admin plugin page and found the error shows up when you disable HtDigestHashMethod, which is weird since I'm only using HtPasswordHashMethod .. or so I thought. Leaving it enabled solves the issue.

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.