【发布时间】:2016-09-05 16:40:11
【问题描述】:
我正在使用 apache2、wsgi 和 django。 error.log 中有一些日志。我的项目中的身份验证有问题。但我无法从以下日志中弄清楚为什么。为什么在某些折叠中找不到用户?
欢迎任何提示。谢谢。
RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[notice] Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 mod_wsgi/3.3 Python/2.7.2 configured -- resuming normal operations
[error] [client myip] user username not found: /myproject/admin/status/ referer: https://10.32.64.3/reporting-central/login/?next=/myproject/admin/status/
更新
我发现问题可能与以下代码有关。登录失败。
@login_required
def status(request):
return render(request, 'status.html', {'title': 'status'})
【问题讨论】:
-
这是日志的完整回溯吗?
-
@Alasdair 我认为是的。但我可以找到更多细节,我可能已经修复了它。我不知道如何调试。
-
我认为这与 Django 无关。它看起来像一个失败的 http 基本身份验证请求。见this question。
-
@Alasdair 是的。你说的对。它未能执行 ldap。我正在研究它。
标签: python django apache2.2 mod-ssl