我在auth上使用Spring Security 4。
这是我的配置
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
xsi:schemaLocation="
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd"
>
<http auto-config="true" use-expressions="true">
<intercept-url pattern="/" access="permitAll"/>
<intercept-url pattern="/home" access="permitAll"/>
<intercept-url pattern="/login" access="permitAll"/>
<intercept-url pattern="/secure" access="isAuthenticated()"/>
<form-login login-page='/login' default-target-url="/" authentication-success-forward-url="/secure" authentication-failure-url="/login?error" />
<logout logout-success-url="/" />
</http>
<authentication-manager>
<ldap-authentication-provider
user-search-base="ou=Users"
user-search-filter="(uid={0})"
group-search-base="ou=groups"
group-search-filter="(member={0})"
>
</ldap-authentication-provider>
</authentication-manager>
<ldap-server id="contextSource"
url="ldap://myip:389/"
root="OU=Users,DC=mydomain,DC=local" />
</beans:beans>
由以下原因引起:javax.naming.NamingException:[LDAP:错误代码1-000004DC:LdapErr:DSID-0C09075A,注释:为了执行此操作,必须在连接上完成成功的绑定。数据0,v1db1 ];剩余名称'ou = Users'
我怎么了?