blockWaitTime in IdPv3 ldap.properties
Tom Zeller
tzeller at dragonacea.biz
Wed Nov 4 19:21:06 EST 2015
> On Nov 4, 2015, at 5:52 PM, Nick Roy <nroy at internet2.edu> wrote:
>
> Hello,
>
> I'm setting up IdPv3.1.2 and configuring LDAP connection pooling settings in ldap.properties.
>
> If I specify a value of, say, PT3S for blockWaitTime, I get a bean creation error displayed as part of a dump on the default login page:
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bindSearchConnectionPool' defined in file [C:\Program Files (x86)\Shibboleth\IdP\conf\authn\ldap-authn-config.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'long' for property 'blockWaitTime'; nested exception is java.lang.NumberFormatException: For input string: “PT3S"
I can confirm that ISO8601 durations are not supported there in ldap.properties even in the latest code.
> If I specify a value of 3000 for blockWaitTime I get a bean creation error in idp-process.log:
>
> Failed to instantiate [long]: Factory method 'buildDuration' threw exception; nested exception is java.lang.IllegalArgumentException: 3000
I’m not seeing that exception, where I have idp.pool.LDAP.blockWaitTime = 3000 in ldap.properties.
> It seems there is a conflict between two different locations (ldap.properties and ldap-authn-config.xml) where this is used, is that right? Should I just delete the reference from one of these places and change it to the other format? This seems awkward.
I don’t see the conflict either, can you say more, please ?
More information about the users
mailing list