[ 
https://issues.apache.org/jira/browse/DIRAPI-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993278#comment-12993278
 ] 

Emmanuel Lecharny commented on DIRAPI-40:
-----------------------------------------

More specifically, the use of LDAPS should be marked as deprecated. StartTLS is 
the way to go.

The way to get it working is probably to replace the useSSL flag when we create 
the connection, to instead use the startTLS extedned request to establish a 
secure connection.  

I'm quite sure that every server support StartTLS those days, so there is no 
reason to not use that in any case. i'm even wondering if we should not use 
StartTLS even when the user requires 'ldaps'...

> LdapNetworkConnection should throw an exception when startTls() method is 
> called and the LdapConnectionConfig has the 'useSsl' flag set to true
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRAPI-40
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-40
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0-M1
>            Reporter: Pierre-Arnaud Marcelot
>             Fix For: 1.0-M2
>
>
> LdapNetworkConnection should throw an exception when startTls() method is 
> called and the LdapConnectionConfig has the 'useSsl' flag set to true.
> I got an error when using the LDAP API inside Studio where I had set the 
> 'useSsl' flag set to true and was then trying to use the Start TLS extended 
> operation.
> Sure, it was a mistake on my side and the server was not receiving the 
> expected bits of information, but it would be nice if the connection could 
> warn the user about his wrong configuration.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to