Sun Directory Server 无法连接 LDAP 服务器
我正在 Centos 5.5 x86_64 上安装 Java 平台的 ArcGisServer,这不是受支持的平台,但我已经克服了几乎所有阻碍安装成功的问题。它详尽地使用了 Sun Directory Server。我收到的最后一个错误是:
ldap_simple_bind:无法连接到 ldap 服务器 - 没有到主机的路由
它发生在使用它的其他应用程序中,因此这似乎是 Linux 和 Solaris 上 Sun Directory Server 的特定问题。目前还没有解决方案的报道。通常我会尽可能多地搜索问题,但这一次我已经达到了耐心,我需要它尽快工作。我认为这是一个优秀的论坛,因为它的社区和答案的质量,“有人可以帮助我吗?”
I'am installing ArcGisServer for the Java plataform on Centos 5.5 x86_64, this is not a supported platform but I have overcome almost every problem preventing the success of the installation. It uses exhaustively Sun Directory Server. The last error i receive was:
ldap_simple_bind: Can't connect to the ldap server - No route to host
It happens in other applications which makes uses of it, so it seems to be an specific problem of Sun Directory Server on linux and solaris. There is no reported solution. Usually I search the problem as much as I can but this time I have reached my patience and I need it working as soon as posible. I recognize this as an excellent forum because of it's community and quality of answers, ¿can anybody help me with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“没有到主机的路由”错误表明问题是 ArcGIS 服务器(如您提到的 Sun Directory Server 组件)和 LDAP 服务器之间的网络连接问题之一。因此,需要按顺序检查以下几点:
您的 ArcGis 是否配置了正确的 LDAP 服务器地址 - 应位于 web.config 文件中?下面的例子:
<代码><添加名称=“ADConnectionString”
connectionString="LDAP://SERVER_LDAP:389/ou=Sigestredi,o=Sicondef,dc=aplicaciones,o=mdef,c= es" />
The "No route to host" error suggests that the issue is one of network connectivity between your ArcGIS server (the Sun Directory Server component, as you mention) and the LDAP server. So, a few things to examine, in order:
Is your ArcGis configured with the correct address to the LDAP server - should be in the web.config file? Example below:
<connectionStrings>
<add name="ADConnectionString"
connectionString="LDAP://SERVER_LDAP:389/ou=Sigestredi,o=Sicondef,dc=aplicaciones,o=mdef,c= es" />
</connectionStrings>
ArcGIS 上包含 Sun Directory Server,因此 arcgis 服务器和 ldap 位于同一计算机上。端口设置为 62000。当我运行诊断工具时,DG028 失败:
我使用 nmap 进行了证明:
它说它已打开。我不知道如何验证 LDAP 是否已启动并正在运行,启动日志没有显示任何错误。我找到了一个名为 ldap.conf 的配置文件:
我的 /etc/hosts 是:
我没有“name”的别名,所以:
可以工作
但是:
不起作用
我从未使用过 ldap,所以我没有知道“dc”上应该有什么。我的主机文件是否格式错误或者是我的 ldap.conf 格式错误?
另一个信息是我正在使用的计算机是域的一部分。当我安装 Centos 时,/etc/hosts 文件有一个环回接口的别名 localhost.localdomain,但我删除了它。
我将不胜感激任何帮助。
ArcGIS includes a Sun Directory Server on it, so arcgis server and ldap are on the same machine. The port is set to 62000. When I run the diagnostic tool the DG028 fails:
I made a prove using nmap as:
And it says it is opened. I don't know how to verify if LDAP is up and running, the startup log doesn't show anything wrong. I have found a config file named ldap.conf:
And my /etc/hosts is:
I don't have an alias for "name", so:
Works
But:
Doesn't work
I have never used ldap so I don't know what should be on "dc". Could my hosts file be malformed or is my ldap.conf?
Another information is that the computer I am using is part of a domain. When I installed Centos, /etc/hosts file had an alias for the loopback interface as localhost.localdomain but i removed it.
I would appreciate any help.
我已经解决了我的问题,问题出在我的 /etc/hosts 文件上。我为我的 ip 方向添加了一个别名:
然后运行 ServerConfig 脚本。至此在Linux上成功安装了ArcGIS Server for Java平台。感谢格雷格的指导。
I have solved my problem, the problem was on my /etc/hosts file. I added an alias for my ip direction:
Then I run the ServerConfig script. This is a successful installation of ArcGIS Server for the Java platform on Linux. Thanks Greg for your guide.