0
我想從我的中央身份驗證服務(CAS)建立連接以驗證用戶在活動目錄上的身份。 但我發現自己有以下錯誤:LDAP綁定身份驗證處理程序
[LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, how: In order to perform this operation a successful bind must be completed on the connection., Data 0, v1db1]; Remaining name 'cn = Users, dc = aimed, dc = local'
如果有人知道這個問題,請大家幫幫我。 這裏是我的代碼:
<!-- LDAP bind Authentication Handler +-->
<bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
<property name="filter" value="uid=%u" />
<property name="searchBase" value="cn=Users,dc=aimed,dc=local" />
<property name="contextSource" ref="LDAPcontextSource" />
<property name="ignorePartialResultException" value="yes" /> <!-- fix because of how AD returns results +-->
</bean>
</list>
</property>
</bean>
<bean id="LDAPcontextSource" class="org.springframework.ldap.core.support.LdapContextSource">
<property name="pooled" value="false"/>
<property name="urls">
<list>
<value>ldap://server.aimed.local/ </value>
</list>
</property>
<property name="userDn" value="uid=AIMED\aimed, dc=aimed, dc=local"/>
<property name="password" value="system_123"/>
<property name="baseEnvironmentProperties">
<map>
<entry>
<key>
<value>java.naming.security.authentication</value>
</key>
<value>simple</value>
</entry>
</map>
</property>
</bean>