开发者

How to decouple trac from, or align trac with, apache authorization

I've had a trac server running for about a year now - chugging along just as expected. Today, I implemented basic authorization on the apache server that trac runs under.

Trac now picks up the user as authenticated by Apache, and doesn't allow either logout or a login.

I tried to create an apache user with the same name and password as a trac user, but the behavior remained -开发者_开发问答 I can't access trac.

How do I align trac with Apache authorization?


One of the drawbacks of HttpAuth is the inability to log out (short of closing your browser, or clearing browser auth). You probably want to grab AccountManagerPlugin from trac-hacks.org and set it up with the form-based login. That gives you the ability to log out.


You will need to point trac to the htpasswd file for Apache users and then set permissions to access the login page through Apache. You can find more information here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜