Opened 9 years ago

Closed 8 years ago

#2465 closed defect (invalid)

PermRedirect failure when using AuthManagerPlugin's HttpAuthStore subsystem

Reported by: kiniry Owned by: coderanger
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


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/", line 406, in dispatch_request
  File "/opt/local/lib/python2.5/site-packages/trac/web/", line 182, in dispatch
    req.authname = self.authenticate(req)
  File "/opt/local/lib/python2.5/site-packages/trac/web/", line 146, in authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/", line 346, in wrap
    return func(self, *args, **kwds)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/", line 356, in authenticate
    req.environ['REMOTE_USER'] = self._remote_user(req)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/", line 382, in _remote_user
    if AccountManager(self.env).check_password(user, password):
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/", line 105, in check_password
    return self.password_store.check_password(user, password)
  File "build/bdist.macosx-10.3-i386/egg/acct_mgr/", 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 8 years ago by coderanger

  • Component changed from PermRedirectPlugin to AccountManagerPlugin
  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.