Apache LDAP 身份验证 Redmine
我在 Apache 服务器 (RHEL 6.1) 上设置了 Redmine。我还有一个在 /var/svn
运行的 Subversion 服务器。我为我的 subversion 配置了正确的 LDAP 身份验证,因此当有人访问 subversion 存储库时(通过命令行:svn checkout/update/commit,或通过 http://myserver.com/svn/project),它会提示输入用于对 LDAP 服务器进行身份验证的用户名和密码。
但是:在 Redmine 中浏览项目页面时,我看到出现“存储库”选项卡(并且它链接到正确的地址: http://myserver.com/svn/project)。但是当我导航到此选项卡时,它显示“404 在存储库中找不到条目或修订”。我有一种感觉,404 是由于 Redmine 无法针对 LDAP 进行身份验证而产生的。所以我的问题是如何允许 Redmine 进入该目录,但其他人都需要通过 LDAP 进行身份验证?
I have Redmine setup on an Apache server (RHEL 6.1). I also have a subversion server running at /var/svn
. I have the proper LDAP authentication for my subversion configured, so when someone accesses the subversion repository (either via command line: svn checkout/update/commit, or through http://myserver.com/svn/project), it prompts for a username and password that authenticates against the LDAP server.
However: When browsing the project's page in Redmine, I see the "Repository" tab appear (and it links to the proper address: http://myserver.com/svn/project). But when I navigate to this tab, it displays "404 The entry or revision was not found in the repository". I have a feeling that the 404 is coming from Redmine not being able to authenticate against LDAP. So my question is how to allow Redmine into that directory, but everyone else needs to be authenticated against LDAP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经弄清楚了我的问题并提出了一个相当简单的解决方案。我的假设是正确的 - 因为 Redmine 不知道如何处理 LDAP 请求,所以它抛出了 404。
下面是允许 Redmine(或在同一服务器上运行的任何服务)通过身份验证过程的正确 Apache 配置:
我希望这可以帮助其他正在寻找类似解决方案的人!
I have figured out my problem and came up with a fairly simple solution. My assumption was correct - because Redmine didn't know how to handle the LDAP request, it threw a 404.
Below is the proper Apache configuration to allow Redmine (or any service running on the same server) through the authentication process:
I hope this helps someone else looking for a similar solution!