Hi, 
I have a problem when 2 users want to login to CAS in the same time (second) , 
there is a message "Cas is unavailable". 
My logs says : 
ERROR 
[org.jasig.cas.authentication.principal.CredentialsToLDAPAttributePrincipalResolver]
 - [LDAP: error code 3 - Timelimit Exceeded]; nested exception is 
javax.naming.TimeLimitExceededException: [LDAP: error code 3 - Timelimit 
Exceeded]; remaining name 'OU=people,DC=univ-corse,DC=fr' 

My config in deployerConfigContext is (CAS 3.4.2.1) : 


<bean id="authenticationManager" 
class="org.jasig.cas.authentication.AuthenticationManagerImpl"> 
<property name="credentialsToPrincipalResolvers"> 
<list> 
<bean 
class="org.jasig.cas.authentication.principal.CredentialsToLDAPAttributePrincipalResolver">
 
<!-- The Principal resolver form the credentials --> 
<property name="credentialsToPrincipalResolver"> 
<bean 
class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"
 /> 
</property> 

<!-- The query made to find the Principal ID. "%u" will be replaced by the 
resolved Principal --> 
<property name="filter" 
value="(&amp;(|(supannaliaslogin=%u)(edupersonprincipalname=%u)(uid=%u)(mail=%u)(supannetuid=%u)))"
 /> 

<!-- The attribute used to define the new Principal ID --> 
<property name="principalAttributeName" value="uid" /> 
<property name="searchBase" value="OU=people,DC=univ-corse,DC=fr" /> 
<property name="contextSource"> 
<bean id="contextSource" 
class="org.springframework.ldap.core.support.LdapContextSource"> 
<property name="pooled" value="false"/> 
<property name="urls"> 
<list> 
<value>${ldap.host.1}</value> 
<value>ldaps: //ldap2.rutgers.edu/</value> 
</list> 
</property> 
<property name="userDn" 
value="uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot"/> 
<property name="password" value="xxxxx"/> 
<property name="baseEnvironmentProperties"> 
<map> 
<entry> 
<key> 
<value>com.sun.jndi.ldap.connect.timeout</value> 
</key> 
<value>20000</value> 
</entry> 
<entry> 
<key> 
<value>com.sun.jndi.ldap.read.timeout</value> 
</key> 
<value>20000</value> 
</entry> 
</map> 
</property> 
</bean> 

</property> 
... 

and in ldap-auth.xml: 


<bean id="ldapHandler" 
class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler" 
lazy-init="true"> 
<property name="filter" 
value="(&amp;(|(supannaliaslogin=%u)(edupersonprincipalname=%u)(uid=%u)(mail=%u)(supannetuid=%u)))"
 /> 
<property name="searchBase" value="OU=people,DC=univ-corse,DC=fr" /> 
<property name="contextSource"> 
<bean id="contextSource" 
class="org.springframework.ldap.core.support.LdapContextSource"> 
<property name="anonymousReadOnly" value="false" /> 
<property name="pooled" value="false" /> 
<property name="userDn" 
value="uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot"/> 
<property name="password" value="%conf77"/> 
<property name="urls"> 
<list> 
<value>${ldap.host.1}</value> 
<value>${ldap.host.2}</value> 
</list> 
</property> 

<property name="baseEnvironmentProperties"> 
<map> 
<entry> 
<key> 
<value>com.sun.jndi.ldap.connect.timeout</value> 
</key> 
<value>20000</value> 
</entry> 
<entry> 
<key> 
<value>com.sun.jndi.ldap.read.timeout</value> 
</key> 
<value>20000</value> 
</entry> 
</map> 
</property> 



Do you have any idea ? 
Thanks 
Matthieu 


---------------------------------------------------------------- 
Matthieu VAREILLE 
Université de Corse Pascal PAOLI 
Campus ENT / Plate-forme FOAD 
Bat PPDB - BP 52 
20250 CORTE 
Tel : 04.95.45.01.52 
Mail PRO : [email protected] 
Mail ENT : [email protected] 
Mail FOAD : [email protected] 
Campus ENT : http://campus.univ-corse.fr 
---------------------------------------------------------------- 


-- 
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