【发布时间】:2015-02-18 19:50:16
【问题描述】:
今天我的 WEBApp 突然开始登录失败。我正在针对 LDAP 对用户进行身份验证。 Web 应用程序托管在带有 Django 1.6.1 和 Apache 2.2 以及 mod_wsgi 的 Windows 2003 Server 上。
错误是
错误:2015 年 2 月 18 日下午 1:52:17:结果 (3) 提出 NO_SUCH_OBJECT({'info': "0000208D: NameErr: DSID-031001CD, 问题 2001 (NO_OBJECT),数据 0,最佳匹配 的:\n\t'OU=EU,DC=osud,DC=corp'\n", '匹配': 'OU=EU,DC=cosud,DC=corp', 'desc': '没有这样的对象'},)
我查看了http://docs.oracle.com/cd/E19957-01/816-5618-10/netscape/ldap/LDAPException.html#NO_SUCH_OBJECT,上面写着这个
NO_SUCH_OBJECT
public static final int NO_SUCH_OBJECT
(32) The entry specified in the request does not exist.
http://www.python-ldap.org/doc/html/ldap.html 上面写着这个
exception ldap.NO_SUCH_OBJECT
The specified object does not exist in the directory. Sets the matched field of the exception dictionary value.
但这些都不适用于这种情况。大约 2 小时后,登录再次开始工作。期间重启了 Apache 服务器,但不确定这是否会导致此问题。
我还能做些什么来解决这个问题?是否可以添加更多日志以获取更多信息?
【问题讨论】:
标签: django python-2.7 ldap python-ldap django-auth-ldap