Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#2747 closed defect (invalid)

register option does not work with 3111 trunk

Reported by: jasong Owned by: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Moskow Trac Release: 0.11

Description

Here is my setup in trac.ini:

[components]
trac.web.auth.LoginModule = disabled
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.web_ui.RegistrationModule = enabled
acct_mgr.htfile.HtPasswdStore = enabled
password_store = HtPasswdStore
password_file = /var/scm/trac/.htpasswd

However, the 'register' nav link does not show up.

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by jasong

I forgot to add, the revision of Trac I am using is 6632

comment:2 Changed 6 years ago by mgood

A few suggestions:

  • make sure you've restarted your web server since enabling the plugin
  • check the "Plugins" section of the "Admin" tab to make sure that the plugin has loaded
  • check the logs for errors loading the plugin

comment:3 Changed 6 years ago by jasong

Here is some interesting info from the log:

2008-03-16 13:27:05,640 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect
2008-03-16 13:27:05,640 Trac[main] DEBUG: Dispatching <Request "GET u''">
2008-03-16 13:27:05,654 Trac[web_ui] WARNING: AccountModule is disabled because the password store does not support writing.
2008-03-16 13:27:05,655 Trac[web_ui] WARNING: RegistrationModule is disabled because the password store does not support writing.

here are permissions of the referenced .htpasswd file

-rw-r--r--  1 www-data www-data   0 2008-03-16 09:57 .htpasswd

What I am curious about now is that first log entry about the base_url option. I am using mod_wsgi and wonder if that matters. I can supply configs if necessary.

comment:4 Changed 6 years ago by mgood

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

Oh, you have the password_store and password_file options under the [components] section. They should be under [account-manager].

comment:5 Changed 6 years ago by jasong

*slap forehead*
Doh!

Yes that was it.

Thank you, Matt.

comment:6 Changed 4 years ago by moskovskie shalavy

  • Cc Moskow added

Add Comment

Modify Ticket

Action
as 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.