我正在尝试在WSO2 API管理器2.1.0中设置LDAP辅助用户存储。 设置根据this教程和WSO2 Integrator(在同一服务器上运行流畅)进行检查。 在几次尝试从公司的LDAP服务器加载用户失败之后,我突然能够一次连接。 半小时后,当我尝试再次吸引所有用户时,它失败了,此后一直不成功。每次出现相同的错误:ERROR LDAPConnectionContext 错误获得与 socketTimeoutException 的连接:读取超时。
2018-07-04 10:35:52,044 [-] [localhost-startStop-1] ERROR LDAPConnectionContext Error Obtaining connection. our.domain.org:636
javax.naming.CommunicationException: our.domain.org:636 [Root exception is java.net.socketTimeoutException: Read timed out]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:226)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.jav":137)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1615)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
....
....
Caused by: org.wso2.carbon.user.core.UserStoreException: Cannot create connection to LDAP server. Error message Error obtaining connection. our.domain.org:636
at org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager, <init>(ReadOnlyLDAPUserStoreManager.java: 184)
at org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager, <init>(ReadWriteLDAPUserStoreManager.java: 112)
at org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager, <init>(ActiveDirectoryUserStoreManager.java: 99)
... 108 more
有人在使用LDAP时遇到这种行为吗?欢迎提出任何建议-在这一点上,我不确定应该在哪里寻找错误,因为: