PDA

View Full Version : ACEGI LDAP Connection Leak



marcio
Nov 8th, 2006, 08:14 AM
Hi,
we're in production with a spring application that uses httpinvoker for remoting services and basic authentication with Acegi for authenticating this requests.
The user registry is an Active Directory and we're using the default implementation of Agegi's ldapAuthenticationProvider.

The problem is that LDAP connections leack terribly... a single user generates more then 20 connections after a couple of requests; these connections stay alive for at least 15 minutes.

If tried working with ldap parameters:
Java:
-Dcom.sun.jndi.ldap.connect.pool.maxsize=10
-Dcom.sun.jndi.ldap.connect.pool.timeout=3000

and also disabling connection poolingt and decreasing ldap timeout
Spring:
<property name="useConnectionPool" value="false"/>
Java:
-Dcom.sun.jndi.ldap.connect.timeout=3000

Nothing appens,
connections keep growing and staying alive for 15 minutes (something related to a TCP timeout somewere in the network I belive....)

We're using:
Spring (core 2.0-rc2)
ACEGI 1.0.1
WebSphere application server 6.0
Microsoft Active Directory

Any help would be dramatically welcome...
ciao
marcello

rasky
Nov 9th, 2006, 02:33 AM
The LDAP parts of Acegi currently has nothing to do with Spring LDAP. Try posting in the Acegi forum in stead.

marcio
Nov 9th, 2006, 02:52 AM
I know... if you read the reason for the last modification is that I'm not able to delete the thread I created.... sorry... if you can delete it do it without any problem, I've already created the thread in the right forum...

sorry again and thanks