我有apache2-2.2.3-16.29.2和mod_ldap的工作配置。
用户可以登录,所有请求均得到正确处理。
如果用户尝试登录并且未在LDAP中配置该用户,则会引发服务器错误500。
在apache错误日志中,有两个条目:
[13257] auth_ldap authenticate: user myuser authentication failed; URI /page [User not found][No such object]
[crit] [client x.x.x.x] configuration error: couldn't check user. No user file?: /page
因此,一切正常。我的问题是:是否可以将401错误配置为引发而不是500?
感谢纽伦堡,
马可
最佳答案
只需添加
AuthUserFile /dev/null
您可能会在URL https://gitlab.com/dpenezic/small-admin-tips/blob/master/httpd-ldap.md上找到更多可能的问题
关于apache - mod_ldap Apache错误处理服务器错误500,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17875118/