I found it !!!
when i look in the LDAP logs files, i found an error on an attribute : {uid

In the deployerConfigContext, there is :

<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
 <property name="pooled" value="false"/>
 <property name="urls">
  <list>
   <value>ldap://triode-ro.grenet.fr/</value>
  </list>
 </property>
 <property name="userDn" value="{uid=monuser...}"/>
 <property name="password" value="{*******}"/>

and it works with FastBindLdap...
but not with BindLdap

I put
 <property name="userDn" value="uid=monuser..."/>
 <property name="password" value="*******"/>
and it works.


Now, trying to use my ldap filter...


thanks Marvin,
-------------------------------------------------
Philippe BEUTIN
[email protected]
Groupement Gestion & Diffusion de Contenu - SIMSU
351, av. de la Bibliothèque
Domaine Universitaire - B.P. 53
38041 Grenoble Cedex 9
04.56.52.90.19
-------------------------------------------------
----- Original Message ----- From: "Philippe Beutin" <[email protected]>
To: <[email protected]>
Sent: Wednesday, August 31, 2011 5:11 PM
Subject: Re: [cas-user] CAS - filtering users on ldap attribute


My problem is really than i can't use BindLdapAuthenticationHandler !
FastBindLdapAuthenticationHandler work fine but BindLdapAuthenticationHandler always get Ldap Error 32 and i don't understand why.
The configuration is the same, the only difference is :


<bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
    <property name="filter" value="(uid=%u)"/>
<property name="searchBase" value="ou=people,ou=ugr3,dc=agalan,dc=org" />
    <property name="contextSource" ref="contextSource"/>
   </bean>


<bean class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" > <property name="filter" value="uid=%u,ou=people,ou=ugr3,dc=agalan,dc=org" />
    <property name="contextSource" ref="contextSource" />
   </bean>



The first one don't work, the second one work fine.

May be, i'm wrong elsewhere, but i never used spring before and it's not easy to understand every dependencies
-------------------------------------------------
Philippe BEUTIN
[email protected]
Groupement Gestion & Diffusion de Contenu - SIMSU
351, av. de la Bibliothèque
Domaine Universitaire - B.P. 53
38041 Grenoble Cedex 9
04.56.52.90.19
-------------------------------------------------
----- Original Message ----- From: "Marvin Addison" <[email protected]>
To: <[email protected]>
Sent: Wednesday, August 31, 2011 5:05 PM
Subject: Re: [cas-user] CAS - filtering users on ldap attribute


i get the error :

Invalid property 'searchContextSource'

I'm in CAS 3.4.8 !
In the documentation, it says : searchContextSource - New in 3.4.9
LdapContextSource used for the LDAP search operation !

Right, that property isn't available in 3.4.8.  Simply don't use it
and everything should work fine.

M

--
You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user





--
You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user





--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to