Opened 17 years ago
Closed 16 years ago
#2317 closed defect (worksforme)
Can't logout and login into second project
Reported by: | anonymous | Owned by: | Matt Good |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I tried to configure four projects. (See configuration below) If I'm logging in on the first project - which doesn't matter - every thing works fine. If I logout and try to login to the second project, then I get an error. This is the Traceback in the Browser wenn trying to login the second project:
Traceback (most recent call last): File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\api.py", line 339, in send_error 'text/html') File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\chrome.py", line 567, in render_template data = self.populate_data(req, data) File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\chrome.py", line 497, in populate_data d['chrome'].update(req.chrome) File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\api.py", line 167, in __getattr__ value = self.callbacks[name](self) File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\chrome.py", line 376, in prepare_request for category, name, text in contributor.get_navigation_items(req): File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\ticket\web_ui.py", line 114, in get_navigation_items if 'TICKET_CREATE' in req.perm: File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\api.py", line 167, in __getattr__ value = self.callbacks[name](self) File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\main.py", line 271, in _get_perm return PermissionCache(self.env, self.authenticate(req)) File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\web\main.py", line 155, in authenticate authname = authenticator.authenticate(req) File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 349, in wrap return func(self, *args, **kwds) File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 359, in authenticate req.environ['REMOTE_USER'] = self._remote_user(req) File "build\bdist.win32\egg\acct_mgr\web_ui.py", line 386, in _remote_user if AccountManager(self.env).check_password(user, password): File "build\bdist.win32\egg\acct_mgr\api.py", line 104, in check_password return self.password_store.check_password(user, password) File "build\bdist.win32\egg\acct_mgr\api.py", line 120, in password_store return self._password_store File "C:\Python25\lib\site-packages\trac-0.11dev-py2.5.egg\trac\config.py", line 414, in __get__ self.section, self.name)) AttributeError: Cannot find an implementation of the "IPasswordStore" interface named "HtDigestStore". Please update the option account-manager.password_store in trac.ini.
These are the settings in httpd.conf:
<Location /> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir D:/trac/home PythonOption TracUriRoot / # PythonDebug on # PythonHandler mod_python.testhandler </Location>
These are the settings in every trac.ini:
[account-manager] password_format = htdigest password_store = HtDigestStore password_file = d:\trac\digest.txt htdigest_realm = trac [components] trac.web.auth.LoginModule = disabled acct_mgr.web_ui.LoginModule = enabled acct_mgr.web_ui.RegistrationModule = enabled
Then I tried to isolate the problem to server/client. Result: If I logged into one project on one Computer, I can't loggin into any other on any other computer!
Therefore the problem occurs to be on the server side.
I'm running trac 0.11dev on a Apache Version 2.2 with Python 2.5.
Any idea? Am I doing something wrong?
Attachments (0)
Change History (2)
comment:1 Changed 17 years ago by
comment:2 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I've tried to make the instructions clear by showing the components that need enabled in order to use each of the password backends. If you have ideas to improve the docs, please contribute them to the wiki.
It works when I add the following into the trac.ini file. Install description should be updated.