我有一个简单的 Web 服务,其中包含一个带有 hello world 的 index.html 文件,并且我试图使该网站只能通过 LDAP 身份验证进行访问,但是当我尝试访问网站时,错误开始发生。也许有人知道如何解决这个问题?错误 :
[Fri Dec 02 08:30:19.071039 2022] [ldap:crit] [pid 3659377] (13)Permission denied: [client x.x.x.x:58573] AH10134: LDAP cache lock failed
[Fri Dec 02 08:30:19.071176 2022] [core:crit] [pid 3659377] AH00102: [Fri Dec 02 08:30:19 2022] file util_ldap.c, line 85, assertion "0" failed
apache2 LDAP 配置文件如下所示:
<Location />
AuthType Basic
AuthName "Apache LDAP authentication"
AuthBasicProvider ldap
AuthLDAPURL "ldap://domain.xx.x:389/OU=Domain Users,DC=domain,DC=xx,DC=x?sAMAccountName"
AuthLDAPBindDN "CN=apache_ldap,OU=Apache,OU=Services Accounts,DC=domain,DC=xx,DC=x"
AuthLDAPBindPassword "pass"
Require valid-user
</Location>
apachectl -t -D DUMP_RUN_CFG
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/etc/apache2/htdocs"
Main ErrorLog: "/etc/apache2/logs/error_log"
Mutex mpm-accept: using_defaults
Mutex rewrite-map: dir="/run/apache2" mechanism=fcntl
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ldap-cache: using_defaults
Mutex ssl-cache: dir="/run/apache2" mechanism=fcntl
Mutex default: dir="/var/run/apache2/" mechanism=sysvsem
PidFile: "/run/apache2/httpd.pid"
Define: DUMP_RUN_CFG
Define: MODSEC_2.5
Define: MODSEC_2.9
User: name="nobody" id=99
Group: name="nobody" id=99