Hello!
Our test tool is written with LDAP SDK 4.1 for Java and is used to access
various Directories. We are experiencing timeouts on the modify requests
only on the IBM Directory.
The LDAPv2.TIMELIMIT property is set to the default, "0" meaning NO maximum
time limit. The problems are that at times the requests are timing out
(LDAPException error code 85), and also I can't seem to set the property
even when I call the LDAPConnection.setOption() method.
Here is the some of the code:
----------------------------------------------------------------------------
-----------
Integer nTimeLimit = new Integer ( 20000 ); // temporary
for testing only
keepConn2 = new LDAPConnection();
keepConn2.setOption( LDAPv2.TIMELIMIT, nTimeLimit
/*m_LDAPTimeLimit*/ );
keepConn2.connect( m_serverName, m_port );
keepConn2.bind( 3, m_CASearchBase, m_AdminPassword );
try
{
nTimeLimit = ( Integer ) keepConn2.getOption(
LDAPv2.TIMELIMIT );
m_controller.printResultLine( " keepConn2 LDAPv2.TIMELIMIT:
" + nTimeLimit );
}
catch( LDAPException eOpt )
{
m_controller.printResultLine( " keepConn2 LDAPv2.TIMELIMIT:
...unknown!" );
}
----------------------------------------------------------------------------
-----------
Can anyone provide some help with this issue?
Thanks,
Stephanie