[Trac] Login Screen
Kevin T. Broderick
kbroderick at boltonvalley.com
Mon Jun 6 08:07:40 CDT 2005
On 6 Jun 2005, at 3:21 AM, Shib SS wrote:
> When you go to trac and you are not logged
> in - it gives a page that says that you need WIKI_VIEW
> permission. You then need to know that you have to
> click "Login" to log in.
>
> Can we make it such that instead of putting the
> confusing page, it just displays the Login dialog.
Yup, just change your Apache config so that require valid-user is set
on the entire trac directory instead of just the login page, e.g.
instead of
<Location "/projects/myproject/login">
AuthType Basic
AuthName "myproject"
AuthUserFile /var/trac/myproject/.htaccess
Require valid-user
</Location>
(from the TracModPython wiki entry), use
<Location "/projects/myproject">
AuthType Basic
AuthName "myproject"
AuthUserFile /var/trac/myproject/.htaccess
Require valid-user
</Location>
Adjust for your authentication methods and project name, of course.
This does presume that you want all trac users to be logged in, a
presumption I make due to the reference in your email to WIKI_VIEW
not being allowed for anonymous users. If this is not the case, then
you would have to modify trac itself and I'm not sure exactly where
you'd want to do that.
Kevin Broderick, Bolton Valley IT Department
kbroderick at boltonvalley.com / 802.434.6807 (V) / 802.329.6807 (F)
More information about the Trac
mailing list