Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] sources.xml Connection Pool Ldap?

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] sources.xml Connection Pool Ldap?


Chronological Thread 
  • From: Colin Hudler <>
  • To: Jim Fox <>
  • Cc: Tom Zeller <>, "" <>
  • Subject: Re: [grouper-dev] sources.xml Connection Pool Ldap?
  • Date: Thu, 18 Jun 2009 13:52:45 -0500

Thanks again, Jim. I installed it according to the README and it worked well. However, it continued to connect and bind on each search, and never closed the context. The ldap server quickly ran out of sockets. I started to debug it, but I couldn't find the 2.8.2 vt-ldap api docs. So, I downloaded 3.0 and converted it. Works great now. I also have it using a properties file, so much less is configured in sources.xml. I have attached the patch between my new one and the only changed file (LdapSourceAdapter.java).

Sorry, you will see that I might have made a few unnecessary changes, also keep in mind that I am not really a Java programmer.

On 06/18/2009 11:49 AM, Jim Fox wrote:


Here is the uwsubject library.

http://staff.washington.edu/fox/grouper/dist/


Jim


On Thu, 18 Jun 2009, Colin Hudler wrote:

Date: Thu, 18 Jun 2009 09:41:25 -0700
From: Colin Hudler
<>
To: Jim Fox
<>
Cc: Tom Zeller
<>,
""

<>
Subject: Re: [grouper-dev] sources.xml Connection Pool Ldap?

Please do, Jim. Thank you.

On 06/18/2009 11:13 AM, Jim Fox wrote:


We implemented a source adapter at UW that uses the vt ldap library and
supports connection pooling. I can send you a copy if you'd like to try
it out.

Jim


On Thu, 18 Jun 2009, Tom Zeller wrote:

Date: Thu, 18 Jun 2009 07:05:44 -0700
From: Tom Zeller
<>
To: Colin Hudler
<>
Cc:
""

<>
Subject: Re: [grouper-dev] sources.xml Connection Pool Ldap?

Well, no, the JNDISourceAdapter isn't conducive to pooling.

We indeed are creating and closing the ldap context before and after
each search, so adding the connection pooling environment property
won't help
much.
We might want
to provide an LdapSourceAdapter which uses vt-ldap so we can have
connection pooling etc. even with TLS.


I'm not sure what priority this is.

TomZ

On Thu, Jun 18, 2009 at 8:50 AM, Colin Hudler
<>
wrote:
Hi,

I observed one of our test instances of grouper starting a new ldap
session each time a person subject was to be resolved (the other
test instances use mysql or mssql for the subject source). Is there a
way to request connection pooling? I could not find this
answer in the archives or wiki, but there is an "issue" in jira at
<https://bugs.internet2.edu/jira/browse/MCO-9>. I am unable to
extract the answer from that, however.

the sources.xml is using
edu.internet2.middleware.grouper.subj.GrouperJndiSourceAdapter and
<param-name>INITIAL_CONTEXT_FACTORY</param-name>
<param-value>com.sun.jndi.ldap.LdapCtxFactory</param-value>











Archive powered by MHonArc 2.6.16.

Top of Page