我有 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?
来自纽伦堡的感谢和问候,Marco