title: javax.naming.NamingException: LDAP response read timed out
body: <p>I am using Spring 3.1.2 , Jboss 6.4 and jdk 1.7.80.
  While login I am getting error:
  javax.naming.NamingException: LDAP response read timed out.
  i used following code,but not worked.</p>
  
  <pre><code>    &lt;bean id="contextSourceTargetApp" 
           class="org.springframework.ldap.core.support.LdapContextSource"&gt;
                  &lt;property name="baseEnvironmentProperties"&gt;
                         &lt;map&gt;
                                &lt;entry key="com.sun.jndi.ldap.connect.timeout"                        value="5000" /&gt;          
                          &lt;/map&gt;  
                   &lt;/property&gt;
       &lt;/bean&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>