Set default responseTimeout for LDAP auth

Description

ldap-authn-config.xml sets a default connectTimeout but does not set responseTimeout.
Define a default responseTimeout of 3s.

Environment

None

Activity

Tom Zeller September 7, 2016 at 4:43 PM

Does "undefined" in

idp.attribute.resolver.LDAP.connectTimeout = %{idp.authn.LDAP.connectTimeout:undefined}

actually work ? Or maybe I'm missing something.

http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/ldap.properties?r1=8274&r2=8273&pathrev=8274

Caused by: net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myLDAP': Cannot create inner bean '(inner bean)#5c534b5b' of type [org.ldaptive.DefaultConnectionFactory] while setti ng bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#5c534b5b': Cannot create inner bean '(inner bean)#396639b' of type [org.ldaptive.ConnectionConfig] while setting construc tor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#396639b': Cannot create inner bean '(inner bean)#2418ba04' of type [net.shibboleth.idp.attribute.resolver.spring.dc.ldap.impl.LDAPDataConnectorPa rser$V2Parser] while setting bean property 'connectTimeout'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '(inner bean)#2418ba04': Unsatisfied dependency expressed through method 'buildDuration' parameter 0: C ould not convert argument value of type [java.lang.String] to required type [long]: Failed to convert value of type [java.lang.String] to required type [long]; nested exception is java.lang.NumberFormatException: For input string: "undefined" at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:334) ~[classes/:na] at net.shibboleth.utilities.java.support.service.AbstractReloadableService.doInitialize(AbstractReloadableService.java:175) ~[classes/:na] ... 45 common frames omitted

Daniel Fisher June 24, 2016 at 4:46 AM

Fixed in r8274.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Created May 11, 2016 at 5:49 AM
Updated November 11, 2016 at 12:29 AM
Resolved June 24, 2016 at 4:46 AM