[
https://issues.apache.org/jira/browse/KARAF-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236800#comment-15236800
]
Alexandre Cartapanis commented on KARAF-4486:
---------------------------------------------
I have seen that the getAuthentication() method could not returns null, that's
why i have not made a check on this.
But the getAuthentication() method is only used in LDAPOptions.
Your solution is better.
> LDAPOptions sets Context.SECURITY_AUTHENTICATION only if username is provided
> -----------------------------------------------------------------------------
>
> Key: KARAF-4486
> URL: https://issues.apache.org/jira/browse/KARAF-4486
> Project: Karaf
> Issue Type: Bug
> Components: karaf-security
> Affects Versions: 4.0.4
> Reporter: Alexandre Cartapanis
>
> In the LDAPOptions#getEnv, the Context.SECURITY_AUTHENTICATION is sets only
> if a connectionUsername is provided. This prevent using "no username"
> authentication like GSSAPI.
> See
> https://github.com/apache/karaf/blob/master/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java#L147
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)