directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-47) LdapConnection.bind fails on timeout but there was SSL handshake problem
Date Wed, 06 Jul 2011 12:35:16 GMT

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

Pierre-Arnaud Marcelot commented on DIRAPI-47:
----------------------------------------------

OK, I managed to reproduce the issue.

Here's a main method that allows to reproduce the issue.
##########################################
    public static void main( String[] args ) throws Exception
    {
        LdapConnectionConfig config = new LdapConnectionConfig();
        config.setLdapHost( "localhost" );
        config.setLdapPort( 10636 );
        config.setName( "uid=admin,ou=system" );
        config.setCredentials( "secret" );
        config.setUseSsl( true );
        LdapNetworkConnection connection = new LdapNetworkConnection( config );
        connection.bind();

        EntryCursor cursor = connection.search( "ou=config", "(objectclass=*)", SearchScope.SUBTREE,
            new String[0] );
        while ( cursor.next() )
        {
            Entry entry = cursor.get();
            System.out.println( entry );
        }

        cursor.close();

        connection.close();
        
        System.out.println( "done.");
    }
##########################################

> LdapConnection.bind fails on timeout but there was SSL handshake problem
> ------------------------------------------------------------------------
>
>                 Key: DIRAPI-47
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-47
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 1.0.0-M6
>            Reporter: Martin Zdila
>
> Affects 1.0.0.M6-SNAPSHOT (from today).
> When SSL handshake error occurs LdapConnection.bind waits for timeout. Instead it should
fail immediately.
> I can see SSL exception in the logs and after couple of seconds I get timeout exception.

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

        

Mime
View raw message