2

我有 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

4

1 回答 1

0

只需添加

AuthUserFile /dev/null

您可能会在 URL https://gitlab.com/dpenezic/small-admin-tips/blob/master/httpd-ldap.md上找到更多可能的问题

于 2018-10-13T12:44:55.950 回答