Modify

Opened 8 years ago

Closed 8 years ago

#692 closed defect (worksforme)

Cannot find an implementation of the "IPasswordStore" interface named "HtPasswdStore".

Reported by: t.creutz@… Owned by: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Hello!

I installed the plugin we it is descriptet on the wiki.

When i try to login i become this message:

2006-09-06 21:27:23,655 Trac[main] ERROR: Cannot find an implementation of the "IPasswordStore" interface named "HtPasswdStore".  Please update the option account-manager.password_store in trac.ini.
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 191, in dispatch
    req.authname = self.authenticate(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 145, in authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 272, in wrap
  File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 282, in authenticate
  File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 309, in _remote_user
  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 104, in check_password
  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 112, in password_store
  File "/usr/lib/python2.3/site-packages/trac/config.py", line 364, in __get__
    raise AttributeError('Cannot find an implementation of the "%s" '
AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "HtPasswdStore".  Please update the option account-manager.password_store in trac.ini.

What can i doo? Whats whrong?

my trac.ini looks like this:

[account-manager]
; configure the plugin to store passwords in the htdigest format:
;password_format = htpasswd
; with Trac 0.10 use this instead:
password_store = HtPasswdStore

; the file where user accounts are stored
; the webserver will need write permissions to this file
; and its parent folder
password_file = /var/trac/topackt/conf/trac.htpasswd

[components]
acct_mgr.admin = enabled
trac.web.auth.LoginModule = disabled
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.web_ui.registrationmodule = disabled
acct_mgr.api.AccountManager = enabled
iniadmin.* = enabled
tblog.* = enabled
tracgantt.gantt.ganttcomponent = disabled
webadmin.* = enabled
trac.wiki.web_ui.wikimodule = disabled
tractags.* = enabled

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by mgood

You also need to enable the HtPasswdStore component: acct_mgr.htfile.HtPasswdStore.

If that solves your problem please close as "worksforme".

comment:2 Changed 8 years ago by t.creutz@…

hi.. i put the line to the componet

And now i become this exeption

 Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 220, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/web/auth.py", line 95, in process_request
    self._do_login(req)
  File "/usr/lib/python2.3/site-packages/trac/web/auth.py", line 116, in _do_login
    assert req.remote_user, 'Authentication information not available.'
AssertionError: Authentication information not available. 

comment:3 Changed 8 years ago by t.creutz@…

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

Ok.. i found my error.

i fourgot to comment out the line

password_format = htpasswd

... now its works.

Thanks

comment:4 follow-up: Changed 8 years ago by t.creutz@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Sorry.. but after a logout i become now:

Internal Error

No admin pages available

and i was logged out. Now when i do a login i become again:

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 335, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 191, in dispatch
    req.authname = self.authenticate(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 145, in authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 272, in wrap
  File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 282, in authenticate
  File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 309, in _remote_user
  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 104, in check_password
  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 112, in password_store
  File "/usr/lib/python2.3/site-packages/trac/config.py", line 364, in __get__
    raise AttributeError('Cannot find an implementation of the "%s" '
AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "HtPasswdStore".  Please update the option account-manager.password_store in trac.ini.

Any Ideas?

comment:5 in reply to: ↑ 4 Changed 8 years ago by mgood

Replying to t.creutz@topackt.com:

Sorry.. but after a logout i become now:

Internal Error

No admin pages available

You must have been browsing the Admin section. Once you logged out you no longer had permissions to access the admin pages.

and i was logged out. Now when i do a login i become again:

...snip...

AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "HtPasswdStore". Please update the option account-manager.password_store in trac.ini.

Be sure to restart your webserver after enabling or disabling components.

comment:6 Changed 8 years ago by t.creutz@…

  • Resolution set to worksforme
  • Status changed from reopened to closed

Thanks, that fixed my problems... ;-)

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.