在周末(DST变化)后,我正在工作的网站的用户不能再登录了。usrs不断获得登录弹出以输入他们的凭据,在ldap的error_log中我只能看到以下错误
[Tue Mar 29 20:21:04.296466 2016] [auth_basic:error] [pid 5324] [client <<ip>>:58258] AH01617: user username: authentication failure for "/troubleshooting-webapp/": Password Mismatch尽管当我使用验证密码时,输入的密码是正确的。
(大多数)配置文件概述如下
httpd.conf
<Location "/troubleshooting-webapp">
AuthType Basic
AuthBasicProvider ldap
AuthName "Web Site DEV: Login with User ID "
AuthLDAPURL "ldap://127.0.0.1:10389/ou=people,dc=company,dc=com?uid?sub?(objectClass=*)"
AuthLDAPBindDN "uid=admin,ou=system"
AuthLDAPBindPassword "adminpwd"
Require valid-user
</Location> ApplicationContext.xml
<bean id="contextSource"
class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
<constructor-arg value="${prop:troubleshooting.ldap.server.path}" />
<property name="userDn" value="${prop:troubleshooting.ldap.server.bindDN}" />
<property name="password" value="${prop:troubleshooting.ldap.server.bindPwd}" />
</bean>
<bean id="contextSourceGroup"
class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
<constructor-arg value="${prop:troubleshooting.ldap.server.pathGroup}" />
<property name="anonymousReadOnly" value="${prop:troubleshooting.ldap.server.anonymous}" />
<property name="userDn" value="${prop:troubleshooting.ldap.server.bindDN}" />
<property name="password" value="${prop:troubleshooting.ldap.server.bindPwd}" />
</bean>ApplicationContext.properties
troubleshooting.ldap.server.path=ldap://ldap.server.url:10389/dc=company,dc=com
troubleshooting.ldap.server.pathGroup=ldap://ldap.server.url:10389/dc=company,dc=com
troubleshooting.ldap.server.anonymous=true
troubleshooting.ldap.server.bindDN=uid=admin,ou=system
troubleshooting.ldap.server.bindPwd=adminpwd
troubleshooting.ldap.server.searchBase=ou=people
troubleshooting.ldap.server.groupBase=ou=groups我一直在玩一些参数,奇怪的是,这与DN绑定的内容无关。不管是否存在,服务器都会启动,错误会出现在日志中。
此LDAP服务器的错误是唯一的。当我切换到集成服务器的LDAP时,一切都如期而至。
从现在开始,对从哪里开始故障排除有什么想法吗?
发布于 2016-03-30 14:32:34
我还没有找到这个问题的原因,但是重新安装ApacheDS服务器解决了这个问题。
https://stackoverflow.com/questions/36292583
复制相似问题