Modify

Opened 4 years ago

Closed 4 years ago

#13919 closed defect (worksforme)

No login even with with AccountManagerPlugin

Reported by: thomasgrzybowski Owned by: Ryan J Ollos
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description

Hi!

I have recently installed Trac-1.4.2 on a Debian Buster server. I installed standalone Trac (tracd with no Apache2). Now I really do not want to install Apache2, as that brings in a huge amount of additional and unneccessary complexity. I did install the AccountManagerPlugin and the PermRedirectPlugin. However, no matter what I try in the trac.ini file, when I go to the initial "Welcome to Trac" screen and mouseclick upon the "login" option located on the panel, the result is a new screen showing only this:

"Trac Error Authentication information not available".

Is the AccountManagerPlugin missing this essential functionality, or is there some configuration I am missing?

BTW, When I go to the mailing list it seems to want me to log into Google Groups, but that is unacceptable to me.

Thank you, Thomas Grzybowski

Attachments (0)

Change History (11)

comment:1 Changed 4 years ago by Ryan J Ollos

trac.web.auth.loginmodule = disabled

See CookBook/AccountManagerPluginConfiguration#HtPasswdStore.

comment:2 Changed 4 years ago by thomasgrzybowski

When I set "trac.web.auth.loginmodule = disabled" in the trac.ini file, the option for login disappears from the banner panel entirely.

comment:3 Changed 4 years ago by Ryan J Ollos

Please share your [components] and [acct_mgr] sections. Do you wish to use HTTP or form-based login?

Please disable PermRedirectPlugin as a temporary measure until we get AccountManagerPlugin working correctly.

comment:5 Changed 4 years ago by thomasgrzybowski

[account-manager]
allow_delete_account = disabled
db_htdigest_realm = TracDbRealm
hash_method = HtDigestHashMethod
htdigest_file = /home/tg/gitfree27/repository/digest.txt
htdigest_realm = TracRealm
htpasswd_hash_type = md5
password_store = HtDigestStore

[components]
acct_mgr.admin.useradminpanel = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.htfile.htdigeststore = enabled
acct_mgr.notification.accountchangelistener = disabled
acct_mgr.pwhash.htpasswdhashmethod = enabled
acct_mgr.register.registrationmodule = enabled
acct_mgr.web_ui.accountmodule = enabled
tracopt.versioncontrol.git.* = enabled
trac.web.auth.loginmodule = disabled
Last edited 4 years ago by Ryan J Ollos (previous) (diff)

comment:6 Changed 4 years ago by thomasgrzybowski

I tried using the password file-based parameters taken directly from CookBook/AccountManagerPluginConfiguration#HtPasswdStore.

And still the banner-panel does not offer the "login" option.

Last edited 4 years ago by Ryan J Ollos (previous) (diff)

comment:7 Changed 4 years ago by thomasgrzybowski

Hi,

I am going to start over, installing Trac again from scratch including only AccountManagerPlugin and with only the settings as specified in CookBook/AccountManagerPluginConfiguration#HtPasswdStore.

I will let you know what I see.

comment:8 Changed 4 years ago by Ryan J Ollos

Which version of TracAccountManager did you install?

I suggest using the dev version on PyPI, or the latest trunk:

$ pip install --pre TracAccountManager
$ pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunk

comment:9 Changed 4 years ago by Ryan J Ollos

If you are using Digest auth as your config suggests, see CookBook/AccountManagerPluginConfiguration#HtDigestStore.

You need either:

acct_mgr.web_ui.* = enabled

or

acct_mgr.web_ui.loginmodule = enabled 

comment:10 Changed 4 years ago by thomasgrzybowski

Success! After installing genshi ( "pip install genshi" ) the login option works! This is fine, as I want the genshi template engine. Now I have to figure-out where I went wrong before. Maybe it has something to do with my wanting to use an md5 hash along with postgresql. Some complexities there, but I'll work them out...

You can close this now if you want.

Thanks, Thomas Grzybowski

comment:11 Changed 4 years ago by thomasgrzybowski

Oh, Just to clarify, this is with the new, clean install. The older one is still broken. ;-)

Thanks again, Tom

comment:12 Changed 4 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

See comment:9.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.