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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0-M20
    • 1.0.0-M23
    • 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. PoolableLdapConnectionFactoryWrapper.java
          2 kB
          lucas theisen
        2. LdapConnections.java
          1 kB
          lucas theisen
        3. LdapConnectionFactory.java
          2 kB
          lucas theisen
        4. DefaultLdapConnectionFactory.java
          2 kB
          lucas theisen

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: