je veux établir une connexion depuis un serveur cas (central authentification service) a AD pour vérifier l'identité de mes utilisateurs .
Mais je me trouve avec l'erreur suivantes :
[LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: 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'
si quelqu'un connait ce problème , svp qu'il m'aide.
voila le code de liaison (Bind)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <!-- 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> |
merci .
Partager