On 17/01/2022 14:17, Emmanuel Lécharny wrote:
Hi Jonathan,

I'm testing MINA 2.2 in Apache Directory, and there are two API differences :

- The SslSession is not anymore present in the IoSession attributes. Is there any reason for the removal ?

To clarify, we need this information in the Directory server:

    /**
     * {@inheritDoc}
     */
public byte[] evaluateResponse( byte[] initialResponse ) throws SaslException
    {
        try
        {
SSLSession sslSession = ( SSLSession ) getLdapSession().getIoSession().getAttribute( SslFilter.SSL_SESSION ); Certificate[] peerCertificates = sslSession.getPeerCertificates();

            if ( null == peerCertificates || 1 > peerCertificates.length )
            {
throw new SaslException( "No peer certificate provided - cancel bind." );
            }

getLdapSession().setCoreSession( authenticate( peerCertificates[0] ) );
            state = NegotiationState.COMPLETED;
        }

--
Emmanuel Lécharny

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to