Grouper
  1. Grouper
  2. GRP-400

Connection Pooling with JNDISourceAdapter

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major 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 Christensen added a comment -
        Pinged Kathryn to see if she wants to handle this issue.
        Show
        Blair Christensen added a comment - Pinged Kathryn to see if she wants to handle this issue.
        Hide
        Blair Christensen added a comment -
        Changed component to "Subject API"
        Show
        Blair Christensen added a comment - Changed component to "Subject API"
        Hide
        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
        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
        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
        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 Patel
            Reporter:
            Shilen Patel
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: