Modify

Opened 10 years ago

Closed 9 years ago

#2465 closed defect (invalid)

PermRedirect failure when using AuthManagerPlugin's HttpAuthStore subsystem

Reported by: Joe Kiniry Owned by: Noah Kantrowitz
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

One of our Trac servers is configured to authenticate via AccountManagerPlugin's use of LDAP authentication over HTTP using HttpAuthStore.

Correct authentications work fine, but incorrect authentications result in the following stack trace:

Python Traceback

Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 182, in dispatch
    req.authname = self.authenticate(req)
  File "/opt/local/lib/python2.5/site-packages/trac/web/main.py", line 146, in authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/web_ui.py", line 346, in wrap
    return func(self, *args, **kwds)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/web_ui.py", line 356, in authenticate
    req.environ['REMOTE_USER'] = self._remote_user(req)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/web_ui.py", line 382, in _remote_user
    if AccountManager(self.env).check_password(user, password):
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/api.py", line 105, in check_password
    return self.password_store.check_password(user, password)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/http.py", line 33, in check_password
    except HTTPError, inst:
NameError: global name 'HTTPError' is not defined

PermRedirectPlugin is enabled

permredirect.* = enabled
permredirect.filter.permredirectmodule = enabled

and works fine for our other Trac servers, but they all authenticate using other means.

Ideas or advice welcome.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Noah Kantrowitz

Component: PermRedirectPluginAccountManagerPlugin
Resolution: invalid
Status: newclosed

Sounds like you are trying to use the 0.11 version of acct_mgr with Trac 0.10.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.