如何将 trac 与 apache 授权分离或对齐
我的 trac 服务器已经运行了大约一年 - 正如预期的那样顺利运行。今天,我在trac运行的apache服务器上实现了基本的授权。
Trac 现在会选择经过 Apache 身份验证的用户,并且不允许注销或登录。
我尝试创建一个与 trac 用户具有相同名称和密码的 apache 用户,但行为仍然存在 - 我无法访问 trac。
如何使 trac 与 Apache 授权保持一致?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HttpAuth 的缺点之一是无法注销(无法关闭浏览器或清除浏览器身份验证)。您可能想从 AccountManagerPlugin 获取。 org" rel="nofollow noreferrer">trac-hacks.org 并使用基于表单的登录进行设置。这使您能够注销。
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.
您需要将 trac 指向 Apache 用户的 htpasswd 文件,然后设置通过 Apache 访问登录页面的权限。您可以在此处找到更多信息。
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.