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

Emmanuel Lecharny commented on DIRSHARED-115:
---------------------------------------------

Yeah, not a stupid idea. anonymousBind() is probably a better idea, and bind() 
should use the LdapConnectionConfig object.

> Should bind() method be used for anonymous bind or should it take bind DN and 
> credentials from the LdapConnectionConfig?
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSHARED-115
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-115
>             Project: Directory Shared
>          Issue Type: Bug
>            Reporter: Pierre-Arnaud Marcelot
>             Fix For: 1.0.0-M4
>
>
> Should bind() method be used for anonymous bind or should it take bind DN and 
> credentials from the LdapConnectionConfig?
> When using the API, I thought the bind() method would use the bind DN and 
> credentials I provided in the LdapConnectionConfig when creating the 
> connection.
> I personally think we should rename the current bind() method as 
> BindAnonymously() and let the bind() method reuse the LdapConnectionConfig 
> parameter (if none are provided for Bind DN and credentials, then it would 
> implicitly be an anonymous bind).
> Thoughts?

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

Reply via email to