Opened 10 years ago

Closed 10 years ago

After making some changes, I am getting exceptions

Reported by: Owned by: anonymous Matt Good normal AccountManagerPlugin major HtDigestHashMethod 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 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.

trac.ini

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

Trac Release: 0.10 → 0.11

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

comment:2 Changed 10 years ago by Noah Kantrowitz

Resolution: → worksforme new → closed

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 10 years ago by anonymous

Keywords: HtDigestHashMethod added; htpasswd htdigest removed 0.11 → 0.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 10 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 7 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