Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-400

Connection Pooling with JNDISourceAdapter

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: subject API
    • Labels:
      None

      Description

      The JNDISourceAdapter does not support connection pooling and does not cache connections, so each time information needs to be retrieved about a subject, a new LDAP connection is made.

      Connection pooling can be added by simply setting com.sun.jndi.ldap.connect.pool to "true" in the environment properties.

      environment.put("com.sun.jndi.ldap.connect.pool", "true");

      It is not clear yet whether the value for this property should be a part of the sources.xml file.

      Also, to support SSL and non-SSL connections, the system property com.sun.jndi.ldap.connect.pool.protocol should be set to "plain ssl".

        Activity

        Hide
        blair@uchicago.edu Blair Christensen added a comment -

        Pinged Kathryn to see if she wants to handle this issue.

        Show
        blair@uchicago.edu Blair Christensen added a comment - Pinged Kathryn to see if she wants to handle this issue.
        Hide
        blair@uchicago.edu Blair Christensen added a comment -

        Changed component to "Subject API"

        Show
        blair@uchicago.edu Blair Christensen added a comment - Changed component to "Subject API"
        Hide
        jv11@cornell.edu Joy Veronneau added a comment -

        It looks like even if I add the line that Mike suggests, the connections are not being pooled.

        In subject->JNDISourceAdapter->getLdapResults, we are doing

        context = new InitialDirContext(environment);

        for every search.

        Show
        jv11@cornell.edu Joy Veronneau added a comment - It looks like even if I add the line that Mike suggests, the connections are not being pooled. In subject->JNDISourceAdapter->getLdapResults, we are doing context = new InitialDirContext(environment); for every search.
        Hide
        fox Jim Fox added a comment -

        An alternative ldap source adapter from the University of Washington, http://staff.washington.edu/fox/grouper/, supports connection pooling.

        Show
        fox Jim Fox added a comment - An alternative ldap source adapter from the University of Washington, http://staff.washington.edu/fox/grouper/ , supports connection pooling.

          People

          • Assignee:
            shilen Shilen Patel
            Reporter:
            shilen Shilen Patel
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: