Modify

Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#1437 closed defect (worksforme)

After making some changes, I am getting exceptions

Reported by: anonymous Owned by: mgood
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@… 8 years ago.
trac.ini

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by willi.kraml@…

trac.ini

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

  • Trac Release changed from 0.10 to 0.11

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

comment:2 Changed 8 years ago by coderanger

  • Resolution set to worksforme
  • Status changed from new to 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 8 years ago by anonymous

  • Keywords HtDigestHashMethod added; htpasswd htdigest removed
  • Trac Release changed from 0.11 to 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 7 years ago by 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 5 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.

Add Comment

Modify Ticket

Action
as closed The owner will remain mgood.
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.