On Tuesday, January 1, 2013 5:56:17 PM UTC-8, mjs wrote: > I have been trying to get the AccountManager plugin to display a > registration link (and to have it work) on my site's Trac pages, but > without success. I'd welcome any help or examples of a trac.ini file from > a working site.
You haven't had any success getting the registration link to display? Or do you have the link displaying, but the registration page doesn't seem to be working? I get a working registration page in a setup that follows the Cookbook steps: http://trac-hacks.org/wiki/CookBook/AccountManagerPluginConfiguration#HtPasswdStore So I suspect it has something to do with using HttpAuthStore. > This is Red Hat Enterprise Linux 6.3, Trac 0.12.4 from the EPEL RPM > repository and (currently) the AccountManager plugin 0.4.2 (though I've > been trying this since version 3.something with no success). > > I have a global trac.ini file that each project inherits. I'm using the > HTML form for logins and that works. The relevant sections (I think) are > below. The Web admin pages show everything enabled here as enabled. I > must be missing something simple, but I have no idea what it is. > > TIA for any assistance. Let me know if I need to supply more information. > > [account-manager] > # password_file = /var/www/svn-control/coin.pwd > # password_store = HtPasswdStore > authentication_url = /authFile > password_store = HttpAuthStore > > > [components] > acct_mgr.admin.* = enabled > acct_mgr.admin.accountmanageradminpanel = enabled > acct_mgr.api.* = enabled > acct_mgr.api.accountmanager = enabled > #acct_mgr.htfile.* = enabled > acct_mgr.htfile.abstractpasswordfilestore = disabled > acct_mgr.htfile.htdigeststore = disabled > acct_mgr.htfile.htpasswdstore = diabled > acct_mgr.http.httpauthstore = enabled > acct_mgr.pwhash.htdigesthashmethod = disabled > acct_mgr.pwhash.htpasswdhashmethod = disabled > acct_mgr.register.* = enabled > acct_mgr.register.registrationmodule = enabled > acct_mgr.register.emailverificationmodule = enabled > acct_mgr.notification.accountchangelistener = enabled > acct_mgr.web_ui.* = enabled > acct_mgr.web_ui.accountmodule = enabled > acct_mgr.web_ui.loginmodule = enabled > acct_mgr.web_ui.registrationmodule = enabled > trac.web.auth.loginmodule = disabled > > You can simplify this quite a bit: [components] acct_mgr.admin.* = enabled acct_mgr.api.* = enabled acct_mgr.htfile.* = disabled acct_mgr.http.httpauthstore = enabled acct_mgr.pwhash.* = disabled acct_mgr.register.* = enabled acct_mgr.notification.accountchangelistener = enabled acct_mgr.web_ui.* = enabled trac.web.auth.loginmodule = disabled I've tried your config, and I get the following warning in the logs: 10:33:17 AM Trac[register] WARNING: RegistrationModule is disabled because the password store does not support writing. I'm not sure what is going on yet, but could you check your logs and look for that message? See (1) if you need more info on that. (1) http://trac.edgewall.org/wiki/TracLogging -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/QzOGEiIwScYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
