Sun Directory Server 无法连接 LDAP 服务器

发布于 2024-09-07 01:24:19 字数 342 浏览 5 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦忆晨望 2024-09-14 01:24:19

“没有到主机的路由”错误表明问题是 ArcGIS 服务器(如您提到的 Sun Directory Server 组件)和 LDAP 服务器之间的网络连接问题之一。因此,需要按顺序检查以下几点:

  1. 您是否已设置并运行 LDAP 服务器?
  2. 您的 LDAP 服务器是否可以从 ArcGis 服务器之外的 Centos 计算机访问?
  3. 您的 ArcGis 是否配置了正确的 LDAP 服务器地址 - 应位于 web.config 文件中?下面的例子:

    <代码><添加名称=“ADConnectionString”
    connectionString="LDAP://SERVER_LDAP:389/ou=Sigestredi,o=Sicondef,dc=aplicaciones,o=mdef,c= es" />

    • 免责声明:我对 ArcGIS 服务器本身一无所知 - 我只是通过从 ArcGis 论坛快速搜索中获取的一些片段来诊断“无主机路由错误”。

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:

  1. Do you have an LDAP server set up and running?
  2. Is your LDAP server reachable from your Centos machine outside of the ArcGis server?
  3. 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>

    • Disclaimer: I don't know anything about the ArcGIS server per se - I'm just diagnosing the "no route to host error" with a few snippets I picked up from some quick searches of the ArcGis forums.
花开雨落又逢春i 2024-09-14 01:24:19

ArcGIS 上包含 Sun Directory Server,因此 arcgis 服务器和 ldap 位于同一计算机上。端口设置为 62000。当我运行诊断工具时,DG028 失败:

DG028 - check LDAP server: is listening 

我使用 nmap 进行了证明:

nmap localhost -p62000

它说它已打开。我不知道如何验证 LDAP 是否已启动并正在运行,启动日志没有显示任何错误。我找到了一个名为 ldap.conf 的配置文件:

url ldap://name.subdomain.domain:62000/dc=name,dc=arcgis
admnm agsadmin

我的 /etc/hosts 是:

127.0.0.1  localhost localhost
ip_direction  name.subdomain.domain name.subdomain.domain

我没有“name”的别名,所以:

ping name.subdomain.domain

可以工作

但是:

ping 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:

DG028 - check LDAP server: is listening 

I made a prove using nmap as:

nmap localhost -p62000

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:

url ldap://name.subdomain.domain:62000/dc=name,dc=arcgis
admnm agsadmin

And my /etc/hosts is:

127.0.0.1  localhost localhost
ip_direction  name.subdomain.domain name.subdomain.domain

I don't have an alias for "name", so:

ping name.subdomain.domain

Works

But:

ping name

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.

鯉魚旗 2024-09-14 01:24:19

我已经解决了我的问题,问题出在我的 /etc/hosts 文件上。我为我的 ip 方向添加了一个别名:

127.0.0.1  localhost localhost
ip_direction  name.subdomain.domain name

然后运行 ​​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:

127.0.0.1  localhost localhost
ip_direction  name.subdomain.domain name

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文