我已经对Apache告别了,对Nginx&Gunicorn告别了,LDAP现在正在按预期的方式工作。这个问题大概是在Apache配置中,或者可能是在Selinux中-我永远不会知道。
该网络应用程序运行在 Apache 2.4.6服务器上,该服务器运行在具有 CentOS 7 的VM上。我测试此应用程序的LDAP服务器是 ldap.forumsys.com (https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/)。
authenticate()
函数返回None
。当我查看Django-auth-ldap日志时,看到此错误: Caught LDAPError while authenticating euler: SERVER_DOWN({'result': -1, 'desc': "Can't contact LDAP server", 'errno': 107, 'ctrls': [], 'info': 'Transport endpoint is not connected'},)