Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-168

Create an LdapConnectionFactory that is not pooled to create LdapConnection objects for an LdapConnectionConfig

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M20
    • Fix Version/s: 1.0.0-M23
    • Labels:
      None

      Description

      If using the ldap server for authentication, you do not want a pooled connection because you will be doing a bind operation. However, the ldap connection you want will be otherwise configured the same as your pool of connections. It makes sense to have a factory that can create unbound connections.

      Taking this one step further, the poolable connection factory could use such a connection factory so that the implementation exists in only one place.

      I will attach code that implements this.

        Attachments

        1. DefaultLdapConnectionFactory.java
          2 kB
          lucas theisen
        2. LdapConnectionFactory.java
          2 kB
          lucas theisen
        3. LdapConnections.java
          1 kB
          lucas theisen
        4. PoolableLdapConnectionFactoryWrapper.java
          2 kB
          lucas theisen

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ltheisen@mitre.org lucas theisen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: