[ 
https://issues.apache.org/jira/browse/DIRSERVER-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

lucas theisen updated DIRSERVER-1938:
-------------------------------------

    Attachment: LdapConnections.java

No need to throw LdapException when calling newLdapConnection (that just calls 
LdapConnectionFactory.newUnboundLdapConnection)

> Create an LdapConnectionFactory that is not pooled to create LdapConnection 
> objects for an LdapConnectionConfig
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1938
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1938
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: ldap
>    Affects Versions: 2.0.0-M16
>            Reporter: lucas theisen
>            Priority: Minor
>         Attachments: DefaultLdapConnectionFactory.java, 
> LdapConnectionFactory.java, LdapConnections.java, 
> PoolableLdapConnectionFactoryWrapper.java
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to