Tomcat + LDAP 问题:套接字在连接时关闭 [英] Tomcat + LDAP issue: socket closed on connection

查看:61
本文介绍了Tomcat + LDAP 问题:套接字在连接时关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 Tomcat 配置为连接到我们网络上的 LDAP 服务器,但出现以下错误:

I'm trying to configure Tomcat to connect to an LDAP server on our network, and I'm getting the following error:

javax.naming.ServiceUnavailableException: xx.xx.xx.xx:636;插座关闭在 com.sun.jndi.ldap.Connection.readReply(Connection.java:419)在 com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)在 com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:192)在 com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2694)

javax.naming.ServiceUnavailableException: xx.xx.xx.xx:636; socket closed at com.sun.jndi.ldap.Connection.readReply(Connection.java:419) at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340) at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:192) at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2694)

这是尝试的领域:

    <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
        connectionName="CN=username,CN=users,DC=domain-name,DC=com"
        connectionPassword="password"
        connectionURL="ldap://xx.xx.xx.xx:636"
        userPattern="CN={0},CN=users,DC=domain-name,DC=com"
        roleBase="DC=domain-name,DC=com"
        roleName="CN"
        roleSearch="CN={1}"
    />

我不确定为什么会发生这种情况,因为使用 Softerra LDAP Admin.使用相同的登录信息(相同的 DN 和密码).

I'm not sure why this is happening, as using Softerra LDAP Admin. works with the same login information (the same DN and password).

刚刚发现 JXplorer 不工作并失败并出现相同的错误,但 Softerra 没有.

just figured out that JXplorer doesn't work and fails with the same error, but Softerra does not.

推荐答案

问题已解决 - 我们收到了错误的服务器信息.

Problem was solved - we had been given bad server info.

这篇关于Tomcat + LDAP 问题:套接字在连接时关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆