Sun Directory Server can't connect ldap 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?

-------------Problems Reply------------

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:


    <add name="ADConnectionString" connectionString="LDAP://SERVER_LDAP:389/ou=Sigestredi,o=Sicondef,dc=aplicaciones,o=mdef,c= es" />


    • 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.

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: localhost localhost
ip_direction name.subdomain.domain name.subdomain.domain

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

ping name.subdomain.domain



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.

I have solved my problem, the problem was on my /etc/hosts file. I added an alias for my ip direction: 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.

Category:java Views:1 Time:2010-06-29

Related post

  • PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server 2011-03-15

    I've following problem with my php script: PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in .... ldap_connect() says "Success" but ldap_bind() fails, how to fix that issue? --------------Solutions------------- Connect

  • Connecting LDAP server from java application 2010-05-21

    I am building an application based on GXT (J2EE). Now the problem is that I have to connect the application to a LDAP server. Can you tell me how to connect a LDAP server from our java application and what Library or API I will have to use for that?

  • Is it possible to connect ldap server directly to Android phone? 2011-04-18

    I need to get the contact list from the LDAP Server running on Linux.Is it there any android code or intent to access the ldap contents directly or we should only use the web services to access the ldap?I tried searching on the internet but no proper

  • sql server error- cannot connect to server 2011-05-16

    I had been using SQL server 2005 without any problem but now when i opened it and tried to connect it am getting this error--- TITLE: Connect to Server Cannot connect to POONAM-C586A95C\SQLEXPRESS. ADDITIONAL INFORMATION: A network-related or instanc

  • Can't send large emails, getting "server not available", "connection to server lost in middle of transmission", and #421 errors. 2014-03-03

    I recently got a new computer with Windows 7 and dowloaded Thunderbird 3.1.2 for email. I connect to an AT&T DSL Lite account with a brand new Motorola modem using an ethernet cable. In the past I have sent emails (via Thunderbird 2 or 3.0) conta

  • Ldap server for developer 2011-01-20

    I am developing a project and that requires ldap validation. But, I don't have a developer/qa ldap server. Does a small ldap server exist for windows for testing/development?. I just want to test to validate a active account and detect if it is block

  • Active Directory: Searching Users/Group in LDAP via C++ 2011-07-18

    Currently we started to migrate our existing authentication to Active Directory authetication, but now i am facing lot of issues in searching users and group. let me explain you we have an application/server who will autheticate and authorize user. s

  • How to connect to a LDAP server using a p12 certificate 2010-02-03

    I want to connect to a LDAP server using a .p12 certificate instead of using a username and password. The Java solution for this looks like String ldapURL = "ldaps://"+host+":"+port; System.setProperty("", "PKCS12" ); System

  • Why isn't manager attribute changing on distinguished name modification in Sun Directory Server 6.3? 2009-08-18

    I have a problem with manager attribute in Sun Directory Server. I set this attribute for a user in the directory, e.g. cn=testmanager,dc=test,dc=com and when I change manager's dn this change is not propagated in manager attributes. For example: I h

  • Connect to LDAP Server 2014-08-07

    I am running Outlook on my Win 8.1 machine without any apparent problems. I would like to connect it to my LDAP server running on my FreeBSD server. I have not been able to find a way to do that. Other MUAs allow the creation of a connection to an LD

  • How can I find out how many connections to my slapd LDAP server? 2009-01-20

    I have a slapd LDAP server which is critical to my application. I want to monitor it in order to detect when it has become over-loaded or if it fails. Unfortunately we are stuck with a very old edition of slapd which has a known bug: It cannot cope w

  • Choosing between a directory server (a.k.a LDAP database) and an RDBMS 2009-09-29

    In my project, where I'm the lead developer, we earlier had a network configuration that was stored a single XML file. The configuration contains info about a network layout - its constituent hosts, various details about each host like OS, platform,

  • client failing to connect to ldap server 2011-11-28

    I am new to using ldap and slapd and I am having some trouble getting my client machine to connect to the server that is hosting slapd. here is the run down: on a ubuntu box I have an instance of virtualbox running a vm with CentOS. I have installed

  • Query for "ACTIVE" users in LDAP server NOT working 2011-10-17

    I need to be able to get via querying the active directory using the LDAP server a list of defined ACTIVE users from the active directory. I have tried to do this via a successful connection to my ldap server. In the java code below I get back ONLY 1

  • How to reconnect when the LDAP server is restarted? 2012-01-09

    I have a situation where through a Java program, I create a javax.naming.ldap.LdapContext and do a search() operation on it - which makes an underlying connection. Then I put the Java app thread to sleep, during which I restart the LDAP server (OpenL

  • Get Ldap server version with java 2014-01-07

    I found this simple example with java how to connect to LDAP server: import javax.naming.*; import*; import java.util.Hashtable; /** * Demonstrates how to create an initial context to an LDAP server * using SSL. For this examp

  • Lookups in VB.NET Bogging Down LDAP Server 2008-12-08

    My DBAs have informed me that one of my applications is really bogging down one of our LDAP servers. I've looked at the code several times, but I can't see any way to limit the amount of times I have to hit LDAP. So now I've decided to look at the wa

  • Spring embedded ldap server in unit tests 2009-02-13

    I am currently trying to use an embedded ldap server for unit tests. In Spring Security, you can quickly define an embedded ldap server for testing with the tag with some sample data loaded from the specified ldif. I will be using Spring Ldap to perf

  • local LDAP server for development on windows 7 2010-02-19

    Our (ASP.Net) application has to talk to an LDAP/Active Directory server for verifying user groups. Now several members of our team need to be able to work disconnected. Is there a way to set up a local LDAP server on the development machine (Windows

Copyright (C), All Rights Reserved.

processed in 0.159 (s). 11 q(s)