Hi Scott,

Thanks for the quick response.

I'm still confused by the instructions.

I added this to cas-servlet.xml:
|<||bean| 
|class||=||"org.springframework.webflow.mvc.servlet.FlowHandlerMapping"| 
|p:flowRegistry-ref||=||"flowRegistry"| |p:order||=||"2"||>|
|||<||property| |name||=||"interceptors"||>|
|||<||list||>|
|||<||ref| |local||=||"localeChangeInterceptor"| |/>|
|||<||ref| |bean||=||"throttleInterceptor"| |/>|
|||</||list||>|
|||</||property||>|
|</||bean||>|

And created throttleInterceptorTrigger.xml with the contents shown.

Where do I set the login attempt threshold?

Thanks,
Matt

On 08/04/2011 06:33 PM, Scott Battaglia wrote:
> That document is slightly misleading (I'll update it now).  The second 
> part is what you use if you are using versions prior to 3.4.x.  The 
> 3.4.x one is the first one.
>
> Cheers,
> Scott
>
>
> On Thu, Aug 4, 2011 at 7:18 PM, Matthew Selwood <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hello,
>
>     I'm trying to configure login throttling with Inspektr for CAS 3.4.6
>     using the following instructions:
>     https://wiki.jasig.org/display/CASUM/Throttling+Login+Attempts
>
>     As per the instructions, I've done the following:
>     1) Added the following to cas-servlet.xml:
>     <bean
>     class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"
>     p:flowRegistry-ref="flowRegistry" p:order="2">
>     <property name="interceptors">
>     <list>
>     <ref local="localeChangeInterceptor" />
>     <ref bean="throttleInterceptor" />
>     </list>
>     </property>
>     </bean>
>
>     2) Added the following to cas-servlet.xml:
>     <bean id="handlerMappingB"
>     class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
>     <property name="mappings">
>     <props>
>     <prop key="/login">loginController</prop>
>     </props>
>     </property>
>     <property name="interceptors">
>     <list>
>     <bean
>     
> class="org.jasig.cas.web.support.InspektrThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
>                    p:failureRangeInSeconds="120"
>                    p:failureThreshold="100">
>     <constructor-arg index="0" ref="auditTrailManager" />
>     <constructor-arg index="1" ref="dataSource" />
>     </bean>
>     <ref bean="localeChangeInterceptor" />
>     </list>
>     </property>
>     </bean>
>
>     3) Added spring-configuration/throttleInterceptorTrigger.xml with the
>     following content:
>     <?xml version="1.0" encoding="UTF-8"?>
>     <beans xmlns="http://www.springframework.org/schema/beans";
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>         xmlns:p="http://www.springframework.org/schema/p";
>         xsi:schemaLocation="http://www.springframework.org/schema/beans
>     http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>
>     <bean id="throttleInterceptor"
>     
> class="org.jasig.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapter"
>     />
>
>     <bean id="throttleInterceptorJobDetail"
>     
> class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
>         p:targetObject-ref="throttleInterceptor"
>         p:targetMethod="decrementCounts" />
>
>     <bean id="periodicThrottleCleanerTrigger"
>     class="org.springframework.scheduling.quartz.SimpleTriggerBean"
>         p:jobDetail-ref="throttleInterceptorJobDetail"
>         p:startDelay="0"
>         p:repeatInterval="1000" />
>     </beans>
>
>
>     My error from cas.log:
>
>     "Error creating bean with name 'handlerMappingB' defined in
>     ServletContext resource [/WEB-INF/cas-servlet.xml]: Initialization of
>     bean failed; nested exception is
>     org.springframework.beans.factory.NoSuchBeanDefinitionException:
>     No bean
>     named 'loginController' is defined"
>
>     Please see the attachment for the full cas.log trace.
>
>     What bean name should I be using?
>
>     Inspektr is successfully logging the audit trail to our DB without the
>     throttling bean.
>
>     I've found others with similar problems, but no solution on the list.
>     
> http://jasig.275507.n4.nabble.com/clustered-CAS-with-inspektr-and-login-throttling-td2999695.html
>
>     Any suggestions?
>
>     Thanks,
>     Matt
>
>     --
>     You are currently subscribed to [email protected]
>     <mailto:[email protected]> as: [email protected]
>     <mailto:[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